diff --git a/telethon/tl/custom/message.py b/telethon/tl/custom/message.py index c9f00ba0..0adefe9d 100644 --- a/telethon/tl/custom/message.py +++ b/telethon/tl/custom/message.py @@ -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]