[Python] from_users= and chats= difference in telethon

Discussão em 'Python' iniciado por Stack, Fevereiro 19, 2025.

  1. Stack

    Stack Membro Participativo

    I have a code and found out that:

    @client.on(events.NewMessage(from_users=channels))
    async def main(event):
    print(event.message)


    and

    @client.on(events.NewMessage(chats=channels))
    async def main(event):
    print(event.message)


    work exactly the same. What is the difference in these args then?

    It has no difference so I'm interested how it works

    Continue reading...

Compartilhe esta Página