-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
34 lines (24 loc) · 1.03 KB
/
Copy pathconfig.py
File metadata and controls
34 lines (24 loc) · 1.03 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
import os
#API ID & API Hash -----> my.telegram.org
api_id =
api_hash = ''
#Bot Token -----> @BotFather
token = ''
#Session Name -----> optional
session_name = 'FTP_Uploader'
#The robot admin (the person who can give orders to the robot.) -----> @myidbot
admins = [0000000000,0000000000]
# Chat id to send technical logs
dev = -000000000000
# When a file is sent to the bot, first that file is downloaded from the Telegram repository and stored in the bot's server.
# Here you need to specify its temporary storage path
# For example, I set the bot to save the downloaded file in the current path (the path where config.py file is located).
dl_path = os.path.abspath(os.getcwd()) + '/'
# The upload path where we give FTP access to the bot.
ftp_path = ''
# The files are temporarily downloaded after they are on the bot server. They are uploaded to another host through FTP.
# Here we have to give FTP access to the bot.
ftp_ip = 'FTP Server IP or domain like ftp.xxx.com'
ftp_username = ''
ftp_password = ''
ftp_domain = 'url to upload location'