-
Notifications
You must be signed in to change notification settings - Fork 23
/
telegram_scan.py
79 lines (77 loc) · 3.35 KB
/
telegram_scan.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import sys
import os
from get_user_info import User_info
from get_my_chats import My_chats
from get_chat_info import Chat_info
from get_chat_members import Chat_members
from get_chat_animations import Search_animations
from get_chat_photos import Search_photos
from get_chat_audios import Search_audios
from get_chat_videos import Search_videos
from get_chat_voice_notes import Search_voice_notes
from get_chat_documents import Search_documents
from get_chat_urls import Search_urls
from get_chat_contacts import Search_contacts
from get_chat_location import Search_locations
from search_query import Search_query
from search_user_messages import Search_user_messages
from get_chat_messages import get_chat_messages
def main_menu():
try:
print("\n\033[1;96mTelegram Scanner \033[1;00mmodules:\n\n[\033[1;96m1\033[1;00m] Get user info\n[\033[1;96m2\033[1;00m] Get my chats info\n\033[1;00m[\033[1;96m3\033[1;00m] Get chat info\n\033[1;00m[\033[1;96m4\033[1;00m] Get chat members\n\033[1;00m[\033[1;96m5\033[1;00m] Get chat animations\033[1;00m\n[\033[1;96m6\033[1;00m] Get chat photos\033[1;00m\n[\033[1;96m7\033[1;00m] Get chat audios\n[\033[1;96m8\033[1;00m] Get chat videos\n[\033[1;96m9\033[1;00m] Get chat voice notes\n\033[1;00m[\033[1;96m10\033[1;00m] Get chat documents\n\033[1;00m[\033[1;96m11\033[1;00m] Get chat urls\033[1;00m\n[\033[1;96m12\033[1;00m] Get chat contacts\n\033[1;00m[\033[1;96m13\033[1;00m] Get chat locations\n\033[1;00m[\033[1;96m14\033[1;00m] Get chat search query\033[1;00m\n[\033[1;96m15\033[1;00m] Get user messages\n\033[1;00m[\033[1;96m16\033[1;00m] Get chat messages\033[1;00m\n\033[1;00m[\033[1;96m99\033[1;00m]\033[1;90m Exit\033[1;00m\n")
choose_module = input("Enter module number: ")
if choose_module == "1":
User_info()
main_menu()
elif choose_module == "2":
My_chats()
main_menu()
elif choose_module == "3":
Chat_info()
main_menu()
elif choose_module == "4":
Chat_members()
main_menu()
elif choose_module == "5":
Search_animations()
main_menu()
elif choose_module == "6":
Search_photos()
main_menu()
elif choose_module == "7":
Search_audios()
main_menu()
elif choose_module == "8":
Search_videos()
main_menu()
elif choose_module == "9":
Search_voice_notes()
main_menu()
elif choose_module == "10":
Search_documents()
main_menu()
elif choose_module == "11":
Search_urls()
main_menu()
elif choose_module == "12":
Search_contacts()
main_menu()
elif choose_module == "13":
Search_locations()
main_menu()
elif choose_module == "14":
Search_query()
main_menu()
elif choose_module == "15":
Search_user_messages()
main_menu()
elif choose_module == "16":
get_chat_messages()
main_menu()
elif choose_module == "99":
sys.exit()
else:
sys.exit("\033[1;91mWrong input!\033[1;00m")
except KeyboardInterrupt:
sys.exit("\n")
main_menu()