KumaTea/tgentity

Something Wrong with Python-telegram-bot

Closed this issue · 3 comments

from tgentity import to_markdown_v2, to_html

print(to_markdown_v2(reply.text))

ᴏᴜᴛ:

Traceback (most recent call last):
File "", line 3, in tmp
File "tgentity/mod.py", line 76, in inner
if not message.text:
AttributeError: 'str' object has no attribute 'text'

Hi,

This module requires the MessageEntity property in the message to understand where to convert, so you may need to directly pass your reply to to_markdown_v2.

Hi,

This module requires the MessageEntity property in the message to understand where to convert, so you may need to directly pass your reply to to_markdown_v2.

Come online on telegram me give to real time example

Hi,

This module requires the MessageEntity property in the message to understand where to convert, so you may need to directly pass your reply to to_markdown_v2.

Look: https://t.me/AbishnoiMF/8986