-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig_example.py
More file actions
34 lines (22 loc) · 1.02 KB
/
config_example.py
File metadata and controls
34 lines (22 loc) · 1.02 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
# config.py file example
psql_creditals = {'dbname': 'database_name', 'user': 'username', 'pass': 'password'}
Production_order_token = 'Order token here'
Production_castle_token = 'Castle token here'
ServerIP = 'Server ip here' # For webhook only, currently not used
# CONNECT_TYPE = 'webhook'
CONNECT_TYPE = 'long_pooling'
# request_kwargs = {'proxy_url': 'socks5h://163.172.152.192:1080'} #Configured proxy - uncomment if ypu need proxy
# proxy = 'socks5://163.172.152.192:1080' # This is public python-telegram-bot proxy
# telethon_proxy = {"host": "host", "port": 8443, "secret": "secret_key"} # Uncomment if you need telethon proxy
proxy = None
request_kwargs = None
# Telethon settings - for stats parse
phone = ''
username = ''
password = '' # if you have two-step verification enabled
api_id = 17349
api_hash = "344583e45741c457fe1862106095a5eb"
cwuser = "CW API username"
cwpass = "CW API password"
enable_api = False # Flag to enable CW API connection
enable_telethon = False # Flag to enable all telethon functions