import telebot
import congif
from telebot import types
bot = telebot.TeleBot(congif.TOKEN)
@bot.message_handler(commands = ['start'])
def menu(message):
button = types.ReplyKeyboardMarkup(resize_keyboard = True)
fbutton = ('Фото кошки')
button.add(fbutton)
bot.send_message(
message.chat.id , 'Добро пожавловать',reply_markup = button)
@bot.message_handler(contant_types = ['text'])
def otvet(message):
if message.text == 'Фото кошки':
cat = open('cat.jpg' , 'rb')
bot.send_photo(
message.chat.id, cat)
bot.polling(none_stop = True , interval = 0)