-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsample-conf.py
More file actions
29 lines (22 loc) · 1.41 KB
/
Copy pathsample-conf.py
File metadata and controls
29 lines (22 loc) · 1.41 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
# NOTE: Please rename this file (sample-conf.py) to 'conf.py' before using this bot.
# To get API_ID value follow these steps
# Go to https://my.telegram.org/auth
# Login with your normal telegram user account number.
# Go to API development tools
# A Create new application window will appear. Fill in your application details.
# There is no need to enter any URL. Just enter the App title and short name of your choice.
# Click on Create application at the end.
# Copy the API_ID and API_HASH values and paste here.
API_ID = 1225
# NOTE: The API_HASH must be in single quotes. Below is a sample.
API_HASH = 'd15e36f952b2d0c547d'
# OWN_CHANNEL_ID is the unique id of your channel/group where you want to receive the updates.
# To get this id run the get_id.py file using 'python get_id.py'.
# After login, if you have'nt already. It would instruct to you to got to the channel you want the id for and send any message there.
# After you send the message check your terminal. Find your message and copy the channel id to OWN_CHANNEL_ID.
# Be careful with the minus(-) sign. If it is in the id then place it as well.
OWN_CHANNEL_ID = -1003523231
# Get the ids for all the channel you want to receive updates from and paste them here.
CHANNELS_TO_GET_UPDATES_FROM = [-131451, -1475134, 4751754715, 45476152]
# You are done!
# Run the telegram_forwarder script using python telegram_forwarder.py using 'python telegram_forwarder.py'.