mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00

Raw API does not monkey-patch the client on the returned messages, so the get_input_chat call would return None, causing the forward to fail. Instead, manually resolve the chat using the message's peer_id. The resolve call can also be avoided if from_peer is passed (which may mismatch with where the messages actually belong, but that's not really a concern).