forked from MrMissx/Telegram_Forwarder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_config.py
35 lines (25 loc) · 1.2 KB
/
sample_config.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
if not __name__.endswith("sample_config"):
import sys
print("The README is there to be read. Extend this sample config to a config file, don't just rename and change "
"values here. Doing that WILL backfire on you.\nBot quitting.", file=sys.stderr)
quit(1)
# Create a new config.py file in same dir and import, then extend this class.
class Config(object):
LOGGER = True
# REQUIRED
API_KEY = "617722711:AAHysCHsVcQja6LOlHa88101lKjrxez80-M" # API key obtained from BotFather
OWNER_ID = "582884567" # If you dont know, run the bot and do /id in your private chat with the bot
# FOR AUTOMATICALLY FORWARDING MESSAGES
FROM_CHATS = [-1001234704297 ] # List of chat id's to forward messages from
TO_CHATS = [-1001128355490] # List of chat id's to forward messages to
# FOR WEBHOOKS
WEBHOOK = False
IP_ADDRESS = "127.0.0.1" # Use "0.0.0.0" if using Heroku
URL = None # The URL that the bot should listen to for updates
PORT = 5000 # Port to listen on for webhooks
CERT_PATH = None # Path to certificate file
WORKERS = 4 # Depends on usage, 4 by default
class Production(Config):
LOGGER = False
class Development(Config):
LOGGER = True