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.