skip to Main Content

"telegram.error.BadRequest: Entities_too_long" error when trying to send long markdown message. What is the max string length limit? – Telegram API

This is the error i get when i try to send a long markdown message which has a ton of formatted hyperlinks in it: context.bot.send_message(chat_id=update.effective_chat.id, text=longmsg, parse_mode="MARKDOWN") #Output: telegram.error.BadRequest: Entities_too_long The actual message is hardly 500 characters long, but almost…

VIEW QUESTION

Sending the output of Prettytable to Telegram – Telegram API

I have the following code: from prettytable import PrettyTable myTable = PrettyTable(["Student Name", "Class", "Section", "Percentage"]) # Add rows myTable.add_row(["Leanord", "X", "B", "91.2 %"]) myTable.add_row(["Penny", "X", "C", "63.5 %"]) myTable.add_row(["Howard", "X", "A", "90.23 %"]) myTable.add_row(["Bernadette", "X", "D", "92.7 %"]) myTable.add_row(["Sheldon",…

VIEW QUESTION

'Telebot' has no attribute 'types' – Telegram API

Well, I've tried to run another's person telegram bot on my computer, but got a mistake that: Traceback (most recent call last): File "C:UsersDmitriyPycharmProjectspythonProjectMain.py", line 10, in <module> keyboard = telebot.types.ReplyKeyboardMarkup(True, True) AttributeError: module 'telebot' has no attribute 'types' I've…

VIEW QUESTION
Back To Top
Search