messages.requestMainWebView
Signature
Section titled “Signature”messages.requestMainWebView#c9e01e7b flags:# compact:flags.7?true fullscreen:flags.8?true peer:InputPeer bot:InputUser start_param:flags.1?string theme_params:flags.0?DataJSON platform:string = WebViewResult;Result type
Section titled “Result type”WebViewResult
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | |
| compact | flags.7?true | flags.7 | — | |
| fullscreen | flags.8?true | flags.8 | — | |
| peer | InputPeer | — | — | |
| bot | InputUser | — | — | |
| start_param | flags.1?string | flags.1 | — | |
| theme_params | flags.0?DataJSON | flags.0 | — | |
| platform | string | — | — |
| Parameter | Bit | Meaning |
|---|---|---|
| compact | 7 | Controlled by flags; present when this bit is set. |
| fullscreen | 8 | Controlled by flags; present when this bit is set. |
| start_param | 1 | Controlled by flags; present when this bit is set. |
| theme_params | 0 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.functions import MessagesRequestMainWebViewPublic access: miniproto.raw.functions.MessagesRequestMainWebView.
Result family
Section titled “Result family”RPC errors
Section titled “RPC errors”| Code | Error | Description |
|---|---|---|
| 400 | BOT_INVALID |
This is not a valid bot. |
| 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. |
| 401 | AUTH_KEY_UNREGISTERED |
The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
Accepted types
Section titled “Accepted types”DataJSON, InputPeer, InputUser
Known selected constructors: dataJSON, inputPeerChannel, inputPeerChannelFromMessage, inputPeerChat, inputPeerEmpty, inputPeerSelf, inputPeerUser, inputPeerUserFromMessage, inputUser, inputUserEmpty, inputUserFromMessage, inputUserSelf
Returned types
Section titled “Returned types”WebViewResult
Known selected constructors: webViewResultUrl
Related methods
Section titled “Related methods”account.confirmBotConnection, account.disablePeerConnectedBot, account.getPaidMessagesRevenue, account.reportPeer, account.reportProfilePhoto, account.saveAutoSaveSettings, account.toggleConnectedBotPaused, account.toggleNoPaidMessagesException, account.updateConnectedBot, aicompose.setChatStyle, bots.addPreviewMedia, bots.addUsername, bots.allowSendMessage, bots.answerWebhookJSONQuery, bots.canSendMessage, bots.checkDownloadFileParams, bots.createBot, bots.deletePreviewMedia, bots.editAccessSettings, bots.editPreviewMedia, bots.exportBotToken, bots.getAccessSettings, bots.getBotInfo, bots.getBotMenuButton, bots.getBotRecommendations, bots.getPreviewInfo, bots.getPreviewMedias, bots.getRequestedWebViewButton, bots.invokeWebViewCustomMethod, bots.removeUsername, bots.reorderPreviewMedias, bots.reorderUsernames, bots.requestWebViewButton, bots.sendCustomRequest, bots.setBotInfo, bots.setBotMenuButton, bots.setBotSettings, bots.setCustomVerification, bots.toggleUserEmojiStatusPermission, bots.toggleUsername, bots.updateStarRefProgram, bots.updateUserEmojiStatus, channels.deleteParticipantHistory, channels.editAdmin, channels.editBanned, channels.getAdminLog, channels.getParticipant, channels.getSendAs, channels.inviteToChannel, channels.reportSpam, channels.searchPosts, channels.toggleJoinRequest, chatlists.editExportedInvite, chatlists.exportChatlistInvite, chatlists.joinChatlistInvite, chatlists.joinChatlistUpdates, chatlists.leaveChatlist, communities.create, communities.getParticipantJoinedChats, communities.toggleParticipantBanned, communities.togglePeerLink, communities.togglePeerLinkRequestApproval, contacts.acceptContact, contacts.addContact, contacts.block, contacts.deleteContacts, contacts.importNoPaidMessagesToken, contacts.resetTopPeerRating, contacts.setBlocked, contacts.unblock, contacts.updateContactNote, ephemeral.deleteAllWelcomeMessages, ephemeral.deleteMessage, ephemeral.deleteWelcomeMessage, ephemeral.editMessage, ephemeral.getCallbackAnswer, ephemeral.getWelcomeMessages, ephemeral.reportMessage, ephemeral.sendMessage, help.acceptTermsOfService, help.dismissSuggestion, help.editUserInfo, help.getUserInfo, help.hidePromoData, messages.acceptUrlAuth, messages.addChatUser, messages.addPollAnswer, messages.appendTodoList, messages.checkHistoryImportPeer, messages.createChat, messages.createForumTopic, messages.deleteChatUser, messages.deleteExportedChatInvite, messages.deleteFactCheck, messages.deleteHistory, messages.deleteParticipantReaction, messages.deleteParticipantReactions, messages.deletePollAnswer, messages.deleteRevokedExportedChatInvites, messages.deleteSavedHistory, messages.deleteScheduledMessages, messages.deleteTopicHistory, messages.editChatAbout, messages.editChatAdmin, messages.editChatCreator, messages.editChatDefaultBannedRights, messages.editChatParticipantRank, messages.editExportedChatInvite, messages.editFactCheck, messages.editForumTopic, messages.editMessage, messages.editMessageWidgetData, messages.exportChatInvite, messages.forwardMessages, messages.getAdminsWithInvites, messages.getAttachMenuBot, messages.getBotCallbackAnswer, messages.getBotWidgetQueryAnswer, messages.getChatInviteImporters, messages.getCommonChats, messages.getDialogUnreadMarks, messages.getDialogs, messages.getDiscussionMessage, messages.getExportedChatInvite, messages.getExportedChatInvites, messages.getExtendedMedia, messages.getFactCheck, messages.getForumTopics, messages.getForumTopicsByID, messages.getFutureChatCreatorAfterLeave, messages.getGameHighScores, messages.getHistory, messages.getInlineBotResults, messages.getInlineGameHighScores, messages.getMessageEditData, messages.getMessageReactionsList, messages.getMessageReadParticipants, messages.getMessagesReactions, messages.getMessagesViews, messages.getOnlines, messages.getOutboxReadDate, messages.getPeerSettings, messages.getPersonalChannelHistory, messages.getPollResults, messages.getPollVotes, messages.getPreparedInlineMessage, messages.getRecentLocations, messages.getReplies, messages.getRichMessage, messages.getSavedDialogs, messages.getSavedDialogsByID, messages.getSavedHistory, messages.getSavedReactionTags, messages.getScheduledHistory, messages.getScheduledMessages, messages.getSearchCounters, messages.getSearchResultsCalendar, messages.getSearchResultsPositions, messages.getSponsoredMessages, messages.getTranscriptionLangs, messages.getUnreadMentions, messages.getUnreadPollVotes, messages.getUnreadReactions, messages.getWidgetPublicData, messages.hideAllChatJoinRequests, messages.hideChatJoinRequest, messages.hidePeerSettingsBar, messages.initHistoryImport, messages.inviteUsersToBot, messages.markDialogUnread, messages.prolongWebView, messages.rateTranscribedAudio, messages.readDiscussion, messages.readHistory, messages.readMentions, messages.readPollVotes, messages.readReactions, messages.readSavedHistory, messages.reorderPinnedForumTopics, messages.report, messages.reportMessagesDelivery, messages.reportReaction, messages.reportReadMetrics, messages.reportSpam, messages.requestAppWebView, messages.requestChatJoinWebView, messages.requestEncryption, messages.requestSimpleWebView, messages.requestUrlAuth, messages.requestWebView, messages.saveDefaultSendAs, messages.saveDraft, messages.savePreparedInlineMessage, messages.search, messages.searchGlobal, messages.sendBotRequestedPeer, messages.sendInlineBotResult, messages.sendMedia, messages.sendMessage, messages.sendMultiMedia, messages.sendPaidReaction, messages.sendQuickReplyMessages, messages.sendReaction, messages.sendScheduledMessages, messages.sendScreenshotNotification, messages.sendVote, messages.sendWebViewData, messages.setChatAvailableReactions, messages.setChatTheme, messages.setChatWallPaper, messages.setGameScore, messages.setHistoryTTL, messages.setInlineGameScore, messages.setShareTheme, messages.setTyping, messages.startBot, messages.startHistoryImport, messages.summarizeText, messages.toggleBotInAttachMenu, messages.toggleNoForwards, messages.togglePaidReactionPrivacy, messages.togglePeerTranslations, messages.toggleSuggestedPostApproval, messages.toggleTodoCompleted, messages.transcribeAudio, messages.translateRichMessage, messages.translateText, messages.unpinAllMessages, messages.updatePinnedForumTopic, messages.updatePinnedMessage, messages.uploadImportedMedia, messages.uploadMedia, payments.assignPlayMarketTransaction, payments.botCancelStarsSubscription, payments.buyStarGiftOnchain, payments.changeStarsSubscription, payments.connectStarRefBot, payments.createStarGiftCollection, payments.deleteStarGiftCollection, payments.depositStarGift, payments.displayStarGift, payments.editConnectedStarRefBot, payments.fulfillStarsSubscription, payments.getConnectedStarRefBot, payments.getConnectedStarRefBots, payments.getGiveawayInfo, payments.getPaymentForm, payments.getPaymentReceipt, payments.getPremiumGiftCodeOptions, payments.getSavedStarGifts, payments.getStarGiftCollections, payments.getStarsGiftOptions, payments.getStarsRevenueAdsAccountUrl, payments.getStarsRevenueStats, payments.getStarsRevenueWithdrawalUrl, payments.getStarsStatus, payments.getStarsSubscriptions, payments.getStarsTransactions, payments.getStarsTransactionsByID, payments.getSuggestedStarRefBots, payments.launchPrepaidGiveaway, payments.refundStarsCharge, payments.reorderStarGiftCollections, payments.sendStarGiftOffer, payments.toggleChatStarGiftNotifications, payments.toggleStarGiftsPinnedToTop, payments.transferStarGift, payments.updateStarGiftCollection, payments.withdrawStarsRevenueToWallet, phone.createConferenceCall, phone.createGroupCall, phone.deleteGroupCallParticipantMessages, phone.editGroupCallParticipant, phone.getCallConfig, phone.getGroupCallJoinAs, phone.getGroupCallStreamRtmpUrl, phone.getGroupParticipants, phone.inviteConferenceCallParticipant, phone.inviteToGroupCall, phone.joinGroupCall, phone.joinGroupCallPresentation, phone.requestCall, phone.saveCallDebug, phone.saveDefaultGroupCallJoinAs, phone.saveDefaultSendAs, phone.sendGroupCallMessage, photos.getUserPhotos, photos.updateProfilePhoto, photos.uploadContactProfilePhoto, photos.uploadProfilePhoto, premium.applyBoost, premium.getBoostsList, premium.getBoostsStatus, premium.getUserBoosts, stats.getPollStats, stats.getStoryPublicForwards, stats.getStoryStats, stickers.createStickerSet, stories.canSendStory, stories.createAlbum, stories.deleteAlbum, stories.deleteStories, stories.editStory, stories.exportStoryLink, stories.getAlbumStories, stories.getAlbums, stories.getPeerMaxIDs, stories.getPeerStories, stories.getPinnedStories, stories.getStoriesArchive, stories.getStoriesByID, stories.getStoriesViews, stories.getStoryReactionsList, stories.getStoryViewsList, stories.incrementStoryViews, stories.readStories, stories.reorderAlbums, stories.report, stories.searchPosts, stories.sendReaction, stories.sendStory, stories.startLive, stories.togglePeerStoriesHidden, stories.togglePinned, stories.togglePinnedToTop, stories.updateAlbum, users.getFullUser, users.getRequirementsToContact, users.getSavedMusic, users.getSavedMusicByID, users.getUsers, users.setSecureValueErrors, users.suggestBirthday, wallet.getUserAddresses, wallet.sendTransfer
Availability evidence
Section titled “Availability evidence”- user only