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