-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtermuxstringsession2.py
More file actions
58 lines (47 loc) · 1.65 KB
/
termuxstringsession2.py
File metadata and controls
58 lines (47 loc) · 1.65 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# (c) https://t.me/TelethonChat/37677
# This Source Code Form is subject to the terms of the GNU
# General Public License, v.3.0. If a copy of the GPL was not distributed with this
# file, You can obtain one at https://www.gnu.org/licenses/gpl-3.0.en.html.
from telethon.sessions import StringSession
from telethon.sync import TelegramClient
desc = """
Thank you very much for using this script.
<code>STRING_SESSION</code>: <code>{}</code>
⚠️ <b>Please be carefull to pass this value to third parties</b>
Credits : @TelethonUpdates
Managed by : @GroupTidakDiketahui
"""
print(
"""
/$$ /$$ /$$$$$$$$ /$$ /$$ /$$$$$$$$ /$$$$$$
| $$ /$$/| $$_____/| $$$ | $$|_____ $$ /$$__ $$
| $$ /$$/ | $$ | $$$$| $$ /$$/ | $$ \ $$
| $$$$$/ | $$$$$ | $$ $$ $$ /$$/ | $$ | $$
| $$ $$ | $$__/ | $$ $$$$ /$$/ | $$ | $$
| $$\ $$ | $$ | $$\ $$$ /$$/ | $$ | $$
| $$ \ $$| $$$$$$$$| $$ \ $$ /$$$$$$$$| $$$$$$/
|__/ \__/|________/|__/ \__/|________/ \______/
"""
)
print("")
print("""Telethon String !!! No Using API_HASH & API_ID""")
print("")
print("")
print("""Credits by : @xelyourslurred <unknownkz>""")
API_KEY = "1273127"
API_HASH = "2626aee4ea587947c6a703f1a0d6a3cc"
while True:
try:
with TelegramClient(StringSession(), API_KEY, API_HASH) as client:
print("")
session = client.session.save()
messages_temp = desc.format(session)
client.send_message(
"me", messages_temp, parse_mode="html"
)
except:
print("")
print("Wrong phone number!!!\nMake sure it's with correct country code.")
print("")
continue
break