Answer the question
In order to leave comments, you need to log in
Why is the messages.editChatAdmin method not working?
I create using the messages.createChat method I create a group, it is created. Next, using the messages.editChatAdmin method, I try to make the bot an admin. In response, I get true
, they say, everything is okay, but the bot, as it was an ordinary user, remained so. It's the same with non-bots.
await client.callApi('messages.editChatAdmin', {
chat_id: update.chats[0].id,
user_id: { _: 'inputUser', user_id: botId, access_hash: botAccessHash },
is_admin: true
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question