how get username from message (Telethon)?

18 views Asked by At

I undersood how to get messages from Telegram-chat. But I can't get usernames.

messages = history.messages
for message in messages:
   print(message.message)
   print(message.username) #error ????????????????????

I want to get usernames from messages I wanted get usernames. What method i need to use? Help me please.

0

There are 0 answers