6/14/2023 0 Comments Translate bot telegram![]() Your backend should always verify that received commands are valid and that the user was authorized to use them regardless of scope.īots with privacy mode enabled will only receive commands in groups under special conditions, see here. Keep in mind that Bot API updates will not contain any information about the scope of a command sent by the user – in fact, they may contain commands that don’t exist at all in your bot. For example, your bot could show additional commands to group admins or translate the list based on the user’s language_code. Your bot is able to show different commands to different users and groups – you can control this using scopes. We require all developers to support several Global Commands to make sure Telegram bots offer a consistent and user-friendly experience. They can use Latin letters, numbers and underscores, though simple lowercase text is recommended for a cleaner look.Ĭommands should be as specific as possible – for example /newlocation or /newrule is better than a /new command that then requires an additional parameter from the user like " location“ or ” rule".
0 Comments
Leave a Reply. |