mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-16 22:34:19 +02:00
16 lines
394 B
Python
16 lines
394 B
Python
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
|