forked from TheTeamAlexa/AlexaMusic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenstring.py
33 lines (22 loc) · 788 Bytes
/
genstring.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
#
# Copyright (C) 2021-2022 by Alexa_Help@Github, < https://github.com/Jankarikiduniya >.
# A Powerful Music Bot Property Of Rocks Indian Largest Chatting Group
# Kanged By © @Dr_Asad_Ali
# Rocks © @Shayri_Music_Lovers
# Owner Asad Ali
# Harshit Sharma
# All rights reserved. © Alisha © Alexa © Yukki
import asyncio
from pyrogram import Client as c
API_ID = input("\nEnter Your API_ID:\n > ")
API_HASH = input("\nEnter Your API_HASH:\n > ")
print("\n\n Enter Phone number when asked.\n\n")
i = c(":memory:", api_id=API_ID, api_hash=API_HASH)
async def main():
await i.start()
ss = await i.export_session_string()
print(
"\nHERE IS YOUR PYROGRAM STRING SESSION, COPY IT, DON'T SHARE IT WITH YOUR GF !\n"
)
print(f"\n{ss}\n")
asyncio.run(main())