KA
Size: a a a
т
KO
т
Р
KA
KA
KA
т
Р
KA
@bot.message_handler(content_types=["text"])
def delete_text(message):
if message.text == "1":
keyboard = types.InlineKeyboardMarkup()
keyboard.add(types.InlineKeyboardButton(text="Fire", callback_data="Firing"))
bot.send_message(message.chat.id, "Press the button", reply_markup=keyboard)
@bot.callback_query_handler(func=lambda call: True)
def callback_inline(call):
print(call)
bot.send_message(call.message.chat.id, "Ok")
Р
import telebot
from telebot import types
bot = telebot.TeleBot('*************')
KA
import telebot
from telebot import types
bot = telebot.TeleBot('*************')
KA
Р
Р
KA