From b77f85e2da7b5d1e62102bb672f3357acfc12006 Mon Sep 17 00:00:00 2001 From: gouravkr Date: Mon, 10 Jan 2022 07:06:20 +0530 Subject: [PATCH] fixed not working due to type hints --- word_bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/word_bot.py b/word_bot.py index 49ccc70..f789564 100644 --- a/word_bot.py +++ b/word_bot.py @@ -9,6 +9,8 @@ import logging import os import psycopg2 import requests +import telegram +import telegram.ext import time from bs4 import BeautifulSoup @@ -16,6 +18,7 @@ from dotenv import load_dotenv from telegram import ParseMode, InlineKeyboardButton, InlineKeyboardMarkup from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackQueryHandler + load_dotenv() logging.basicConfig(filename='logs/word_bot.log', filemode='a', format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', @@ -142,7 +145,6 @@ def button( update: telegram.update.Update, context: telegram.ext.callbackcontext.CallbackContext ) -> None: - """ Responds to callback buttons in the original message. If the callback type is audio, then responds with already available audio URL