channel-block-tg/data/config.py
Forden 2bbbee4651 Added usage example of errors_handler
Optimized generation of default/inline keyboard
Customizing webhook path has become more flexible
Updated aiogram version to 2.7 (BotAPI 4.7)
2020-04-07 01:44:05 +03:00

32 lines
515 B
Python

BOT_TOKEN = ''
BASE_URL = 'https://example.com' # Webhook domain
WEBHOOK_PATH = f'/webhook/bot/{BOT_TOKEN}'
WEBHOOK_URL = f'{BASE_URL}{WEBHOOK_PATH}'
admins = []
ip = {
'db': '',
'redis': '',
}
mysql_info = {
'host': ip['db'],
'user': '',
'password': '',
'db': '',
'maxsize': 5,
'port': 3306,
}
aiogram_redis = {
'host': ip['redis'],
'password': ''
}
redis = {
'address': (ip['redis'], 6379),
'password': '',
'encoding': 'utf8'
}