Skip to content

messages.saveDraft

No description provided by the pinned schema.

messages.saveDraft#ad0fa15c flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo peer:InputPeer message:string entities:flags.3?Vector<MessageEntity> media:flags.5?InputMedia effect:flags.7?long suggested_post:flags.8?SuggestedPost rich_message:flags.9?InputRichMessage = Bool;

Bool

NameTypeFlagDefaultDescription
flags#flag wordNo description provided by the pinned schema.
no_webpageflags.1?trueflags.1No description provided by the pinned schema.
invert_mediaflags.6?trueflags.6No description provided by the pinned schema.
reply_toflags.4?InputReplyToflags.4No description provided by the pinned schema.
peerInputPeerNo description provided by the pinned schema.
messagestringNo description provided by the pinned schema.
entitiesflags.3?Vectorflags.3No description provided by the pinned schema.
mediaflags.5?InputMediaflags.5No description provided by the pinned schema.
effectflags.7?longflags.7No description provided by the pinned schema.
suggested_postflags.8?SuggestedPostflags.8No description provided by the pinned schema.
rich_messageflags.9?InputRichMessageflags.9No description provided by the pinned schema.
ParameterBitMeaning
no_webpage1Controlled by flags; present when this bit is set.
invert_media6Controlled by flags; present when this bit is set.
reply_to4Controlled by flags; present when this bit is set.
entities3Controlled by flags; present when this bit is set.
media5Controlled by flags; present when this bit is set.
effect7Controlled by flags; present when this bit is set.
suggested_post8Controlled by flags; present when this bit is set.
rich_message9Controlled by flags; present when this bit is set.
from miniproto.raw.functions import MessagesSaveDraft

Public access: miniproto.raw.functions.MessagesSaveDraft.

from miniproto.raw.functions import MessagesSaveDraft
# Naming the raw request class is local only; it performs no I/O or network request.
request_type = MessagesSaveDraft

Bool

CodeErrorDescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis 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.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400ENTITY_BOUNDS_INVALIDA specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length.
400INPUT_USER_DEACTIVATEDThe specified user was deleted.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
403CHAT_WRITE_FORBIDDENYou can’t write in this chat.

InputMedia, InputPeer, InputReplyTo, InputRichMessage, MessageEntity, SuggestedPost Known selected constructors: inputMediaContact, inputMediaDice, inputMediaDocument, inputMediaDocumentExternal, inputMediaEmpty, inputMediaGame, inputMediaGeoLive, inputMediaGeoPoint, inputMediaInvoice, inputMediaPaidMedia, inputMediaPhoto, inputMediaPhotoExternal, inputMediaPoll, inputMediaStakeDice, inputMediaStory, inputMediaTodo, inputMediaUploadedDocument, inputMediaUploadedPhoto, inputMediaVenue, inputMediaWebPage, inputPeerChannel, inputPeerChannelFromMessage, inputPeerChat, inputPeerEmpty, inputPeerSelf, inputPeerUser, inputPeerUserFromMessage, inputReplyToEphemeralMessage, inputReplyToMessage, inputReplyToMonoForum, inputReplyToStory, inputRichMessage, inputRichMessageHTML, inputRichMessageMarkdown, inputMessageEntityMentionName, messageEntityBankCard, messageEntityBlockquote, messageEntityBold, messageEntityBotCommand, messageEntityCashtag, messageEntityCode, messageEntityCustomEmoji, messageEntityDiffDelete, messageEntityDiffInsert, messageEntityDiffReplace, messageEntityEmail, messageEntityFormattedDate, messageEntityHashtag, messageEntityItalic, messageEntityMention, messageEntityMentionName, messageEntityPhone, messageEntityPre, messageEntitySpoiler, messageEntityStrike, messageEntityTextUrl, messageEntityUnderline, messageEntityUnknown, messageEntityUrl, suggestedPost

