Home>
There is a variable with formatting:
info= f '' '
Data
├Name: {first} {last}
├ID: `{userid}`
├Nick: @ {nick}
└Phone number: `{phone}`
'' '
When trying to send via -bot.send_message (ID, info, parse_mode= 'Markdown')
I get an error -2021-12-22 22: 58: 37,365 (__init__.py:510 MainThread) ERROR -TeleBot: "A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: can't parse entities: Can ' t find end of the entity starting at byte offset 80 "
Problem in the passed variable{nick}
approx. Ygfgh_Ygfgh because it contains an underscore. How is it possible to decide?
Thanks, your comment helped me figure it out!
byyeesh2021-12-22 19:34:42Related questions
- Getting data into python variable, telebot
- python : How to send a single message in response to the user via bot.send_message
- python : The problem with writing the game "Point" in the telegram bot
- You need to add a hyperlink and data from api for telegram bot in python
- python : What methods exist in ReplyKeyboardMarkup
- python : Issue with sqlite3 data output
- python : How to send a message with a delay in a telegram bot?
- python : Pyrogram -does not change the nickname on the button
- python : make sure that the buttons are not detected
- python : how to fix bug in telebot
change parse_mode to HTML, or try escaping this character with a backslash
fancier2021-12-22 19:07:05