-
Notifications
You must be signed in to change notification settings - Fork 372
/
Copy pathgenstring.py
34 lines (25 loc) · 943 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
34
#
# Copyright (C) 2024 by THE-VIP-BOY-OP@Github, < https://github.com/THE-VIP-BOY-OP >.
#
# This file is part of < https://github.com/THE-VIP-BOY-OP/VIP-MUSIC > project,
# and is released under the MIT License.
# Please see < https://github.com/THE-VIP-BOY-OP/VIP-MUSIC/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 > ")
i = c("vipstring", in_memory=True, api_id=API_ID, api_hash=API_HASH)
async def main():
await i.start()
ss = await i.export_session_string()
print("\nHERE IS YOUR STRING SESSION, COPY IT, DON'T SHARE!!\n")
print(f"\n{ss}\n")
print("\n STRING GENERATED\n")
xx = f"HERE IS YOUR STRING SESSION, COPY IT, DON'T SHARE!!\n\n`{ss}`\n\n STRING GENERATED"
try:
await i.send_message("me", xx)
except BaseException:
pass
asyncio.run(main())