Skip to content

Commit

Permalink
Fix Message._needed_markup_bot not returning bot in some cases (#3030)
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiapple852 committed Apr 19, 2021
1 parent 3001b62 commit 5f16434
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions telethon/tl/custom/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,7 @@ def _needed_markup_bot(self):
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]
Expand Down

0 comments on commit 5f16434

Please sign in to comment.