Skip to content

Getting Bad Request: can't parse message text exception #131

@avinassh

Description

@avinassh

I am on Python 3 and using latest version library. Whenever I try to send following text, I am getting above exception:

"Title: The Color of Magic (Discworld, #1; Rincewind #1) by Terry Pratchett,\nRating: 3.94 by 151538 users,\nDescription: Terry Pratchett's profoundly irreverent, bestselling novels have garnered him a revered position in the halls of parody next to the likes of Mark Twain, Kurt Vonnegut, Douglas Adams, and Carl Hiaasen. The Color of Magic is Terry Pratchett's maiden voyage through the now-legendary land of Discworld. This is where it all begins -- with the tourist Twoflower and his wizard guide, Rincewind. On a world supported on the back of a giant turtle (sex unknown), a gleeful, explosive, wickedly eccentric expedition sets out. There's an avaricious but inept wizard, a naive tourist whose luggage moves on hundreds of dear little legs, dragons who only exist if you believe in them, and of course THE EDGE of the planet...\n,\nLink: http://www.goodreads.com/book/show/34497.The_Color_of_Magic\n\nTip: Use author name also for better search results"

In [14]: response
Out[14]: "**Title:** The Color of Magic (Discworld, #1; Rincewind #1) by Terry Pratchett,\n**Rating:** 3.94 by 151538 users,\n**Description:** Terry Pratchett's profoundly irreverent, bestselling novels have garnered him a revered position in the halls of parody next to the likes of Mark Twain, Kurt Vonnegut, Douglas Adams, and Carl Hiaasen. _The Color of Magic_ is Terry Pratchett's maiden voyage through the now-legendary land of Discworld. This is where it all begins -- with the tourist Twoflower and his wizard guide, Rincewind. _On a world supported on the back of a giant turtle (sex unknown), a gleeful, explosive, wickedly eccentric expedition sets out. There's an avaricious but inept wizard, a naive tourist whose luggage moves on hundreds of dear little legs, dragons who only exist if you believe in them, and of course THE EDGE of the planet..._\n,\n**Link**: http://www.goodreads.com/book/show/34497.The_Color_of_Magic\n\nTip: Use author name also for better search results"

In [15]: bot.sendMessage(parse_mode='Markdown', disable_web_page_preview=True, reply_to_message_id=273, chat_id=-86257015, text=response)
...

TelegramError: [Error]: Bad Request: can't parse message text: Can't find end of the entity starting at byte offset 915

Full traceback - http://dpaste.com/2827V8Y

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy