Y
Y
Yan White2021-01-11 19:57:11
Python
Yan White, 2021-01-11 19:57:11

How to add yourself to the telegram chat?

I use the following method from the telethon library Where chat_username is the id of a chat like @username_chat without the '@' I get an error that this chat doesn't exist, however when I use the hash from a private chat link like "URnYwGFT5jBDPzFH" everything works correctly How can I make it so that I can add myself to public chats, in addition to private Just in case, I will leave a screen of the error

client(ImportChatInviteRequest('chat_username'))



5ffc82cf05e7a821461852.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Naumov, 2021-01-11
@ivan_naum

ImportChatInviteRequest does not accept username , but hash

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question