img4 = '*********'
img3 = '*********'
@bot.message_handler(commands=['start'])
def start(message):
markup = types.InlineKeyboardMarkup()
button = types.InlineKeyboardButton(text='изменить фото', callback_data='opa')
markup.add(button)
bot.send_photo(
message.chat.id, img4, reply_markup=markup)
@bot.callback_query_handler(func=lambda call: True)
def sddvsd(call):
if
call.data =='opa':
bot.edit_message_media(img3, chat_id=
call.message.chat.id, message_id=call.message.message_id )
bot.polling(none_stop=True)