1
0
Fork 0

Add files via upload :trollface:

This commit is contained in:
Arthur K. 2025-11-04 07:59:41 +03:00
commit a9cfc9b522
Signed by: wzray
GPG key ID: B97F30FDC4636357
9 changed files with 425 additions and 0 deletions

14
generate_session.py Normal file
View file

@ -0,0 +1,14 @@
import os
import asyncio
import pyrogram
async def main():
c = pyrogram.client.Client('user', api_id=os.environ['TELEGRAM_API_ID'], api_hash=os.environ['TELEGRAM_API_HASH'])
me = await c.get_me()
print(f'Hello, {me.first_name}!')
if __name__ == '__main__':
asyncio.run(main())