1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] How to get chat_id of chat in telegram?

Discussão em 'Python' iniciado por Stack, Setembro 16, 2024.

  1. Stack

    Stack Membro Participativo

    Im using Pyrogram and Telegram Client API and i want to write program that will send messages to chats by using Pyrogram send_message() function. How can i get a unique identifier (int) of the target chat?

    I tried to use peer id from browser developer console (f12), but when i put it inside the script it gives error: ValueError: Peer id invalid.

    Continue reading...

Compartilhe esta Página