mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-24 06:44:19 +00:00
fix python-telegram-bot:latest warning && variable connection pool size
This commit is contained in:
parent
17cb4fe118
commit
3dd0bbcf93
2 changed files with 3 additions and 1 deletions
|
@ -39,6 +39,8 @@ long_polling_timeout = 30
|
|||
timed_out_pause = 1
|
||||
# Time in seconds before retrying a request that returned an error
|
||||
error_pause = 5
|
||||
# Number of connections to keep in the connection pool
|
||||
con_pool_size = 10
|
||||
|
||||
|
||||
# General payment settings
|
||||
|
|
2
core.py
2
core.py
|
@ -84,7 +84,7 @@ def main():
|
|||
sed.DeferredReflection.prepare(engine)
|
||||
|
||||
# Create a bot instance
|
||||
bot = duckbot.factory(user_cfg)()
|
||||
bot = duckbot.factory(user_cfg)(request=telegram.utils.request.Request(user_cfg["Telegram"]["con_pool_size"]))
|
||||
|
||||
# Test the specified token
|
||||
log.debug("Testing bot token...")
|
||||
|
|
Loading…
Reference in a new issue