overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
5.07k stars 858 forks source link

Telegram always prompts for bot permissions when adding bot to a group via "startgroup" deep link #1113

Open tjkcc opened 6 months ago

tjkcc commented 6 months ago

To reproduce:

  1. Click https://t.me/Carkarmabot?startgroup=0
  2. Select a group
  3. Telegram prompts for permissions selection and shows admin rights enabled by default.

Expected behaviour The bot should just get added to a selected group.

Actual behaviour Telegram is asking to confirm permissions and suggest admin rights.

All bot's default permissions are set to "false" (via setMyDefaultAdministratorRights and via BotFather too), so there should be no promt for admin rights.