-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
22 lines (15 loc) · 815 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from pyrogram import Client
##### CONFIG #####
log = False #put True if you want to receive the logs or put False if you don't want to receive them
logdiscordwebhook = 'https://discord.com/api/webhooks/123/abc' #discord webhook
ip = 'localhost:30120' #if localhost write localhost:port else ip:port
app = Client(
'./sessioni/sessione',
api_id = 123, #my.telegram.org
api_hash = "12ab3", #my.telegram.org
bot_token = "123:abc", #@botfather
plugins = dict(root="plugins")
)
##### RUNNER #####
if __name__ == "__main__":
app.run(print('Telegram Bot Started || github.com/itsmat - Mat#3616'))