Bool Known selected constructors: boolFalse, boolTrue

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.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.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.addPreviewMedia, bots.answerWebhookJSONQuery, bots.canSendMessage, bots.checkDownloadFileParams, bots.checkUsername, bots.deletePreviewMedia, bots.editAccessSettings, bots.editPreviewMedia, 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.deleteParticipantHistory, channels.editBanned, channels.editLocation, channels.getParticipant, channels.getSendAs, channels.readHistory, channels.readMessageContents, channels.reorderUsernames, channels.reportAntiSpamFalsePositive, channels.reportSpam, channels.restrictSponsoredMessages, channels.searchPosts, 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.editExportedInvite, chatlists.exportChatlistInvite, chatlists.hideChatlistUpdates, chatlists.joinChatlistInvite, chatlists.joinChatlistUpdates, chatlists.leaveChatlist, communities.create, communities.getParticipantJoinedChats, 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, ephemeral.editMessage, ephemeral.getCallbackAnswer, ephemeral.reportMessage, ephemeral.sendMessage, help.acceptTermsOfService, help.dismissSuggestion, help.editUserInfo, help.hidePromoData, help.saveAppLog, help.setBotUpdatesStatus, messages.acceptUrlAuth, messages.addPollAnswer, messages.appendTodoList, messages.checkHistoryImportPeer, messages.checkQuickReplyShortcut, messages.checkUrlAuthMatchCode, messages.clearAllDrafts, messages.clearRecentReactions, messages.clearRecentStickers, messages.clickSponsoredMessage, messages.composeRichMessageWithAI, messages.createForumTopic, messages.declineUrlAuth, messages.deleteChat, messages.deleteExportedChatInvite, messages.deleteFactCheck, messages.deleteHistory, messages.deleteParticipantReaction, messages.deleteParticipantReactions, messages.deletePollAnswer, messages.deleteQuickReplyShortcut, messages.deleteRevokedExportedChatInvites, messages.deleteSavedHistory, messages.deleteScheduledMessages, messages.deleteTopicHistory, messages.discardEncryption, messages.editChatAbout, messages.editChatAdmin, messages.editChatCreator, messages.editChatDefaultBannedRights, messages.editChatParticipantRank, messages.editExportedChatInvite, messages.editFactCheck, messages.editForumTopic, messages.editInlineBotMessage, messages.editMessage, messages.editQuickReplyShortcut, messages.exportChatInvite, messages.faveSticker, messages.forwardMessages, messages.getAdminsWithInvites, messages.getBotCallbackAnswer, messages.getChatInviteImporters, 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.getMessageEditData, messages.getMessageReactionsList, messages.getMessageReadParticipants, messages.getMessagesReactions, messages.getMessagesViews, messages.getOnlines, messages.getOutboxReadDate, messages.getPeerSettings, messages.getPollResults, messages.getPollVotes, 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.getUnreadMentions, messages.getUnreadPollVotes, messages.getUnreadReactions, messages.getWebPagePreview, messages.hideAllChatJoinRequests, messages.hideChatJoinRequest, messages.hidePeerSettingsBar, messages.initHistoryImport, messages.installStickerSet, messages.markDialogUnread, messages.prolongWebView, messages.rateTranscribedAudio, messages.readDiscussion, messages.readEncryptedHistory, messages.readFeaturedStickers, messages.readHistory, messages.readMentions, messages.readPollVotes, messages.readReactions, messages.readSavedHistory, messages.reorderPinnedDialogs, messages.reorderPinnedForumTopics, messages.reorderPinnedSavedDialogs, messages.reorderQuickReplies, messages.reorderStickerSets, messages.report, messages.reportEncryptedSpam, messages.reportMessagesDelivery, messages.reportMusicListen, messages.reportReaction, messages.reportReadMetrics, messages.reportSpam, messages.requestAppWebView, messages.requestMainWebView, messages.requestUrlAuth, messages.requestWebView, messages.saveDefaultSendAs, messages.saveGif, messages.saveRecentSticker, 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.setBotCallbackAnswer, messages.setBotPrecheckoutResults, messages.setBotShippingResults, messages.setChatAvailableReactions, messages.setChatTheme, messages.setChatWallPaper, messages.setDefaultHistoryTTL, messages.setDefaultReaction, messages.setEncryptedTyping, messages.setGameScore, messages.setHistoryTTL, messages.setInlineBotResults, messages.setInlineGameScore, messages.setTyping, messages.startBot, messages.startHistoryImport, messages.summarizeText, messages.toggleBotInAttachMenu, messages.toggleDialogFilterTags, messages.toggleDialogPin, messages.toggleNoForwards, messages.togglePaidReactionPrivacy, messages.togglePeerTranslations, messages.toggleSavedDialogPin, messages.toggleStickerSets, messages.toggleSuggestedPostApproval, messages.toggleTodoCompleted, messages.transcribeAudio, messages.translateRichMessage, messages.translateText, messages.uninstallStickerSet, messages.unpinAllMessages, messages.updateDialogFilter, messages.updateDialogFiltersOrder, messages.updatePinnedForumTopic, messages.updatePinnedMessage, messages.updateSavedReactionTag, messages.uploadImportedMedia, messages.uploadMedia, messages.viewSponsoredMessage, payments.botCancelStarsSubscription, payments.canPurchaseStore, payments.changeStarsSubscription, payments.clearSavedInfo, payments.connectStarRefBot, payments.convertStarGift, payments.createStarGiftCollection, payments.deleteStarGiftCollection, payments.editConnectedStarRefBot, payments.exportInvoice, payments.fulfillStarsSubscription, payments.getConnectedStarRefBot, payments.getConnectedStarRefBots, payments.getGiveawayInfo, payments.getPaymentReceipt, payments.getPremiumGiftCodeOptions, payments.getSavedStarGifts, payments.getStarGiftCollections, payments.getStarsRevenueAdsAccountUrl, payments.getStarsRevenueStats, payments.getStarsRevenueWithdrawalUrl, payments.getStarsStatus, payments.getStarsSubscriptions, payments.getStarsTransactions, payments.getStarsTransactionsByID, payments.getSuggestedStarRefBots, payments.launchPrepaidGiveaway, payments.reorderStarGiftCollections, payments.saveStarGift, payments.sendStarGiftOffer, payments.toggleChatStarGiftNotifications, payments.toggleStarGiftsPinnedToTop, payments.transferStarGift, payments.updateStarGiftCollection, phone.createGroupCall, phone.deleteGroupCallParticipantMessages, phone.editGroupCallParticipant, phone.getGroupCallJoinAs, phone.getGroupCallStreamRtmpUrl, phone.getGroupParticipants, phone.joinGroupCall, phone.receivedCall, phone.saveCallDebug, phone.saveCallLog, phone.saveDefaultGroupCallJoinAs, phone.saveDefaultSendAs, phone.sendGroupCallEncryptedMessage, phone.sendGroupCallMessage, phone.sendSignalingData, phone.toggleGroupCallRecord, phone.toggleGroupCallSettings, phone.toggleGroupCallStartSubscription, premium.applyBoost, premium.getBoostsList, premium.getBoostsStatus, premium.getUserBoosts, smsjobs.finishJob, smsjobs.join, smsjobs.leave, smsjobs.updateSettings, stats.getPollStats, stats.getStoryPublicForwards, stats.getStoryStats, stickers.checkShortName, stickers.deleteStickerSet, 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.toggleAllStoriesHidden, stories.togglePeerStoriesHidden, stories.togglePinned, stories.togglePinnedToTop, stories.updateAlbum, upload.saveBigFilePart, upload.saveFilePart, users.setSecureValueErrors

  • user only
  • 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