1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-08-03 12:01:35 +00:00

implement rate limiting

This commit is contained in:
2023-10-16 05:45:20 +00:00
parent 87d9346f98
commit e3657b0eeb
5 changed files with 48 additions and 21 deletions

View File

@@ -11,27 +11,16 @@ import traceback
from uuid import uuid4
import mplfinance as mpf
import telegram
from telegram import (
InlineQueryResultArticle,
InputTextMessageContent,
LabeledPrice,
Update,
)
from telegram.ext import (
Application,
CommandHandler,
InlineQueryHandler,
PreCheckoutQueryHandler,
MessageHandler,
filters,
ContextTypes,
)
from common.symbol_router import Router
from T_info import T_info
import telegram
from common.symbol_router import Router
from telegram import (InlineQueryResultArticle, InputTextMessageContent,
LabeledPrice, Update)
from telegram.ext import (Application, CommandHandler, ContextTypes,
InlineQueryHandler, MessageHandler,
PreCheckoutQueryHandler, filters)
# Enable logging
logging.basicConfig(format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.INFO)