USER_BOT_REQUIRED
USER_BOT_REQUIRED
Section titled “USER_BOT_REQUIRED”This method can only be called by a bot.
Error details
Section titled “Error details”- code: 400
- parameterized: no
- mapped methods:
bots.answerWebhookJSONQuery,bots.editAccessSettings,bots.exportBotToken,bots.getAccessSettings,bots.getBotCommands,bots.getBotMenuButton,bots.requestWebViewButton,bots.resetBotCommands,bots.sendCustomRequest,bots.setBotBroadcastDefaultAdminRights,bots.setBotCommands,bots.setBotGroupDefaultAdminRights,bots.setBotMenuButton,bots.setJoinChatResults,bots.updateUserEmojiStatus,help.setBotUpdatesStatus,messages.getGameHighScores,messages.getInlineGameHighScores,messages.getPersonalChannelHistory,messages.savePreparedInlineMessage,messages.sendWebViewResultMessage,messages.setBotCallbackAnswer,messages.setBotGuestChatResult,messages.setBotPrecheckoutResults,messages.setBotShippingResults,messages.setGameScore,messages.setInlineBotResults,messages.setInlineGameScore,payments.exportInvoice,payments.refundStarsCharge,users.setSecureValueErrors
Python error class
Section titled “Python error class”from miniproto.errors import UserBotRequiredPublic access: miniproto.errors.UserBotRequired.
Provenance
Section titled “Provenance”- layer: 228
- structural source:
tdlib - RPC error source: https://core.telegram.org/api/errors
- 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