R
R
Roman Semenov2021-06-21 08:11:29
Telegram
Roman Semenov, 2021-06-21 08:11:29

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

1 answer(s)
R
Roman Semenov, 2021-06-21
@5Roman17

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 question

Ask a Question

731 491 924 answers to any question