M
M
MagnusDidNotBetray2021-01-31 22:35:54
API
MagnusDidNotBetray, 2021-01-31 22:35:54

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
})


I also noticed that by default the creator does not have rights to add admins (which is strange)
picture
60170412139ff610030121.jpeg
But I did not find a way to give him this right.

In general, you can also make the bot an admin with handles, but I would not want to. So what am I doing wrong and how can I fix it?

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