1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-24 14:54:18 +00:00

fix python-telegram-bot:latest warning && variable connection pool size

This commit is contained in:
skipper70 2021-05-01 05:34:07 +05:00 committed by Stefano Pigozzi
parent 17cb4fe118
commit 3dd0bbcf93
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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...")