Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tjkcc opened this issue May 10, 2024 · 3 comments
Labels

Comments

@tjkcc
Copy link

tjkcc commented May 10, 2024

Steps to reproduce

To reproduce:

  1. All bot's default permissions are set to "false" (via setMyDefaultAdministratorRights and via BotFather too).
  2. Click https://t.me/Carkarmabot?startgroup=0
  3. Select a group
  4. 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.

Operating system

MacOS 14.4.1

Version of Telegram Desktop

5.0.1

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

@tjkcc tjkcc added the bug label May 10, 2024
@john-preston
Copy link
Member

I've tried your link, chose a group and the bot was just added there.

@tjkcc
Copy link
Author

tjkcc commented May 24, 2024

I've tried your link, chose a group and the bot was just added there.

I’ve tested this a bit more after creating this issue and found out that the prompt for permissions appears only if you are an admin in the destination group. Which is still odd.
I’m also seeing that these links behave inconsistently on different official clients. On some it doesn’t work at all (bot is not being added to a group), on some it prompts for permissions, on some it doesn’t. I’ve confirmed it with other bot developers. Some are even warning users already that these links might not work and that the bot needs to be added manually.

@john-preston
Copy link
Member

@tjkcc I couldn't reproduce that while being a creator or an admin-non-creator as well, sorry.

Can you show me a screencast where you click on exactly that link (https://t.me/Carkarmabot?startgroup=0) and choose a group and see interface of choosing the admin rights? I can't understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants