mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 19:03:46 +03:00
Fix Message._needed_markup_bot not returning bot in some cases (#3030)
This commit is contained in:
parent
3001b620ec
commit
5f16434346
|
@ -1125,6 +1125,7 @@ class Message(ChatGetter, SenderGetter, TLObject):
|
|||
bot = self.input_sender
|
||||
if not bot:
|
||||
raise ValueError('No input sender')
|
||||
return bot
|
||||
else:
|
||||
try:
|
||||
return self._client._entity_cache[self.via_bot_id]
|
||||
|
|
Loading…
Reference in New Issue
Block a user