mirror of
https://github.com/KUlishevgeniy/c22712.git
synced 2026-09-23 23:50:21 +00:00
Update tgBot(try-exc-finally+usage of func-s in wwfuncs.py).py
This commit is contained in:
@@ -26,7 +26,7 @@ bot = telebot.TeleBot('5980905704:AAH2qIP4Gy60nhuKNAojOGpmI6zwNoJK1Iw')
|
||||
@bot.message_handler(commands=["start"])
|
||||
def start(m, res=False):
|
||||
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
|
||||
item1 = types.KeyboardButton("Хочу информацию о любых цвеах, пожалуйста")
|
||||
item1 = types.KeyboardButton("Хочу информацию о любых цветах, пожалуйста")
|
||||
item2 = types.KeyboardButton("Хочу картинку любых цветов, пожалуйста")
|
||||
item3 = types.KeyboardButton("Хочу информацию о предложении дня, пожалуйста")
|
||||
item4 = types.KeyboardButton("Общая информация о сведениях, находящихся в базе данных")
|
||||
@@ -60,4 +60,4 @@ def handle_text(message):
|
||||
bot.polling(none_stop=True, interval=0)
|
||||
|
||||
cursor.close()
|
||||
connection.close()
|
||||
connection.close()
|
||||
|
||||
Reference in New Issue
Block a user