Files
2025-07-10 21:02:34 +03:00

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