Expose entity parameter in client.inline_query

Some bots, such as @gamee, use this to determine the type of results
to return (and "disable" themselves in channels).
This commit is contained in:
Lonami Exo
2020-10-11 16:57:38 +02:00
parent d0faaa2ead
commit adf52a1b74
4 changed files with 32 additions and 8 deletions

View File

@@ -22,6 +22,7 @@ BANNED_RIGHTS_INVALID,400,"You cannot use that set of permissions in this reques
BOTS_TOO_MUCH,400,There are too many bots in this chat/channel
BOT_CHANNELS_NA,400,Bots can't edit admin privileges
BOT_COMMAND_DESCRIPTION_INVALID,400,"The command description was empty, too long or had invalid characters used"
BOT_GAMES_DISABLED,400,Bot games cannot be used in this type of chat
BOT_GROUPS_BLOCKED,400,This bot can't be added to groups
BOT_INLINE_DISABLED,400,This bot can't be used in inline mode
BOT_INVALID,400,This is not a valid bot
@@ -244,7 +245,8 @@ REACTION_INVALID,400,Invalid reaction provided (only emoji are allowed)
REG_ID_GENERATE_FAILED,500,Failure while generating registration ID
REPLY_MARKUP_INVALID,400,The provided reply markup is invalid
REPLY_MARKUP_TOO_LONG,400,The data embedded in the reply markup buttons was too much
RESULT_ID_DUPLICATE,400,Duplicated IDs on the sent results. Make sure to use unique IDs.
RESULT_ID_DUPLICATE,400,Duplicated IDs on the sent results. Make sure to use unique IDs
RESULT_ID_INVALID,400,The given result cannot be used to send the selection to the bot
RESULT_TYPE_INVALID,400,Result type invalid
RESULTS_TOO_MUCH,400,You sent too many results. See https://core.telegram.org/bots/api#answerinlinequery for the current limit.
RIGHT_FORBIDDEN,403,Either your admin rights do not allow you to do this or you passed the wrong rights combination (some rights only apply to channels and vice versa)
1 name codes description
22 BOTS_TOO_MUCH 400 There are too many bots in this chat/channel
23 BOT_CHANNELS_NA 400 Bots can't edit admin privileges
24 BOT_COMMAND_DESCRIPTION_INVALID 400 The command description was empty, too long or had invalid characters used
25 BOT_GAMES_DISABLED 400 Bot games cannot be used in this type of chat
26 BOT_GROUPS_BLOCKED 400 This bot can't be added to groups
27 BOT_INLINE_DISABLED 400 This bot can't be used in inline mode
28 BOT_INVALID 400 This is not a valid bot
245 REG_ID_GENERATE_FAILED 500 Failure while generating registration ID
246 REPLY_MARKUP_INVALID 400 The provided reply markup is invalid
247 REPLY_MARKUP_TOO_LONG 400 The data embedded in the reply markup buttons was too much
248 RESULT_ID_DUPLICATE 400 Duplicated IDs on the sent results. Make sure to use unique IDs. Duplicated IDs on the sent results. Make sure to use unique IDs
249 RESULT_ID_INVALID 400 The given result cannot be used to send the selection to the bot
250 RESULT_TYPE_INVALID 400 Result type invalid
251 RESULTS_TOO_MUCH 400 You sent too many results. See https://core.telegram.org/bots/api#answerinlinequery for the current limit.
252 RIGHT_FORBIDDEN 403 Either your admin rights do not allow you to do this or you passed the wrong rights combination (some rights only apply to channels and vice versa)