bots.setBotSettings
bots.setBotSettings
Section titled “bots.setBotSettings”No description provided by the pinned schema.
Signature
Section titled “Signature”bots.setBotSettings#7cc0c0ca flags:# bot:flags.0?InputUser inline_mode:flags.1?Bool inline_placeholder:flags.2?string inline_geo:flags.3?Bool inline_feedback:flags.4?int nochats:flags.5?Bool chat_history:flags.6?Bool business:flags.7?Bool can_manage_bots:flags.8?Bool guestchat:flags.9?Bool guard:flags.10?Bool forum_view:flags.11?Bool forum_can_manage_topics:flags.12?Bool forum_sidebar:flags.13?Bool bot_to_bot_communication_mode:flags.14?Bool callback_mode:flags.15?string = User;Result type
Section titled “Result type”User
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | No description provided by the pinned schema. |
| bot | flags.0?InputUser | flags.0 | — | No description provided by the pinned schema. |
| inline_mode | flags.1?Bool | flags.1 | — | No description provided by the pinned schema. |
| inline_placeholder | flags.2?string | flags.2 | — | No description provided by the pinned schema. |
| inline_geo | flags.3?Bool | flags.3 | — | No description provided by the pinned schema. |
| inline_feedback | flags.4?int | flags.4 | — | No description provided by the pinned schema. |
| nochats | flags.5?Bool | flags.5 | — | No description provided by the pinned schema. |
| chat_history | flags.6?Bool | flags.6 | — | No description provided by the pinned schema. |
| business | flags.7?Bool | flags.7 | — | No description provided by the pinned schema. |
| can_manage_bots | flags.8?Bool | flags.8 | — | No description provided by the pinned schema. |
| guestchat | flags.9?Bool | flags.9 | — | No description provided by the pinned schema. |
| guard | flags.10?Bool | flags.10 | — | No description provided by the pinned schema. |
| forum_view | flags.11?Bool | flags.11 | — | No description provided by the pinned schema. |
| forum_can_manage_topics | flags.12?Bool | flags.12 | — | No description provided by the pinned schema. |
| forum_sidebar | flags.13?Bool | flags.13 | — | No description provided by the pinned schema. |
| bot_to_bot_communication_mode | flags.14?Bool | flags.14 | — | No description provided by the pinned schema. |
| callback_mode | flags.15?string | flags.15 | — | No description provided by the pinned schema. |
| Parameter | Bit | Meaning |
|---|---|---|
| bot | 0 | Controlled by flags; present when this bit is set. |
| inline_mode | 1 | Controlled by flags; present when this bit is set. |
| inline_placeholder | 2 | Controlled by flags; present when this bit is set. |
| inline_geo | 3 | Controlled by flags; present when this bit is set. |
| inline_feedback | 4 | Controlled by flags; present when this bit is set. |
| nochats | 5 | Controlled by flags; present when this bit is set. |
| chat_history | 6 | Controlled by flags; present when this bit is set. |
| business | 7 | Controlled by flags; present when this bit is set. |
| can_manage_bots | 8 | Controlled by flags; present when this bit is set. |
| guestchat | 9 | Controlled by flags; present when this bit is set. |
| guard | 10 | Controlled by flags; present when this bit is set. |
| forum_view | 11 | Controlled by flags; present when this bit is set. |
| forum_can_manage_topics | 12 | Controlled by flags; present when this bit is set. |
| forum_sidebar | 13 | Controlled by flags; present when this bit is set. |
| bot_to_bot_communication_mode | 14 | Controlled by flags; present when this bit is set. |
| callback_mode | 15 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.functions import BotsSetBotSettingsPublic access: miniproto.raw.functions.BotsSetBotSettings.
Class reference
Section titled “Class reference”from miniproto.raw.functions import BotsSetBotSettings
# Refer to the raw request class without constructing it or calling Telegramrequest_type = BotsSetBotSettingsResult family
Section titled “Result family”RPC errors
Section titled “RPC errors”No RPC errors are mapped to this method by the pinned error database.
Accepted types
Section titled “Accepted types”Bool, InputUser
Known selected constructors: boolFalse, boolTrue, inputUser, inputUserEmpty, inputUserFromMessage, inputUserSelf
Returned types
Section titled “Returned types”User
Known selected constructors: user, userEmpty
Related methods
Section titled “Related methods”account.acceptAuthorization, account.cancelPasswordEmail, account.changeAuthorizationSettings, account.changePhone, 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.getPaidMessagesRevenue, 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.updateConnectedBot, account.updateDeviceLocked, account.updateEmojiStatus, account.updateNotifySettings, account.updatePasswordSettings, account.updatePersonalChannel, account.updateProfile, account.updateStatus, account.updateUsername, account.verifyPhone, aicompose.deleteTone, aicompose.saveTone, aicompose.setChatStyle, aicompose.updateTone, auth.bindTempAuthKey, auth.cancelCode, auth.cancelWebTokenAuthorization, auth.checkRecoveryPassword, auth.dropTempAuthKeys, auth.reportMissingCode, auth.requestFirebaseSms, auth.resetAuthorizations, bots.addPreviewMedia, bots.addUsername, bots.allowSendMessage, bots.answerWebhookJSONQuery, bots.canSendMessage, bots.checkDownloadFileParams, bots.checkUsername, bots.createBot, bots.deletePreviewMedia, bots.editAccessSettings, bots.editPreviewMedia, bots.exportBotToken, bots.getAccessSettings, bots.getAdminedBots, bots.getBotInfo, bots.getBotMenuButton, bots.getBotRecommendations, bots.getPreviewInfo, bots.getPreviewMedias, bots.getRequestedWebViewButton, bots.invokeWebViewCustomMethod, bots.removeUsername, bots.reorderPreviewMedias, bots.reorderUsernames, bots.requestWebViewButton, bots.resetBotCommands, bots.setBotBroadcastDefaultAdminRights, bots.setBotCommands, bots.setBotGroupDefaultAdminRights, bots.setBotInfo, bots.setBotMenuButton, bots.setCustomVerification, bots.setJoinChatResults, bots.toggleUserEmojiStatusPermission, bots.toggleUsername, bots.updateStarRefProgram, bots.updateUserEmojiStatus, channels.checkUsername, channels.deactivateAllUsernames, channels.editAdmin, channels.editLocation, channels.getAdminLog, channels.getMessageAuthor, channels.inviteToChannel, 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.acceptContact, contacts.addContact, contacts.block, contacts.deleteByPhones, contacts.deleteContacts, contacts.editCloseFriends, contacts.importContactToken, contacts.importNoPaidMessagesToken, contacts.resetSaved, contacts.resetTopPeerRating, contacts.setBlocked, contacts.toggleTopPeers, contacts.unblock, contacts.updateContactNote, ephemeral.deleteAllWelcomeMessages, ephemeral.deleteMessage, ephemeral.deleteWelcomeMessage, ephemeral.editMessage, ephemeral.sendMessage, help.acceptTermsOfService, help.dismissSuggestion, help.editUserInfo, help.getUserInfo, help.hidePromoData, help.saveAppLog, help.setBotUpdatesStatus, messages.addChatUser, messages.checkQuickReplyShortcut, messages.checkUrlAuthMatchCode, messages.clearAllDrafts, messages.clearRecentReactions, messages.clearRecentStickers, messages.clickSponsoredMessage, messages.createChat, messages.declineUrlAuth, messages.deleteChat, messages.deleteChatUser, messages.deleteExportedChatInvite, messages.deleteParticipantReactions, messages.deleteQuickReplyShortcut, messages.deleteRevokedExportedChatInvites, messages.discardEncryption, messages.editChatAbout, messages.editChatAdmin, messages.editChatCreator, messages.editExportedChatInvite, messages.editForumTopic, messages.editInlineBotMessage, messages.editInlineBotMessageWidgetData, messages.editQuickReplyShortcut, messages.editWidgetData, messages.faveSticker, messages.getAttachMenuBot, messages.getChatInviteImporters, messages.getCommonChats, messages.getExportedChatInvites, messages.getForumTopics, messages.getFutureChatCreatorAfterLeave, messages.getGameHighScores, messages.getInlineBotResults, messages.getInlineGameHighScores, messages.getMessagesViews, messages.getPersonalChannelHistory, messages.getPreparedInlineMessage, messages.hideChatJoinRequest, messages.hidePeerSettingsBar, messages.installStickerSet, messages.inviteUsersToBot, 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.requestEncryption, messages.requestMainWebView, messages.requestSimpleWebView, messages.requestWebView, messages.saveDefaultSendAs, messages.saveDraft, messages.saveGif, messages.savePreparedInlineMessage, messages.saveRecentSticker, messages.sendWebViewData, messages.setBotCallbackAnswer, messages.setBotPrecheckoutResults, messages.setBotShippingResults, messages.setBotWidgetQueryAnswer, messages.setChatAvailableReactions, messages.setDefaultHistoryTTL, messages.setDefaultReaction, messages.setEncryptedTyping, messages.setGameScore, messages.setInlineBotResults, messages.setInlineGameScore, messages.setShareTheme, messages.setTyping, messages.startBot, 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.connectStarRefBot, payments.convertStarGift, payments.deleteStarGift, payments.deleteStarGiftCollection, payments.displayStarGift, payments.fulfillStarsSubscription, payments.getConnectedStarRefBot, payments.getStarsGiftOptions, payments.refundStarsCharge, payments.reorderStarGiftCollections, payments.saveStarGift, payments.toggleChatStarGiftNotifications, payments.toggleStarGiftsPinnedToTop, payments.withdrawStarGift, payments.withdrawStarsRevenueToWallet, phone.editGroupCallParticipant, phone.getGroupCallStreamRtmpUrl, phone.inviteConferenceCallParticipant, phone.inviteToGroupCall, phone.receivedCall, phone.requestCall, phone.saveCallDebug, phone.saveCallLog, phone.saveDefaultGroupCallJoinAs, phone.saveDefaultSendAs, phone.sendGroupCallEncryptedMessage, phone.sendSignalingData, phone.toggleGroupCallRecord, phone.toggleGroupCallSettings, phone.toggleGroupCallStartSubscription, photos.getUserPhotos, photos.updateProfilePhoto, photos.uploadContactProfilePhoto, photos.uploadProfilePhoto, premium.getUserBoosts, smsjobs.finishJob, smsjobs.join, smsjobs.leave, smsjobs.updateSettings, stickers.checkShortName, stickers.createStickerSet, stickers.deleteStickerSet, stories.deleteAlbum, stories.incrementStoryViews, stories.reorderAlbums, stories.startLive, stories.toggleAllStoriesHidden, stories.togglePeerStoriesHidden, stories.togglePinned, stories.togglePinnedToTop, upload.saveBigFilePart, upload.saveFilePart, users.getFullUser, users.getRequirementsToContact, users.getSavedMusic, users.getSavedMusicByID, users.getUsers, users.setSecureValueErrors, users.suggestBirthday, wallet.getUserAddresses, wallet.sendTransfer, wallet.tonConnectClaimRequest, wallet.tonConnectCloseSession, wallet.tonConnectSubmitConnectResult, wallet.tonConnectSubmitResponse
Provenance
Section titled “Provenance”- 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 234 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=77; core_only_count=18; overlap_count=2338; tdlib_only_count=307
- tdlib_vs_tdesktop: changed_count=0; overlap_count=2634; tdesktop_only=null; tdlib_only=accessPointRule, bots.setBotSettings, help.configSimple, inputPeerPhotoFileLocationLegacy, inputStickerSetThumbLegacy, invokeWithApnsSecretPrefix, invokeWithBusinessConnectionPrefix, invokeWithGooglePlayIntegrityPrefix, invokeWithReCaptchaPrefix, ipPort, ipPortSecret