messages.setInlineBotResults
messages.setInlineBotResults
Section titled “messages.setInlineBotResults”No description provided by the pinned schema.
Signature
Section titled “Signature”messages.setInlineBotResults#bb12a419 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector<InputBotInlineResult> cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM switch_webview:flags.4?InlineBotWebView = Bool;Result type
Section titled “Result type”Bool
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | No description provided by the pinned schema. |
| gallery | flags.0?true | flags.0 | — | No description provided by the pinned schema. |
| private | flags.1?true | flags.1 | — | No description provided by the pinned schema. |
| query_id | long | — | — | No description provided by the pinned schema. |
| results | Vector | — | — | No description provided by the pinned schema. |
| cache_time | int | — | — | No description provided by the pinned schema. |
| next_offset | flags.2?string | flags.2 | — | No description provided by the pinned schema. |
| switch_pm | flags.3?InlineBotSwitchPM | flags.3 | — | No description provided by the pinned schema. |
| switch_webview | flags.4?InlineBotWebView | flags.4 | — | No description provided by the pinned schema. |
| Parameter | Bit | Meaning |
|---|---|---|
| gallery | 0 | Controlled by flags; present when this bit is set. |
| private | 1 | Controlled by flags; present when this bit is set. |
| next_offset | 2 | Controlled by flags; present when this bit is set. |
| switch_pm | 3 | Controlled by flags; present when this bit is set. |
| switch_webview | 4 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.functions import MessagesSetInlineBotResultsPublic access: miniproto.raw.functions.MessagesSetInlineBotResults.
Safe usage shape
Section titled “Safe usage shape”from miniproto.raw.functions import MessagesSetInlineBotResults
# Naming the raw request class is local only; it performs no I/O or network request.request_type = MessagesSetInlineBotResultsResult family
Section titled “Result family”RPC errors
Section titled “RPC errors”| Code | Error | Description |
|---|---|---|
| 400 | ARTICLE_TITLE_EMPTY | The title of the article is empty. |
| 400 | AUDIO_CONTENT_URL_EMPTY | The remote URL specified in the content field is empty. |
| 400 | AUDIO_TITLE_EMPTY | An empty audio title was provided. |
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we’re a user, and users cannot invoke methods over a business connection; (2) we’re a bot, but business mode was disabled in @botfather or (3); we’re a bot, but this method cannot be invoked over a business connection. |
| 400 | BUTTON_DATA_INVALID | The data of one or more of the buttons you provided is invalid. |
| 400 | BUTTON_TYPE_INVALID | The type of one or more of the buttons you provided is invalid. |
| 400 | BUTTON_URL_INVALID | Button URL invalid. |
| 400 | DOCUMENT_INVALID | The specified document is invalid. |
| 400 | FILE_CONTENT_TYPE_INVALID | File content-type is invalid. |
| 400 | FILE_TITLE_EMPTY | An empty file title was specified. |
| 400 | GIF_CONTENT_TYPE_INVALID | GIF content-type invalid. |
| 400 | MEDIA_CAPTION_TOO_LONG | The caption is too long. |
| 400 | MESSAGE_EMPTY | The provided message is empty. |
| 400 | MESSAGE_TOO_LONG | The provided message is too long. |
| 400 | NEXT_OFFSET_INVALID | The specified offset is longer than 64 bytes. |
| 400 | PEER_TYPES_INVALID | The passed keyboardButtonSwitchInline.peer_types field is invalid. |
| 400 | PHOTO_CONTENT_TYPE_INVALID | Photo mime-type invalid. |
| 400 | PHOTO_CONTENT_URL_EMPTY | Photo URL invalid. |
| 400 | PHOTO_INVALID | Photo invalid. |
| 400 | PHOTO_THUMB_URL_EMPTY | Photo thumbnail URL is empty. |
| 400 | QUERY_ID_INVALID | The query ID is invalid. |
| 400 | REPLY_MARKUP_INVALID | The provided reply markup is invalid. |
| 400 | RESULTS_TOO_MUCH | Too many results were provided. |
| 400 | RESULT_ID_DUPLICATE | You provided a duplicate result ID. |
| 400 | RESULT_ID_INVALID | One of the specified result IDs is invalid. |
| 400 | RESULT_TYPE_INVALID | Result type invalid. |
| 400 | SEND_MESSAGE_MEDIA_INVALID | Invalid media provided. |
| 400 | SEND_MESSAGE_TYPE_INVALID | The message type is invalid. |
| 400 | START_PARAM_EMPTY | The start parameter is empty. |
| 400 | START_PARAM_INVALID | Start parameter invalid. |
| 400 | STICKER_DOCUMENT_INVALID | The specified sticker document is invalid. |
| 400 | SWITCH_PM_TEXT_EMPTY | The switch_pm.text field was empty. |
| 400 | SWITCH_WEBVIEW_URL_INVALID | The URL specified in switch_webview.url is invalid! |
| 400 | URL_INVALID | Invalid URL provided. |
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
| 400 | VIDEO_CONTENT_TYPE_INVALID | The video’s content type is invalid. |
| 400 | VIDEO_TITLE_EMPTY | The specified video title is empty. |
| 400 | WEBDOCUMENT_INVALID | Invalid webdocument URL provided. |
| 400 | WEBDOCUMENT_MIME_INVALID | Invalid webdocument mime type provided. |
| 400 | WEBDOCUMENT_SIZE_TOO_BIG | Webdocument is too big! |
| 400 | WEBDOCUMENT_URL_EMPTY | The passed web document URL is empty. |
| 400 | WEBDOCUMENT_URL_INVALID | The specified webdocument URL is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
| 403 | USER_BOT_INVALID | User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts. |
Accepted types
Section titled “Accepted types”InlineBotSwitchPM, InlineBotWebView, InputBotInlineResult
Known selected constructors: inlineBotSwitchPM, inlineBotWebView, inputBotInlineResult, inputBotInlineResultDocument, inputBotInlineResultGame, inputBotInlineResultPhoto
Returned types
Section titled “Returned types”Bool
Known selected constructors: boolFalse, boolTrue
Related methods
Section titled “Related methods”account.acceptAuthorization, account.cancelPasswordEmail, account.changeAuthorizationSettings, account.checkUsername, account.clearRecentEmojiStatuses, account.confirmBotConnection, account.confirmPasswordEmail, account.confirmPhone, account.declinePasswordReset, account.deleteAccount, account.deleteAutoSaveExceptions, account.deleteBusinessChatLink, account.deletePasskey, account.deleteSecureValue, account.disablePeerConnectedBot, account.finishTakeoutSession, account.getContactSignUpNotification, account.installTheme, account.installWallPaper, account.invalidateSignInCodes, account.registerDevice, account.reorderUsernames, account.reportPeer, account.reportProfilePhoto, account.resendPasswordEmail, account.resetAuthorization, account.resetNotifySettings, account.resetWallPapers, account.resetWebAuthorization, account.resetWebAuthorizations, account.saveAutoDownloadSettings, account.saveAutoSaveSettings, account.saveMusic, account.saveRingtone, account.saveTheme, account.saveWallPaper, account.setAccountTTL, account.setAuthorizationTTL, account.setContactSignUpNotification, account.setContentSettings, account.setMainProfileTab, account.toggleConnectedBotPaused, account.toggleNoPaidMessagesException, account.toggleSponsoredMessages, account.toggleUsername, account.toggleWebBrowserSettingsException, account.unregisterDevice, account.updateBirthday, account.updateBusinessAwayMessage, account.updateBusinessGreetingMessage, account.updateBusinessIntro, account.updateBusinessLocation, account.updateBusinessWorkHours, account.updateColor, account.updateDeviceLocked, account.updateEmojiStatus, account.updateNotifySettings, account.updatePasswordSettings, account.updatePersonalChannel, account.updateStatus, account.verifyPhone, aicompose.deleteTone, aicompose.saveTone, aicompose.updateTone, auth.bindTempAuthKey, auth.cancelCode, auth.checkRecoveryPassword, auth.dropTempAuthKeys, auth.reportMissingCode, auth.requestFirebaseSms, auth.resetAuthorizations, bots.answerWebhookJSONQuery, bots.canSendMessage, bots.checkDownloadFileParams, bots.checkUsername, bots.deletePreviewMedia, bots.editAccessSettings, bots.exportBotToken, bots.reorderPreviewMedias, bots.reorderUsernames, bots.resetBotCommands, bots.setBotBroadcastDefaultAdminRights, bots.setBotCommands, bots.setBotGroupDefaultAdminRights, bots.setBotInfo, bots.setBotMenuButton, bots.setCustomVerification, bots.setJoinChatResults, bots.toggleUserEmojiStatusPermission, bots.toggleUsername, bots.updateUserEmojiStatus, channels.checkUsername, channels.deactivateAllUsernames, channels.editLocation, channels.readHistory, channels.readMessageContents, channels.reorderUsernames, channels.reportAntiSpamFalsePositive, channels.reportSpam, channels.restrictSponsoredMessages, channels.setDiscussionGroup, channels.setEmojiStickers, channels.setMainProfileTab, channels.setStickers, channels.toggleAntiSpam, channels.toggleAutotranslation, channels.toggleForum, channels.toggleJoinRequest, channels.toggleJoinToSend, channels.toggleParticipantsHidden, channels.togglePreHistoryHidden, channels.toggleUsername, channels.toggleViewForumAsMessages, channels.updateUsername, chatlists.deleteExportedInvite, chatlists.hideChatlistUpdates, communities.toggleAllPeerLinkRequestApproval, communities.toggleParticipantBanned, communities.togglePeerLink, communities.togglePeerLinkRequestApproval, contacts.block, contacts.deleteByPhones, contacts.editCloseFriends, contacts.resetSaved, contacts.resetTopPeerRating, contacts.setBlocked, contacts.toggleTopPeers, contacts.unblock, contacts.updateContactNote, ephemeral.deleteMessage, help.acceptTermsOfService, help.dismissSuggestion, help.hidePromoData, help.saveAppLog, help.setBotUpdatesStatus, messages.checkQuickReplyShortcut, messages.checkUrlAuthMatchCode, messages.clearAllDrafts, messages.clearRecentReactions, messages.clearRecentStickers, messages.clickSponsoredMessage, messages.declineUrlAuth, messages.deleteChat, messages.deleteExportedChatInvite, messages.deleteParticipantReactions, messages.deleteQuickReplyShortcut, messages.deleteRevokedExportedChatInvites, messages.discardEncryption, messages.editChatAbout, messages.editChatAdmin, messages.editExportedChatInvite, messages.editForumTopic, messages.editInlineBotMessage, messages.editQuickReplyShortcut, messages.faveSticker, messages.getMessagesViews, messages.hidePeerSettingsBar, messages.installStickerSet, messages.markDialogUnread, messages.prolongWebView, messages.rateTranscribedAudio, messages.readDiscussion, messages.readEncryptedHistory, messages.readFeaturedStickers, messages.readSavedHistory, messages.reorderPinnedDialogs, messages.reorderPinnedSavedDialogs, messages.reorderQuickReplies, messages.reorderStickerSets, messages.reportEncryptedSpam, messages.reportMessagesDelivery, messages.reportMusicListen, messages.reportReaction, messages.reportReadMetrics, messages.reportSpam, messages.saveDefaultSendAs, messages.saveDraft, messages.saveGif, messages.savePreparedInlineMessage, messages.saveRecentSticker, messages.sendWebViewResultMessage, messages.setBotCallbackAnswer, messages.setBotGuestChatResult, messages.setBotPrecheckoutResults, messages.setBotShippingResults, messages.setChatAvailableReactions, messages.setDefaultHistoryTTL, messages.setDefaultReaction, messages.setEncryptedTyping, messages.setInlineGameScore, messages.setTyping, messages.startHistoryImport, messages.toggleBotInAttachMenu, messages.toggleDialogFilterTags, messages.toggleDialogPin, messages.toggleNoForwards, messages.togglePaidReactionPrivacy, messages.togglePeerTranslations, messages.toggleSavedDialogPin, messages.toggleStickerSets, messages.uninstallStickerSet, messages.updateDialogFilter, messages.updateDialogFiltersOrder, messages.updatePinnedForumTopic, messages.updateSavedReactionTag, messages.viewSponsoredMessage, payments.botCancelStarsSubscription, payments.canPurchaseStore, payments.changeStarsSubscription, payments.clearSavedInfo, payments.convertStarGift, payments.deleteStarGiftCollection, payments.fulfillStarsSubscription, payments.reorderStarGiftCollections, payments.saveStarGift, payments.toggleChatStarGiftNotifications, payments.toggleStarGiftsPinnedToTop, phone.editGroupCallParticipant, phone.getGroupCallStreamRtmpUrl, phone.receivedCall, phone.saveCallDebug, phone.saveCallLog, phone.saveDefaultGroupCallJoinAs, phone.saveDefaultSendAs, phone.sendGroupCallEncryptedMessage, phone.sendSignalingData, phone.toggleGroupCallRecord, phone.toggleGroupCallSettings, phone.toggleGroupCallStartSubscription, smsjobs.finishJob, smsjobs.join, smsjobs.leave, smsjobs.updateSettings, stickers.checkShortName, stickers.deleteStickerSet, stories.deleteAlbum, stories.incrementStoryViews, stories.reorderAlbums, stories.startLive, stories.toggleAllStoriesHidden, stories.togglePeerStoriesHidden, stories.togglePinned, stories.togglePinnedToTop, upload.saveBigFilePart, upload.saveFilePart, users.setSecureValueErrors
Availability evidence
Section titled “Availability evidence”- bot only
Provenance
Section titled “Provenance”- layer: 228
- structural source:
tdlib - canonical schema: https://raw.githubusercontent.com/tdlib/td/refs/heads/master/td/generate/scheme/telegram_api.tl
- prose merge precedence: TDLib → Telegram Desktop → Core JSON
- source note: Canonical structure is the pinned TDLib telegram_api.tl; Layer 228 comes only from the matching Telegram Desktop end-of-file marker; core.telegram.org inputs enrich documentation and RPC error metadata without overriding structure.
Source-diff notes
Section titled “Source-diff notes”- tdlib_vs_core: changed_count=68; core_only_count=1; overlap_count=2302; tdlib_only_count=158
- tdlib_vs_tdesktop: changed_count=0; overlap_count=2448; tdesktop_only=null; tdlib_only=accessPointRule, ephemeral.editMessage, help.configSimple, inputPeerPhotoFileLocationLegacy, inputStickerSetThumbLegacy, invokeWithApnsSecretPrefix, invokeWithBusinessConnectionPrefix, invokeWithGooglePlayIntegrityPrefix, invokeWithReCaptchaPrefix, ipPort, ipPortSecret, updateEphemeralBotCallbackQuery