Исправления

This commit is contained in:
Dronminator
2023-05-23 10:51:54 +03:00
parent 22c6ef2d81
commit fb5a4489f8
+1 -1
View File
@@ -22,7 +22,7 @@ min_id = int(select("select min(id) from laptops")[0][0])
bot = telebot.TeleBot(config.bot_token) bot = telebot.TeleBot(config.bot_token)
@bot.message_handler(commands=["start"]) @bot.message_handler(commands=["start"])
def start(m, res=False): def start(m, res=False):
bot.send_message(m.chat.id, f'Привет. Введите идентификатор от 1 до {max_id}, чтобы получить данные: ') bot.send_message(m.chat.id, f'Привет. Введите идентификатор от {min_id} до {max_id}, чтобы получить данные: ')
@bot.message_handler(content_types=["text"]) @bot.message_handler(content_types=["text"])
def from_bd(message): def from_bd(message):