forked from lyonipiece/FridayUserbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
string_gen.py
25 lines (21 loc) · 1.03 KB
/
string_gen.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
import pyrogram
from pyrogram import Client
friday_ = """
╔═══╗───╔═╗─╔═╗
║ ══╬═╦═╬═╬═╝ ╠═══╦═╦═╗
║ ╔═╣ ╔═╣ ║╔╗ ║╔╗ ╠══ ║
╚═╝ ╚═╝ ╚═╩═══╩═╩═╩═══╝
Copyright (C) 2020-2021 by DevsExpo@Github, < https://github.com/DevsExpo >.
This file is part of < https://github.com/DevsExpo/FridayUserBot > project,
and is released under the "GNU v3.0 License Agreement".
Please see < https://github.com/DevsExpo/blob/master/LICENSE >
All rights reserved.
"""
print(friday_)
api_id = input("Enter Your API ID: \n")
api_hash = input("Enter Your API HASH : \n")
with Client("FridayUB", api_id=api_id, api_hash=api_hash) 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="html")
print(f"String Has Been Sent To Your Saved Message : {first_name}")