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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user