Answer the question
In order to leave comments, you need to log in
How to find out through Telethon who forwarded messages to telegram?
Through telegramclient I receive forwarded messages. How can I find out from which user this message was originally forwarded? It is desirable to get its username.
Answer the question
In order to leave comments, you need to log in
Found a way:
user_id = message.to_dict()['from_id']['user_id']
username = await client.get_entity(user_id)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question