mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-18 07:04:19 +02:00
Commited backup
This commit is contained in:
15
vsecoder/hikka_modules/libs/sub.py
Normal file
15
vsecoder/hikka_modules/libs/sub.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from .. import loader
|
||||
|
||||
|
||||
class CheckSubscribe(loader.Library):
|
||||
developer = "@vsecoder"
|
||||
version = (1, 0, 0)
|
||||
|
||||
async def check(self, client, channel_name="vsecoder_m"):
|
||||
try:
|
||||
channel = await client.get_entity(f"t.me/{channel_name}")
|
||||
if channel.title:
|
||||
return True
|
||||
return False
|
||||
except Exception:
|
||||
return False
|
||||
Reference in New Issue
Block a user