F
F
FrozenSQD2021-12-26 04:08:41
Bots
FrozenSQD, 2021-12-26 04:08:41

How to organize the work of a telethon joiner in chats with links that have + in the hash or with a literal hash?

Telethon works fine and enters chats with

updates = await client(ImportChatInviteRequest('AAAAAEHbEkejzxUjAUCfYg'))
Telegrams whose link looks like this and everything is ok with them:
https://t.me/joinchat/AAAAAAAAAAA
And how can I make it so that he can also join chats like below, because Telethon is buggy and writes that there are no such chats.
https://t.me/topchat
OR
https://t.me/+ААААААА
It is with links that have a + at the beginning or a "verbal" hash that a bug occurs and teleton writes that supposedly there is no such chat.
telethon.errors.rpcerrorlist.InviteHashExpiredError: The chat the user tried to join has expired and is not valid anymore

.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question