Skip to content

Commit

Permalink
fix connection_pool_size
Browse files Browse the repository at this point in the history
  • Loading branch information
VeryBigSad committed Feb 26, 2024
1 parent 2b6f3aa commit e06a31a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tgbot/bot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Used in cases when we need to send a message to a user

from telegram import Bot
from telegram.request import HTTPXRequest

from src.config import settings

bot = Bot(settings.TELEGRAM_BOT_TOKEN)
request = HTTPXRequest(connection_pool_size=10)
bot = Bot(settings.TELEGRAM_BOT_TOKEN, request=request)

0 comments on commit e06a31a

Please sign in to comment.