Python:
@bot.message_handler(content_types=['text'])
def send_welcome(message):
if message.text in otvet:
bot.send_message(message.chat.id, otvet[message.text])
elif message.text in telefon:
bot.send_message(message.chat.id, telefon[message.text],parse_mode='Markdown')
elif message.text not in otvet or telefon:
bot.send_message(message.chat.id, '*Проверь правильность ввода :( *',parse_mode='Markdown')
Когда добавляю в
Python:
elif message.text in otvet:
bot.send_message(message.chat.id, otvet[message.text],parse_mode='Markdown')
выдает ошибку
Python:
telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body:
[b'{"ok":false,"error_code":400,"description":"Bad Request: can\'t parse entities: Can\'t find end of the entity starting at byte offset 174"}']
"
2020-04-24 11:49:05,150 (__init__.py:420 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body:
[b'{"ok":false,"error_code":400,"description":"Bad Request: can\'t parse entities: Can\'t find end of the entity starting at byte offset 174"}']"
В чем может быть проблема?