-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathstr.py
40 lines (27 loc) · 1.41 KB
/
str.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Created By CallsMusic
import asyncio
import time
import tgcrypto
from pyrogram import Client
print("""
/ ___|__ _| | |___| \/ |_ _ ___(_) ___ | _ \| |_ _ ___
| | / _` | | / __| |\/| | | | / __| |/ __|____| |_) | | | | / __|
| |__| (_| | | \__ \ | | | |_| \__ \ | (_|_____| __/| | |_| \__ \.
\____\__,_|_|_|___/_| |_|\__,_|___/_|\___| |_| |_|\__,_|___/
/\ / _ _ | | _ | _ _ .__.._ _ \ // |\/| _o _ |_)| _. _ ._|
/--\ \_(_)(_)| |(/_|(/_(_||(_|| | | \/ \_ | ||_|_>|(_ | |(_|\/(/_| o
_| /
Github: https://github.com/Itz-fork/Callsmusic-Plus
Docs: https://itz-fork.gitbook.io/callsmusic-plus
Website: https://musicsnexabot.netlify.app
""")
time.sleep(5) # Just for show off
print("Enter Your APP ID and API HASH To Generate Pyrogram String Session.")
async def main():
async with Client(":memory:", api_id=int(input("API ID:")), api_hash=input("API HASH:")) as app:
PYRO_SESSION = await app.export_session_string()
await app.send_message("me", f"**Pyrogram String Session:** \n`{PYRO_SESSION}` \n\n**Powered by @NexaBotsUpdates 😇**")
print(f"Here is your Pyrogram String Session: \n {PYRO_SESSION} \n\nPro tip: Check your saved message also, Backup of this session is also saved in there :)")
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())