forked from AnonymousX1025/FallenMusic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsessiongen.py
More file actions
22 lines (13 loc) · 729 Bytes
/
sessiongen.py
File metadata and controls
22 lines (13 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import asyncio
from pyrogram import Client, __version__ as ver
API_ID = input("\nEnter Your API ID :\n > ")
API_HASH = input("\nEnter Your API HASH :\n > ")
print("\n\nEnter the phone number associated with your telegram account when asked.\n\n")
fallen = Client("Fallen", api_id=API_ID, api_hash=API_HASH, in_memory=True)
async def main():
await fallen.start()
sess = await fallen.export_session_string()
txt = f"Here is your Pyrogram {ver} String Session\n\n<code>{sess}</code>\n\nDon't share it with anyone.\nDon't forget to join @FallenAssociation"
ok = await fallen.send_message("me", txt)
print(f"Here is your Pyrogram {ver} String Session\n{sess}\nDouble click to copy.")
asyncio.run(main())