How to remove automatic highlighting of messages for reply in a telegram bot
07:10 22 Jan 2024

After the dialogue with the bot is completely completed in a telegram conversation, the message from the bot is automatically highlighted for an answer. How to fix this? I use Python telebot library

def screenshot_request(message, bot, problem, userstate, buttons):
    if message.text.lower() == 'да':
        bot.send_message(message.chat.id, 'Отлично! Отправьте фото скриншота:')
        bot.set_state(message.from_user.id, userstate.with_screen, message.chat.id)
    elif message.text.lower() == 'нет':
        problem_message = '\n'.join(
            [f"{key}: {value}" for key, value in problem.items()])
        markup = buttons()
        bot.send_message(message.chat.id, problem_message)
        bot.send_message(message.chat.id, 'Отправить обращение?', reply_markup=markup, disable_notification=True,
                         reply_to_message_id=None)
        bot.set_state(message.from_user.id, userstate.confirm_without_screen, message.chat.id)
    else:
        markup = buttons()
        bot.send_message(message.chat.id, 'К сожалению я вас не понял(( Я ожидаю ответ да/нет. '
                                          'У вас есть скриншот?', reply_markup=markup, disable_notification=True)

screenshot from telegram app

I tried using disable_notification=True, but the problem is still present:

screenshot from telegram app

python telegram telebot