Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Nov 20, 2023
1 parent 8103582 commit ffef73b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from utils.agent import docQA, get_doc_from_local
from telegram import BotCommand, InlineKeyboardButton, InlineKeyboardMarkup
from telegram.ext import CommandHandler, MessageHandler, ApplicationBuilder, filters, CallbackQueryHandler, Application, AIORateLimiter
from config import WEB_HOOK, PORT
from config import WEB_HOOK, PORT, BOT_TOKEN


logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
Expand Down Expand Up @@ -563,7 +563,7 @@ async def post_init(application: Application) -> None:
if __name__ == '__main__':
application = (
ApplicationBuilder()
.token("5898265830:AAGJFGstJD21VjQRWHdg5XSnJGoc7m4Yvvw")
.token(BOT_TOKEN)
.concurrent_updates(True)
.rate_limiter(AIORateLimiter(max_retries=5))
.post_init(post_init)
Expand Down

0 comments on commit ffef73b

Please sign in to comment.