mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 10:53:44 +03:00
Fix message.text not checking if parse_mode was set
This commit is contained in:
parent
7c1c040d50
commit
383ab9b0b2
|
@ -268,7 +268,7 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC):
|
|||
The message text, formatted using the client's default
|
||||
parse mode. Will be ``None`` for :tl:`MessageService`.
|
||||
"""
|
||||
if self._text is None and self._client:
|
||||
if self._text is None and self._client and self._client.parse_mode:
|
||||
self._text = self._client.parse_mode.unparse(
|
||||
self.message, self.entities)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user