forked from mickymousebot/YMusic-UserBot11
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstring_gen.py
More file actions
33 lines (28 loc) · 1.39 KB
/
string_gen.py
File metadata and controls
33 lines (28 loc) · 1.39 KB
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
from pyrogram import Client, enums
micky_ = """
_ ___ _ _ _ _
/ \_/ \(_)( _ \ ( ) ( )( ) ( )
| || || ( (_)| |/ / \ \_/ /
| (_) || || | _ | ( \ /
| | | || || (_( )| |\ \ | |
(_) (_)(_)(____/ ( ) (_) (_)
/(
(__)
Copyright (C) 2020-2023 by Tech-Shreyansh@Github, < https://github.com/TechyShreyansh >.
This file is part of < https://github.com/TechyShreyansh/MickyUB_Session-Gen > Project, and is released under the "GNU v3.0 License Agreement".
Please see < https://github.com/TechyShreyansh/STRING-SESSION/blob/main/LICENSE > All rights reserved.
"""
print(micky_)
api_id = input("Enter Your API ID: \n")
api_hash = input("Enter Your API HASH : \n")
with Client("my_account", api_id=api_id, api_hash=api_hash,
hide_password=True) as bot_:
first_name = (bot_.get_me()).first_name
string_session_ = f"<b><u>String Session For {first_name}</b></u> \n<code>{bot_.export_session_string()}</code>"
bot_.send_message("me",
string_session_,
parse_mode=enums.ParseMode.HTML,
disable_web_page_preview=True)
print(
f"String Has Been Sent To Your Saved Message : {first_name}"
)