peter-iakovlev / Telegram

Telegram Messenger for iOS
3.22k stars 858 forks source link

[Feature request] Visibility of commands only for admin or bots #144

Open Emulator000 opened 7 years ago

Emulator000 commented 7 years ago

It's obvious that /command is a command so, why display commands in public? Like in supergroups, groups etc? Commands should be private or visible only by admins or bots.

Example: Me: /command Bot: Response: Error: command not found

This message "Error: command not found" or whatever else, is currently displayed to ALL members of a group. Imagine a command like /help, all users will see a lot of spam messages on their clients because all messages and commands are currently public. A private response per user in supergroup or group is needed here.

In case that someone wants a public command, should type something like !command (or whatever) and not /command, then, the bot will handle the message and could reply in public or privately (or do nothing) in the group, without receiving a direct private message from the bot privately.

In this way, users could avoid a lot of spam on chat.

Thanks for reading.