mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +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
|
bot = self.input_sender
|
||||||
if not bot:
|
if not bot:
|
||||||
raise ValueError('No input sender')
|
raise ValueError('No input sender')
|
||||||
|
return bot
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
return self._client._entity_cache[self.via_bot_id]
|
return self._client._entity_cache[self.via_bot_id]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user