Incorrect ChatAdministratorRights
behavior in Telegram iOS and Telegram for MacOS
#1647
Labels
bug
Something isn't working
Checklist
Prerequisites
You need to have four different Telegram clients:
You need a Telegram bot (either use an existing one or create a new one via BotFather).
You need a non-private group to which the Telegram bot has not been added yet.
Steps to Reproduce
Obtain the bot token
{botId:botToken}
from BotFather and the linkhttps://t.me/{SomeBot}
.Call the
setMyDefaultAdministratorRights
method via the Bot API, setting all 15 rights tofalse
:Expected response:
{"ok":true,"result":true}
Verify the rights by calling
getMyDefaultAdministratorRights
:curl -X GET 'https://api.telegram.org/bot{botId:botToken}/getMyDefaultAdministratorRights'
Expected response:
Note: You see 13 rights set to
false
. Thecan_post_messages
andcan_edit_messages
rights apply only to channels, so their absence here is expected.Open the link to add the bot to the group (as indicated in the official documentation):
https://t.me/{SomeBot}?startgroup=1
In the window that appears, select the group to which the bot has not been added before.
Expected Behavior
One of two outcomes is expected:
toggle).
Actual Behavior
Environment
Device:
any
iOS version:
any
App version:
11.5.1
The text was updated successfully, but these errors were encountered: