-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
genstring.py
33 lines (23 loc) · 942 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 TeamYukki@Github, < https://github.com/TeamYukki >.
#
# This file is part of < https://github.com/TeamYukki/YukkiMusicBot > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/TeamYukki/YukkiMusicBot/blob/master/LICENSE >
#
# All rights reserved.
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()
xx = f"HERE IS YOUR STRING SESSION, COPY IT, DON'T SHARE!!\n\n`{ss}`\n\nGENERATED BY YUKKI"
ok = await i.send_message("me", xx)
print("\nHERE IS YOUR STRING SESSION, COPY IT, DON'T SHARE!!\n")
print(f"\n{ss}\n")
print("\nGENERATED BY YUKKI\n")
asyncio.run(main())