Closed Eikosa closed 10 months ago
I appreciate the suggestion!
Instead of calling get_chat
, i think it's better to save the specified usernames on the listener and simply compare chat.username when listener is processing messages. This way we avoid extra calls to the API
It's planned for pyrogram v3.1!
if i write username instead of chat_id it should convert it to chat_id
client.get_chat(chat_id) will work i think