From 8145468938877c69f34fae4310785fc4e1a3bd57 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 1 May 2021 13:41:08 +0000 Subject: [PATCH] Update content of files --- data/core.telegram.org/api/pattern.html | 122 ++++ .../constructor/account.authorizationForm | 174 +++++ .../constructor/account.authorizations | 147 ++++ .../constructor/account.autoDownloadSettings | 157 +++++ .../constructor/account.contentSettings | 157 +++++ .../constructor/account.password | 208 ++++++ .../constructor/account.passwordInputSettings | 176 +++++ .../constructor/account.passwordSettings | 161 +++++ .../constructor/account.privacyRules | 157 +++++ .../constructor/account.sentChangePhoneCode | 161 +++++ .../constructor/account.sentEmailCode | 155 ++++ .../constructor/account.takeout | 147 ++++ .../constructor/account.themes | 155 ++++ .../constructor/account.themesNotModified | 132 ++++ .../constructor/account.tmpPassword | 152 ++++ .../constructor/account.wallPapers | 155 ++++ .../constructor/account.wallPapersNotModified | 132 ++++ .../constructor/account.webAuthorizations | 152 ++++ .../constructor/accountDaysTTL.html | 147 ++++ .../constructor/auth.authorization | 159 +++++ .../auth.authorizationSignUpRequired | 155 ++++ .../constructor/auth.codeTypeCall | 132 ++++ .../constructor/auth.codeTypeFlashCall | 132 ++++ .../constructor/auth.codeTypeSms | 132 ++++ .../constructor/auth.exportedAuthorization | 152 ++++ .../constructor/auth.loginToken | 155 ++++ .../constructor/auth.loginTokenMigrateTo | 152 ++++ .../constructor/auth.loginTokenSuccess | 147 ++++ .../constructor/auth.passwordRecovery | 152 ++++ .../constructor/auth.sentAppCode | 163 +++++ .../constructor/auth.sentCode | 172 +++++ .../constructor/auth.sentCodeTypeApp | 147 ++++ .../constructor/auth.sentCodeTypeCall | 147 ++++ .../constructor/auth.sentCodeTypeFlashCall | 150 ++++ .../constructor/auth.sentCodeTypeSms | 147 ++++ .../constructor/authorization.html | 225 ++++++ .../constructor/autoDownloadSettings.html | 187 +++++ .../constructor/bankCardOpenUrl.html | 152 ++++ .../constructor/baseThemeArctic.html | 132 ++++ .../constructor/baseThemeClassic.html | 132 ++++ .../constructor/baseThemeDay.html | 132 ++++ .../constructor/baseThemeNight.html | 132 ++++ .../constructor/baseThemeTinted.html | 132 ++++ .../constructor/boolFalse.html | 132 ++++ .../constructor/boolTrue.html | 132 ++++ .../constructor/botCommand.html | 152 ++++ .../constructor/botInfo.html | 157 +++++ .../constructor/botInlineMediaResult.html | 186 +++++ .../botInlineMessageMediaAuto.html | 167 +++++ .../botInlineMessageMediaContact.html | 172 +++++ .../constructor/botInlineMessageMediaGeo.html | 175 +++++ .../botInlineMessageMediaVenue.html | 182 +++++ .../constructor/botInlineMessageText.html | 170 +++++ .../constructor/botInlineResult.html | 189 +++++ .../constructor/cdnConfig.html | 149 ++++ .../constructor/cdnPublicKey.html | 154 ++++ .../constructor/channel.html | 272 +++++++ .../constructor/channelAdminLogEvent.html | 162 +++++ ...channelAdminLogEventActionChangeAbout.html | 152 ++++ ...elAdminLogEventActionChangeLinkedChat.html | 152 ++++ ...nnelAdminLogEventActionChangeLocation.html | 152 ++++ ...channelAdminLogEventActionChangePhoto.html | 152 ++++ ...elAdminLogEventActionChangeStickerSet.html | 152 ++++ ...channelAdminLogEventActionChangeTitle.html | 152 ++++ ...nnelAdminLogEventActionChangeUsername.html | 152 ++++ ...dminLogEventActionDefaultBannedRights.html | 155 ++++ ...annelAdminLogEventActionDeleteMessage.html | 147 ++++ ...channelAdminLogEventActionEditMessage.html | 152 ++++ ...lAdminLogEventActionParticipantInvite.html | 147 ++++ ...nelAdminLogEventActionParticipantJoin.html | 132 ++++ ...elAdminLogEventActionParticipantLeave.html | 132 ++++ ...nLogEventActionParticipantToggleAdmin.html | 155 ++++ ...minLogEventActionParticipantToggleBan.html | 155 ++++ .../channelAdminLogEventActionStopPoll.html | 147 ++++ ...annelAdminLogEventActionToggleInvites.html | 147 ++++ ...nLogEventActionTogglePreHistoryHidden.html | 150 ++++ ...elAdminLogEventActionToggleSignatures.html | 147 ++++ ...nnelAdminLogEventActionToggleSlowMode.html | 155 ++++ ...hannelAdminLogEventActionUpdatePinned.html | 147 ++++ .../channelAdminLogEventsFilter.html | 256 +++++++ .../constructor/channelForbidden.html | 177 +++++ .../constructor/channelFull.html | 334 +++++++++ .../constructor/channelLocation.html | 152 ++++ .../constructor/channelLocationEmpty.html | 132 ++++ .../constructor/channelMessagesFilter.html | 157 +++++ .../channelMessagesFilterEmpty.html | 132 ++++ .../constructor/channelParticipant.html | 152 ++++ .../constructor/channelParticipantAdmin.html | 190 +++++ .../constructor/channelParticipantBanned.html | 175 +++++ .../channelParticipantCreator.html | 162 +++++ .../constructor/channelParticipantLeft.html | 147 ++++ .../constructor/channelParticipantSelf.html | 157 +++++ .../channelParticipantsAdmins.html | 132 ++++ .../channelParticipantsBanned.html | 147 ++++ .../constructor/channelParticipantsBots.html | 132 ++++ .../channelParticipantsContacts.html | 147 ++++ .../channelParticipantsKicked.html | 147 ++++ .../channelParticipantsMentions.html | 161 +++++ .../channelParticipantsRecent.html | 132 ++++ .../channelParticipantsSearch.html | 147 ++++ .../constructor/channels.adminLogResults | 157 +++++ .../constructor/channels.channelParticipant | 152 ++++ .../constructor/channels.channelParticipants | 157 +++++ .../channels.channelParticipantsNotModified | 132 ++++ data/core.telegram.org/constructor/chat.html | 217 ++++++ .../constructor/chatAdminRights.html | 195 ++++++ .../constructor/chatBannedRights.html | 215 ++++++ .../constructor/chatEmpty.html | 147 ++++ .../constructor/chatForbidden.html | 152 ++++ .../constructor/chatFull.html | 209 ++++++ .../constructor/chatInvite.html | 190 +++++ .../constructor/chatInviteAlready.html | 147 ++++ .../constructor/chatInviteEmpty.html | 132 ++++ .../constructor/chatInviteExported.html | 147 ++++ .../constructor/chatInvitePeek.html | 152 ++++ .../constructor/chatOnlines.html | 147 ++++ .../constructor/chatParticipant.html | 157 +++++ .../constructor/chatParticipantAdmin.html | 157 +++++ .../constructor/chatParticipantCreator.html | 147 ++++ .../constructor/chatParticipants.html | 157 +++++ .../chatParticipantsForbidden.html | 157 +++++ .../constructor/chatPhoto.html | 167 +++++ .../constructor/chatPhotoEmpty.html | 132 ++++ .../constructor/codeSettings.html | 166 +++++ .../core.telegram.org/constructor/config.html | 420 +++++++++++ .../constructor/contact.html | 152 ++++ .../constructor/contactStatus.html | 152 ++++ .../constructor/contacts.blocked | 157 +++++ .../constructor/contacts.blockedSlice | 162 +++++ .../constructor/contacts.contacts | 157 +++++ .../constructor/contacts.contactsNotModified | 132 ++++ .../constructor/contacts.found | 162 +++++ .../constructor/contacts.importedContacts | 165 +++++ .../constructor/contacts.resolvedPeer | 157 +++++ .../constructor/contacts.topPeers | 157 +++++ .../constructor/contacts.topPeersDisabled | 132 ++++ .../constructor/contacts.topPeersNotModified | 132 ++++ .../constructor/dataJSON.html | 147 ++++ .../constructor/dcOption.html | 197 ++++++ .../constructor/decryptedMessage.html | 217 ++++++ .../decryptedMessageActionAbortKey.html | 148 ++++ .../decryptedMessageActionAcceptKey.html | 160 +++++ .../decryptedMessageActionCommitKey.html | 155 ++++ .../decryptedMessageActionDeleteMessages.html | 148 ++++ .../decryptedMessageActionFlushHistory.html | 133 ++++ .../decryptedMessageActionNoop.html | 133 ++++ .../decryptedMessageActionNotifyLayer.html | 151 ++++ .../decryptedMessageActionReadMessages.html | 148 ++++ .../decryptedMessageActionRequestKey.html | 155 ++++ .../decryptedMessageActionResend.html | 155 ++++ ...ryptedMessageActionScreenshotMessages.html | 148 ++++ .../decryptedMessageActionSetMessageTTL.html | 149 ++++ .../decryptedMessageActionTyping.html | 148 ++++ .../constructor/decryptedMessageLayer.html | 173 +++++ .../decryptedMessageMediaAudio.html | 174 +++++ .../decryptedMessageMediaContact.html | 163 +++++ .../decryptedMessageMediaDocument.html | 191 +++++ .../decryptedMessageMediaEmpty.html | 133 ++++ ...decryptedMessageMediaExternalDocument.html | 183 +++++ .../decryptedMessageMediaGeoPoint.html | 153 ++++ .../decryptedMessageMediaPhoto.html | 191 +++++ .../decryptedMessageMediaVenue.html | 173 +++++ .../decryptedMessageMediaVideo.html | 207 ++++++ .../decryptedMessageMediaWebPage.html | 148 ++++ .../constructor/decryptedMessageService.html | 156 +++++ .../core.telegram.org/constructor/dialog.html | 214 ++++++ .../constructor/dialogFilter.html | 220 ++++++ .../constructor/dialogFilterSuggested.html | 155 ++++ .../constructor/dialogFolder.html | 187 +++++ .../constructor/dialogPeer.html | 147 ++++ .../constructor/dialogPeerFolder.html | 150 ++++ .../constructor/disabledFeature.html | 163 +++++ .../constructor/document.html | 200 ++++++ .../documentAttributeAnimated.html | 132 ++++ .../constructor/documentAttributeAudio.html | 172 +++++ .../documentAttributeFilename.html | 147 ++++ .../documentAttributeHasStickers.html | 132 ++++ .../documentAttributeImageSize.html | 152 ++++ .../constructor/documentAttributeSticker.html | 167 +++++ .../constructor/documentAttributeVideo.html | 172 +++++ .../constructor/documentEmpty.html | 147 ++++ .../constructor/draftMessage.html | 177 +++++ .../constructor/draftMessageEmpty.html | 152 ++++ .../constructor/emojiKeyword.html | 152 ++++ .../constructor/emojiKeywordDeleted.html | 152 ++++ .../constructor/emojiKeywordsDifference.html | 162 +++++ .../constructor/emojiLanguage.html | 147 ++++ .../constructor/emojiURL.html | 147 ++++ .../constructor/encryptedChat.html | 177 +++++ .../constructor/encryptedChatDiscarded.html | 147 ++++ .../constructor/encryptedChatEmpty.html | 147 ++++ .../constructor/encryptedChatRequested.html | 185 +++++ .../constructor/encryptedChatWaiting.html | 167 +++++ .../constructor/encryptedFile.html | 167 +++++ .../constructor/encryptedFileEmpty.html | 132 ++++ .../constructor/encryptedMessage.html | 170 +++++ .../constructor/encryptedMessageService.html | 165 +++++ data/core.telegram.org/constructor/error.html | 152 ++++ .../constructor/exportedMessageLink.html | 152 ++++ .../constructor/fileHash.html | 171 +++++ .../constructor/fileLocation.html | 182 +++++ .../fileLocationToBeDeprecated.html | 152 ++++ .../constructor/fileLocationUnavailable.html | 179 +++++ .../core.telegram.org/constructor/folder.html | 177 +++++ .../constructor/folderPeer.html | 155 ++++ data/core.telegram.org/constructor/game.html | 182 +++++ .../constructor/geoPoint.html | 167 +++++ .../constructor/geoPointEmpty.html | 132 ++++ .../constructor/globalPrivacySettings.html | 152 ++++ .../constructor/help.appUpdate | 185 +++++ .../constructor/help.countriesList | 155 ++++ .../constructor/help.countriesListNotModified | 132 ++++ .../constructor/help.country | 172 +++++ .../constructor/help.countryCode | 162 +++++ .../constructor/help.deepLinkInfo | 165 +++++ .../constructor/help.deepLinkInfoEmpty | 132 ++++ .../constructor/help.inviteText | 147 ++++ .../constructor/help.noAppUpdate | 132 ++++ .../constructor/help.passportConfig | 156 +++++ .../help.passportConfigNotModified | 132 ++++ .../constructor/help.promoData | 182 +++++ .../constructor/help.promoDataEmpty | 147 ++++ .../constructor/help.recentMeUrls | 157 +++++ .../constructor/help.support | 152 ++++ .../constructor/help.supportName | 147 ++++ .../constructor/help.termsOfService | 175 +++++ .../constructor/help.termsOfServiceUpdate | 157 +++++ .../help.termsOfServiceUpdateEmpty | 150 ++++ .../constructor/help.userInfo | 165 +++++ .../constructor/help.userInfoEmpty | 132 ++++ .../constructor/highScore.html | 157 +++++ .../constructor/importedContact.html | 155 ++++ .../constructor/inlineBotSwitchPM.html | 152 ++++ .../constructor/inputAppEvent.html | 162 +++++ .../inputBotInlineMessageGame.html | 152 ++++ .../constructor/inputBotInlineMessageID.html | 157 +++++ .../inputBotInlineMessageMediaAuto.html | 165 +++++ .../inputBotInlineMessageMediaContact.html | 172 +++++ .../inputBotInlineMessageMediaGeo.html | 175 +++++ .../inputBotInlineMessageMediaVenue.html | 182 +++++ .../inputBotInlineMessageText.html | 170 +++++ .../constructor/inputBotInlineResult.html | 189 +++++ .../inputBotInlineResultDocument.html | 179 +++++ .../constructor/inputBotInlineResultGame.html | 157 +++++ .../inputBotInlineResultPhoto.html | 164 +++++ .../constructor/inputChannel.html | 155 ++++ .../constructor/inputChannelEmpty.html | 132 ++++ .../constructor/inputChannelFromMessage.html | 160 +++++ .../constructor/inputChatPhoto.html | 147 ++++ .../constructor/inputChatPhotoEmpty.html | 132 ++++ .../constructor/inputChatUploadedPhoto.html | 165 +++++ .../constructor/inputCheckPasswordEmpty.html | 132 ++++ .../constructor/inputCheckPasswordSRP.html | 160 +++++ .../constructor/inputClientProxy.html | 154 ++++ .../constructor/inputDialogPeer.html | 147 ++++ .../constructor/inputDialogPeerFolder.html | 150 ++++ .../constructor/inputDocument.html | 162 +++++ .../constructor/inputDocumentEmpty.html | 132 ++++ .../inputDocumentFileLocation.html | 167 +++++ .../constructor/inputEncryptedChat.html | 159 +++++ .../constructor/inputEncryptedFile.html | 155 ++++ .../inputEncryptedFileBigUploaded.html | 160 +++++ .../constructor/inputEncryptedFileEmpty.html | 132 ++++ .../inputEncryptedFileLocation.html | 155 ++++ .../inputEncryptedFileUploaded.html | 162 +++++ .../constructor/inputFile.html | 165 +++++ .../constructor/inputFileBig.html | 160 +++++ .../constructor/inputFileLocation.html | 165 +++++ .../constructor/inputFolderPeer.html | 155 ++++ .../constructor/inputGameID.html | 155 ++++ .../constructor/inputGameShortName.html | 152 ++++ .../constructor/inputGeoPoint.html | 162 +++++ .../constructor/inputGeoPointEmpty.html | 132 ++++ .../inputKeyboardButtonUrlAuth.html | 176 +++++ .../constructor/inputMediaContact.html | 162 +++++ .../constructor/inputMediaDice.html | 150 ++++ .../constructor/inputMediaDocument.html | 157 +++++ .../inputMediaDocumentExternal.html | 157 +++++ .../constructor/inputMediaEmpty.html | 132 ++++ .../constructor/inputMediaGame.html | 147 ++++ .../constructor/inputMediaGeoLive.html | 175 +++++ .../constructor/inputMediaGeoPoint.html | 147 ++++ .../constructor/inputMediaInvoice.html | 189 +++++ .../constructor/inputMediaPhoto.html | 157 +++++ .../constructor/inputMediaPhotoExternal.html | 157 +++++ .../constructor/inputMediaPoll.html | 170 +++++ .../inputMediaUploadedDocument.html | 190 +++++ .../constructor/inputMediaUploadedPhoto.html | 165 +++++ .../inputMediaUploadedThumbDocument.html | 176 +++++ .../constructor/inputMediaVenue.html | 172 +++++ .../inputMessageCallbackQuery.html | 152 ++++ .../inputMessageEntityMentionName.html | 162 +++++ .../constructor/inputMessageID.html | 147 ++++ .../constructor/inputMessagePinned.html | 132 ++++ .../constructor/inputMessageReplyTo.html | 147 ++++ .../inputMessagesFilterChatPhotos.html | 132 ++++ .../inputMessagesFilterContacts.html | 132 ++++ .../inputMessagesFilterDocument.html | 132 ++++ .../constructor/inputMessagesFilterEmpty.html | 132 ++++ .../constructor/inputMessagesFilterGeo.html | 132 ++++ .../constructor/inputMessagesFilterGif.html | 132 ++++ .../constructor/inputMessagesFilterMusic.html | 132 ++++ .../inputMessagesFilterMyMentions.html | 135 ++++ .../inputMessagesFilterPhoneCalls.html | 152 ++++ .../inputMessagesFilterPhotoVideo.html | 132 ++++ .../inputMessagesFilterPhotos.html | 132 ++++ .../inputMessagesFilterPinned.html | 132 ++++ .../inputMessagesFilterRoundVideo.html | 132 ++++ .../inputMessagesFilterRoundVoice.html | 132 ++++ .../constructor/inputMessagesFilterUrl.html | 132 ++++ .../constructor/inputMessagesFilterVideo.html | 132 ++++ .../constructor/inputMessagesFilterVoice.html | 132 ++++ .../constructor/inputNotifyBroadcasts.html | 135 ++++ .../constructor/inputNotifyChats.html | 132 ++++ .../constructor/inputNotifyPeer.html | 147 ++++ .../constructor/inputNotifyUsers.html | 132 ++++ .../constructor/inputPaymentCredentials.html | 157 +++++ .../inputPaymentCredentialsAndroidPay.html | 152 ++++ .../inputPaymentCredentialsApplePay.html | 147 ++++ .../inputPaymentCredentialsSaved.html | 152 ++++ .../constructor/inputPeerChannel.html | 155 ++++ .../inputPeerChannelFromMessage.html | 160 +++++ .../constructor/inputPeerChat.html | 147 ++++ .../constructor/inputPeerEmpty.html | 132 ++++ .../constructor/inputPeerNotifySettings.html | 167 +++++ .../inputPeerPhotoFileLocation.html | 170 +++++ .../constructor/inputPeerSelf.html | 132 ++++ .../constructor/inputPeerUser.html | 155 ++++ .../constructor/inputPeerUserFromMessage.html | 160 +++++ .../constructor/inputPhoneCall.html | 152 ++++ .../constructor/inputPhoneContact.html | 166 +++++ .../constructor/inputPhoto.html | 162 +++++ .../constructor/inputPhotoEmpty.html | 132 ++++ .../constructor/inputPhotoFileLocation.html | 171 +++++ .../inputPhotoLegacyFileLocation.html | 172 +++++ .../inputPrivacyKeyAddedByPhone.html | 132 ++++ .../inputPrivacyKeyChatInvite.html | 132 ++++ .../constructor/inputPrivacyKeyForwards.html | 132 ++++ .../constructor/inputPrivacyKeyPhoneCall.html | 132 ++++ .../inputPrivacyKeyPhoneNumber.html | 132 ++++ .../constructor/inputPrivacyKeyPhoneP2P.html | 132 ++++ .../inputPrivacyKeyProfilePhoto.html | 132 ++++ .../inputPrivacyKeyStatusTimestamp.html | 132 ++++ .../inputPrivacyValueAllowAll.html | 132 ++++ ...nputPrivacyValueAllowChatParticipants.html | 147 ++++ .../inputPrivacyValueAllowContacts.html | 132 ++++ .../inputPrivacyValueAllowUsers.html | 147 ++++ .../inputPrivacyValueDisallowAll.html | 132 ++++ ...tPrivacyValueDisallowChatParticipants.html | 147 ++++ .../inputPrivacyValueDisallowContacts.html | 132 ++++ .../inputPrivacyValueDisallowUsers.html | 147 ++++ .../inputReportReasonChildAbuse.html | 132 ++++ .../inputReportReasonCopyright.html | 132 ++++ .../inputReportReasonGeoIrrelevant.html | 132 ++++ .../constructor/inputReportReasonOther.html | 147 ++++ .../inputReportReasonPornography.html | 132 ++++ .../constructor/inputReportReasonSpam.html | 132 ++++ .../inputReportReasonViolence.html | 132 ++++ .../constructor/inputSecureFile.html | 155 ++++ .../constructor/inputSecureFileLocation.html | 156 +++++ .../constructor/inputSecureFileUploaded.html | 169 +++++ .../constructor/inputSecureValue.html | 190 +++++ .../constructor/inputSingleMedia.html | 174 +++++ .../inputStickerSetAnimatedEmoji.html | 132 ++++ .../constructor/inputStickerSetDice.html | 150 ++++ .../constructor/inputStickerSetEmpty.html | 132 ++++ .../constructor/inputStickerSetID.html | 152 ++++ .../constructor/inputStickerSetItem.html | 162 +++++ .../constructor/inputStickerSetShortName.html | 147 ++++ .../constructor/inputStickerSetThumb.html | 160 +++++ .../inputStickeredMediaDocument.html | 147 ++++ .../constructor/inputStickeredMediaPhoto.html | 147 ++++ .../constructor/inputTakeoutFileLocation.html | 132 ++++ .../constructor/inputTheme.html | 152 ++++ .../constructor/inputThemeSettings.html | 177 +++++ .../constructor/inputThemeSlug.html | 147 ++++ .../constructor/inputUser.html | 155 ++++ .../constructor/inputUserEmpty.html | 132 ++++ .../constructor/inputUserFromMessage.html | 160 +++++ .../constructor/inputUserSelf.html | 132 ++++ .../constructor/inputWallPaper.html | 152 ++++ .../constructor/inputWallPaperNoFile.html | 132 ++++ .../constructor/inputWallPaperSlug.html | 147 ++++ .../constructor/inputWebDocument.html | 165 +++++ .../inputWebFileGeoPointLocation.html | 172 +++++ .../constructor/inputWebFileLocation.html | 152 ++++ .../constructor/invoice.html | 199 ++++++ .../constructor/jsonArray.html | 147 ++++ .../constructor/jsonBool.html | 147 ++++ .../constructor/jsonNull.html | 132 ++++ .../constructor/jsonNumber.html | 147 ++++ .../constructor/jsonObject.html | 147 ++++ .../constructor/jsonObjectValue.html | 152 ++++ .../constructor/jsonString.html | 147 ++++ .../constructor/keyboardButton.html | 147 ++++ .../constructor/keyboardButtonBuy.html | 147 ++++ .../constructor/keyboardButtonCallback.html | 167 +++++ .../constructor/keyboardButtonGame.html | 147 ++++ .../keyboardButtonRequestGeoLocation.html | 147 ++++ .../keyboardButtonRequestPhone.html | 147 ++++ .../keyboardButtonRequestPoll.html | 157 +++++ .../constructor/keyboardButtonRow.html | 147 ++++ .../keyboardButtonSwitchInline.html | 162 +++++ .../constructor/keyboardButtonUrl.html | 152 ++++ .../constructor/keyboardButtonUrlAuth.html | 179 +++++ .../constructor/labeledPrice.html | 154 ++++ .../constructor/langPackDifference.html | 162 +++++ .../constructor/langPackLanguage.html | 202 ++++++ .../constructor/langPackString.html | 152 ++++ .../constructor/langPackStringDeleted.html | 147 ++++ .../constructor/langPackStringPluralized.html | 182 +++++ .../constructor/maskCoords.html | 169 +++++ .../constructor/message.html | 297 ++++++++ .../constructor/messageActionBotAllowed.html | 149 ++++ .../messageActionChannelCreate.html | 147 ++++ .../messageActionChannelMigrateFrom.html | 155 ++++ .../constructor/messageActionChatAddUser.html | 147 ++++ .../constructor/messageActionChatCreate.html | 152 ++++ .../messageActionChatDeletePhoto.html | 132 ++++ .../messageActionChatDeleteUser.html | 147 ++++ .../messageActionChatEditPhoto.html | 147 ++++ .../messageActionChatEditTitle.html | 147 ++++ .../messageActionChatJoinedByLink.html | 147 ++++ .../messageActionChatMigrateTo.html | 150 ++++ .../messageActionContactSignUp.html | 132 ++++ .../messageActionCustomAction.html | 147 ++++ .../constructor/messageActionEmpty.html | 132 ++++ .../constructor/messageActionGameScore.html | 152 ++++ .../messageActionGeoProximityReached.html | 160 +++++ .../messageActionHistoryClear.html | 132 ++++ .../constructor/messageActionPaymentSent.html | 154 ++++ .../messageActionPaymentSentMe.html | 179 +++++ .../constructor/messageActionPhoneCall.html | 167 +++++ .../constructor/messageActionPinMessage.html | 132 ++++ .../messageActionScreenshotTaken.html | 132 ++++ .../messageActionSecureValuesSent.html | 149 ++++ .../messageActionSecureValuesSentMe.html | 154 ++++ .../constructor/messageEmpty.html | 147 ++++ .../constructor/messageEntityBankCard.html | 152 ++++ .../constructor/messageEntityBlockquote.html | 152 ++++ .../constructor/messageEntityBold.html | 152 ++++ .../constructor/messageEntityBotCommand.html | 152 ++++ .../constructor/messageEntityCashtag.html | 152 ++++ .../constructor/messageEntityCode.html | 152 ++++ .../constructor/messageEntityEmail.html | 152 ++++ .../constructor/messageEntityHashtag.html | 152 ++++ .../constructor/messageEntityItalic.html | 152 ++++ .../constructor/messageEntityMention.html | 155 ++++ .../constructor/messageEntityMentionName.html | 162 +++++ .../constructor/messageEntityPhone.html | 152 ++++ .../constructor/messageEntityPre.html | 157 +++++ .../constructor/messageEntityStrike.html | 152 ++++ .../constructor/messageEntityTextUrl.html | 160 +++++ .../constructor/messageEntityUnderline.html | 152 ++++ .../constructor/messageEntityUnknown.html | 152 ++++ .../constructor/messageEntityUrl.html | 155 ++++ .../constructor/messageFwdHeader.html | 187 +++++ .../messageInteractionCounters.html | 157 +++++ .../constructor/messageMediaAudio.html | 147 ++++ .../constructor/messageMediaContact.html | 167 +++++ .../constructor/messageMediaDice.html | 155 ++++ .../constructor/messageMediaDocument.html | 157 +++++ .../constructor/messageMediaEmpty.html | 132 ++++ .../constructor/messageMediaGame.html | 147 ++++ .../constructor/messageMediaGeo.html | 147 ++++ .../constructor/messageMediaGeoLive.html | 170 +++++ .../constructor/messageMediaInvoice.html | 198 ++++++ .../constructor/messageMediaPhoto.html | 157 +++++ .../constructor/messageMediaPoll.html | 152 ++++ .../constructor/messageMediaUnsupported.html | 132 ++++ .../constructor/messageMediaVenue.html | 172 +++++ .../constructor/messageMediaVideo.html | 147 ++++ .../constructor/messageMediaWebPage.html | 147 ++++ .../constructor/messageRange.html | 152 ++++ .../constructor/messageReplies.html | 189 +++++ .../constructor/messageReplyHeader.html | 165 +++++ .../constructor/messageService.html | 207 ++++++ .../constructor/messageUserVote.html | 157 +++++ .../messageUserVoteInputOption.html | 155 ++++ .../constructor/messageUserVoteMultiple.html | 157 +++++ .../constructor/messageViews.html | 165 +++++ .../constructor/messages.affectedHistory | 157 +++++ .../constructor/messages.affectedMessages | 155 ++++ .../constructor/messages.allStickers | 155 ++++ .../messages.allStickersNotModified | 132 ++++ .../constructor/messages.archivedStickers | 152 ++++ .../constructor/messages.botCallbackAnswer | 177 +++++ .../constructor/messages.botResults | 182 +++++ .../constructor/messages.channelMessages | 185 +++++ .../constructor/messages.chatFull | 157 +++++ .../constructor/messages.chats | 147 ++++ .../constructor/messages.chatsSlice | 155 ++++ .../constructor/messages.dhConfig | 162 +++++ .../constructor/messages.dhConfigNotModified | 147 ++++ .../constructor/messages.dialogs | 162 +++++ .../constructor/messages.dialogsNotModified | 147 ++++ .../constructor/messages.dialogsSlice | 167 +++++ .../constructor/messages.discussionMessage | 180 +++++ .../constructor/messages.favedStickers | 160 +++++ .../messages.favedStickersNotModified | 132 ++++ .../constructor/messages.featuredStickers | 165 +++++ .../messages.featuredStickersNotModified | 147 ++++ .../constructor/messages.foundStickerSets | 155 ++++ .../messages.foundStickerSetsNotModified | 132 ++++ .../constructor/messages.highScores | 152 ++++ .../constructor/messages.inactiveChats | 157 +++++ .../constructor/messages.messageEditData | 152 ++++ .../constructor/messages.messageViews | 157 +++++ .../constructor/messages.messages | 157 +++++ .../constructor/messages.messagesNotModified | 147 ++++ .../constructor/messages.messagesSlice | 185 +++++ .../constructor/messages.peerDialogs | 170 +++++ .../constructor/messages.recentStickers | 165 +++++ .../messages.recentStickersNotModified | 132 ++++ .../constructor/messages.savedGifs | 155 ++++ .../constructor/messages.savedGifsNotModified | 132 ++++ .../constructor/messages.searchCounter | 165 +++++ .../constructor/messages.sentEncryptedFile | 152 ++++ .../constructor/messages.sentEncryptedMessage | 147 ++++ .../constructor/messages.sentMessageLink | 167 +++++ .../constructor/messages.statedMessageLink | 172 +++++ .../constructor/messages.statedMessagesLinks | 172 +++++ .../constructor/messages.stickerSet | 157 +++++ .../messages.stickerSetInstallResultArchive | 147 ++++ .../messages.stickerSetInstallResultSuccess | 132 ++++ .../constructor/messages.stickers | 155 ++++ .../constructor/messages.stickersNotModified | 132 ++++ .../constructor/messages.votesList | 170 +++++ .../constructor/nearestDc.html | 157 +++++ .../constructor/notifyBroadcasts.html | 132 ++++ .../constructor/notifyChats.html | 132 ++++ .../constructor/notifyPeer.html | 147 ++++ .../constructor/notifyUsers.html | 132 ++++ data/core.telegram.org/constructor/null.html | 132 ++++ data/core.telegram.org/constructor/page.html | 190 +++++ .../constructor/pageBlockAnchor.html | 147 ++++ .../constructor/pageBlockAudio.html | 155 ++++ .../constructor/pageBlockAuthorDate.html | 152 ++++ .../constructor/pageBlockBlockquote.html | 152 ++++ .../constructor/pageBlockChannel.html | 147 ++++ .../constructor/pageBlockCollage.html | 152 ++++ .../constructor/pageBlockCover.html | 147 ++++ .../constructor/pageBlockDetails.html | 162 +++++ .../constructor/pageBlockDivider.html | 132 ++++ .../constructor/pageBlockEmbed.html | 187 +++++ .../constructor/pageBlockEmbedPost.html | 177 +++++ .../constructor/pageBlockFooter.html | 147 ++++ .../constructor/pageBlockHeader.html | 147 ++++ .../constructor/pageBlockKicker.html | 147 ++++ .../constructor/pageBlockList.html | 147 ++++ .../constructor/pageBlockMap.html | 167 +++++ .../constructor/pageBlockOrderedList.html | 147 ++++ .../constructor/pageBlockParagraph.html | 147 ++++ .../constructor/pageBlockPhoto.html | 167 +++++ .../constructor/pageBlockPreformatted.html | 152 ++++ .../constructor/pageBlockPullquote.html | 152 ++++ .../constructor/pageBlockRelatedArticles.html | 152 ++++ .../constructor/pageBlockSlideshow.html | 152 ++++ .../constructor/pageBlockSubheader.html | 147 ++++ .../constructor/pageBlockSubtitle.html | 147 ++++ .../constructor/pageBlockTable.html | 167 +++++ .../constructor/pageBlockTitle.html | 147 ++++ .../constructor/pageBlockUnsupported.html | 132 ++++ .../constructor/pageBlockVideo.html | 167 +++++ .../constructor/pageCaption.html | 152 ++++ .../constructor/pageListItemBlocks.html | 147 ++++ .../constructor/pageListItemText.html | 147 ++++ .../pageListOrderedItemBlocks.html | 152 ++++ .../constructor/pageListOrderedItemText.html | 152 ++++ .../constructor/pageRelatedArticle.html | 182 +++++ .../constructor/pageTableCell.html | 187 +++++ .../constructor/pageTableRow.html | 147 ++++ ...BKDF2HMACSHA512iter100000SHA256ModPow.html | 165 +++++ .../constructor/passwordKdfAlgoUnknown.html | 132 ++++ .../constructor/paymentCharge.html | 152 ++++ .../constructor/paymentRequestedInfo.html | 167 +++++ .../paymentSavedCredentialsCard.html | 152 ++++ .../constructor/payments.bankCardData | 152 ++++ .../constructor/payments.paymentForm | 205 ++++++ .../constructor/payments.paymentReceipt | 199 ++++++ .../constructor/payments.paymentResult | 147 ++++ .../payments.paymentVerificationNeeded | 147 ++++ .../constructor/payments.savedInfo | 157 +++++ .../payments.validatedRequestedInfo | 145 ++++ .../constructor/peerBlocked.html | 152 ++++ .../constructor/peerChannel.html | 147 ++++ .../constructor/peerChat.html | 147 ++++ .../constructor/peerLocated.html | 157 +++++ .../constructor/peerNotifySettings.html | 182 +++++ .../constructor/peerSelfLocated.html | 147 ++++ .../constructor/peerSettings.html | 190 +++++ .../constructor/peerUser.html | 147 ++++ .../constructor/phone.phoneCall | 152 ++++ .../constructor/phoneCall.html | 209 ++++++ .../constructor/phoneCallAccepted.html | 189 +++++ .../phoneCallDiscardReasonBusy.html | 132 ++++ .../phoneCallDiscardReasonDisconnect.html | 132 ++++ .../phoneCallDiscardReasonHangup.html | 132 ++++ .../phoneCallDiscardReasonMissed.html | 132 ++++ .../constructor/phoneCallDiscarded.html | 182 +++++ .../constructor/phoneCallEmpty.html | 147 ++++ .../constructor/phoneCallProtocol.html | 179 +++++ .../constructor/phoneCallRequested.html | 189 +++++ .../constructor/phoneCallWaiting.html | 187 +++++ .../constructor/phoneConnection.html | 167 +++++ .../constructor/phoneConnectionWebrtc.html | 187 +++++ data/core.telegram.org/constructor/photo.html | 192 +++++ .../constructor/photoCachedSize.html | 172 +++++ .../constructor/photoEmpty.html | 147 ++++ .../constructor/photoPathSize.html | 155 ++++ .../constructor/photoSize.html | 172 +++++ .../constructor/photoSizeEmpty.html | 150 ++++ .../constructor/photoSizeProgressive.html | 172 +++++ .../constructor/photoStrippedSize.html | 159 +++++ .../constructor/photos.photo | 152 ++++ .../constructor/photos.photos | 152 ++++ .../constructor/photos.photosSlice | 157 +++++ data/core.telegram.org/constructor/poll.html | 195 ++++++ .../constructor/pollAnswer.html | 155 ++++ .../constructor/pollAnswerVoters.html | 170 +++++ .../constructor/pollResults.html | 184 +++++ .../constructor/popularContact.html | 152 ++++ .../constructor/postAddress.html | 172 +++++ .../constructor/privacyKeyAddedByPhone.html | 132 ++++ .../constructor/privacyKeyChatInvite.html | 132 ++++ .../constructor/privacyKeyForwards.html | 132 ++++ .../constructor/privacyKeyPhoneCall.html | 132 ++++ .../constructor/privacyKeyPhoneNumber.html | 132 ++++ .../constructor/privacyKeyPhoneP2P.html | 132 ++++ .../constructor/privacyKeyProfilePhoto.html | 132 ++++ .../privacyKeyStatusTimestamp.html | 132 ++++ .../constructor/privacyValueAllowAll.html | 132 ++++ .../privacyValueAllowChatParticipants.html | 147 ++++ .../privacyValueAllowContacts.html | 132 ++++ .../constructor/privacyValueAllowUsers.html | 147 ++++ .../constructor/privacyValueDisallowAll.html | 132 ++++ .../privacyValueDisallowChatParticipants.html | 147 ++++ .../privacyValueDisallowContacts.html | 132 ++++ .../privacyValueDisallowUsers.html | 147 ++++ .../constructor/receivedNotifyMessage.html | 152 ++++ .../constructor/recentMeUrlChat.html | 152 ++++ .../constructor/recentMeUrlChatInvite.html | 152 ++++ .../constructor/recentMeUrlStickerSet.html | 152 ++++ .../constructor/recentMeUrlUnknown.html | 147 ++++ .../constructor/recentMeUrlUser.html | 152 ++++ .../constructor/replyInlineMarkup.html | 147 ++++ .../constructor/replyKeyboardForceReply.html | 157 +++++ .../constructor/replyKeyboardHide.html | 152 ++++ .../constructor/replyKeyboardMarkup.html | 167 +++++ .../constructor/restrictionReason.html | 158 +++++ .../constructor/savedPhoneContact.html | 162 +++++ .../secureCredentialsEncrypted.html | 159 +++++ .../constructor/secureData.html | 160 +++++ .../constructor/secureFile.html | 180 +++++ .../constructor/secureFileEmpty.html | 132 ++++ ...wordKdfAlgoPBKDF2HMACSHA512iter100000.html | 147 ++++ .../securePasswordKdfAlgoSHA512.html | 147 ++++ .../securePasswordKdfAlgoUnknown.html | 132 ++++ .../constructor/securePlainEmail.html | 150 ++++ .../constructor/securePlainPhone.html | 150 ++++ .../constructor/secureRequiredType.html | 167 +++++ .../constructor/secureRequiredTypeOneOf.html | 147 ++++ .../constructor/secureSecretSettings.html | 157 +++++ .../constructor/secureValue.html | 194 +++++ .../constructor/secureValueError.html | 157 +++++ .../constructor/secureValueErrorData.html | 175 +++++ .../constructor/secureValueErrorFile.html | 168 +++++ .../constructor/secureValueErrorFiles.html | 168 +++++ .../secureValueErrorFrontSide.html | 166 +++++ .../secureValueErrorReverseSide.html | 162 +++++ .../constructor/secureValueErrorSelfie.html | 166 +++++ .../secureValueErrorTranslationFile.html | 178 +++++ .../secureValueErrorTranslationFiles.html | 178 +++++ .../constructor/secureValueHash.html | 152 ++++ .../constructor/secureValueTypeAddress.html | 132 ++++ .../secureValueTypeBankStatement.html | 132 ++++ .../secureValueTypeDriverLicense.html | 132 ++++ .../constructor/secureValueTypeEmail.html | 132 ++++ .../secureValueTypeIdentityCard.html | 132 ++++ .../secureValueTypeInternalPassport.html | 134 ++++ .../constructor/secureValueTypePassport.html | 132 ++++ .../secureValueTypePassportRegistration.html | 134 ++++ .../secureValueTypePersonalDetails.html | 132 ++++ .../constructor/secureValueTypePhone.html | 132 ++++ .../secureValueTypeRentalAgreement.html | 132 ++++ .../secureValueTypeTemporaryRegistration.html | 132 ++++ .../secureValueTypeUtilityBill.html | 132 ++++ .../constructor/sendMessageCancelAction.html | 132 ++++ .../sendMessageChooseContactAction.html | 132 ++++ .../sendMessageGamePlayAction.html | 132 ++++ .../sendMessageGeoLocationAction.html | 132 ++++ .../sendMessageRecordAudioAction.html | 132 ++++ .../sendMessageRecordRoundAction.html | 132 ++++ .../sendMessageRecordVideoAction.html | 132 ++++ .../constructor/sendMessageTypingAction.html | 132 ++++ .../sendMessageUploadAudioAction.html | 147 ++++ .../sendMessageUploadDocumentAction.html | 147 ++++ .../sendMessageUploadPhotoAction.html | 147 ++++ .../sendMessageUploadRoundAction.html | 147 ++++ .../sendMessageUploadVideoAction.html | 147 ++++ .../constructor/shippingOption.html | 157 +++++ .../constructor/stats.broadcastStats | 220 ++++++ .../constructor/stats.megagroupStats | 230 ++++++ .../constructor/stats.messageStats | 147 ++++ .../constructor/statsAbsValueAndPrev.html | 152 ++++ .../constructor/statsDateRangeDays.html | 155 ++++ .../constructor/statsGraph.html | 160 +++++ .../constructor/statsGraphAsync.html | 152 ++++ .../constructor/statsGraphError.html | 150 ++++ .../constructor/statsGroupTopAdmin.html | 165 +++++ .../constructor/statsGroupTopInviter.html | 155 ++++ .../constructor/statsGroupTopPoster.html | 160 +++++ .../constructor/statsPercentValue.html | 156 +++++ .../constructor/statsURL.html | 147 ++++ .../constructor/stickerPack.html | 156 +++++ .../constructor/stickerSet.html | 212 ++++++ .../constructor/stickerSetCovered.html | 152 ++++ .../constructor/stickerSetMultiCovered.html | 152 ++++ .../constructor/storage.fileGif | 132 ++++ .../constructor/storage.fileJpeg | 132 ++++ .../constructor/storage.fileMov | 132 ++++ .../constructor/storage.fileMp3 | 132 ++++ .../constructor/storage.fileMp4 | 132 ++++ .../constructor/storage.filePartial | 132 ++++ .../constructor/storage.filePdf | 132 ++++ .../constructor/storage.filePng | 132 ++++ .../constructor/storage.fileUnknown | 132 ++++ .../constructor/storage.fileWebp | 132 ++++ .../constructor/textAnchor.html | 152 ++++ .../constructor/textBold.html | 147 ++++ .../constructor/textConcat.html | 147 ++++ .../constructor/textEmail.html | 152 ++++ .../constructor/textEmpty.html | 132 ++++ .../constructor/textFixed.html | 147 ++++ .../constructor/textImage.html | 157 +++++ .../constructor/textItalic.html | 147 ++++ .../constructor/textMarked.html | 147 ++++ .../constructor/textPhone.html | 152 ++++ .../constructor/textPlain.html | 147 ++++ .../constructor/textStrike.html | 147 ++++ .../constructor/textSubscript.html | 147 ++++ .../constructor/textSuperscript.html | 147 ++++ .../constructor/textUnderline.html | 147 ++++ .../constructor/textUrl.html | 157 +++++ data/core.telegram.org/constructor/theme.html | 192 +++++ .../constructor/themeSettings.html | 172 +++++ .../constructor/topPeer.html | 155 ++++ .../topPeerCategoryBotsInline.html | 132 ++++ .../constructor/topPeerCategoryBotsPM.html | 132 ++++ .../constructor/topPeerCategoryChannels.html | 132 ++++ .../topPeerCategoryCorrespondents.html | 132 ++++ .../topPeerCategoryForwardChats.html | 132 ++++ .../topPeerCategoryForwardUsers.html | 132 ++++ .../constructor/topPeerCategoryGroups.html | 132 ++++ .../constructor/topPeerCategoryPeers.html | 157 +++++ .../topPeerCategoryPhoneCalls.html | 132 ++++ data/core.telegram.org/constructor/true.html | 134 ++++ .../constructor/updateBotCallbackQuery.html | 182 +++++ .../constructor/updateBotInlineQuery.html | 172 +++++ .../constructor/updateBotInlineSend.html | 172 +++++ .../updateBotPrecheckoutQuery.html | 184 +++++ .../constructor/updateBotShippingQuery.html | 162 +++++ .../constructor/updateBotWebhookJSON.html | 147 ++++ .../updateBotWebhookJSONQuery.html | 157 +++++ .../constructor/updateChannel.html | 147 ++++ .../updateChannelAvailableMessages.html | 155 ++++ .../updateChannelMessageForwards.html | 157 +++++ .../updateChannelMessageViews.html | 157 +++++ .../constructor/updateChannelParticipant.html | 182 +++++ .../updateChannelReadMessagesContents.html | 155 ++++ .../constructor/updateChannelTooLong.html | 161 +++++ .../constructor/updateChannelUserTyping.html | 172 +++++ .../constructor/updateChannelWebPage.html | 167 +++++ .../updateChatDefaultBannedRights.html | 160 +++++ .../constructor/updateChatParticipantAdd.html | 167 +++++ .../updateChatParticipantAdmin.html | 165 +++++ .../updateChatParticipantDelete.html | 157 +++++ .../constructor/updateChatParticipants.html | 147 ++++ .../constructor/updateChatUserTyping.html | 160 +++++ .../constructor/updateConfig.html | 135 ++++ .../constructor/updateContactsReset.html | 132 ++++ .../constructor/updateDcOptions.html | 147 ++++ .../updateDeleteChannelMessages.html | 167 +++++ .../constructor/updateDeleteMessages.html | 160 +++++ .../updateDeleteScheduledMessages.html | 155 ++++ .../constructor/updateDialogFilter.html | 160 +++++ .../constructor/updateDialogFilterOrder.html | 150 ++++ .../constructor/updateDialogFilters.html | 135 ++++ .../constructor/updateDialogPinned.html | 165 +++++ .../constructor/updateDialogUnreadMark.html | 157 +++++ .../constructor/updateDraftMessage.html | 155 ++++ .../constructor/updateEditChannelMessage.html | 162 +++++ .../constructor/updateEditMessage.html | 160 +++++ .../updateEncryptedChatTyping.html | 147 ++++ .../updateEncryptedMessagesRead.html | 157 +++++ .../constructor/updateEncryption.html | 152 ++++ .../constructor/updateFavedStickers.html | 135 ++++ .../constructor/updateFolderPeers.html | 162 +++++ .../constructor/updateGeoLiveViewed.html | 152 ++++ .../updateInlineBotCallbackQuery.html | 177 +++++ .../constructor/updateLangPack.html | 147 ++++ .../constructor/updateLangPackTooLong.html | 150 ++++ .../constructor/updateLoginToken.html | 132 ++++ .../constructor/updateMessageID.html | 155 ++++ .../constructor/updateMessagePoll.html | 162 +++++ .../constructor/updateMessagePollVote.html | 157 +++++ .../constructor/updateNewChannelMessage.html | 162 +++++ .../updateNewEncryptedMessage.html | 152 ++++ .../constructor/updateNewMessage.html | 157 +++++ .../updateNewScheduledMessage.html | 150 ++++ .../constructor/updateNewStickerSet.html | 147 ++++ .../constructor/updateNotifySettings.html | 152 ++++ .../constructor/updatePeerBlocked.html | 152 ++++ .../constructor/updatePeerLocated.html | 147 ++++ .../constructor/updatePeerSettings.html | 152 ++++ .../constructor/updatePhoneCall.html | 147 ++++ .../updatePhoneCallSignalingData.html | 152 ++++ .../updatePinnedChannelMessages.html | 177 +++++ .../constructor/updatePinnedDialogs.html | 160 +++++ .../constructor/updatePinnedMessages.html | 175 +++++ .../constructor/updatePrivacy.html | 152 ++++ .../constructor/updatePtsChanged.html | 135 ++++ .../updateReadChannelDiscussionInbox.html | 177 +++++ .../updateReadChannelDiscussionOutbox.html | 162 +++++ .../constructor/updateReadChannelInbox.html | 179 +++++ .../constructor/updateReadChannelOutbox.html | 155 ++++ .../updateReadFeaturedStickers.html | 132 ++++ .../constructor/updateReadHistoryInbox.html | 182 +++++ .../constructor/updateReadHistoryOutbox.html | 165 +++++ .../updateReadMessagesContents.html | 160 +++++ .../constructor/updateRecentStickers.html | 132 ++++ .../constructor/updateSavedGifs.html | 132 ++++ .../updateServiceNotification.html | 183 +++++ .../constructor/updateShort.html | 152 ++++ .../constructor/updateShortChatMessage.html | 227 ++++++ .../constructor/updateShortMessage.html | 224 ++++++ .../constructor/updateShortSentMessage.html | 187 +++++ .../constructor/updateStickerSets.html | 132 ++++ .../constructor/updateStickerSetsOrder.html | 157 +++++ .../constructor/updateTheme.html | 147 ++++ .../constructor/updateUserBlocked.html | 159 +++++ .../constructor/updateUserName.html | 167 +++++ .../constructor/updateUserPhone.html | 152 ++++ .../constructor/updateUserPhoto.html | 165 +++++ .../constructor/updateUserStatus.html | 152 ++++ .../constructor/updateUserTyping.html | 155 ++++ .../constructor/updateWebPage.html | 160 +++++ .../constructor/updates.channelDifference | 185 +++++ .../updates.channelDifferenceEmpty | 165 +++++ .../updates.channelDifferenceTooLong | 190 +++++ .../constructor/updates.difference | 172 +++++ .../constructor/updates.differenceEmpty | 152 ++++ .../constructor/updates.differenceSlice | 175 +++++ .../constructor/updates.differenceTooLong | 150 ++++ .../constructor/updates.html | 167 +++++ .../constructor/updates.state | 172 +++++ .../constructor/updatesCombined.html | 172 +++++ .../constructor/updatesTooLong.html | 135 ++++ .../constructor/upload.cdnFile | 149 ++++ .../constructor/upload.cdnFileReuploadNeeded | 149 ++++ .../core.telegram.org/constructor/upload.file | 157 +++++ .../constructor/upload.fileCdnRedirect | 169 +++++ .../constructor/upload.webFile | 170 +++++ .../constructor/urlAuthResultAccepted.html | 150 ++++ .../constructor/urlAuthResultDefault.html | 135 ++++ .../constructor/urlAuthResultRequest.html | 165 +++++ data/core.telegram.org/constructor/user.html | 282 ++++++++ .../constructor/userEmpty.html | 147 ++++ .../constructor/userForeign.html | 177 +++++ .../constructor/userFull.html | 229 ++++++ .../constructor/userProfilePhoto.html | 177 +++++ .../constructor/userProfilePhotoEmpty.html | 132 ++++ .../constructor/userRequest.html | 182 +++++ .../constructor/userStatusEmpty.html | 132 ++++ .../constructor/userStatusLastMonth.html | 132 ++++ .../constructor/userStatusLastWeek.html | 132 ++++ .../constructor/userStatusOffline.html | 147 ++++ .../constructor/userStatusOnline.html | 147 ++++ .../constructor/userStatusRecently.html | 132 ++++ .../core.telegram.org/constructor/vector.html | 134 ++++ .../constructor/videoSize.html | 180 +++++ .../constructor/wallPaper.html | 192 +++++ .../constructor/wallPaperNoFile.html | 162 +++++ .../constructor/wallPaperSettings.html | 177 +++++ .../constructor/wallPaperSolid.html | 162 +++++ .../constructor/webAuthorization.html | 189 +++++ .../constructor/webDocument.html | 167 +++++ .../constructor/webDocumentNoProxy.html | 165 +++++ .../constructor/webPage.html | 240 +++++++ .../constructor/webPageAttributeTheme.html | 157 +++++ .../constructor/webPageEmpty.html | 147 ++++ .../constructor/webPageNotModified.html | 152 ++++ .../constructor/webPagePending.html | 152 ++++ .../method/account.acceptAuthorization | 170 +++++ .../method/account.cancelPasswordEmail | 138 ++++ .../method/account.changePhone | 185 +++++ .../method/account.checkUsername | 167 +++++ .../method/account.confirmPasswordEmail | 175 +++++ .../method/account.confirmPhone | 180 +++++ .../method/account.createTheme | 169 +++++ .../method/account.deleteAccount | 170 +++++ .../method/account.deleteSecureValue | 153 ++++ .../method/account.finishTakeoutSession | 172 +++++ .../method/account.getAccountTTL | 134 ++++ .../method/account.getAllSecureValues | 136 ++++ .../method/account.getAuthorizationForm | 159 +++++ .../method/account.getAuthorizations | 134 ++++ .../method/account.getAutoDownloadSettings | 134 ++++ .../account.getContactSignUpNotification | 135 ++++ .../method/account.getContentSettings | 134 ++++ .../method/account.getGlobalPrivacySettings | 135 ++++ .../method/account.getMultiWallPapers | 148 ++++ .../method/account.getNotifyExceptions | 165 +++++ .../method/account.getNotifySettings | 166 +++++ .../method/account.getPassword | 134 ++++ .../method/account.getPasswordSettings | 170 +++++ .../method/account.getPrivacy | 166 +++++ .../method/account.getSecureValue | 151 ++++ .../core.telegram.org/method/account.getTheme | 181 +++++ .../method/account.getThemes | 158 +++++ .../method/account.getTmpPassword | 176 +++++ .../method/account.getWallPaper | 150 ++++ .../method/account.getWallPapers | 153 ++++ .../method/account.getWebAuthorizations | 136 ++++ .../method/account.initTakeoutSession | 204 ++++++ .../method/account.installTheme | 165 +++++ .../method/account.installWallPaper | 155 ++++ .../method/account.registerDevice | 202 ++++++ .../method/account.reportPeer | 177 +++++ .../method/account.resendPasswordEmail | 138 ++++ .../method/account.resetAuthorization | 175 +++++ .../method/account.resetNotifySettings | 135 ++++ .../method/account.resetWallPapers | 135 ++++ .../method/account.resetWebAuthorization | 154 ++++ .../method/account.resetWebAuthorizations | 137 ++++ .../method/account.saveAutoDownloadSettings | 165 +++++ .../method/account.saveSecureValue | 157 +++++ .../method/account.saveTheme | 155 ++++ .../method/account.saveWallPaper | 160 +++++ .../method/account.sendChangePhoneCode | 171 +++++ .../method/account.sendConfirmPhoneCode | 174 +++++ .../method/account.sendVerifyEmailCode | 151 ++++ .../method/account.sendVerifyPhoneCode | 156 +++++ .../method/account.setAccountTTL | 167 +++++ .../account.setContactSignUpNotification | 150 ++++ .../method/account.setContentSettings | 155 ++++ .../method/account.setGlobalPrivacySettings | 150 ++++ .../method/account.setPrivacy | 176 +++++ .../method/account.unregisterDevice | 180 +++++ .../method/account.updateDeviceLocked | 153 ++++ .../method/account.updateNotifySettings | 187 +++++ .../method/account.updatePasswordSettings | 202 ++++++ .../method/account.updateProfile | 187 +++++ .../method/account.updateStatus | 155 ++++ .../method/account.updateTheme | 179 +++++ .../method/account.updateUsername | 182 +++++ .../method/account.uploadTheme | 190 +++++ .../method/account.uploadWallPaper | 160 +++++ .../method/account.verifyEmail | 174 +++++ .../method/account.verifyPhone | 181 +++++ .../method/auth.acceptLoginToken | 171 +++++ .../method/auth.bindTempAuthKey | 257 +++++++ data/core.telegram.org/method/auth.cancelCode | 180 +++++ .../method/auth.checkPassword | 180 +++++ data/core.telegram.org/method/auth.checkPhone | 176 +++++ .../method/auth.dropTempAuthKeys | 151 ++++ .../method/auth.exportAuthorization | 167 +++++ .../method/auth.exportLoginToken | 166 +++++ .../method/auth.importAuthorization | 178 +++++ .../method/auth.importBotAuthorization | 200 ++++++ .../method/auth.importLoginToken | 172 +++++ data/core.telegram.org/method/auth.logOut | 140 ++++ .../method/auth.recoverPassword | 172 +++++ .../method/auth.requestPasswordRecovery | 154 ++++ data/core.telegram.org/method/auth.resendCode | 186 +++++ .../method/auth.resetAuthorizations | 156 +++++ data/core.telegram.org/method/auth.sendCall | 187 +++++ data/core.telegram.org/method/auth.sendCode | 241 +++++++ .../core.telegram.org/method/auth.sendInvites | 157 +++++ data/core.telegram.org/method/auth.sendSms | 179 +++++ data/core.telegram.org/method/auth.signIn | 219 ++++++ data/core.telegram.org/method/auth.signUp | 241 +++++++ .../method/bots.answerWebhookJSONQuery | 178 +++++ .../method/bots.sendCustomRequest | 177 +++++ .../method/bots.setBotCommands | 151 ++++ .../method/channels.checkUsername | 190 +++++ .../method/channels.createChannel | 220 ++++++ .../method/channels.deleteChannel | 195 ++++++ .../method/channels.deleteHistory | 180 +++++ .../method/channels.deleteMessages | 190 +++++ .../method/channels.deleteUserHistory | 199 ++++++ .../method/channels.editAdmin | 291 ++++++++ .../method/channels.editBanned | 221 ++++++ .../method/channels.editCreator | 215 ++++++ .../method/channels.editLocation | 180 +++++ .../method/channels.editPhoto | 211 ++++++ .../method/channels.editTitle | 201 ++++++ .../method/channels.exportMessageLink | 204 ++++++ .../method/channels.getAdminLog | 226 ++++++ .../method/channels.getAdminedPublicChannels | 191 +++++ .../method/channels.getChannels | 181 +++++ .../method/channels.getFullChannel | 182 +++++ .../method/channels.getGroupsForDiscussion | 144 ++++ .../method/channels.getInactiveChannels | 134 ++++ .../method/channels.getLeftChannels | 172 +++++ .../method/channels.getMessages | 193 +++++ .../method/channels.getParticipant | 200 ++++++ .../method/channels.getParticipants | 208 ++++++ .../method/channels.inviteToChannel | 262 +++++++ .../method/channels.joinChannel | 222 ++++++ .../method/channels.leaveChannel | 201 ++++++ .../method/channels.readHistory | 185 +++++ .../method/channels.readMessageContents | 185 +++++ .../method/channels.reportSpam | 192 +++++ .../method/channels.setDiscussionGroup | 185 +++++ .../method/channels.setStickers | 178 +++++ .../method/channels.togglePreHistoryHidden | 202 ++++++ .../method/channels.toggleSignatures | 182 +++++ .../method/channels.toggleSlowMode | 200 ++++++ .../method/channels.updateUsername | 212 ++++++ .../method/contacts.acceptContact | 185 +++++ .../method/contacts.addContact | 212 ++++++ data/core.telegram.org/method/contacts.block | 182 +++++ .../method/contacts.blockFromReplies | 179 +++++ .../method/contacts.deleteByPhones | 150 ++++ .../method/contacts.deleteContacts | 155 ++++ .../method/contacts.getBlocked | 155 ++++ .../method/contacts.getContactIDs | 151 ++++ .../method/contacts.getContacts | 155 ++++ .../method/contacts.getLocated | 192 +++++ .../method/contacts.getSaved | 150 ++++ .../method/contacts.getStatuses | 133 ++++ .../method/contacts.getTopPeers | 226 ++++++ .../method/contacts.importContacts | 154 ++++ .../method/contacts.resetSaved | 135 ++++ .../method/contacts.resetTopPeerRating | 175 +++++ .../method/contacts.resolveUsername | 187 +++++ data/core.telegram.org/method/contacts.search | 178 +++++ .../method/contacts.toggleTopPeers | 153 ++++ .../core.telegram.org/method/contacts.unblock | 167 +++++ .../method/folders.deleteFolder | 158 +++++ .../method/folders.editPeerFolders | 175 +++++ .../method/help.acceptTermsOfService | 150 ++++ .../method/help.dismissSuggestion | 151 ++++ .../method/help.editUserInfo | 163 +++++ .../method/help.getAppChangelog | 162 +++++ .../method/help.getAppConfig | 142 ++++ .../method/help.getAppUpdate | 150 ++++ .../method/help.getCdnConfig | 154 ++++ data/core.telegram.org/method/help.getConfig | 202 ++++++ .../method/help.getCountriesList | 159 +++++ .../method/help.getDeepLinkInfo | 150 ++++ .../method/help.getInviteText | 134 ++++ .../method/help.getNearestDc | 134 ++++ .../method/help.getPassportConfig | 154 ++++ .../method/help.getPromoData | 136 ++++ .../method/help.getProxyData | 132 ++++ .../method/help.getRecentMeUrls | 149 ++++ data/core.telegram.org/method/help.getSupport | 134 ++++ .../method/help.getSupportName | 151 ++++ .../method/help.getTermsOfServiceUpdate | 135 ++++ .../core.telegram.org/method/help.getUserInfo | 167 +++++ .../method/help.hidePromoData | 151 ++++ data/core.telegram.org/method/help.saveAppLog | 150 ++++ .../method/help.setBotUpdatesStatus | 156 +++++ .../method/initConnection.html | 216 ++++++ .../method/invokeAfterMsg.html | 154 ++++ .../method/invokeAfterMsgs.html | 154 ++++ .../method/invokeWithLayer.html | 219 ++++++ .../method/invokeWithMessagesRange.html | 154 ++++ .../method/invokeWithTakeout.html | 171 +++++ .../method/invokeWithoutUpdates.html | 154 ++++ .../method/langpack.getDifference | 176 +++++ .../method/langpack.getLangPack | 171 +++++ .../method/langpack.getLanguage | 154 ++++ .../method/langpack.getLanguages | 165 +++++ .../method/langpack.getStrings | 175 +++++ .../method/messages.acceptEncryption | 190 +++++ .../method/messages.acceptUrlAuth | 174 +++++ .../method/messages.addChatUser | 227 ++++++ .../method/messages.checkChatInvite | 178 +++++ .../method/messages.clearAllDrafts | 138 ++++ .../method/messages.clearRecentStickers | 155 ++++ .../method/messages.createChat | 197 ++++++ .../method/messages.deleteChatUser | 198 ++++++ .../method/messages.deleteHistory | 201 ++++++ .../method/messages.deleteMessages | 177 +++++ .../method/messages.deleteScheduledMessages | 160 +++++ .../method/messages.discardEncryption | 177 +++++ .../method/messages.editChatAbout | 211 ++++++ .../method/messages.editChatAdmin | 195 ++++++ .../messages.editChatDefaultBannedRights | 201 ++++++ .../method/messages.editChatPhoto | 208 ++++++ .../method/messages.editChatTitle | 193 +++++ .../method/messages.editInlineBotMessage | 206 ++++++ .../method/messages.editMessage | 323 +++++++++ .../method/messages.exportChatInvite | 188 +++++ .../method/messages.faveSticker | 172 +++++ .../method/messages.forwardMessage | 177 +++++ .../method/messages.forwardMessages | 343 +++++++++ .../method/messages.getAllChats | 150 ++++ .../method/messages.getAllDrafts | 143 ++++ .../method/messages.getAllStickers | 153 ++++ .../method/messages.getArchivedStickers | 167 +++++ .../method/messages.getAttachedStickers | 148 ++++ .../method/messages.getBotCallbackAnswer | 226 ++++++ .../method/messages.getChats | 173 +++++ .../method/messages.getCommonChats | 185 +++++ .../method/messages.getDhConfig | 175 +++++ .../method/messages.getDialogFilters | 136 ++++ .../method/messages.getDialogUnreadMarks | 133 ++++ .../method/messages.getDialogs | 218 ++++++ .../method/messages.getDiscussionMessage | 162 +++++ .../method/messages.getDocumentByHash | 178 +++++ .../method/messages.getEmojiKeywords | 149 ++++ .../messages.getEmojiKeywordsDifference | 154 ++++ .../method/messages.getEmojiKeywordsLanguages | 148 ++++ .../method/messages.getEmojiURL | 149 ++++ .../method/messages.getFavedStickers | 153 ++++ .../method/messages.getFeaturedStickers | 153 ++++ .../method/messages.getFullChat | 172 +++++ .../method/messages.getGameHighScores | 187 +++++ .../method/messages.getHistory | 237 +++++++ .../method/messages.getInlineBotResults | 221 ++++++ .../method/messages.getInlineGameHighScores | 177 +++++ .../method/messages.getMaskStickers | 153 ++++ .../method/messages.getMessageEditData | 186 +++++ .../method/messages.getMessageReactionsList | 178 +++++ .../method/messages.getMessages | 153 ++++ .../method/messages.getMessagesReactions | 153 ++++ .../method/messages.getMessagesViews | 199 ++++++ .../method/messages.getOldFeaturedStickers | 163 +++++ .../method/messages.getOnlines | 171 +++++ .../method/messages.getPeerDialogs | 186 +++++ .../method/messages.getPeerSettings | 171 +++++ .../method/messages.getPinnedDialogs | 169 +++++ .../method/messages.getPollResults | 177 +++++ .../method/messages.getPollVotes | 204 ++++++ .../method/messages.getRecentLocations | 165 +++++ .../method/messages.getRecentStickers | 163 +++++ .../method/messages.getReplies | 196 ++++++ .../method/messages.getSavedGifs | 153 ++++ .../method/messages.getScheduledHistory | 182 +++++ .../method/messages.getScheduledMessages | 179 +++++ .../method/messages.getSearchCounters | 156 +++++ .../method/messages.getSplitRanges | 133 ++++ .../method/messages.getStatsURL | 181 +++++ .../method/messages.getStickerSet | 167 +++++ .../method/messages.getStickers | 158 +++++ .../method/messages.getSuggestedDialogFilters | 136 ++++ .../method/messages.getUnreadMentions | 207 ++++++ .../method/messages.getWebPage | 177 +++++ .../method/messages.getWebPagePreview | 191 +++++ .../method/messages.hidePeerSettingsBar | 153 ++++ .../method/messages.importChatInvite | 222 ++++++ .../method/messages.installStickerSet | 172 +++++ .../method/messages.markDialogUnread | 160 +++++ .../method/messages.migrateChat | 185 +++++ .../method/messages.readDiscussion | 164 +++++ .../method/messages.readEncryptedHistory | 172 +++++ .../method/messages.readFeaturedStickers | 150 ++++ .../method/messages.readHistory | 181 +++++ .../method/messages.readMentions | 181 +++++ .../method/messages.readMessageContents | 149 ++++ .../method/messages.receivedMessages | 148 ++++ .../method/messages.receivedQueue | 165 +++++ .../method/messages.reorderPinnedDialogs | 185 +++++ .../method/messages.reorderStickerSets | 160 +++++ data/core.telegram.org/method/messages.report | 177 +++++ .../method/messages.reportEncryptedSpam | 167 +++++ .../method/messages.reportSpam | 175 +++++ .../method/messages.requestEncryption | 185 +++++ .../method/messages.requestUrlAuth | 164 +++++ .../method/messages.saveDraft | 197 ++++++ .../core.telegram.org/method/messages.saveGif | 172 +++++ .../method/messages.saveRecentSticker | 182 +++++ data/core.telegram.org/method/messages.search | 286 ++++++++ .../method/messages.searchGifs | 172 +++++ .../method/messages.searchGlobal | 226 ++++++ .../method/messages.searchStickerSets | 168 +++++ .../method/messages.sendBroadcast | 145 ++++ .../method/messages.sendEncrypted | 205 ++++++ .../method/messages.sendEncryptedFile | 210 ++++++ .../method/messages.sendEncryptedService | 200 ++++++ .../method/messages.sendInlineBotResult | 329 +++++++++ .../method/messages.sendMedia | 438 ++++++++++++ .../method/messages.sendMessage | 378 ++++++++++ .../method/messages.sendMultiMedia | 238 +++++++ .../method/messages.sendReaction | 185 +++++ .../method/messages.sendScheduledMessages | 177 +++++ .../messages.sendScreenshotNotification | 182 +++++ .../method/messages.sendVote | 205 ++++++ .../method/messages.setBotCallbackAnswer | 198 ++++++ .../method/messages.setBotPrecheckoutResults | 188 +++++ .../method/messages.setBotShippingResults | 186 +++++ .../method/messages.setEncryptedTyping | 177 +++++ .../method/messages.setGameScore | 213 ++++++ .../method/messages.setInlineBotResults | 313 +++++++++ .../method/messages.setInlineGameScore | 198 ++++++ .../method/messages.setTyping | 240 +++++++ .../method/messages.startBot | 219 ++++++ .../method/messages.toggleDialogPin | 177 +++++ .../method/messages.toggleStickerSets | 170 +++++ .../method/messages.uninstallStickerSet | 167 +++++ .../method/messages.unpinAllMessages | 153 ++++ .../method/messages.updateDialogFilter | 180 +++++ .../method/messages.updateDialogFiltersOrder | 153 ++++ .../method/messages.updatePinnedMessage | 223 ++++++ .../method/messages.uploadEncryptedFile | 155 ++++ .../method/messages.uploadMedia | 254 +++++++ .../method/payments.clearSavedInfo | 160 +++++ .../method/payments.getBankCardData | 149 ++++ .../method/payments.getPaymentForm | 166 +++++ .../method/payments.getPaymentReceipt | 166 +++++ .../method/payments.getSavedInfo | 134 ++++ .../method/payments.sendPaymentForm | 190 +++++ .../method/payments.validateRequestedInfo | 181 +++++ .../core.telegram.org/method/phone.acceptCall | 193 +++++ .../method/phone.confirmCall | 188 +++++ .../method/phone.discardCall | 202 ++++++ .../method/phone.getCallConfig | 134 ++++ .../method/phone.receivedCall | 172 +++++ .../method/phone.requestCall | 213 ++++++ .../method/phone.saveCallDebug | 177 +++++ .../method/phone.sendSignalingData | 156 +++++ .../method/phone.setCallRating | 192 +++++ .../method/photos.deletePhotos | 148 ++++ .../method/photos.getUserPhotos | 188 +++++ .../method/photos.updateProfilePhoto | 191 +++++ .../method/photos.uploadProfilePhoto | 216 ++++++ .../method/stats.getBroadcastStats | 194 +++++ .../method/stats.getMegagroupStats | 165 +++++ .../method/stats.getMessagePublicForwards | 208 ++++++ .../method/stats.getMessageStats | 185 +++++ .../method/stats.loadAsyncGraph | 188 +++++ .../method/stickers.addStickerToSet | 177 +++++ .../method/stickers.changeStickerPosition | 177 +++++ .../method/stickers.createStickerSet | 257 +++++++ .../method/stickers.removeStickerFromSet | 172 +++++ .../method/stickers.setStickerSetThumb | 172 +++++ .../method/updates.getChannelDifference | 237 +++++++ .../method/updates.getDifference | 215 ++++++ .../core.telegram.org/method/updates.getState | 135 ++++ .../method/upload.getCdnFile | 162 +++++ .../method/upload.getCdnFileHashes | 178 +++++ data/core.telegram.org/method/upload.getFile | 252 +++++++ .../method/upload.getFileHashes | 171 +++++ .../method/upload.getWebFile | 176 +++++ .../method/upload.reuploadCdnFile | 173 +++++ .../method/upload.saveBigFilePart | 208 ++++++ .../method/upload.saveFilePart | 183 +++++ .../method/users.getFullUser | 177 +++++ data/core.telegram.org/method/users.getUsers | 186 +++++ .../method/users.setSecureValueErrors | 176 +++++ .../mtproto/mtproto-transports.html | 293 ++++++++ .../type/AccountDaysTTL.html | 162 +++++ data/core.telegram.org/type/Audio.html | 128 ++++ .../core.telegram.org/type/Authorization.html | 162 +++++ .../type/AutoDownloadSettings.html | 143 ++++ .../type/BankCardOpenUrl.html | 143 ++++ data/core.telegram.org/type/BaseTheme.html | 163 +++++ data/core.telegram.org/type/Bool.html | 662 ++++++++++++++++++ data/core.telegram.org/type/BotCommand.html | 143 ++++ data/core.telegram.org/type/BotInfo.html | 143 ++++ .../type/BotInlineMessage.html | 163 +++++ .../type/BotInlineResult.html | 148 ++++ data/core.telegram.org/type/CdnConfig.html | 164 +++++ data/core.telegram.org/type/CdnPublicKey.html | 145 ++++ .../type/ChannelAdminLogEvent.html | 143 ++++ .../type/ChannelAdminLogEventAction.html | 243 +++++++ .../type/ChannelAdminLogEventsFilter.html | 143 ++++ .../type/ChannelLocation.html | 148 ++++ .../type/ChannelMessagesFilter.html | 148 ++++ .../type/ChannelParticipant.html | 164 +++++ .../type/ChannelParticipantsFilter.html | 178 +++++ data/core.telegram.org/type/Chat.html | 163 +++++ .../type/ChatAdminRights.html | 146 ++++ .../type/ChatBannedRights.html | 146 ++++ data/core.telegram.org/type/ChatFull.html | 148 ++++ data/core.telegram.org/type/ChatInvite.html | 172 +++++ data/core.telegram.org/type/ChatOnlines.html | 162 +++++ .../type/ChatParticipant.html | 153 ++++ .../type/ChatParticipants.html | 148 ++++ data/core.telegram.org/type/ChatPhoto.html | 148 ++++ data/core.telegram.org/type/CodeSettings.html | 143 ++++ data/core.telegram.org/type/Config.html | 162 +++++ data/core.telegram.org/type/Contact.html | 143 ++++ .../core.telegram.org/type/ContactStatus.html | 143 ++++ data/core.telegram.org/type/DataJSON.html | 168 +++++ data/core.telegram.org/type/DcOption.html | 143 ++++ .../type/DecryptedDataBlock.html | 128 ++++ .../type/DecryptedMessage.html | 140 ++++ .../type/DecryptedMessageAction.html | 145 ++++ .../type/DecryptedMessageLayer.html | 129 ++++ .../type/DecryptedMessageMedia.html | 149 ++++ data/core.telegram.org/type/Dialog.html | 148 ++++ data/core.telegram.org/type/DialogFilter.html | 143 ++++ .../type/DialogFilterSuggested.html | 143 ++++ data/core.telegram.org/type/DialogPeer.html | 148 ++++ .../type/DisabledFeature.html | 128 ++++ data/core.telegram.org/type/Document.html | 173 +++++ .../type/DocumentAttribute.html | 173 +++++ data/core.telegram.org/type/DraftMessage.html | 151 ++++ data/core.telegram.org/type/EmojiKeyword.html | 148 ++++ .../type/EmojiKeywordsDifference.html | 167 +++++ .../core.telegram.org/type/EmojiLanguage.html | 143 ++++ data/core.telegram.org/type/EmojiURL.html | 162 +++++ .../core.telegram.org/type/EncryptedChat.html | 187 +++++ .../core.telegram.org/type/EncryptedFile.html | 167 +++++ .../type/EncryptedMessage.html | 148 ++++ data/core.telegram.org/type/Error.html | 143 ++++ .../type/ExportedChatInvite.html | 167 +++++ .../type/ExportedMessageLink.html | 162 +++++ data/core.telegram.org/type/FileHash.html | 143 ++++ data/core.telegram.org/type/FileLocation.html | 143 ++++ data/core.telegram.org/type/Folder.html | 143 ++++ data/core.telegram.org/type/FolderPeer.html | 143 ++++ data/core.telegram.org/type/Game.html | 143 ++++ data/core.telegram.org/type/GeoPoint.html | 148 ++++ .../type/GlobalPrivacySettings.html | 167 +++++ data/core.telegram.org/type/HighScore.html | 143 ++++ .../type/ImportedContact.html | 143 ++++ .../type/InlineBotSwitchPM.html | 143 ++++ .../core.telegram.org/type/InputAppEvent.html | 143 ++++ .../type/InputBotInlineMessage.html | 168 +++++ .../type/InputBotInlineMessageID.html | 143 ++++ .../type/InputBotInlineResult.html | 158 +++++ data/core.telegram.org/type/InputChannel.html | 153 ++++ .../type/InputChatPhoto.html | 153 ++++ .../type/InputCheckPasswordSRP.html | 151 ++++ .../type/InputClientProxy.html | 145 ++++ data/core.telegram.org/type/InputContact.html | 143 ++++ .../type/InputDialogPeer.html | 148 ++++ .../core.telegram.org/type/InputDocument.html | 148 ++++ .../type/InputEncryptedChat.html | 143 ++++ .../type/InputEncryptedFile.html | 158 +++++ data/core.telegram.org/type/InputFile.html | 148 ++++ .../type/InputFileLocation.html | 183 +++++ .../type/InputFolderPeer.html | 143 ++++ data/core.telegram.org/type/InputGame.html | 148 ++++ .../core.telegram.org/type/InputGeoPoint.html | 148 ++++ data/core.telegram.org/type/InputMedia.html | 213 ++++++ data/core.telegram.org/type/InputMessage.html | 158 +++++ .../type/InputNotifyPeer.html | 158 +++++ .../type/InputPaymentCredentials.html | 158 +++++ data/core.telegram.org/type/InputPeer.html | 173 +++++ .../type/InputPeerNotifySettings.html | 143 ++++ .../type/InputPhoneCall.html | 143 ++++ data/core.telegram.org/type/InputPhoto.html | 148 ++++ .../type/InputPrivacyKey.html | 178 +++++ .../type/InputPrivacyRule.html | 178 +++++ .../type/InputSecureFile.html | 151 ++++ .../type/InputSecureValue.html | 145 ++++ .../type/InputSingleMedia.html | 148 ++++ .../type/InputStickerSet.html | 163 +++++ .../type/InputStickerSetItem.html | 143 ++++ .../type/InputStickeredMedia.html | 148 ++++ data/core.telegram.org/type/InputTheme.html | 148 ++++ .../type/InputThemeSettings.html | 143 ++++ data/core.telegram.org/type/InputUser.html | 158 +++++ .../type/InputWallPaper.html | 153 ++++ .../type/InputWebDocument.html | 143 ++++ .../type/InputWebFileLocation.html | 148 ++++ data/core.telegram.org/type/Invoice.html | 143 ++++ .../type/JSONObjectValue.html | 143 ++++ data/core.telegram.org/type/JSONValue.html | 187 +++++ .../type/KeyboardButton.html | 193 +++++ .../type/KeyboardButtonRow.html | 143 ++++ data/core.telegram.org/type/LabeledPrice.html | 143 ++++ .../type/LangPackDifference.html | 167 +++++ .../type/LangPackLanguage.html | 162 +++++ .../type/LangPackString.html | 153 ++++ data/core.telegram.org/type/MaskCoords.html | 143 ++++ data/core.telegram.org/type/Message.html | 153 ++++ .../core.telegram.org/type/MessageAction.html | 258 +++++++ .../core.telegram.org/type/MessageEntity.html | 233 ++++++ .../type/MessageFwdHeader.html | 143 ++++ .../type/MessageInteractionCounters.html | 143 ++++ data/core.telegram.org/type/MessageMedia.html | 227 ++++++ data/core.telegram.org/type/MessageRange.html | 143 ++++ .../type/MessageReactionsList.html | 128 ++++ .../type/MessageReplies.html | 146 ++++ .../type/MessageReplyHeader.html | 143 ++++ .../type/MessageUserVote.html | 153 ++++ data/core.telegram.org/type/MessageViews.html | 143 ++++ .../type/MessagesFilter.html | 223 ++++++ data/core.telegram.org/type/NearestDc.html | 162 +++++ data/core.telegram.org/type/NotifyPeer.html | 158 +++++ data/core.telegram.org/type/Null.html | 143 ++++ data/core.telegram.org/type/Page.html | 143 ++++ data/core.telegram.org/type/PageBlock.html | 283 ++++++++ data/core.telegram.org/type/PageCaption.html | 143 ++++ data/core.telegram.org/type/PageListItem.html | 148 ++++ .../type/PageListOrderedItem.html | 148 ++++ .../type/PageRelatedArticle.html | 143 ++++ .../core.telegram.org/type/PageTableCell.html | 143 ++++ data/core.telegram.org/type/PageTableRow.html | 143 ++++ .../type/PasswordKdfAlgo.html | 151 ++++ .../core.telegram.org/type/PaymentCharge.html | 143 ++++ .../type/PaymentRequestedInfo.html | 143 ++++ .../type/PaymentSavedCredentials.html | 143 ++++ data/core.telegram.org/type/Peer.html | 153 ++++ data/core.telegram.org/type/PeerBlocked.html | 143 ++++ data/core.telegram.org/type/PeerLocated.html | 148 ++++ .../type/PeerNotifySettings.html | 162 +++++ data/core.telegram.org/type/PeerSettings.html | 162 +++++ data/core.telegram.org/type/PhoneCall.html | 168 +++++ .../type/PhoneCallDiscardReason.html | 158 +++++ .../type/PhoneCallProtocol.html | 143 ++++ .../type/PhoneConnection.html | 148 ++++ data/core.telegram.org/type/Photo.html | 148 ++++ data/core.telegram.org/type/PhotoSize.html | 168 +++++ data/core.telegram.org/type/Poll.html | 143 ++++ data/core.telegram.org/type/PollAnswer.html | 146 ++++ .../type/PollAnswerVoters.html | 143 ++++ data/core.telegram.org/type/PollResults.html | 143 ++++ .../type/PopularContact.html | 143 ++++ data/core.telegram.org/type/PostAddress.html | 143 ++++ data/core.telegram.org/type/PrivacyKey.html | 178 +++++ data/core.telegram.org/type/PrivacyRule.html | 178 +++++ .../type/ReceivedNotifyMessage.html | 143 ++++ data/core.telegram.org/type/RecentMeUrl.html | 163 +++++ data/core.telegram.org/type/ReplyMarkup.html | 158 +++++ data/core.telegram.org/type/ReportReason.html | 173 +++++ .../type/RestrictionReason.html | 143 ++++ data/core.telegram.org/type/RichText.html | 218 ++++++ data/core.telegram.org/type/SavedContact.html | 143 ++++ .../type/SecureCredentialsEncrypted.html | 143 ++++ data/core.telegram.org/type/SecureData.html | 146 ++++ data/core.telegram.org/type/SecureFile.html | 151 ++++ .../type/SecurePasswordKdfAlgo.html | 155 ++++ .../type/SecurePlainData.html | 150 ++++ .../type/SecureRequiredType.html | 148 ++++ .../type/SecureSecretSettings.html | 145 ++++ data/core.telegram.org/type/SecureValue.html | 162 +++++ .../type/SecureValueError.html | 183 +++++ .../type/SecureValueHash.html | 143 ++++ .../type/SecureValueType.html | 203 ++++++ .../type/SendMessageAction.html | 203 ++++++ .../type/ShippingOption.html | 143 ++++ .../type/StatsAbsValueAndPrev.html | 143 ++++ .../type/StatsDateRangeDays.html | 143 ++++ data/core.telegram.org/type/StatsGraph.html | 172 +++++ .../type/StatsGroupTopAdmin.html | 146 ++++ .../type/StatsGroupTopInviter.html | 146 ++++ .../type/StatsGroupTopPoster.html | 146 ++++ .../type/StatsPercentValue.html | 143 ++++ data/core.telegram.org/type/StatsURL.html | 162 +++++ data/core.telegram.org/type/StickerPack.html | 143 ++++ data/core.telegram.org/type/StickerSet.html | 143 ++++ .../type/StickerSetCovered.html | 148 ++++ data/core.telegram.org/type/Theme.html | 172 +++++ .../core.telegram.org/type/ThemeSettings.html | 143 ++++ data/core.telegram.org/type/TopPeer.html | 143 ++++ .../type/TopPeerCategory.html | 178 +++++ .../type/TopPeerCategoryPeers.html | 143 ++++ data/core.telegram.org/type/True.html | 145 ++++ data/core.telegram.org/type/Update.html | 562 +++++++++++++++ data/core.telegram.org/type/Updates.html | 428 +++++++++++ .../core.telegram.org/type/UrlAuthResult.html | 177 +++++ data/core.telegram.org/type/User.html | 177 +++++ data/core.telegram.org/type/UserFull.html | 162 +++++ .../type/UserProfilePhoto.html | 148 ++++ data/core.telegram.org/type/UserStatus.html | 168 +++++ data/core.telegram.org/type/Vector t.html | 143 ++++ data/core.telegram.org/type/Video.html | 128 ++++ data/core.telegram.org/type/VideoSize.html | 143 ++++ data/core.telegram.org/type/WallPaper.html | 172 +++++ .../type/WallPaperSettings.html | 143 ++++ .../type/WebAuthorization.html | 143 ++++ data/core.telegram.org/type/WebDocument.html | 148 ++++ data/core.telegram.org/type/WebPage.html | 177 +++++ .../type/WebPageAttribute.html | 143 ++++ .../type/account.AuthorizationForm | 162 +++++ .../type/account.Authorizations | 162 +++++ .../type/account.AutoDownloadSettings | 162 +++++ .../type/account.ContentSettings | 162 +++++ data/core.telegram.org/type/account.Password | 162 +++++ .../type/account.PasswordInputSettings | 146 ++++ .../type/account.PasswordSettings | 164 +++++ .../type/account.PrivacyRules | 167 +++++ .../type/account.SentChangePhoneCode | 128 ++++ .../type/account.SentEmailCode | 162 +++++ data/core.telegram.org/type/account.Takeout | 162 +++++ data/core.telegram.org/type/account.Themes | 167 +++++ .../type/account.TmpPassword | 162 +++++ .../core.telegram.org/type/account.WallPapers | 167 +++++ .../type/account.WebAuthorizations | 162 +++++ .../core.telegram.org/type/auth.Authorization | 192 +++++ data/core.telegram.org/type/auth.CheckedPhone | 128 ++++ data/core.telegram.org/type/auth.CodeType | 153 ++++ .../type/auth.ExportedAuthorization | 162 +++++ data/core.telegram.org/type/auth.LoginToken | 177 +++++ .../type/auth.PasswordRecovery | 165 +++++ data/core.telegram.org/type/auth.SentCode | 183 +++++ data/core.telegram.org/type/auth.SentCodeType | 158 +++++ data/core.telegram.org/type/bytes.html | 125 ++++ .../type/channels.AdminLogResults | 162 +++++ .../type/channels.ChannelParticipant | 162 +++++ .../type/channels.ChannelParticipants | 167 +++++ data/core.telegram.org/type/contacts.Blocked | 167 +++++ data/core.telegram.org/type/contacts.Contacts | 167 +++++ data/core.telegram.org/type/contacts.Found | 162 +++++ .../type/contacts.ImportedContacts | 162 +++++ data/core.telegram.org/type/contacts.Link | 128 ++++ .../type/contacts.ResolvedPeer | 162 +++++ data/core.telegram.org/type/contacts.TopPeers | 172 +++++ data/core.telegram.org/type/double.html | 118 ++++ data/core.telegram.org/type/help.AppUpdate | 167 +++++ .../core.telegram.org/type/help.CountriesList | 167 +++++ data/core.telegram.org/type/help.Country | 143 ++++ data/core.telegram.org/type/help.CountryCode | 143 ++++ data/core.telegram.org/type/help.DeepLinkInfo | 167 +++++ data/core.telegram.org/type/help.InviteText | 162 +++++ .../type/help.PassportConfig | 169 +++++ data/core.telegram.org/type/help.PromoData | 167 +++++ data/core.telegram.org/type/help.ProxyData | 130 ++++ data/core.telegram.org/type/help.RecentMeUrls | 162 +++++ data/core.telegram.org/type/help.Support | 162 +++++ data/core.telegram.org/type/help.SupportName | 162 +++++ .../type/help.TermsOfService | 143 ++++ .../type/help.TermsOfServiceUpdate | 167 +++++ data/core.telegram.org/type/help.UserInfo | 172 +++++ data/core.telegram.org/type/int.html | 118 ++++ data/core.telegram.org/type/long.html | 118 ++++ .../type/messages.AffectedHistory | 178 +++++ .../type/messages.AffectedMessages | 178 +++++ .../type/messages.AllStickers | 172 +++++ .../type/messages.ArchivedStickers | 162 +++++ .../type/messages.BotCallbackAnswer | 162 +++++ .../type/messages.BotResults | 162 +++++ data/core.telegram.org/type/messages.ChatFull | 168 +++++ data/core.telegram.org/type/messages.Chats | 198 ++++++ data/core.telegram.org/type/messages.DhConfig | 167 +++++ data/core.telegram.org/type/messages.Dialogs | 172 +++++ .../type/messages.DiscussionMessage | 162 +++++ .../type/messages.FavedStickers | 167 +++++ .../type/messages.FeaturedStickers | 172 +++++ .../core.telegram.org/type/messages.FoundGifs | 128 ++++ .../type/messages.FoundStickerSets | 167 +++++ .../type/messages.HighScores | 167 +++++ .../type/messages.InactiveChats | 162 +++++ .../type/messages.MessageEditData | 162 +++++ .../type/messages.MessageViews | 162 +++++ data/core.telegram.org/type/messages.Messages | 229 ++++++ .../type/messages.PeerDialogs | 167 +++++ .../type/messages.RecentStickers | 167 +++++ .../core.telegram.org/type/messages.SavedGifs | 167 +++++ .../type/messages.SearchCounter | 143 ++++ .../type/messages.SentEncryptedMessage | 177 +++++ .../type/messages.SentMessage | 128 ++++ .../type/messages.StatedMessage | 128 ++++ .../type/messages.StatedMessages | 128 ++++ .../type/messages.StickerSet | 188 +++++ .../type/messages.StickerSetInstallResult | 167 +++++ data/core.telegram.org/type/messages.Stickers | 167 +++++ .../core.telegram.org/type/messages.VotesList | 162 +++++ .../type/payments.BankCardData | 162 +++++ .../type/payments.PaymentForm | 162 +++++ .../type/payments.PaymentReceipt | 162 +++++ .../type/payments.PaymentResult | 167 +++++ .../core.telegram.org/type/payments.SavedInfo | 162 +++++ .../type/payments.ValidatedRequestedInfo | 162 +++++ data/core.telegram.org/type/phone.PhoneCall | 172 +++++ data/core.telegram.org/type/photos.Photo | 167 +++++ data/core.telegram.org/type/photos.Photos | 167 +++++ .../type/stats.BroadcastStats | 162 +++++ .../type/stats.MegagroupStats | 162 +++++ .../core.telegram.org/type/stats.MessageStats | 162 +++++ data/core.telegram.org/type/storage.FileType | 188 +++++ data/core.telegram.org/type/string.html | 126 ++++ .../type/updates.ChannelDifference | 172 +++++ .../core.telegram.org/type/updates.Difference | 177 +++++ data/core.telegram.org/type/updates.State | 162 +++++ data/core.telegram.org/type/upload.CdnFile | 167 +++++ data/core.telegram.org/type/upload.File | 167 +++++ data/core.telegram.org/type/upload.WebFile | 162 +++++ 1577 files changed, 255650 insertions(+) create mode 100644 data/core.telegram.org/api/pattern.html create mode 100644 data/core.telegram.org/constructor/account.authorizationForm create mode 100644 data/core.telegram.org/constructor/account.authorizations create mode 100644 data/core.telegram.org/constructor/account.autoDownloadSettings create mode 100644 data/core.telegram.org/constructor/account.contentSettings create mode 100644 data/core.telegram.org/constructor/account.password create mode 100644 data/core.telegram.org/constructor/account.passwordInputSettings create mode 100644 data/core.telegram.org/constructor/account.passwordSettings create mode 100644 data/core.telegram.org/constructor/account.privacyRules create mode 100644 data/core.telegram.org/constructor/account.sentChangePhoneCode create mode 100644 data/core.telegram.org/constructor/account.sentEmailCode create mode 100644 data/core.telegram.org/constructor/account.takeout create mode 100644 data/core.telegram.org/constructor/account.themes create mode 100644 data/core.telegram.org/constructor/account.themesNotModified create mode 100644 data/core.telegram.org/constructor/account.tmpPassword create mode 100644 data/core.telegram.org/constructor/account.wallPapers create mode 100644 data/core.telegram.org/constructor/account.wallPapersNotModified create mode 100644 data/core.telegram.org/constructor/account.webAuthorizations create mode 100644 data/core.telegram.org/constructor/accountDaysTTL.html create mode 100644 data/core.telegram.org/constructor/auth.authorization create mode 100644 data/core.telegram.org/constructor/auth.authorizationSignUpRequired create mode 100644 data/core.telegram.org/constructor/auth.codeTypeCall create mode 100644 data/core.telegram.org/constructor/auth.codeTypeFlashCall create mode 100644 data/core.telegram.org/constructor/auth.codeTypeSms create mode 100644 data/core.telegram.org/constructor/auth.exportedAuthorization create mode 100644 data/core.telegram.org/constructor/auth.loginToken create mode 100644 data/core.telegram.org/constructor/auth.loginTokenMigrateTo create mode 100644 data/core.telegram.org/constructor/auth.loginTokenSuccess create mode 100644 data/core.telegram.org/constructor/auth.passwordRecovery create mode 100644 data/core.telegram.org/constructor/auth.sentAppCode create mode 100644 data/core.telegram.org/constructor/auth.sentCode create mode 100644 data/core.telegram.org/constructor/auth.sentCodeTypeApp create mode 100644 data/core.telegram.org/constructor/auth.sentCodeTypeCall create mode 100644 data/core.telegram.org/constructor/auth.sentCodeTypeFlashCall create mode 100644 data/core.telegram.org/constructor/auth.sentCodeTypeSms create mode 100644 data/core.telegram.org/constructor/authorization.html create mode 100644 data/core.telegram.org/constructor/autoDownloadSettings.html create mode 100644 data/core.telegram.org/constructor/bankCardOpenUrl.html create mode 100644 data/core.telegram.org/constructor/baseThemeArctic.html create mode 100644 data/core.telegram.org/constructor/baseThemeClassic.html create mode 100644 data/core.telegram.org/constructor/baseThemeDay.html create mode 100644 data/core.telegram.org/constructor/baseThemeNight.html create mode 100644 data/core.telegram.org/constructor/baseThemeTinted.html create mode 100644 data/core.telegram.org/constructor/boolFalse.html create mode 100644 data/core.telegram.org/constructor/boolTrue.html create mode 100644 data/core.telegram.org/constructor/botCommand.html create mode 100644 data/core.telegram.org/constructor/botInfo.html create mode 100644 data/core.telegram.org/constructor/botInlineMediaResult.html create mode 100644 data/core.telegram.org/constructor/botInlineMessageMediaAuto.html create mode 100644 data/core.telegram.org/constructor/botInlineMessageMediaContact.html create mode 100644 data/core.telegram.org/constructor/botInlineMessageMediaGeo.html create mode 100644 data/core.telegram.org/constructor/botInlineMessageMediaVenue.html create mode 100644 data/core.telegram.org/constructor/botInlineMessageText.html create mode 100644 data/core.telegram.org/constructor/botInlineResult.html create mode 100644 data/core.telegram.org/constructor/cdnConfig.html create mode 100644 data/core.telegram.org/constructor/cdnPublicKey.html create mode 100644 data/core.telegram.org/constructor/channel.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEvent.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionChangeAbout.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionChangeLocation.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionChangePhoto.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionChangeTitle.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionChangeUsername.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionDeleteMessage.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionEditMessage.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionParticipantInvite.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionParticipantJoin.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionParticipantLeave.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionStopPoll.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionToggleInvites.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionToggleSignatures.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventActionUpdatePinned.html create mode 100644 data/core.telegram.org/constructor/channelAdminLogEventsFilter.html create mode 100644 data/core.telegram.org/constructor/channelForbidden.html create mode 100644 data/core.telegram.org/constructor/channelFull.html create mode 100644 data/core.telegram.org/constructor/channelLocation.html create mode 100644 data/core.telegram.org/constructor/channelLocationEmpty.html create mode 100644 data/core.telegram.org/constructor/channelMessagesFilter.html create mode 100644 data/core.telegram.org/constructor/channelMessagesFilterEmpty.html create mode 100644 data/core.telegram.org/constructor/channelParticipant.html create mode 100644 data/core.telegram.org/constructor/channelParticipantAdmin.html create mode 100644 data/core.telegram.org/constructor/channelParticipantBanned.html create mode 100644 data/core.telegram.org/constructor/channelParticipantCreator.html create mode 100644 data/core.telegram.org/constructor/channelParticipantLeft.html create mode 100644 data/core.telegram.org/constructor/channelParticipantSelf.html create mode 100644 data/core.telegram.org/constructor/channelParticipantsAdmins.html create mode 100644 data/core.telegram.org/constructor/channelParticipantsBanned.html create mode 100644 data/core.telegram.org/constructor/channelParticipantsBots.html create mode 100644 data/core.telegram.org/constructor/channelParticipantsContacts.html create mode 100644 data/core.telegram.org/constructor/channelParticipantsKicked.html create mode 100644 data/core.telegram.org/constructor/channelParticipantsMentions.html create mode 100644 data/core.telegram.org/constructor/channelParticipantsRecent.html create mode 100644 data/core.telegram.org/constructor/channelParticipantsSearch.html create mode 100644 data/core.telegram.org/constructor/channels.adminLogResults create mode 100644 data/core.telegram.org/constructor/channels.channelParticipant create mode 100644 data/core.telegram.org/constructor/channels.channelParticipants create mode 100644 data/core.telegram.org/constructor/channels.channelParticipantsNotModified create mode 100644 data/core.telegram.org/constructor/chat.html create mode 100644 data/core.telegram.org/constructor/chatAdminRights.html create mode 100644 data/core.telegram.org/constructor/chatBannedRights.html create mode 100644 data/core.telegram.org/constructor/chatEmpty.html create mode 100644 data/core.telegram.org/constructor/chatForbidden.html create mode 100644 data/core.telegram.org/constructor/chatFull.html create mode 100644 data/core.telegram.org/constructor/chatInvite.html create mode 100644 data/core.telegram.org/constructor/chatInviteAlready.html create mode 100644 data/core.telegram.org/constructor/chatInviteEmpty.html create mode 100644 data/core.telegram.org/constructor/chatInviteExported.html create mode 100644 data/core.telegram.org/constructor/chatInvitePeek.html create mode 100644 data/core.telegram.org/constructor/chatOnlines.html create mode 100644 data/core.telegram.org/constructor/chatParticipant.html create mode 100644 data/core.telegram.org/constructor/chatParticipantAdmin.html create mode 100644 data/core.telegram.org/constructor/chatParticipantCreator.html create mode 100644 data/core.telegram.org/constructor/chatParticipants.html create mode 100644 data/core.telegram.org/constructor/chatParticipantsForbidden.html create mode 100644 data/core.telegram.org/constructor/chatPhoto.html create mode 100644 data/core.telegram.org/constructor/chatPhotoEmpty.html create mode 100644 data/core.telegram.org/constructor/codeSettings.html create mode 100644 data/core.telegram.org/constructor/config.html create mode 100644 data/core.telegram.org/constructor/contact.html create mode 100644 data/core.telegram.org/constructor/contactStatus.html create mode 100644 data/core.telegram.org/constructor/contacts.blocked create mode 100644 data/core.telegram.org/constructor/contacts.blockedSlice create mode 100644 data/core.telegram.org/constructor/contacts.contacts create mode 100644 data/core.telegram.org/constructor/contacts.contactsNotModified create mode 100644 data/core.telegram.org/constructor/contacts.found create mode 100644 data/core.telegram.org/constructor/contacts.importedContacts create mode 100644 data/core.telegram.org/constructor/contacts.resolvedPeer create mode 100644 data/core.telegram.org/constructor/contacts.topPeers create mode 100644 data/core.telegram.org/constructor/contacts.topPeersDisabled create mode 100644 data/core.telegram.org/constructor/contacts.topPeersNotModified create mode 100644 data/core.telegram.org/constructor/dataJSON.html create mode 100644 data/core.telegram.org/constructor/dcOption.html create mode 100644 data/core.telegram.org/constructor/decryptedMessage.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionAbortKey.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionAcceptKey.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionCommitKey.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionDeleteMessages.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionFlushHistory.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionNoop.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionNotifyLayer.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionReadMessages.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionRequestKey.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionResend.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionScreenshotMessages.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionSetMessageTTL.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageActionTyping.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageLayer.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageMediaAudio.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageMediaContact.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageMediaDocument.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageMediaEmpty.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageMediaExternalDocument.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageMediaGeoPoint.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageMediaPhoto.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageMediaVenue.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageMediaVideo.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageMediaWebPage.html create mode 100644 data/core.telegram.org/constructor/decryptedMessageService.html create mode 100644 data/core.telegram.org/constructor/dialog.html create mode 100644 data/core.telegram.org/constructor/dialogFilter.html create mode 100644 data/core.telegram.org/constructor/dialogFilterSuggested.html create mode 100644 data/core.telegram.org/constructor/dialogFolder.html create mode 100644 data/core.telegram.org/constructor/dialogPeer.html create mode 100644 data/core.telegram.org/constructor/dialogPeerFolder.html create mode 100644 data/core.telegram.org/constructor/disabledFeature.html create mode 100644 data/core.telegram.org/constructor/document.html create mode 100644 data/core.telegram.org/constructor/documentAttributeAnimated.html create mode 100644 data/core.telegram.org/constructor/documentAttributeAudio.html create mode 100644 data/core.telegram.org/constructor/documentAttributeFilename.html create mode 100644 data/core.telegram.org/constructor/documentAttributeHasStickers.html create mode 100644 data/core.telegram.org/constructor/documentAttributeImageSize.html create mode 100644 data/core.telegram.org/constructor/documentAttributeSticker.html create mode 100644 data/core.telegram.org/constructor/documentAttributeVideo.html create mode 100644 data/core.telegram.org/constructor/documentEmpty.html create mode 100644 data/core.telegram.org/constructor/draftMessage.html create mode 100644 data/core.telegram.org/constructor/draftMessageEmpty.html create mode 100644 data/core.telegram.org/constructor/emojiKeyword.html create mode 100644 data/core.telegram.org/constructor/emojiKeywordDeleted.html create mode 100644 data/core.telegram.org/constructor/emojiKeywordsDifference.html create mode 100644 data/core.telegram.org/constructor/emojiLanguage.html create mode 100644 data/core.telegram.org/constructor/emojiURL.html create mode 100644 data/core.telegram.org/constructor/encryptedChat.html create mode 100644 data/core.telegram.org/constructor/encryptedChatDiscarded.html create mode 100644 data/core.telegram.org/constructor/encryptedChatEmpty.html create mode 100644 data/core.telegram.org/constructor/encryptedChatRequested.html create mode 100644 data/core.telegram.org/constructor/encryptedChatWaiting.html create mode 100644 data/core.telegram.org/constructor/encryptedFile.html create mode 100644 data/core.telegram.org/constructor/encryptedFileEmpty.html create mode 100644 data/core.telegram.org/constructor/encryptedMessage.html create mode 100644 data/core.telegram.org/constructor/encryptedMessageService.html create mode 100644 data/core.telegram.org/constructor/error.html create mode 100644 data/core.telegram.org/constructor/exportedMessageLink.html create mode 100644 data/core.telegram.org/constructor/fileHash.html create mode 100644 data/core.telegram.org/constructor/fileLocation.html create mode 100644 data/core.telegram.org/constructor/fileLocationToBeDeprecated.html create mode 100644 data/core.telegram.org/constructor/fileLocationUnavailable.html create mode 100644 data/core.telegram.org/constructor/folder.html create mode 100644 data/core.telegram.org/constructor/folderPeer.html create mode 100644 data/core.telegram.org/constructor/game.html create mode 100644 data/core.telegram.org/constructor/geoPoint.html create mode 100644 data/core.telegram.org/constructor/geoPointEmpty.html create mode 100644 data/core.telegram.org/constructor/globalPrivacySettings.html create mode 100644 data/core.telegram.org/constructor/help.appUpdate create mode 100644 data/core.telegram.org/constructor/help.countriesList create mode 100644 data/core.telegram.org/constructor/help.countriesListNotModified create mode 100644 data/core.telegram.org/constructor/help.country create mode 100644 data/core.telegram.org/constructor/help.countryCode create mode 100644 data/core.telegram.org/constructor/help.deepLinkInfo create mode 100644 data/core.telegram.org/constructor/help.deepLinkInfoEmpty create mode 100644 data/core.telegram.org/constructor/help.inviteText create mode 100644 data/core.telegram.org/constructor/help.noAppUpdate create mode 100644 data/core.telegram.org/constructor/help.passportConfig create mode 100644 data/core.telegram.org/constructor/help.passportConfigNotModified create mode 100644 data/core.telegram.org/constructor/help.promoData create mode 100644 data/core.telegram.org/constructor/help.promoDataEmpty create mode 100644 data/core.telegram.org/constructor/help.recentMeUrls create mode 100644 data/core.telegram.org/constructor/help.support create mode 100644 data/core.telegram.org/constructor/help.supportName create mode 100644 data/core.telegram.org/constructor/help.termsOfService create mode 100644 data/core.telegram.org/constructor/help.termsOfServiceUpdate create mode 100644 data/core.telegram.org/constructor/help.termsOfServiceUpdateEmpty create mode 100644 data/core.telegram.org/constructor/help.userInfo create mode 100644 data/core.telegram.org/constructor/help.userInfoEmpty create mode 100644 data/core.telegram.org/constructor/highScore.html create mode 100644 data/core.telegram.org/constructor/importedContact.html create mode 100644 data/core.telegram.org/constructor/inlineBotSwitchPM.html create mode 100644 data/core.telegram.org/constructor/inputAppEvent.html create mode 100644 data/core.telegram.org/constructor/inputBotInlineMessageGame.html create mode 100644 data/core.telegram.org/constructor/inputBotInlineMessageID.html create mode 100644 data/core.telegram.org/constructor/inputBotInlineMessageMediaAuto.html create mode 100644 data/core.telegram.org/constructor/inputBotInlineMessageMediaContact.html create mode 100644 data/core.telegram.org/constructor/inputBotInlineMessageMediaGeo.html create mode 100644 data/core.telegram.org/constructor/inputBotInlineMessageMediaVenue.html create mode 100644 data/core.telegram.org/constructor/inputBotInlineMessageText.html create mode 100644 data/core.telegram.org/constructor/inputBotInlineResult.html create mode 100644 data/core.telegram.org/constructor/inputBotInlineResultDocument.html create mode 100644 data/core.telegram.org/constructor/inputBotInlineResultGame.html create mode 100644 data/core.telegram.org/constructor/inputBotInlineResultPhoto.html create mode 100644 data/core.telegram.org/constructor/inputChannel.html create mode 100644 data/core.telegram.org/constructor/inputChannelEmpty.html create mode 100644 data/core.telegram.org/constructor/inputChannelFromMessage.html create mode 100644 data/core.telegram.org/constructor/inputChatPhoto.html create mode 100644 data/core.telegram.org/constructor/inputChatPhotoEmpty.html create mode 100644 data/core.telegram.org/constructor/inputChatUploadedPhoto.html create mode 100644 data/core.telegram.org/constructor/inputCheckPasswordEmpty.html create mode 100644 data/core.telegram.org/constructor/inputCheckPasswordSRP.html create mode 100644 data/core.telegram.org/constructor/inputClientProxy.html create mode 100644 data/core.telegram.org/constructor/inputDialogPeer.html create mode 100644 data/core.telegram.org/constructor/inputDialogPeerFolder.html create mode 100644 data/core.telegram.org/constructor/inputDocument.html create mode 100644 data/core.telegram.org/constructor/inputDocumentEmpty.html create mode 100644 data/core.telegram.org/constructor/inputDocumentFileLocation.html create mode 100644 data/core.telegram.org/constructor/inputEncryptedChat.html create mode 100644 data/core.telegram.org/constructor/inputEncryptedFile.html create mode 100644 data/core.telegram.org/constructor/inputEncryptedFileBigUploaded.html create mode 100644 data/core.telegram.org/constructor/inputEncryptedFileEmpty.html create mode 100644 data/core.telegram.org/constructor/inputEncryptedFileLocation.html create mode 100644 data/core.telegram.org/constructor/inputEncryptedFileUploaded.html create mode 100644 data/core.telegram.org/constructor/inputFile.html create mode 100644 data/core.telegram.org/constructor/inputFileBig.html create mode 100644 data/core.telegram.org/constructor/inputFileLocation.html create mode 100644 data/core.telegram.org/constructor/inputFolderPeer.html create mode 100644 data/core.telegram.org/constructor/inputGameID.html create mode 100644 data/core.telegram.org/constructor/inputGameShortName.html create mode 100644 data/core.telegram.org/constructor/inputGeoPoint.html create mode 100644 data/core.telegram.org/constructor/inputGeoPointEmpty.html create mode 100644 data/core.telegram.org/constructor/inputKeyboardButtonUrlAuth.html create mode 100644 data/core.telegram.org/constructor/inputMediaContact.html create mode 100644 data/core.telegram.org/constructor/inputMediaDice.html create mode 100644 data/core.telegram.org/constructor/inputMediaDocument.html create mode 100644 data/core.telegram.org/constructor/inputMediaDocumentExternal.html create mode 100644 data/core.telegram.org/constructor/inputMediaEmpty.html create mode 100644 data/core.telegram.org/constructor/inputMediaGame.html create mode 100644 data/core.telegram.org/constructor/inputMediaGeoLive.html create mode 100644 data/core.telegram.org/constructor/inputMediaGeoPoint.html create mode 100644 data/core.telegram.org/constructor/inputMediaInvoice.html create mode 100644 data/core.telegram.org/constructor/inputMediaPhoto.html create mode 100644 data/core.telegram.org/constructor/inputMediaPhotoExternal.html create mode 100644 data/core.telegram.org/constructor/inputMediaPoll.html create mode 100644 data/core.telegram.org/constructor/inputMediaUploadedDocument.html create mode 100644 data/core.telegram.org/constructor/inputMediaUploadedPhoto.html create mode 100644 data/core.telegram.org/constructor/inputMediaUploadedThumbDocument.html create mode 100644 data/core.telegram.org/constructor/inputMediaVenue.html create mode 100644 data/core.telegram.org/constructor/inputMessageCallbackQuery.html create mode 100644 data/core.telegram.org/constructor/inputMessageEntityMentionName.html create mode 100644 data/core.telegram.org/constructor/inputMessageID.html create mode 100644 data/core.telegram.org/constructor/inputMessagePinned.html create mode 100644 data/core.telegram.org/constructor/inputMessageReplyTo.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterChatPhotos.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterContacts.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterDocument.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterEmpty.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterGeo.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterGif.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterMusic.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterMyMentions.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterPhoneCalls.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterPhotoVideo.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterPhotos.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterPinned.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterRoundVideo.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterRoundVoice.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterUrl.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterVideo.html create mode 100644 data/core.telegram.org/constructor/inputMessagesFilterVoice.html create mode 100644 data/core.telegram.org/constructor/inputNotifyBroadcasts.html create mode 100644 data/core.telegram.org/constructor/inputNotifyChats.html create mode 100644 data/core.telegram.org/constructor/inputNotifyPeer.html create mode 100644 data/core.telegram.org/constructor/inputNotifyUsers.html create mode 100644 data/core.telegram.org/constructor/inputPaymentCredentials.html create mode 100644 data/core.telegram.org/constructor/inputPaymentCredentialsAndroidPay.html create mode 100644 data/core.telegram.org/constructor/inputPaymentCredentialsApplePay.html create mode 100644 data/core.telegram.org/constructor/inputPaymentCredentialsSaved.html create mode 100644 data/core.telegram.org/constructor/inputPeerChannel.html create mode 100644 data/core.telegram.org/constructor/inputPeerChannelFromMessage.html create mode 100644 data/core.telegram.org/constructor/inputPeerChat.html create mode 100644 data/core.telegram.org/constructor/inputPeerEmpty.html create mode 100644 data/core.telegram.org/constructor/inputPeerNotifySettings.html create mode 100644 data/core.telegram.org/constructor/inputPeerPhotoFileLocation.html create mode 100644 data/core.telegram.org/constructor/inputPeerSelf.html create mode 100644 data/core.telegram.org/constructor/inputPeerUser.html create mode 100644 data/core.telegram.org/constructor/inputPeerUserFromMessage.html create mode 100644 data/core.telegram.org/constructor/inputPhoneCall.html create mode 100644 data/core.telegram.org/constructor/inputPhoneContact.html create mode 100644 data/core.telegram.org/constructor/inputPhoto.html create mode 100644 data/core.telegram.org/constructor/inputPhotoEmpty.html create mode 100644 data/core.telegram.org/constructor/inputPhotoFileLocation.html create mode 100644 data/core.telegram.org/constructor/inputPhotoLegacyFileLocation.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyKeyAddedByPhone.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyKeyChatInvite.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyKeyForwards.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyKeyPhoneCall.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyKeyPhoneNumber.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyKeyPhoneP2P.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyKeyProfilePhoto.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyValueAllowAll.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyValueAllowChatParticipants.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyValueAllowContacts.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyValueAllowUsers.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyValueDisallowAll.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyValueDisallowContacts.html create mode 100644 data/core.telegram.org/constructor/inputPrivacyValueDisallowUsers.html create mode 100644 data/core.telegram.org/constructor/inputReportReasonChildAbuse.html create mode 100644 data/core.telegram.org/constructor/inputReportReasonCopyright.html create mode 100644 data/core.telegram.org/constructor/inputReportReasonGeoIrrelevant.html create mode 100644 data/core.telegram.org/constructor/inputReportReasonOther.html create mode 100644 data/core.telegram.org/constructor/inputReportReasonPornography.html create mode 100644 data/core.telegram.org/constructor/inputReportReasonSpam.html create mode 100644 data/core.telegram.org/constructor/inputReportReasonViolence.html create mode 100644 data/core.telegram.org/constructor/inputSecureFile.html create mode 100644 data/core.telegram.org/constructor/inputSecureFileLocation.html create mode 100644 data/core.telegram.org/constructor/inputSecureFileUploaded.html create mode 100644 data/core.telegram.org/constructor/inputSecureValue.html create mode 100644 data/core.telegram.org/constructor/inputSingleMedia.html create mode 100644 data/core.telegram.org/constructor/inputStickerSetAnimatedEmoji.html create mode 100644 data/core.telegram.org/constructor/inputStickerSetDice.html create mode 100644 data/core.telegram.org/constructor/inputStickerSetEmpty.html create mode 100644 data/core.telegram.org/constructor/inputStickerSetID.html create mode 100644 data/core.telegram.org/constructor/inputStickerSetItem.html create mode 100644 data/core.telegram.org/constructor/inputStickerSetShortName.html create mode 100644 data/core.telegram.org/constructor/inputStickerSetThumb.html create mode 100644 data/core.telegram.org/constructor/inputStickeredMediaDocument.html create mode 100644 data/core.telegram.org/constructor/inputStickeredMediaPhoto.html create mode 100644 data/core.telegram.org/constructor/inputTakeoutFileLocation.html create mode 100644 data/core.telegram.org/constructor/inputTheme.html create mode 100644 data/core.telegram.org/constructor/inputThemeSettings.html create mode 100644 data/core.telegram.org/constructor/inputThemeSlug.html create mode 100644 data/core.telegram.org/constructor/inputUser.html create mode 100644 data/core.telegram.org/constructor/inputUserEmpty.html create mode 100644 data/core.telegram.org/constructor/inputUserFromMessage.html create mode 100644 data/core.telegram.org/constructor/inputUserSelf.html create mode 100644 data/core.telegram.org/constructor/inputWallPaper.html create mode 100644 data/core.telegram.org/constructor/inputWallPaperNoFile.html create mode 100644 data/core.telegram.org/constructor/inputWallPaperSlug.html create mode 100644 data/core.telegram.org/constructor/inputWebDocument.html create mode 100644 data/core.telegram.org/constructor/inputWebFileGeoPointLocation.html create mode 100644 data/core.telegram.org/constructor/inputWebFileLocation.html create mode 100644 data/core.telegram.org/constructor/invoice.html create mode 100644 data/core.telegram.org/constructor/jsonArray.html create mode 100644 data/core.telegram.org/constructor/jsonBool.html create mode 100644 data/core.telegram.org/constructor/jsonNull.html create mode 100644 data/core.telegram.org/constructor/jsonNumber.html create mode 100644 data/core.telegram.org/constructor/jsonObject.html create mode 100644 data/core.telegram.org/constructor/jsonObjectValue.html create mode 100644 data/core.telegram.org/constructor/jsonString.html create mode 100644 data/core.telegram.org/constructor/keyboardButton.html create mode 100644 data/core.telegram.org/constructor/keyboardButtonBuy.html create mode 100644 data/core.telegram.org/constructor/keyboardButtonCallback.html create mode 100644 data/core.telegram.org/constructor/keyboardButtonGame.html create mode 100644 data/core.telegram.org/constructor/keyboardButtonRequestGeoLocation.html create mode 100644 data/core.telegram.org/constructor/keyboardButtonRequestPhone.html create mode 100644 data/core.telegram.org/constructor/keyboardButtonRequestPoll.html create mode 100644 data/core.telegram.org/constructor/keyboardButtonRow.html create mode 100644 data/core.telegram.org/constructor/keyboardButtonSwitchInline.html create mode 100644 data/core.telegram.org/constructor/keyboardButtonUrl.html create mode 100644 data/core.telegram.org/constructor/keyboardButtonUrlAuth.html create mode 100644 data/core.telegram.org/constructor/labeledPrice.html create mode 100644 data/core.telegram.org/constructor/langPackDifference.html create mode 100644 data/core.telegram.org/constructor/langPackLanguage.html create mode 100644 data/core.telegram.org/constructor/langPackString.html create mode 100644 data/core.telegram.org/constructor/langPackStringDeleted.html create mode 100644 data/core.telegram.org/constructor/langPackStringPluralized.html create mode 100644 data/core.telegram.org/constructor/maskCoords.html create mode 100644 data/core.telegram.org/constructor/message.html create mode 100644 data/core.telegram.org/constructor/messageActionBotAllowed.html create mode 100644 data/core.telegram.org/constructor/messageActionChannelCreate.html create mode 100644 data/core.telegram.org/constructor/messageActionChannelMigrateFrom.html create mode 100644 data/core.telegram.org/constructor/messageActionChatAddUser.html create mode 100644 data/core.telegram.org/constructor/messageActionChatCreate.html create mode 100644 data/core.telegram.org/constructor/messageActionChatDeletePhoto.html create mode 100644 data/core.telegram.org/constructor/messageActionChatDeleteUser.html create mode 100644 data/core.telegram.org/constructor/messageActionChatEditPhoto.html create mode 100644 data/core.telegram.org/constructor/messageActionChatEditTitle.html create mode 100644 data/core.telegram.org/constructor/messageActionChatJoinedByLink.html create mode 100644 data/core.telegram.org/constructor/messageActionChatMigrateTo.html create mode 100644 data/core.telegram.org/constructor/messageActionContactSignUp.html create mode 100644 data/core.telegram.org/constructor/messageActionCustomAction.html create mode 100644 data/core.telegram.org/constructor/messageActionEmpty.html create mode 100644 data/core.telegram.org/constructor/messageActionGameScore.html create mode 100644 data/core.telegram.org/constructor/messageActionGeoProximityReached.html create mode 100644 data/core.telegram.org/constructor/messageActionHistoryClear.html create mode 100644 data/core.telegram.org/constructor/messageActionPaymentSent.html create mode 100644 data/core.telegram.org/constructor/messageActionPaymentSentMe.html create mode 100644 data/core.telegram.org/constructor/messageActionPhoneCall.html create mode 100644 data/core.telegram.org/constructor/messageActionPinMessage.html create mode 100644 data/core.telegram.org/constructor/messageActionScreenshotTaken.html create mode 100644 data/core.telegram.org/constructor/messageActionSecureValuesSent.html create mode 100644 data/core.telegram.org/constructor/messageActionSecureValuesSentMe.html create mode 100644 data/core.telegram.org/constructor/messageEmpty.html create mode 100644 data/core.telegram.org/constructor/messageEntityBankCard.html create mode 100644 data/core.telegram.org/constructor/messageEntityBlockquote.html create mode 100644 data/core.telegram.org/constructor/messageEntityBold.html create mode 100644 data/core.telegram.org/constructor/messageEntityBotCommand.html create mode 100644 data/core.telegram.org/constructor/messageEntityCashtag.html create mode 100644 data/core.telegram.org/constructor/messageEntityCode.html create mode 100644 data/core.telegram.org/constructor/messageEntityEmail.html create mode 100644 data/core.telegram.org/constructor/messageEntityHashtag.html create mode 100644 data/core.telegram.org/constructor/messageEntityItalic.html create mode 100644 data/core.telegram.org/constructor/messageEntityMention.html create mode 100644 data/core.telegram.org/constructor/messageEntityMentionName.html create mode 100644 data/core.telegram.org/constructor/messageEntityPhone.html create mode 100644 data/core.telegram.org/constructor/messageEntityPre.html create mode 100644 data/core.telegram.org/constructor/messageEntityStrike.html create mode 100644 data/core.telegram.org/constructor/messageEntityTextUrl.html create mode 100644 data/core.telegram.org/constructor/messageEntityUnderline.html create mode 100644 data/core.telegram.org/constructor/messageEntityUnknown.html create mode 100644 data/core.telegram.org/constructor/messageEntityUrl.html create mode 100644 data/core.telegram.org/constructor/messageFwdHeader.html create mode 100644 data/core.telegram.org/constructor/messageInteractionCounters.html create mode 100644 data/core.telegram.org/constructor/messageMediaAudio.html create mode 100644 data/core.telegram.org/constructor/messageMediaContact.html create mode 100644 data/core.telegram.org/constructor/messageMediaDice.html create mode 100644 data/core.telegram.org/constructor/messageMediaDocument.html create mode 100644 data/core.telegram.org/constructor/messageMediaEmpty.html create mode 100644 data/core.telegram.org/constructor/messageMediaGame.html create mode 100644 data/core.telegram.org/constructor/messageMediaGeo.html create mode 100644 data/core.telegram.org/constructor/messageMediaGeoLive.html create mode 100644 data/core.telegram.org/constructor/messageMediaInvoice.html create mode 100644 data/core.telegram.org/constructor/messageMediaPhoto.html create mode 100644 data/core.telegram.org/constructor/messageMediaPoll.html create mode 100644 data/core.telegram.org/constructor/messageMediaUnsupported.html create mode 100644 data/core.telegram.org/constructor/messageMediaVenue.html create mode 100644 data/core.telegram.org/constructor/messageMediaVideo.html create mode 100644 data/core.telegram.org/constructor/messageMediaWebPage.html create mode 100644 data/core.telegram.org/constructor/messageRange.html create mode 100644 data/core.telegram.org/constructor/messageReplies.html create mode 100644 data/core.telegram.org/constructor/messageReplyHeader.html create mode 100644 data/core.telegram.org/constructor/messageService.html create mode 100644 data/core.telegram.org/constructor/messageUserVote.html create mode 100644 data/core.telegram.org/constructor/messageUserVoteInputOption.html create mode 100644 data/core.telegram.org/constructor/messageUserVoteMultiple.html create mode 100644 data/core.telegram.org/constructor/messageViews.html create mode 100644 data/core.telegram.org/constructor/messages.affectedHistory create mode 100644 data/core.telegram.org/constructor/messages.affectedMessages create mode 100644 data/core.telegram.org/constructor/messages.allStickers create mode 100644 data/core.telegram.org/constructor/messages.allStickersNotModified create mode 100644 data/core.telegram.org/constructor/messages.archivedStickers create mode 100644 data/core.telegram.org/constructor/messages.botCallbackAnswer create mode 100644 data/core.telegram.org/constructor/messages.botResults create mode 100644 data/core.telegram.org/constructor/messages.channelMessages create mode 100644 data/core.telegram.org/constructor/messages.chatFull create mode 100644 data/core.telegram.org/constructor/messages.chats create mode 100644 data/core.telegram.org/constructor/messages.chatsSlice create mode 100644 data/core.telegram.org/constructor/messages.dhConfig create mode 100644 data/core.telegram.org/constructor/messages.dhConfigNotModified create mode 100644 data/core.telegram.org/constructor/messages.dialogs create mode 100644 data/core.telegram.org/constructor/messages.dialogsNotModified create mode 100644 data/core.telegram.org/constructor/messages.dialogsSlice create mode 100644 data/core.telegram.org/constructor/messages.discussionMessage create mode 100644 data/core.telegram.org/constructor/messages.favedStickers create mode 100644 data/core.telegram.org/constructor/messages.favedStickersNotModified create mode 100644 data/core.telegram.org/constructor/messages.featuredStickers create mode 100644 data/core.telegram.org/constructor/messages.featuredStickersNotModified create mode 100644 data/core.telegram.org/constructor/messages.foundStickerSets create mode 100644 data/core.telegram.org/constructor/messages.foundStickerSetsNotModified create mode 100644 data/core.telegram.org/constructor/messages.highScores create mode 100644 data/core.telegram.org/constructor/messages.inactiveChats create mode 100644 data/core.telegram.org/constructor/messages.messageEditData create mode 100644 data/core.telegram.org/constructor/messages.messageViews create mode 100644 data/core.telegram.org/constructor/messages.messages create mode 100644 data/core.telegram.org/constructor/messages.messagesNotModified create mode 100644 data/core.telegram.org/constructor/messages.messagesSlice create mode 100644 data/core.telegram.org/constructor/messages.peerDialogs create mode 100644 data/core.telegram.org/constructor/messages.recentStickers create mode 100644 data/core.telegram.org/constructor/messages.recentStickersNotModified create mode 100644 data/core.telegram.org/constructor/messages.savedGifs create mode 100644 data/core.telegram.org/constructor/messages.savedGifsNotModified create mode 100644 data/core.telegram.org/constructor/messages.searchCounter create mode 100644 data/core.telegram.org/constructor/messages.sentEncryptedFile create mode 100644 data/core.telegram.org/constructor/messages.sentEncryptedMessage create mode 100644 data/core.telegram.org/constructor/messages.sentMessageLink create mode 100644 data/core.telegram.org/constructor/messages.statedMessageLink create mode 100644 data/core.telegram.org/constructor/messages.statedMessagesLinks create mode 100644 data/core.telegram.org/constructor/messages.stickerSet create mode 100644 data/core.telegram.org/constructor/messages.stickerSetInstallResultArchive create mode 100644 data/core.telegram.org/constructor/messages.stickerSetInstallResultSuccess create mode 100644 data/core.telegram.org/constructor/messages.stickers create mode 100644 data/core.telegram.org/constructor/messages.stickersNotModified create mode 100644 data/core.telegram.org/constructor/messages.votesList create mode 100644 data/core.telegram.org/constructor/nearestDc.html create mode 100644 data/core.telegram.org/constructor/notifyBroadcasts.html create mode 100644 data/core.telegram.org/constructor/notifyChats.html create mode 100644 data/core.telegram.org/constructor/notifyPeer.html create mode 100644 data/core.telegram.org/constructor/notifyUsers.html create mode 100644 data/core.telegram.org/constructor/null.html create mode 100644 data/core.telegram.org/constructor/page.html create mode 100644 data/core.telegram.org/constructor/pageBlockAnchor.html create mode 100644 data/core.telegram.org/constructor/pageBlockAudio.html create mode 100644 data/core.telegram.org/constructor/pageBlockAuthorDate.html create mode 100644 data/core.telegram.org/constructor/pageBlockBlockquote.html create mode 100644 data/core.telegram.org/constructor/pageBlockChannel.html create mode 100644 data/core.telegram.org/constructor/pageBlockCollage.html create mode 100644 data/core.telegram.org/constructor/pageBlockCover.html create mode 100644 data/core.telegram.org/constructor/pageBlockDetails.html create mode 100644 data/core.telegram.org/constructor/pageBlockDivider.html create mode 100644 data/core.telegram.org/constructor/pageBlockEmbed.html create mode 100644 data/core.telegram.org/constructor/pageBlockEmbedPost.html create mode 100644 data/core.telegram.org/constructor/pageBlockFooter.html create mode 100644 data/core.telegram.org/constructor/pageBlockHeader.html create mode 100644 data/core.telegram.org/constructor/pageBlockKicker.html create mode 100644 data/core.telegram.org/constructor/pageBlockList.html create mode 100644 data/core.telegram.org/constructor/pageBlockMap.html create mode 100644 data/core.telegram.org/constructor/pageBlockOrderedList.html create mode 100644 data/core.telegram.org/constructor/pageBlockParagraph.html create mode 100644 data/core.telegram.org/constructor/pageBlockPhoto.html create mode 100644 data/core.telegram.org/constructor/pageBlockPreformatted.html create mode 100644 data/core.telegram.org/constructor/pageBlockPullquote.html create mode 100644 data/core.telegram.org/constructor/pageBlockRelatedArticles.html create mode 100644 data/core.telegram.org/constructor/pageBlockSlideshow.html create mode 100644 data/core.telegram.org/constructor/pageBlockSubheader.html create mode 100644 data/core.telegram.org/constructor/pageBlockSubtitle.html create mode 100644 data/core.telegram.org/constructor/pageBlockTable.html create mode 100644 data/core.telegram.org/constructor/pageBlockTitle.html create mode 100644 data/core.telegram.org/constructor/pageBlockUnsupported.html create mode 100644 data/core.telegram.org/constructor/pageBlockVideo.html create mode 100644 data/core.telegram.org/constructor/pageCaption.html create mode 100644 data/core.telegram.org/constructor/pageListItemBlocks.html create mode 100644 data/core.telegram.org/constructor/pageListItemText.html create mode 100644 data/core.telegram.org/constructor/pageListOrderedItemBlocks.html create mode 100644 data/core.telegram.org/constructor/pageListOrderedItemText.html create mode 100644 data/core.telegram.org/constructor/pageRelatedArticle.html create mode 100644 data/core.telegram.org/constructor/pageTableCell.html create mode 100644 data/core.telegram.org/constructor/pageTableRow.html create mode 100644 data/core.telegram.org/constructor/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.html create mode 100644 data/core.telegram.org/constructor/passwordKdfAlgoUnknown.html create mode 100644 data/core.telegram.org/constructor/paymentCharge.html create mode 100644 data/core.telegram.org/constructor/paymentRequestedInfo.html create mode 100644 data/core.telegram.org/constructor/paymentSavedCredentialsCard.html create mode 100644 data/core.telegram.org/constructor/payments.bankCardData create mode 100644 data/core.telegram.org/constructor/payments.paymentForm create mode 100644 data/core.telegram.org/constructor/payments.paymentReceipt create mode 100644 data/core.telegram.org/constructor/payments.paymentResult create mode 100644 data/core.telegram.org/constructor/payments.paymentVerificationNeeded create mode 100644 data/core.telegram.org/constructor/payments.savedInfo create mode 100644 data/core.telegram.org/constructor/payments.validatedRequestedInfo create mode 100644 data/core.telegram.org/constructor/peerBlocked.html create mode 100644 data/core.telegram.org/constructor/peerChannel.html create mode 100644 data/core.telegram.org/constructor/peerChat.html create mode 100644 data/core.telegram.org/constructor/peerLocated.html create mode 100644 data/core.telegram.org/constructor/peerNotifySettings.html create mode 100644 data/core.telegram.org/constructor/peerSelfLocated.html create mode 100644 data/core.telegram.org/constructor/peerSettings.html create mode 100644 data/core.telegram.org/constructor/peerUser.html create mode 100644 data/core.telegram.org/constructor/phone.phoneCall create mode 100644 data/core.telegram.org/constructor/phoneCall.html create mode 100644 data/core.telegram.org/constructor/phoneCallAccepted.html create mode 100644 data/core.telegram.org/constructor/phoneCallDiscardReasonBusy.html create mode 100644 data/core.telegram.org/constructor/phoneCallDiscardReasonDisconnect.html create mode 100644 data/core.telegram.org/constructor/phoneCallDiscardReasonHangup.html create mode 100644 data/core.telegram.org/constructor/phoneCallDiscardReasonMissed.html create mode 100644 data/core.telegram.org/constructor/phoneCallDiscarded.html create mode 100644 data/core.telegram.org/constructor/phoneCallEmpty.html create mode 100644 data/core.telegram.org/constructor/phoneCallProtocol.html create mode 100644 data/core.telegram.org/constructor/phoneCallRequested.html create mode 100644 data/core.telegram.org/constructor/phoneCallWaiting.html create mode 100644 data/core.telegram.org/constructor/phoneConnection.html create mode 100644 data/core.telegram.org/constructor/phoneConnectionWebrtc.html create mode 100644 data/core.telegram.org/constructor/photo.html create mode 100644 data/core.telegram.org/constructor/photoCachedSize.html create mode 100644 data/core.telegram.org/constructor/photoEmpty.html create mode 100644 data/core.telegram.org/constructor/photoPathSize.html create mode 100644 data/core.telegram.org/constructor/photoSize.html create mode 100644 data/core.telegram.org/constructor/photoSizeEmpty.html create mode 100644 data/core.telegram.org/constructor/photoSizeProgressive.html create mode 100644 data/core.telegram.org/constructor/photoStrippedSize.html create mode 100644 data/core.telegram.org/constructor/photos.photo create mode 100644 data/core.telegram.org/constructor/photos.photos create mode 100644 data/core.telegram.org/constructor/photos.photosSlice create mode 100644 data/core.telegram.org/constructor/poll.html create mode 100644 data/core.telegram.org/constructor/pollAnswer.html create mode 100644 data/core.telegram.org/constructor/pollAnswerVoters.html create mode 100644 data/core.telegram.org/constructor/pollResults.html create mode 100644 data/core.telegram.org/constructor/popularContact.html create mode 100644 data/core.telegram.org/constructor/postAddress.html create mode 100644 data/core.telegram.org/constructor/privacyKeyAddedByPhone.html create mode 100644 data/core.telegram.org/constructor/privacyKeyChatInvite.html create mode 100644 data/core.telegram.org/constructor/privacyKeyForwards.html create mode 100644 data/core.telegram.org/constructor/privacyKeyPhoneCall.html create mode 100644 data/core.telegram.org/constructor/privacyKeyPhoneNumber.html create mode 100644 data/core.telegram.org/constructor/privacyKeyPhoneP2P.html create mode 100644 data/core.telegram.org/constructor/privacyKeyProfilePhoto.html create mode 100644 data/core.telegram.org/constructor/privacyKeyStatusTimestamp.html create mode 100644 data/core.telegram.org/constructor/privacyValueAllowAll.html create mode 100644 data/core.telegram.org/constructor/privacyValueAllowChatParticipants.html create mode 100644 data/core.telegram.org/constructor/privacyValueAllowContacts.html create mode 100644 data/core.telegram.org/constructor/privacyValueAllowUsers.html create mode 100644 data/core.telegram.org/constructor/privacyValueDisallowAll.html create mode 100644 data/core.telegram.org/constructor/privacyValueDisallowChatParticipants.html create mode 100644 data/core.telegram.org/constructor/privacyValueDisallowContacts.html create mode 100644 data/core.telegram.org/constructor/privacyValueDisallowUsers.html create mode 100644 data/core.telegram.org/constructor/receivedNotifyMessage.html create mode 100644 data/core.telegram.org/constructor/recentMeUrlChat.html create mode 100644 data/core.telegram.org/constructor/recentMeUrlChatInvite.html create mode 100644 data/core.telegram.org/constructor/recentMeUrlStickerSet.html create mode 100644 data/core.telegram.org/constructor/recentMeUrlUnknown.html create mode 100644 data/core.telegram.org/constructor/recentMeUrlUser.html create mode 100644 data/core.telegram.org/constructor/replyInlineMarkup.html create mode 100644 data/core.telegram.org/constructor/replyKeyboardForceReply.html create mode 100644 data/core.telegram.org/constructor/replyKeyboardHide.html create mode 100644 data/core.telegram.org/constructor/replyKeyboardMarkup.html create mode 100644 data/core.telegram.org/constructor/restrictionReason.html create mode 100644 data/core.telegram.org/constructor/savedPhoneContact.html create mode 100644 data/core.telegram.org/constructor/secureCredentialsEncrypted.html create mode 100644 data/core.telegram.org/constructor/secureData.html create mode 100644 data/core.telegram.org/constructor/secureFile.html create mode 100644 data/core.telegram.org/constructor/secureFileEmpty.html create mode 100644 data/core.telegram.org/constructor/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.html create mode 100644 data/core.telegram.org/constructor/securePasswordKdfAlgoSHA512.html create mode 100644 data/core.telegram.org/constructor/securePasswordKdfAlgoUnknown.html create mode 100644 data/core.telegram.org/constructor/securePlainEmail.html create mode 100644 data/core.telegram.org/constructor/securePlainPhone.html create mode 100644 data/core.telegram.org/constructor/secureRequiredType.html create mode 100644 data/core.telegram.org/constructor/secureRequiredTypeOneOf.html create mode 100644 data/core.telegram.org/constructor/secureSecretSettings.html create mode 100644 data/core.telegram.org/constructor/secureValue.html create mode 100644 data/core.telegram.org/constructor/secureValueError.html create mode 100644 data/core.telegram.org/constructor/secureValueErrorData.html create mode 100644 data/core.telegram.org/constructor/secureValueErrorFile.html create mode 100644 data/core.telegram.org/constructor/secureValueErrorFiles.html create mode 100644 data/core.telegram.org/constructor/secureValueErrorFrontSide.html create mode 100644 data/core.telegram.org/constructor/secureValueErrorReverseSide.html create mode 100644 data/core.telegram.org/constructor/secureValueErrorSelfie.html create mode 100644 data/core.telegram.org/constructor/secureValueErrorTranslationFile.html create mode 100644 data/core.telegram.org/constructor/secureValueErrorTranslationFiles.html create mode 100644 data/core.telegram.org/constructor/secureValueHash.html create mode 100644 data/core.telegram.org/constructor/secureValueTypeAddress.html create mode 100644 data/core.telegram.org/constructor/secureValueTypeBankStatement.html create mode 100644 data/core.telegram.org/constructor/secureValueTypeDriverLicense.html create mode 100644 data/core.telegram.org/constructor/secureValueTypeEmail.html create mode 100644 data/core.telegram.org/constructor/secureValueTypeIdentityCard.html create mode 100644 data/core.telegram.org/constructor/secureValueTypeInternalPassport.html create mode 100644 data/core.telegram.org/constructor/secureValueTypePassport.html create mode 100644 data/core.telegram.org/constructor/secureValueTypePassportRegistration.html create mode 100644 data/core.telegram.org/constructor/secureValueTypePersonalDetails.html create mode 100644 data/core.telegram.org/constructor/secureValueTypePhone.html create mode 100644 data/core.telegram.org/constructor/secureValueTypeRentalAgreement.html create mode 100644 data/core.telegram.org/constructor/secureValueTypeTemporaryRegistration.html create mode 100644 data/core.telegram.org/constructor/secureValueTypeUtilityBill.html create mode 100644 data/core.telegram.org/constructor/sendMessageCancelAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageChooseContactAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageGamePlayAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageGeoLocationAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageRecordAudioAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageRecordRoundAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageRecordVideoAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageTypingAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageUploadAudioAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageUploadDocumentAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageUploadPhotoAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageUploadRoundAction.html create mode 100644 data/core.telegram.org/constructor/sendMessageUploadVideoAction.html create mode 100644 data/core.telegram.org/constructor/shippingOption.html create mode 100644 data/core.telegram.org/constructor/stats.broadcastStats create mode 100644 data/core.telegram.org/constructor/stats.megagroupStats create mode 100644 data/core.telegram.org/constructor/stats.messageStats create mode 100644 data/core.telegram.org/constructor/statsAbsValueAndPrev.html create mode 100644 data/core.telegram.org/constructor/statsDateRangeDays.html create mode 100644 data/core.telegram.org/constructor/statsGraph.html create mode 100644 data/core.telegram.org/constructor/statsGraphAsync.html create mode 100644 data/core.telegram.org/constructor/statsGraphError.html create mode 100644 data/core.telegram.org/constructor/statsGroupTopAdmin.html create mode 100644 data/core.telegram.org/constructor/statsGroupTopInviter.html create mode 100644 data/core.telegram.org/constructor/statsGroupTopPoster.html create mode 100644 data/core.telegram.org/constructor/statsPercentValue.html create mode 100644 data/core.telegram.org/constructor/statsURL.html create mode 100644 data/core.telegram.org/constructor/stickerPack.html create mode 100644 data/core.telegram.org/constructor/stickerSet.html create mode 100644 data/core.telegram.org/constructor/stickerSetCovered.html create mode 100644 data/core.telegram.org/constructor/stickerSetMultiCovered.html create mode 100644 data/core.telegram.org/constructor/storage.fileGif create mode 100644 data/core.telegram.org/constructor/storage.fileJpeg create mode 100644 data/core.telegram.org/constructor/storage.fileMov create mode 100644 data/core.telegram.org/constructor/storage.fileMp3 create mode 100644 data/core.telegram.org/constructor/storage.fileMp4 create mode 100644 data/core.telegram.org/constructor/storage.filePartial create mode 100644 data/core.telegram.org/constructor/storage.filePdf create mode 100644 data/core.telegram.org/constructor/storage.filePng create mode 100644 data/core.telegram.org/constructor/storage.fileUnknown create mode 100644 data/core.telegram.org/constructor/storage.fileWebp create mode 100644 data/core.telegram.org/constructor/textAnchor.html create mode 100644 data/core.telegram.org/constructor/textBold.html create mode 100644 data/core.telegram.org/constructor/textConcat.html create mode 100644 data/core.telegram.org/constructor/textEmail.html create mode 100644 data/core.telegram.org/constructor/textEmpty.html create mode 100644 data/core.telegram.org/constructor/textFixed.html create mode 100644 data/core.telegram.org/constructor/textImage.html create mode 100644 data/core.telegram.org/constructor/textItalic.html create mode 100644 data/core.telegram.org/constructor/textMarked.html create mode 100644 data/core.telegram.org/constructor/textPhone.html create mode 100644 data/core.telegram.org/constructor/textPlain.html create mode 100644 data/core.telegram.org/constructor/textStrike.html create mode 100644 data/core.telegram.org/constructor/textSubscript.html create mode 100644 data/core.telegram.org/constructor/textSuperscript.html create mode 100644 data/core.telegram.org/constructor/textUnderline.html create mode 100644 data/core.telegram.org/constructor/textUrl.html create mode 100644 data/core.telegram.org/constructor/theme.html create mode 100644 data/core.telegram.org/constructor/themeSettings.html create mode 100644 data/core.telegram.org/constructor/topPeer.html create mode 100644 data/core.telegram.org/constructor/topPeerCategoryBotsInline.html create mode 100644 data/core.telegram.org/constructor/topPeerCategoryBotsPM.html create mode 100644 data/core.telegram.org/constructor/topPeerCategoryChannels.html create mode 100644 data/core.telegram.org/constructor/topPeerCategoryCorrespondents.html create mode 100644 data/core.telegram.org/constructor/topPeerCategoryForwardChats.html create mode 100644 data/core.telegram.org/constructor/topPeerCategoryForwardUsers.html create mode 100644 data/core.telegram.org/constructor/topPeerCategoryGroups.html create mode 100644 data/core.telegram.org/constructor/topPeerCategoryPeers.html create mode 100644 data/core.telegram.org/constructor/topPeerCategoryPhoneCalls.html create mode 100644 data/core.telegram.org/constructor/true.html create mode 100644 data/core.telegram.org/constructor/updateBotCallbackQuery.html create mode 100644 data/core.telegram.org/constructor/updateBotInlineQuery.html create mode 100644 data/core.telegram.org/constructor/updateBotInlineSend.html create mode 100644 data/core.telegram.org/constructor/updateBotPrecheckoutQuery.html create mode 100644 data/core.telegram.org/constructor/updateBotShippingQuery.html create mode 100644 data/core.telegram.org/constructor/updateBotWebhookJSON.html create mode 100644 data/core.telegram.org/constructor/updateBotWebhookJSONQuery.html create mode 100644 data/core.telegram.org/constructor/updateChannel.html create mode 100644 data/core.telegram.org/constructor/updateChannelAvailableMessages.html create mode 100644 data/core.telegram.org/constructor/updateChannelMessageForwards.html create mode 100644 data/core.telegram.org/constructor/updateChannelMessageViews.html create mode 100644 data/core.telegram.org/constructor/updateChannelParticipant.html create mode 100644 data/core.telegram.org/constructor/updateChannelReadMessagesContents.html create mode 100644 data/core.telegram.org/constructor/updateChannelTooLong.html create mode 100644 data/core.telegram.org/constructor/updateChannelUserTyping.html create mode 100644 data/core.telegram.org/constructor/updateChannelWebPage.html create mode 100644 data/core.telegram.org/constructor/updateChatDefaultBannedRights.html create mode 100644 data/core.telegram.org/constructor/updateChatParticipantAdd.html create mode 100644 data/core.telegram.org/constructor/updateChatParticipantAdmin.html create mode 100644 data/core.telegram.org/constructor/updateChatParticipantDelete.html create mode 100644 data/core.telegram.org/constructor/updateChatParticipants.html create mode 100644 data/core.telegram.org/constructor/updateChatUserTyping.html create mode 100644 data/core.telegram.org/constructor/updateConfig.html create mode 100644 data/core.telegram.org/constructor/updateContactsReset.html create mode 100644 data/core.telegram.org/constructor/updateDcOptions.html create mode 100644 data/core.telegram.org/constructor/updateDeleteChannelMessages.html create mode 100644 data/core.telegram.org/constructor/updateDeleteMessages.html create mode 100644 data/core.telegram.org/constructor/updateDeleteScheduledMessages.html create mode 100644 data/core.telegram.org/constructor/updateDialogFilter.html create mode 100644 data/core.telegram.org/constructor/updateDialogFilterOrder.html create mode 100644 data/core.telegram.org/constructor/updateDialogFilters.html create mode 100644 data/core.telegram.org/constructor/updateDialogPinned.html create mode 100644 data/core.telegram.org/constructor/updateDialogUnreadMark.html create mode 100644 data/core.telegram.org/constructor/updateDraftMessage.html create mode 100644 data/core.telegram.org/constructor/updateEditChannelMessage.html create mode 100644 data/core.telegram.org/constructor/updateEditMessage.html create mode 100644 data/core.telegram.org/constructor/updateEncryptedChatTyping.html create mode 100644 data/core.telegram.org/constructor/updateEncryptedMessagesRead.html create mode 100644 data/core.telegram.org/constructor/updateEncryption.html create mode 100644 data/core.telegram.org/constructor/updateFavedStickers.html create mode 100644 data/core.telegram.org/constructor/updateFolderPeers.html create mode 100644 data/core.telegram.org/constructor/updateGeoLiveViewed.html create mode 100644 data/core.telegram.org/constructor/updateInlineBotCallbackQuery.html create mode 100644 data/core.telegram.org/constructor/updateLangPack.html create mode 100644 data/core.telegram.org/constructor/updateLangPackTooLong.html create mode 100644 data/core.telegram.org/constructor/updateLoginToken.html create mode 100644 data/core.telegram.org/constructor/updateMessageID.html create mode 100644 data/core.telegram.org/constructor/updateMessagePoll.html create mode 100644 data/core.telegram.org/constructor/updateMessagePollVote.html create mode 100644 data/core.telegram.org/constructor/updateNewChannelMessage.html create mode 100644 data/core.telegram.org/constructor/updateNewEncryptedMessage.html create mode 100644 data/core.telegram.org/constructor/updateNewMessage.html create mode 100644 data/core.telegram.org/constructor/updateNewScheduledMessage.html create mode 100644 data/core.telegram.org/constructor/updateNewStickerSet.html create mode 100644 data/core.telegram.org/constructor/updateNotifySettings.html create mode 100644 data/core.telegram.org/constructor/updatePeerBlocked.html create mode 100644 data/core.telegram.org/constructor/updatePeerLocated.html create mode 100644 data/core.telegram.org/constructor/updatePeerSettings.html create mode 100644 data/core.telegram.org/constructor/updatePhoneCall.html create mode 100644 data/core.telegram.org/constructor/updatePhoneCallSignalingData.html create mode 100644 data/core.telegram.org/constructor/updatePinnedChannelMessages.html create mode 100644 data/core.telegram.org/constructor/updatePinnedDialogs.html create mode 100644 data/core.telegram.org/constructor/updatePinnedMessages.html create mode 100644 data/core.telegram.org/constructor/updatePrivacy.html create mode 100644 data/core.telegram.org/constructor/updatePtsChanged.html create mode 100644 data/core.telegram.org/constructor/updateReadChannelDiscussionInbox.html create mode 100644 data/core.telegram.org/constructor/updateReadChannelDiscussionOutbox.html create mode 100644 data/core.telegram.org/constructor/updateReadChannelInbox.html create mode 100644 data/core.telegram.org/constructor/updateReadChannelOutbox.html create mode 100644 data/core.telegram.org/constructor/updateReadFeaturedStickers.html create mode 100644 data/core.telegram.org/constructor/updateReadHistoryInbox.html create mode 100644 data/core.telegram.org/constructor/updateReadHistoryOutbox.html create mode 100644 data/core.telegram.org/constructor/updateReadMessagesContents.html create mode 100644 data/core.telegram.org/constructor/updateRecentStickers.html create mode 100644 data/core.telegram.org/constructor/updateSavedGifs.html create mode 100644 data/core.telegram.org/constructor/updateServiceNotification.html create mode 100644 data/core.telegram.org/constructor/updateShort.html create mode 100644 data/core.telegram.org/constructor/updateShortChatMessage.html create mode 100644 data/core.telegram.org/constructor/updateShortMessage.html create mode 100644 data/core.telegram.org/constructor/updateShortSentMessage.html create mode 100644 data/core.telegram.org/constructor/updateStickerSets.html create mode 100644 data/core.telegram.org/constructor/updateStickerSetsOrder.html create mode 100644 data/core.telegram.org/constructor/updateTheme.html create mode 100644 data/core.telegram.org/constructor/updateUserBlocked.html create mode 100644 data/core.telegram.org/constructor/updateUserName.html create mode 100644 data/core.telegram.org/constructor/updateUserPhone.html create mode 100644 data/core.telegram.org/constructor/updateUserPhoto.html create mode 100644 data/core.telegram.org/constructor/updateUserStatus.html create mode 100644 data/core.telegram.org/constructor/updateUserTyping.html create mode 100644 data/core.telegram.org/constructor/updateWebPage.html create mode 100644 data/core.telegram.org/constructor/updates.channelDifference create mode 100644 data/core.telegram.org/constructor/updates.channelDifferenceEmpty create mode 100644 data/core.telegram.org/constructor/updates.channelDifferenceTooLong create mode 100644 data/core.telegram.org/constructor/updates.difference create mode 100644 data/core.telegram.org/constructor/updates.differenceEmpty create mode 100644 data/core.telegram.org/constructor/updates.differenceSlice create mode 100644 data/core.telegram.org/constructor/updates.differenceTooLong create mode 100644 data/core.telegram.org/constructor/updates.html create mode 100644 data/core.telegram.org/constructor/updates.state create mode 100644 data/core.telegram.org/constructor/updatesCombined.html create mode 100644 data/core.telegram.org/constructor/updatesTooLong.html create mode 100644 data/core.telegram.org/constructor/upload.cdnFile create mode 100644 data/core.telegram.org/constructor/upload.cdnFileReuploadNeeded create mode 100644 data/core.telegram.org/constructor/upload.file create mode 100644 data/core.telegram.org/constructor/upload.fileCdnRedirect create mode 100644 data/core.telegram.org/constructor/upload.webFile create mode 100644 data/core.telegram.org/constructor/urlAuthResultAccepted.html create mode 100644 data/core.telegram.org/constructor/urlAuthResultDefault.html create mode 100644 data/core.telegram.org/constructor/urlAuthResultRequest.html create mode 100644 data/core.telegram.org/constructor/user.html create mode 100644 data/core.telegram.org/constructor/userEmpty.html create mode 100644 data/core.telegram.org/constructor/userForeign.html create mode 100644 data/core.telegram.org/constructor/userFull.html create mode 100644 data/core.telegram.org/constructor/userProfilePhoto.html create mode 100644 data/core.telegram.org/constructor/userProfilePhotoEmpty.html create mode 100644 data/core.telegram.org/constructor/userRequest.html create mode 100644 data/core.telegram.org/constructor/userStatusEmpty.html create mode 100644 data/core.telegram.org/constructor/userStatusLastMonth.html create mode 100644 data/core.telegram.org/constructor/userStatusLastWeek.html create mode 100644 data/core.telegram.org/constructor/userStatusOffline.html create mode 100644 data/core.telegram.org/constructor/userStatusOnline.html create mode 100644 data/core.telegram.org/constructor/userStatusRecently.html create mode 100644 data/core.telegram.org/constructor/vector.html create mode 100644 data/core.telegram.org/constructor/videoSize.html create mode 100644 data/core.telegram.org/constructor/wallPaper.html create mode 100644 data/core.telegram.org/constructor/wallPaperNoFile.html create mode 100644 data/core.telegram.org/constructor/wallPaperSettings.html create mode 100644 data/core.telegram.org/constructor/wallPaperSolid.html create mode 100644 data/core.telegram.org/constructor/webAuthorization.html create mode 100644 data/core.telegram.org/constructor/webDocument.html create mode 100644 data/core.telegram.org/constructor/webDocumentNoProxy.html create mode 100644 data/core.telegram.org/constructor/webPage.html create mode 100644 data/core.telegram.org/constructor/webPageAttributeTheme.html create mode 100644 data/core.telegram.org/constructor/webPageEmpty.html create mode 100644 data/core.telegram.org/constructor/webPageNotModified.html create mode 100644 data/core.telegram.org/constructor/webPagePending.html create mode 100644 data/core.telegram.org/method/account.acceptAuthorization create mode 100644 data/core.telegram.org/method/account.cancelPasswordEmail create mode 100644 data/core.telegram.org/method/account.changePhone create mode 100644 data/core.telegram.org/method/account.checkUsername create mode 100644 data/core.telegram.org/method/account.confirmPasswordEmail create mode 100644 data/core.telegram.org/method/account.confirmPhone create mode 100644 data/core.telegram.org/method/account.createTheme create mode 100644 data/core.telegram.org/method/account.deleteAccount create mode 100644 data/core.telegram.org/method/account.deleteSecureValue create mode 100644 data/core.telegram.org/method/account.finishTakeoutSession create mode 100644 data/core.telegram.org/method/account.getAccountTTL create mode 100644 data/core.telegram.org/method/account.getAllSecureValues create mode 100644 data/core.telegram.org/method/account.getAuthorizationForm create mode 100644 data/core.telegram.org/method/account.getAuthorizations create mode 100644 data/core.telegram.org/method/account.getAutoDownloadSettings create mode 100644 data/core.telegram.org/method/account.getContactSignUpNotification create mode 100644 data/core.telegram.org/method/account.getContentSettings create mode 100644 data/core.telegram.org/method/account.getGlobalPrivacySettings create mode 100644 data/core.telegram.org/method/account.getMultiWallPapers create mode 100644 data/core.telegram.org/method/account.getNotifyExceptions create mode 100644 data/core.telegram.org/method/account.getNotifySettings create mode 100644 data/core.telegram.org/method/account.getPassword create mode 100644 data/core.telegram.org/method/account.getPasswordSettings create mode 100644 data/core.telegram.org/method/account.getPrivacy create mode 100644 data/core.telegram.org/method/account.getSecureValue create mode 100644 data/core.telegram.org/method/account.getTheme create mode 100644 data/core.telegram.org/method/account.getThemes create mode 100644 data/core.telegram.org/method/account.getTmpPassword create mode 100644 data/core.telegram.org/method/account.getWallPaper create mode 100644 data/core.telegram.org/method/account.getWallPapers create mode 100644 data/core.telegram.org/method/account.getWebAuthorizations create mode 100644 data/core.telegram.org/method/account.initTakeoutSession create mode 100644 data/core.telegram.org/method/account.installTheme create mode 100644 data/core.telegram.org/method/account.installWallPaper create mode 100644 data/core.telegram.org/method/account.registerDevice create mode 100644 data/core.telegram.org/method/account.reportPeer create mode 100644 data/core.telegram.org/method/account.resendPasswordEmail create mode 100644 data/core.telegram.org/method/account.resetAuthorization create mode 100644 data/core.telegram.org/method/account.resetNotifySettings create mode 100644 data/core.telegram.org/method/account.resetWallPapers create mode 100644 data/core.telegram.org/method/account.resetWebAuthorization create mode 100644 data/core.telegram.org/method/account.resetWebAuthorizations create mode 100644 data/core.telegram.org/method/account.saveAutoDownloadSettings create mode 100644 data/core.telegram.org/method/account.saveSecureValue create mode 100644 data/core.telegram.org/method/account.saveTheme create mode 100644 data/core.telegram.org/method/account.saveWallPaper create mode 100644 data/core.telegram.org/method/account.sendChangePhoneCode create mode 100644 data/core.telegram.org/method/account.sendConfirmPhoneCode create mode 100644 data/core.telegram.org/method/account.sendVerifyEmailCode create mode 100644 data/core.telegram.org/method/account.sendVerifyPhoneCode create mode 100644 data/core.telegram.org/method/account.setAccountTTL create mode 100644 data/core.telegram.org/method/account.setContactSignUpNotification create mode 100644 data/core.telegram.org/method/account.setContentSettings create mode 100644 data/core.telegram.org/method/account.setGlobalPrivacySettings create mode 100644 data/core.telegram.org/method/account.setPrivacy create mode 100644 data/core.telegram.org/method/account.unregisterDevice create mode 100644 data/core.telegram.org/method/account.updateDeviceLocked create mode 100644 data/core.telegram.org/method/account.updateNotifySettings create mode 100644 data/core.telegram.org/method/account.updatePasswordSettings create mode 100644 data/core.telegram.org/method/account.updateProfile create mode 100644 data/core.telegram.org/method/account.updateStatus create mode 100644 data/core.telegram.org/method/account.updateTheme create mode 100644 data/core.telegram.org/method/account.updateUsername create mode 100644 data/core.telegram.org/method/account.uploadTheme create mode 100644 data/core.telegram.org/method/account.uploadWallPaper create mode 100644 data/core.telegram.org/method/account.verifyEmail create mode 100644 data/core.telegram.org/method/account.verifyPhone create mode 100644 data/core.telegram.org/method/auth.acceptLoginToken create mode 100644 data/core.telegram.org/method/auth.bindTempAuthKey create mode 100644 data/core.telegram.org/method/auth.cancelCode create mode 100644 data/core.telegram.org/method/auth.checkPassword create mode 100644 data/core.telegram.org/method/auth.checkPhone create mode 100644 data/core.telegram.org/method/auth.dropTempAuthKeys create mode 100644 data/core.telegram.org/method/auth.exportAuthorization create mode 100644 data/core.telegram.org/method/auth.exportLoginToken create mode 100644 data/core.telegram.org/method/auth.importAuthorization create mode 100644 data/core.telegram.org/method/auth.importBotAuthorization create mode 100644 data/core.telegram.org/method/auth.importLoginToken create mode 100644 data/core.telegram.org/method/auth.logOut create mode 100644 data/core.telegram.org/method/auth.recoverPassword create mode 100644 data/core.telegram.org/method/auth.requestPasswordRecovery create mode 100644 data/core.telegram.org/method/auth.resendCode create mode 100644 data/core.telegram.org/method/auth.resetAuthorizations create mode 100644 data/core.telegram.org/method/auth.sendCall create mode 100644 data/core.telegram.org/method/auth.sendCode create mode 100644 data/core.telegram.org/method/auth.sendInvites create mode 100644 data/core.telegram.org/method/auth.sendSms create mode 100644 data/core.telegram.org/method/auth.signIn create mode 100644 data/core.telegram.org/method/auth.signUp create mode 100644 data/core.telegram.org/method/bots.answerWebhookJSONQuery create mode 100644 data/core.telegram.org/method/bots.sendCustomRequest create mode 100644 data/core.telegram.org/method/bots.setBotCommands create mode 100644 data/core.telegram.org/method/channels.checkUsername create mode 100644 data/core.telegram.org/method/channels.createChannel create mode 100644 data/core.telegram.org/method/channels.deleteChannel create mode 100644 data/core.telegram.org/method/channels.deleteHistory create mode 100644 data/core.telegram.org/method/channels.deleteMessages create mode 100644 data/core.telegram.org/method/channels.deleteUserHistory create mode 100644 data/core.telegram.org/method/channels.editAdmin create mode 100644 data/core.telegram.org/method/channels.editBanned create mode 100644 data/core.telegram.org/method/channels.editCreator create mode 100644 data/core.telegram.org/method/channels.editLocation create mode 100644 data/core.telegram.org/method/channels.editPhoto create mode 100644 data/core.telegram.org/method/channels.editTitle create mode 100644 data/core.telegram.org/method/channels.exportMessageLink create mode 100644 data/core.telegram.org/method/channels.getAdminLog create mode 100644 data/core.telegram.org/method/channels.getAdminedPublicChannels create mode 100644 data/core.telegram.org/method/channels.getChannels create mode 100644 data/core.telegram.org/method/channels.getFullChannel create mode 100644 data/core.telegram.org/method/channels.getGroupsForDiscussion create mode 100644 data/core.telegram.org/method/channels.getInactiveChannels create mode 100644 data/core.telegram.org/method/channels.getLeftChannels create mode 100644 data/core.telegram.org/method/channels.getMessages create mode 100644 data/core.telegram.org/method/channels.getParticipant create mode 100644 data/core.telegram.org/method/channels.getParticipants create mode 100644 data/core.telegram.org/method/channels.inviteToChannel create mode 100644 data/core.telegram.org/method/channels.joinChannel create mode 100644 data/core.telegram.org/method/channels.leaveChannel create mode 100644 data/core.telegram.org/method/channels.readHistory create mode 100644 data/core.telegram.org/method/channels.readMessageContents create mode 100644 data/core.telegram.org/method/channels.reportSpam create mode 100644 data/core.telegram.org/method/channels.setDiscussionGroup create mode 100644 data/core.telegram.org/method/channels.setStickers create mode 100644 data/core.telegram.org/method/channels.togglePreHistoryHidden create mode 100644 data/core.telegram.org/method/channels.toggleSignatures create mode 100644 data/core.telegram.org/method/channels.toggleSlowMode create mode 100644 data/core.telegram.org/method/channels.updateUsername create mode 100644 data/core.telegram.org/method/contacts.acceptContact create mode 100644 data/core.telegram.org/method/contacts.addContact create mode 100644 data/core.telegram.org/method/contacts.block create mode 100644 data/core.telegram.org/method/contacts.blockFromReplies create mode 100644 data/core.telegram.org/method/contacts.deleteByPhones create mode 100644 data/core.telegram.org/method/contacts.deleteContacts create mode 100644 data/core.telegram.org/method/contacts.getBlocked create mode 100644 data/core.telegram.org/method/contacts.getContactIDs create mode 100644 data/core.telegram.org/method/contacts.getContacts create mode 100644 data/core.telegram.org/method/contacts.getLocated create mode 100644 data/core.telegram.org/method/contacts.getSaved create mode 100644 data/core.telegram.org/method/contacts.getStatuses create mode 100644 data/core.telegram.org/method/contacts.getTopPeers create mode 100644 data/core.telegram.org/method/contacts.importContacts create mode 100644 data/core.telegram.org/method/contacts.resetSaved create mode 100644 data/core.telegram.org/method/contacts.resetTopPeerRating create mode 100644 data/core.telegram.org/method/contacts.resolveUsername create mode 100644 data/core.telegram.org/method/contacts.search create mode 100644 data/core.telegram.org/method/contacts.toggleTopPeers create mode 100644 data/core.telegram.org/method/contacts.unblock create mode 100644 data/core.telegram.org/method/folders.deleteFolder create mode 100644 data/core.telegram.org/method/folders.editPeerFolders create mode 100644 data/core.telegram.org/method/help.acceptTermsOfService create mode 100644 data/core.telegram.org/method/help.dismissSuggestion create mode 100644 data/core.telegram.org/method/help.editUserInfo create mode 100644 data/core.telegram.org/method/help.getAppChangelog create mode 100644 data/core.telegram.org/method/help.getAppConfig create mode 100644 data/core.telegram.org/method/help.getAppUpdate create mode 100644 data/core.telegram.org/method/help.getCdnConfig create mode 100644 data/core.telegram.org/method/help.getConfig create mode 100644 data/core.telegram.org/method/help.getCountriesList create mode 100644 data/core.telegram.org/method/help.getDeepLinkInfo create mode 100644 data/core.telegram.org/method/help.getInviteText create mode 100644 data/core.telegram.org/method/help.getNearestDc create mode 100644 data/core.telegram.org/method/help.getPassportConfig create mode 100644 data/core.telegram.org/method/help.getPromoData create mode 100644 data/core.telegram.org/method/help.getProxyData create mode 100644 data/core.telegram.org/method/help.getRecentMeUrls create mode 100644 data/core.telegram.org/method/help.getSupport create mode 100644 data/core.telegram.org/method/help.getSupportName create mode 100644 data/core.telegram.org/method/help.getTermsOfServiceUpdate create mode 100644 data/core.telegram.org/method/help.getUserInfo create mode 100644 data/core.telegram.org/method/help.hidePromoData create mode 100644 data/core.telegram.org/method/help.saveAppLog create mode 100644 data/core.telegram.org/method/help.setBotUpdatesStatus create mode 100644 data/core.telegram.org/method/initConnection.html create mode 100644 data/core.telegram.org/method/invokeAfterMsg.html create mode 100644 data/core.telegram.org/method/invokeAfterMsgs.html create mode 100644 data/core.telegram.org/method/invokeWithLayer.html create mode 100644 data/core.telegram.org/method/invokeWithMessagesRange.html create mode 100644 data/core.telegram.org/method/invokeWithTakeout.html create mode 100644 data/core.telegram.org/method/invokeWithoutUpdates.html create mode 100644 data/core.telegram.org/method/langpack.getDifference create mode 100644 data/core.telegram.org/method/langpack.getLangPack create mode 100644 data/core.telegram.org/method/langpack.getLanguage create mode 100644 data/core.telegram.org/method/langpack.getLanguages create mode 100644 data/core.telegram.org/method/langpack.getStrings create mode 100644 data/core.telegram.org/method/messages.acceptEncryption create mode 100644 data/core.telegram.org/method/messages.acceptUrlAuth create mode 100644 data/core.telegram.org/method/messages.addChatUser create mode 100644 data/core.telegram.org/method/messages.checkChatInvite create mode 100644 data/core.telegram.org/method/messages.clearAllDrafts create mode 100644 data/core.telegram.org/method/messages.clearRecentStickers create mode 100644 data/core.telegram.org/method/messages.createChat create mode 100644 data/core.telegram.org/method/messages.deleteChatUser create mode 100644 data/core.telegram.org/method/messages.deleteHistory create mode 100644 data/core.telegram.org/method/messages.deleteMessages create mode 100644 data/core.telegram.org/method/messages.deleteScheduledMessages create mode 100644 data/core.telegram.org/method/messages.discardEncryption create mode 100644 data/core.telegram.org/method/messages.editChatAbout create mode 100644 data/core.telegram.org/method/messages.editChatAdmin create mode 100644 data/core.telegram.org/method/messages.editChatDefaultBannedRights create mode 100644 data/core.telegram.org/method/messages.editChatPhoto create mode 100644 data/core.telegram.org/method/messages.editChatTitle create mode 100644 data/core.telegram.org/method/messages.editInlineBotMessage create mode 100644 data/core.telegram.org/method/messages.editMessage create mode 100644 data/core.telegram.org/method/messages.exportChatInvite create mode 100644 data/core.telegram.org/method/messages.faveSticker create mode 100644 data/core.telegram.org/method/messages.forwardMessage create mode 100644 data/core.telegram.org/method/messages.forwardMessages create mode 100644 data/core.telegram.org/method/messages.getAllChats create mode 100644 data/core.telegram.org/method/messages.getAllDrafts create mode 100644 data/core.telegram.org/method/messages.getAllStickers create mode 100644 data/core.telegram.org/method/messages.getArchivedStickers create mode 100644 data/core.telegram.org/method/messages.getAttachedStickers create mode 100644 data/core.telegram.org/method/messages.getBotCallbackAnswer create mode 100644 data/core.telegram.org/method/messages.getChats create mode 100644 data/core.telegram.org/method/messages.getCommonChats create mode 100644 data/core.telegram.org/method/messages.getDhConfig create mode 100644 data/core.telegram.org/method/messages.getDialogFilters create mode 100644 data/core.telegram.org/method/messages.getDialogUnreadMarks create mode 100644 data/core.telegram.org/method/messages.getDialogs create mode 100644 data/core.telegram.org/method/messages.getDiscussionMessage create mode 100644 data/core.telegram.org/method/messages.getDocumentByHash create mode 100644 data/core.telegram.org/method/messages.getEmojiKeywords create mode 100644 data/core.telegram.org/method/messages.getEmojiKeywordsDifference create mode 100644 data/core.telegram.org/method/messages.getEmojiKeywordsLanguages create mode 100644 data/core.telegram.org/method/messages.getEmojiURL create mode 100644 data/core.telegram.org/method/messages.getFavedStickers create mode 100644 data/core.telegram.org/method/messages.getFeaturedStickers create mode 100644 data/core.telegram.org/method/messages.getFullChat create mode 100644 data/core.telegram.org/method/messages.getGameHighScores create mode 100644 data/core.telegram.org/method/messages.getHistory create mode 100644 data/core.telegram.org/method/messages.getInlineBotResults create mode 100644 data/core.telegram.org/method/messages.getInlineGameHighScores create mode 100644 data/core.telegram.org/method/messages.getMaskStickers create mode 100644 data/core.telegram.org/method/messages.getMessageEditData create mode 100644 data/core.telegram.org/method/messages.getMessageReactionsList create mode 100644 data/core.telegram.org/method/messages.getMessages create mode 100644 data/core.telegram.org/method/messages.getMessagesReactions create mode 100644 data/core.telegram.org/method/messages.getMessagesViews create mode 100644 data/core.telegram.org/method/messages.getOldFeaturedStickers create mode 100644 data/core.telegram.org/method/messages.getOnlines create mode 100644 data/core.telegram.org/method/messages.getPeerDialogs create mode 100644 data/core.telegram.org/method/messages.getPeerSettings create mode 100644 data/core.telegram.org/method/messages.getPinnedDialogs create mode 100644 data/core.telegram.org/method/messages.getPollResults create mode 100644 data/core.telegram.org/method/messages.getPollVotes create mode 100644 data/core.telegram.org/method/messages.getRecentLocations create mode 100644 data/core.telegram.org/method/messages.getRecentStickers create mode 100644 data/core.telegram.org/method/messages.getReplies create mode 100644 data/core.telegram.org/method/messages.getSavedGifs create mode 100644 data/core.telegram.org/method/messages.getScheduledHistory create mode 100644 data/core.telegram.org/method/messages.getScheduledMessages create mode 100644 data/core.telegram.org/method/messages.getSearchCounters create mode 100644 data/core.telegram.org/method/messages.getSplitRanges create mode 100644 data/core.telegram.org/method/messages.getStatsURL create mode 100644 data/core.telegram.org/method/messages.getStickerSet create mode 100644 data/core.telegram.org/method/messages.getStickers create mode 100644 data/core.telegram.org/method/messages.getSuggestedDialogFilters create mode 100644 data/core.telegram.org/method/messages.getUnreadMentions create mode 100644 data/core.telegram.org/method/messages.getWebPage create mode 100644 data/core.telegram.org/method/messages.getWebPagePreview create mode 100644 data/core.telegram.org/method/messages.hidePeerSettingsBar create mode 100644 data/core.telegram.org/method/messages.importChatInvite create mode 100644 data/core.telegram.org/method/messages.installStickerSet create mode 100644 data/core.telegram.org/method/messages.markDialogUnread create mode 100644 data/core.telegram.org/method/messages.migrateChat create mode 100644 data/core.telegram.org/method/messages.readDiscussion create mode 100644 data/core.telegram.org/method/messages.readEncryptedHistory create mode 100644 data/core.telegram.org/method/messages.readFeaturedStickers create mode 100644 data/core.telegram.org/method/messages.readHistory create mode 100644 data/core.telegram.org/method/messages.readMentions create mode 100644 data/core.telegram.org/method/messages.readMessageContents create mode 100644 data/core.telegram.org/method/messages.receivedMessages create mode 100644 data/core.telegram.org/method/messages.receivedQueue create mode 100644 data/core.telegram.org/method/messages.reorderPinnedDialogs create mode 100644 data/core.telegram.org/method/messages.reorderStickerSets create mode 100644 data/core.telegram.org/method/messages.report create mode 100644 data/core.telegram.org/method/messages.reportEncryptedSpam create mode 100644 data/core.telegram.org/method/messages.reportSpam create mode 100644 data/core.telegram.org/method/messages.requestEncryption create mode 100644 data/core.telegram.org/method/messages.requestUrlAuth create mode 100644 data/core.telegram.org/method/messages.saveDraft create mode 100644 data/core.telegram.org/method/messages.saveGif create mode 100644 data/core.telegram.org/method/messages.saveRecentSticker create mode 100644 data/core.telegram.org/method/messages.search create mode 100644 data/core.telegram.org/method/messages.searchGifs create mode 100644 data/core.telegram.org/method/messages.searchGlobal create mode 100644 data/core.telegram.org/method/messages.searchStickerSets create mode 100644 data/core.telegram.org/method/messages.sendBroadcast create mode 100644 data/core.telegram.org/method/messages.sendEncrypted create mode 100644 data/core.telegram.org/method/messages.sendEncryptedFile create mode 100644 data/core.telegram.org/method/messages.sendEncryptedService create mode 100644 data/core.telegram.org/method/messages.sendInlineBotResult create mode 100644 data/core.telegram.org/method/messages.sendMedia create mode 100644 data/core.telegram.org/method/messages.sendMessage create mode 100644 data/core.telegram.org/method/messages.sendMultiMedia create mode 100644 data/core.telegram.org/method/messages.sendReaction create mode 100644 data/core.telegram.org/method/messages.sendScheduledMessages create mode 100644 data/core.telegram.org/method/messages.sendScreenshotNotification create mode 100644 data/core.telegram.org/method/messages.sendVote create mode 100644 data/core.telegram.org/method/messages.setBotCallbackAnswer create mode 100644 data/core.telegram.org/method/messages.setBotPrecheckoutResults create mode 100644 data/core.telegram.org/method/messages.setBotShippingResults create mode 100644 data/core.telegram.org/method/messages.setEncryptedTyping create mode 100644 data/core.telegram.org/method/messages.setGameScore create mode 100644 data/core.telegram.org/method/messages.setInlineBotResults create mode 100644 data/core.telegram.org/method/messages.setInlineGameScore create mode 100644 data/core.telegram.org/method/messages.setTyping create mode 100644 data/core.telegram.org/method/messages.startBot create mode 100644 data/core.telegram.org/method/messages.toggleDialogPin create mode 100644 data/core.telegram.org/method/messages.toggleStickerSets create mode 100644 data/core.telegram.org/method/messages.uninstallStickerSet create mode 100644 data/core.telegram.org/method/messages.unpinAllMessages create mode 100644 data/core.telegram.org/method/messages.updateDialogFilter create mode 100644 data/core.telegram.org/method/messages.updateDialogFiltersOrder create mode 100644 data/core.telegram.org/method/messages.updatePinnedMessage create mode 100644 data/core.telegram.org/method/messages.uploadEncryptedFile create mode 100644 data/core.telegram.org/method/messages.uploadMedia create mode 100644 data/core.telegram.org/method/payments.clearSavedInfo create mode 100644 data/core.telegram.org/method/payments.getBankCardData create mode 100644 data/core.telegram.org/method/payments.getPaymentForm create mode 100644 data/core.telegram.org/method/payments.getPaymentReceipt create mode 100644 data/core.telegram.org/method/payments.getSavedInfo create mode 100644 data/core.telegram.org/method/payments.sendPaymentForm create mode 100644 data/core.telegram.org/method/payments.validateRequestedInfo create mode 100644 data/core.telegram.org/method/phone.acceptCall create mode 100644 data/core.telegram.org/method/phone.confirmCall create mode 100644 data/core.telegram.org/method/phone.discardCall create mode 100644 data/core.telegram.org/method/phone.getCallConfig create mode 100644 data/core.telegram.org/method/phone.receivedCall create mode 100644 data/core.telegram.org/method/phone.requestCall create mode 100644 data/core.telegram.org/method/phone.saveCallDebug create mode 100644 data/core.telegram.org/method/phone.sendSignalingData create mode 100644 data/core.telegram.org/method/phone.setCallRating create mode 100644 data/core.telegram.org/method/photos.deletePhotos create mode 100644 data/core.telegram.org/method/photos.getUserPhotos create mode 100644 data/core.telegram.org/method/photos.updateProfilePhoto create mode 100644 data/core.telegram.org/method/photos.uploadProfilePhoto create mode 100644 data/core.telegram.org/method/stats.getBroadcastStats create mode 100644 data/core.telegram.org/method/stats.getMegagroupStats create mode 100644 data/core.telegram.org/method/stats.getMessagePublicForwards create mode 100644 data/core.telegram.org/method/stats.getMessageStats create mode 100644 data/core.telegram.org/method/stats.loadAsyncGraph create mode 100644 data/core.telegram.org/method/stickers.addStickerToSet create mode 100644 data/core.telegram.org/method/stickers.changeStickerPosition create mode 100644 data/core.telegram.org/method/stickers.createStickerSet create mode 100644 data/core.telegram.org/method/stickers.removeStickerFromSet create mode 100644 data/core.telegram.org/method/stickers.setStickerSetThumb create mode 100644 data/core.telegram.org/method/updates.getChannelDifference create mode 100644 data/core.telegram.org/method/updates.getDifference create mode 100644 data/core.telegram.org/method/updates.getState create mode 100644 data/core.telegram.org/method/upload.getCdnFile create mode 100644 data/core.telegram.org/method/upload.getCdnFileHashes create mode 100644 data/core.telegram.org/method/upload.getFile create mode 100644 data/core.telegram.org/method/upload.getFileHashes create mode 100644 data/core.telegram.org/method/upload.getWebFile create mode 100644 data/core.telegram.org/method/upload.reuploadCdnFile create mode 100644 data/core.telegram.org/method/upload.saveBigFilePart create mode 100644 data/core.telegram.org/method/upload.saveFilePart create mode 100644 data/core.telegram.org/method/users.getFullUser create mode 100644 data/core.telegram.org/method/users.getUsers create mode 100644 data/core.telegram.org/method/users.setSecureValueErrors create mode 100644 data/core.telegram.org/mtproto/mtproto-transports.html create mode 100644 data/core.telegram.org/type/AccountDaysTTL.html create mode 100644 data/core.telegram.org/type/Audio.html create mode 100644 data/core.telegram.org/type/Authorization.html create mode 100644 data/core.telegram.org/type/AutoDownloadSettings.html create mode 100644 data/core.telegram.org/type/BankCardOpenUrl.html create mode 100644 data/core.telegram.org/type/BaseTheme.html create mode 100644 data/core.telegram.org/type/Bool.html create mode 100644 data/core.telegram.org/type/BotCommand.html create mode 100644 data/core.telegram.org/type/BotInfo.html create mode 100644 data/core.telegram.org/type/BotInlineMessage.html create mode 100644 data/core.telegram.org/type/BotInlineResult.html create mode 100644 data/core.telegram.org/type/CdnConfig.html create mode 100644 data/core.telegram.org/type/CdnPublicKey.html create mode 100644 data/core.telegram.org/type/ChannelAdminLogEvent.html create mode 100644 data/core.telegram.org/type/ChannelAdminLogEventAction.html create mode 100644 data/core.telegram.org/type/ChannelAdminLogEventsFilter.html create mode 100644 data/core.telegram.org/type/ChannelLocation.html create mode 100644 data/core.telegram.org/type/ChannelMessagesFilter.html create mode 100644 data/core.telegram.org/type/ChannelParticipant.html create mode 100644 data/core.telegram.org/type/ChannelParticipantsFilter.html create mode 100644 data/core.telegram.org/type/Chat.html create mode 100644 data/core.telegram.org/type/ChatAdminRights.html create mode 100644 data/core.telegram.org/type/ChatBannedRights.html create mode 100644 data/core.telegram.org/type/ChatFull.html create mode 100644 data/core.telegram.org/type/ChatInvite.html create mode 100644 data/core.telegram.org/type/ChatOnlines.html create mode 100644 data/core.telegram.org/type/ChatParticipant.html create mode 100644 data/core.telegram.org/type/ChatParticipants.html create mode 100644 data/core.telegram.org/type/ChatPhoto.html create mode 100644 data/core.telegram.org/type/CodeSettings.html create mode 100644 data/core.telegram.org/type/Config.html create mode 100644 data/core.telegram.org/type/Contact.html create mode 100644 data/core.telegram.org/type/ContactStatus.html create mode 100644 data/core.telegram.org/type/DataJSON.html create mode 100644 data/core.telegram.org/type/DcOption.html create mode 100644 data/core.telegram.org/type/DecryptedDataBlock.html create mode 100644 data/core.telegram.org/type/DecryptedMessage.html create mode 100644 data/core.telegram.org/type/DecryptedMessageAction.html create mode 100644 data/core.telegram.org/type/DecryptedMessageLayer.html create mode 100644 data/core.telegram.org/type/DecryptedMessageMedia.html create mode 100644 data/core.telegram.org/type/Dialog.html create mode 100644 data/core.telegram.org/type/DialogFilter.html create mode 100644 data/core.telegram.org/type/DialogFilterSuggested.html create mode 100644 data/core.telegram.org/type/DialogPeer.html create mode 100644 data/core.telegram.org/type/DisabledFeature.html create mode 100644 data/core.telegram.org/type/Document.html create mode 100644 data/core.telegram.org/type/DocumentAttribute.html create mode 100644 data/core.telegram.org/type/DraftMessage.html create mode 100644 data/core.telegram.org/type/EmojiKeyword.html create mode 100644 data/core.telegram.org/type/EmojiKeywordsDifference.html create mode 100644 data/core.telegram.org/type/EmojiLanguage.html create mode 100644 data/core.telegram.org/type/EmojiURL.html create mode 100644 data/core.telegram.org/type/EncryptedChat.html create mode 100644 data/core.telegram.org/type/EncryptedFile.html create mode 100644 data/core.telegram.org/type/EncryptedMessage.html create mode 100644 data/core.telegram.org/type/Error.html create mode 100644 data/core.telegram.org/type/ExportedChatInvite.html create mode 100644 data/core.telegram.org/type/ExportedMessageLink.html create mode 100644 data/core.telegram.org/type/FileHash.html create mode 100644 data/core.telegram.org/type/FileLocation.html create mode 100644 data/core.telegram.org/type/Folder.html create mode 100644 data/core.telegram.org/type/FolderPeer.html create mode 100644 data/core.telegram.org/type/Game.html create mode 100644 data/core.telegram.org/type/GeoPoint.html create mode 100644 data/core.telegram.org/type/GlobalPrivacySettings.html create mode 100644 data/core.telegram.org/type/HighScore.html create mode 100644 data/core.telegram.org/type/ImportedContact.html create mode 100644 data/core.telegram.org/type/InlineBotSwitchPM.html create mode 100644 data/core.telegram.org/type/InputAppEvent.html create mode 100644 data/core.telegram.org/type/InputBotInlineMessage.html create mode 100644 data/core.telegram.org/type/InputBotInlineMessageID.html create mode 100644 data/core.telegram.org/type/InputBotInlineResult.html create mode 100644 data/core.telegram.org/type/InputChannel.html create mode 100644 data/core.telegram.org/type/InputChatPhoto.html create mode 100644 data/core.telegram.org/type/InputCheckPasswordSRP.html create mode 100644 data/core.telegram.org/type/InputClientProxy.html create mode 100644 data/core.telegram.org/type/InputContact.html create mode 100644 data/core.telegram.org/type/InputDialogPeer.html create mode 100644 data/core.telegram.org/type/InputDocument.html create mode 100644 data/core.telegram.org/type/InputEncryptedChat.html create mode 100644 data/core.telegram.org/type/InputEncryptedFile.html create mode 100644 data/core.telegram.org/type/InputFile.html create mode 100644 data/core.telegram.org/type/InputFileLocation.html create mode 100644 data/core.telegram.org/type/InputFolderPeer.html create mode 100644 data/core.telegram.org/type/InputGame.html create mode 100644 data/core.telegram.org/type/InputGeoPoint.html create mode 100644 data/core.telegram.org/type/InputMedia.html create mode 100644 data/core.telegram.org/type/InputMessage.html create mode 100644 data/core.telegram.org/type/InputNotifyPeer.html create mode 100644 data/core.telegram.org/type/InputPaymentCredentials.html create mode 100644 data/core.telegram.org/type/InputPeer.html create mode 100644 data/core.telegram.org/type/InputPeerNotifySettings.html create mode 100644 data/core.telegram.org/type/InputPhoneCall.html create mode 100644 data/core.telegram.org/type/InputPhoto.html create mode 100644 data/core.telegram.org/type/InputPrivacyKey.html create mode 100644 data/core.telegram.org/type/InputPrivacyRule.html create mode 100644 data/core.telegram.org/type/InputSecureFile.html create mode 100644 data/core.telegram.org/type/InputSecureValue.html create mode 100644 data/core.telegram.org/type/InputSingleMedia.html create mode 100644 data/core.telegram.org/type/InputStickerSet.html create mode 100644 data/core.telegram.org/type/InputStickerSetItem.html create mode 100644 data/core.telegram.org/type/InputStickeredMedia.html create mode 100644 data/core.telegram.org/type/InputTheme.html create mode 100644 data/core.telegram.org/type/InputThemeSettings.html create mode 100644 data/core.telegram.org/type/InputUser.html create mode 100644 data/core.telegram.org/type/InputWallPaper.html create mode 100644 data/core.telegram.org/type/InputWebDocument.html create mode 100644 data/core.telegram.org/type/InputWebFileLocation.html create mode 100644 data/core.telegram.org/type/Invoice.html create mode 100644 data/core.telegram.org/type/JSONObjectValue.html create mode 100644 data/core.telegram.org/type/JSONValue.html create mode 100644 data/core.telegram.org/type/KeyboardButton.html create mode 100644 data/core.telegram.org/type/KeyboardButtonRow.html create mode 100644 data/core.telegram.org/type/LabeledPrice.html create mode 100644 data/core.telegram.org/type/LangPackDifference.html create mode 100644 data/core.telegram.org/type/LangPackLanguage.html create mode 100644 data/core.telegram.org/type/LangPackString.html create mode 100644 data/core.telegram.org/type/MaskCoords.html create mode 100644 data/core.telegram.org/type/Message.html create mode 100644 data/core.telegram.org/type/MessageAction.html create mode 100644 data/core.telegram.org/type/MessageEntity.html create mode 100644 data/core.telegram.org/type/MessageFwdHeader.html create mode 100644 data/core.telegram.org/type/MessageInteractionCounters.html create mode 100644 data/core.telegram.org/type/MessageMedia.html create mode 100644 data/core.telegram.org/type/MessageRange.html create mode 100644 data/core.telegram.org/type/MessageReactionsList.html create mode 100644 data/core.telegram.org/type/MessageReplies.html create mode 100644 data/core.telegram.org/type/MessageReplyHeader.html create mode 100644 data/core.telegram.org/type/MessageUserVote.html create mode 100644 data/core.telegram.org/type/MessageViews.html create mode 100644 data/core.telegram.org/type/MessagesFilter.html create mode 100644 data/core.telegram.org/type/NearestDc.html create mode 100644 data/core.telegram.org/type/NotifyPeer.html create mode 100644 data/core.telegram.org/type/Null.html create mode 100644 data/core.telegram.org/type/Page.html create mode 100644 data/core.telegram.org/type/PageBlock.html create mode 100644 data/core.telegram.org/type/PageCaption.html create mode 100644 data/core.telegram.org/type/PageListItem.html create mode 100644 data/core.telegram.org/type/PageListOrderedItem.html create mode 100644 data/core.telegram.org/type/PageRelatedArticle.html create mode 100644 data/core.telegram.org/type/PageTableCell.html create mode 100644 data/core.telegram.org/type/PageTableRow.html create mode 100644 data/core.telegram.org/type/PasswordKdfAlgo.html create mode 100644 data/core.telegram.org/type/PaymentCharge.html create mode 100644 data/core.telegram.org/type/PaymentRequestedInfo.html create mode 100644 data/core.telegram.org/type/PaymentSavedCredentials.html create mode 100644 data/core.telegram.org/type/Peer.html create mode 100644 data/core.telegram.org/type/PeerBlocked.html create mode 100644 data/core.telegram.org/type/PeerLocated.html create mode 100644 data/core.telegram.org/type/PeerNotifySettings.html create mode 100644 data/core.telegram.org/type/PeerSettings.html create mode 100644 data/core.telegram.org/type/PhoneCall.html create mode 100644 data/core.telegram.org/type/PhoneCallDiscardReason.html create mode 100644 data/core.telegram.org/type/PhoneCallProtocol.html create mode 100644 data/core.telegram.org/type/PhoneConnection.html create mode 100644 data/core.telegram.org/type/Photo.html create mode 100644 data/core.telegram.org/type/PhotoSize.html create mode 100644 data/core.telegram.org/type/Poll.html create mode 100644 data/core.telegram.org/type/PollAnswer.html create mode 100644 data/core.telegram.org/type/PollAnswerVoters.html create mode 100644 data/core.telegram.org/type/PollResults.html create mode 100644 data/core.telegram.org/type/PopularContact.html create mode 100644 data/core.telegram.org/type/PostAddress.html create mode 100644 data/core.telegram.org/type/PrivacyKey.html create mode 100644 data/core.telegram.org/type/PrivacyRule.html create mode 100644 data/core.telegram.org/type/ReceivedNotifyMessage.html create mode 100644 data/core.telegram.org/type/RecentMeUrl.html create mode 100644 data/core.telegram.org/type/ReplyMarkup.html create mode 100644 data/core.telegram.org/type/ReportReason.html create mode 100644 data/core.telegram.org/type/RestrictionReason.html create mode 100644 data/core.telegram.org/type/RichText.html create mode 100644 data/core.telegram.org/type/SavedContact.html create mode 100644 data/core.telegram.org/type/SecureCredentialsEncrypted.html create mode 100644 data/core.telegram.org/type/SecureData.html create mode 100644 data/core.telegram.org/type/SecureFile.html create mode 100644 data/core.telegram.org/type/SecurePasswordKdfAlgo.html create mode 100644 data/core.telegram.org/type/SecurePlainData.html create mode 100644 data/core.telegram.org/type/SecureRequiredType.html create mode 100644 data/core.telegram.org/type/SecureSecretSettings.html create mode 100644 data/core.telegram.org/type/SecureValue.html create mode 100644 data/core.telegram.org/type/SecureValueError.html create mode 100644 data/core.telegram.org/type/SecureValueHash.html create mode 100644 data/core.telegram.org/type/SecureValueType.html create mode 100644 data/core.telegram.org/type/SendMessageAction.html create mode 100644 data/core.telegram.org/type/ShippingOption.html create mode 100644 data/core.telegram.org/type/StatsAbsValueAndPrev.html create mode 100644 data/core.telegram.org/type/StatsDateRangeDays.html create mode 100644 data/core.telegram.org/type/StatsGraph.html create mode 100644 data/core.telegram.org/type/StatsGroupTopAdmin.html create mode 100644 data/core.telegram.org/type/StatsGroupTopInviter.html create mode 100644 data/core.telegram.org/type/StatsGroupTopPoster.html create mode 100644 data/core.telegram.org/type/StatsPercentValue.html create mode 100644 data/core.telegram.org/type/StatsURL.html create mode 100644 data/core.telegram.org/type/StickerPack.html create mode 100644 data/core.telegram.org/type/StickerSet.html create mode 100644 data/core.telegram.org/type/StickerSetCovered.html create mode 100644 data/core.telegram.org/type/Theme.html create mode 100644 data/core.telegram.org/type/ThemeSettings.html create mode 100644 data/core.telegram.org/type/TopPeer.html create mode 100644 data/core.telegram.org/type/TopPeerCategory.html create mode 100644 data/core.telegram.org/type/TopPeerCategoryPeers.html create mode 100644 data/core.telegram.org/type/True.html create mode 100644 data/core.telegram.org/type/Update.html create mode 100644 data/core.telegram.org/type/Updates.html create mode 100644 data/core.telegram.org/type/UrlAuthResult.html create mode 100644 data/core.telegram.org/type/User.html create mode 100644 data/core.telegram.org/type/UserFull.html create mode 100644 data/core.telegram.org/type/UserProfilePhoto.html create mode 100644 data/core.telegram.org/type/UserStatus.html create mode 100644 data/core.telegram.org/type/Vector t.html create mode 100644 data/core.telegram.org/type/Video.html create mode 100644 data/core.telegram.org/type/VideoSize.html create mode 100644 data/core.telegram.org/type/WallPaper.html create mode 100644 data/core.telegram.org/type/WallPaperSettings.html create mode 100644 data/core.telegram.org/type/WebAuthorization.html create mode 100644 data/core.telegram.org/type/WebDocument.html create mode 100644 data/core.telegram.org/type/WebPage.html create mode 100644 data/core.telegram.org/type/WebPageAttribute.html create mode 100644 data/core.telegram.org/type/account.AuthorizationForm create mode 100644 data/core.telegram.org/type/account.Authorizations create mode 100644 data/core.telegram.org/type/account.AutoDownloadSettings create mode 100644 data/core.telegram.org/type/account.ContentSettings create mode 100644 data/core.telegram.org/type/account.Password create mode 100644 data/core.telegram.org/type/account.PasswordInputSettings create mode 100644 data/core.telegram.org/type/account.PasswordSettings create mode 100644 data/core.telegram.org/type/account.PrivacyRules create mode 100644 data/core.telegram.org/type/account.SentChangePhoneCode create mode 100644 data/core.telegram.org/type/account.SentEmailCode create mode 100644 data/core.telegram.org/type/account.Takeout create mode 100644 data/core.telegram.org/type/account.Themes create mode 100644 data/core.telegram.org/type/account.TmpPassword create mode 100644 data/core.telegram.org/type/account.WallPapers create mode 100644 data/core.telegram.org/type/account.WebAuthorizations create mode 100644 data/core.telegram.org/type/auth.Authorization create mode 100644 data/core.telegram.org/type/auth.CheckedPhone create mode 100644 data/core.telegram.org/type/auth.CodeType create mode 100644 data/core.telegram.org/type/auth.ExportedAuthorization create mode 100644 data/core.telegram.org/type/auth.LoginToken create mode 100644 data/core.telegram.org/type/auth.PasswordRecovery create mode 100644 data/core.telegram.org/type/auth.SentCode create mode 100644 data/core.telegram.org/type/auth.SentCodeType create mode 100644 data/core.telegram.org/type/bytes.html create mode 100644 data/core.telegram.org/type/channels.AdminLogResults create mode 100644 data/core.telegram.org/type/channels.ChannelParticipant create mode 100644 data/core.telegram.org/type/channels.ChannelParticipants create mode 100644 data/core.telegram.org/type/contacts.Blocked create mode 100644 data/core.telegram.org/type/contacts.Contacts create mode 100644 data/core.telegram.org/type/contacts.Found create mode 100644 data/core.telegram.org/type/contacts.ImportedContacts create mode 100644 data/core.telegram.org/type/contacts.Link create mode 100644 data/core.telegram.org/type/contacts.ResolvedPeer create mode 100644 data/core.telegram.org/type/contacts.TopPeers create mode 100644 data/core.telegram.org/type/double.html create mode 100644 data/core.telegram.org/type/help.AppUpdate create mode 100644 data/core.telegram.org/type/help.CountriesList create mode 100644 data/core.telegram.org/type/help.Country create mode 100644 data/core.telegram.org/type/help.CountryCode create mode 100644 data/core.telegram.org/type/help.DeepLinkInfo create mode 100644 data/core.telegram.org/type/help.InviteText create mode 100644 data/core.telegram.org/type/help.PassportConfig create mode 100644 data/core.telegram.org/type/help.PromoData create mode 100644 data/core.telegram.org/type/help.ProxyData create mode 100644 data/core.telegram.org/type/help.RecentMeUrls create mode 100644 data/core.telegram.org/type/help.Support create mode 100644 data/core.telegram.org/type/help.SupportName create mode 100644 data/core.telegram.org/type/help.TermsOfService create mode 100644 data/core.telegram.org/type/help.TermsOfServiceUpdate create mode 100644 data/core.telegram.org/type/help.UserInfo create mode 100644 data/core.telegram.org/type/int.html create mode 100644 data/core.telegram.org/type/long.html create mode 100644 data/core.telegram.org/type/messages.AffectedHistory create mode 100644 data/core.telegram.org/type/messages.AffectedMessages create mode 100644 data/core.telegram.org/type/messages.AllStickers create mode 100644 data/core.telegram.org/type/messages.ArchivedStickers create mode 100644 data/core.telegram.org/type/messages.BotCallbackAnswer create mode 100644 data/core.telegram.org/type/messages.BotResults create mode 100644 data/core.telegram.org/type/messages.ChatFull create mode 100644 data/core.telegram.org/type/messages.Chats create mode 100644 data/core.telegram.org/type/messages.DhConfig create mode 100644 data/core.telegram.org/type/messages.Dialogs create mode 100644 data/core.telegram.org/type/messages.DiscussionMessage create mode 100644 data/core.telegram.org/type/messages.FavedStickers create mode 100644 data/core.telegram.org/type/messages.FeaturedStickers create mode 100644 data/core.telegram.org/type/messages.FoundGifs create mode 100644 data/core.telegram.org/type/messages.FoundStickerSets create mode 100644 data/core.telegram.org/type/messages.HighScores create mode 100644 data/core.telegram.org/type/messages.InactiveChats create mode 100644 data/core.telegram.org/type/messages.MessageEditData create mode 100644 data/core.telegram.org/type/messages.MessageViews create mode 100644 data/core.telegram.org/type/messages.Messages create mode 100644 data/core.telegram.org/type/messages.PeerDialogs create mode 100644 data/core.telegram.org/type/messages.RecentStickers create mode 100644 data/core.telegram.org/type/messages.SavedGifs create mode 100644 data/core.telegram.org/type/messages.SearchCounter create mode 100644 data/core.telegram.org/type/messages.SentEncryptedMessage create mode 100644 data/core.telegram.org/type/messages.SentMessage create mode 100644 data/core.telegram.org/type/messages.StatedMessage create mode 100644 data/core.telegram.org/type/messages.StatedMessages create mode 100644 data/core.telegram.org/type/messages.StickerSet create mode 100644 data/core.telegram.org/type/messages.StickerSetInstallResult create mode 100644 data/core.telegram.org/type/messages.Stickers create mode 100644 data/core.telegram.org/type/messages.VotesList create mode 100644 data/core.telegram.org/type/payments.BankCardData create mode 100644 data/core.telegram.org/type/payments.PaymentForm create mode 100644 data/core.telegram.org/type/payments.PaymentReceipt create mode 100644 data/core.telegram.org/type/payments.PaymentResult create mode 100644 data/core.telegram.org/type/payments.SavedInfo create mode 100644 data/core.telegram.org/type/payments.ValidatedRequestedInfo create mode 100644 data/core.telegram.org/type/phone.PhoneCall create mode 100644 data/core.telegram.org/type/photos.Photo create mode 100644 data/core.telegram.org/type/photos.Photos create mode 100644 data/core.telegram.org/type/stats.BroadcastStats create mode 100644 data/core.telegram.org/type/stats.MegagroupStats create mode 100644 data/core.telegram.org/type/stats.MessageStats create mode 100644 data/core.telegram.org/type/storage.FileType create mode 100644 data/core.telegram.org/type/string.html create mode 100644 data/core.telegram.org/type/updates.ChannelDifference create mode 100644 data/core.telegram.org/type/updates.Difference create mode 100644 data/core.telegram.org/type/updates.State create mode 100644 data/core.telegram.org/type/upload.CdnFile create mode 100644 data/core.telegram.org/type/upload.File create mode 100644 data/core.telegram.org/type/upload.WebFile diff --git a/data/core.telegram.org/api/pattern.html b/data/core.telegram.org/api/pattern.html new file mode 100644 index 0000000000..1e4d16c81f --- /dev/null +++ b/data/core.telegram.org/api/pattern.html @@ -0,0 +1,122 @@ + + + + + Pattern matching + + + + + + + + + + + + + +
+ +
+
+
+ +

Pattern matching

+ +

Some methods require the client to verify if the data obtained from an external source matches a certain pattern.

+

For example, when requesting a login code, if the chosen verification method is a flash call, it is required that the phone number (which is the login code) matches the specified pattern.

+

Same with email verification codes.

+

In all cases, the pattern is a string of the same length as the string to verify: and matching is as simple as checking if all chars in the source string are the same as in the pattern string. +Some chars in the pattern string may be censored using an asterisk *, in this case any char in the source string is considered valid.

+

The pattern string can also be a single astrisk, in this case all patterns are considered valid.

+

If the source string is a phone number, it has to be sanitized first to include only the following chars: 0123456789.

+

Example implementation: telegram for android.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.authorizationForm b/data/core.telegram.org/constructor/account.authorizationForm new file mode 100644 index 0000000000..5e691638c4 --- /dev/null +++ b/data/core.telegram.org/constructor/account.authorizationForm @@ -0,0 +1,174 @@ + + + + + account.authorizationForm + + + + + + + + + + + + + +
+ +
+
+
+ +

account.authorizationForm

+ +

Telegram Passport authorization form

+

+
account.authorizationForm#ad2e1cd8 flags:# required_types:Vector<SecureRequiredType> values:Vector<SecureValue> errors:Vector<SecureValueError> users:Vector<User> privacy_policy_url:flags.0?string = account.AuthorizationForm;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
required_typesVector<SecureRequiredType>Required Telegram Passport documents
valuesVector<SecureValue>Already submitted Telegram Passport documents
errorsVector<SecureValueError>Telegram Passport errors
usersVector<User>Info about the bot to which the form will be submitted
privacy_policy_urlflags.0?stringURL of the service's privacy policy
+

Type

+

account.AuthorizationForm

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.authorizations b/data/core.telegram.org/constructor/account.authorizations new file mode 100644 index 0000000000..a8366528f3 --- /dev/null +++ b/data/core.telegram.org/constructor/account.authorizations @@ -0,0 +1,147 @@ + + + + + account.authorizations + + + + + + + + + + + + + +
+ +
+
+
+ +

account.authorizations

+ +

Logged-in sessions

+

+
account.authorizations#1250abde authorizations:Vector<Authorization> = account.Authorizations;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
authorizationsVector<Authorization>Logged-in sessions
+

Type

+

account.Authorizations

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.autoDownloadSettings b/data/core.telegram.org/constructor/account.autoDownloadSettings new file mode 100644 index 0000000000..2d1e589682 --- /dev/null +++ b/data/core.telegram.org/constructor/account.autoDownloadSettings @@ -0,0 +1,157 @@ + + + + + account.autoDownloadSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.autoDownloadSettings

+ +

Media autodownload settings

+

+
account.autoDownloadSettings#63cacf26 low:AutoDownloadSettings medium:AutoDownloadSettings high:AutoDownloadSettings = account.AutoDownloadSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lowAutoDownloadSettingsLow data usage preset
mediumAutoDownloadSettingsMedium data usage preset
highAutoDownloadSettingsHigh data usage preset
+

Type

+

account.AutoDownloadSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.contentSettings b/data/core.telegram.org/constructor/account.contentSettings new file mode 100644 index 0000000000..7bcc0e5edf --- /dev/null +++ b/data/core.telegram.org/constructor/account.contentSettings @@ -0,0 +1,157 @@ + + + + + account.contentSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.contentSettings

+ +

Sensitive content settings

+

+
account.contentSettings#57e28221 flags:# sensitive_enabled:flags.0?true sensitive_can_change:flags.1?true = account.ContentSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
sensitive_enabledflags.0?trueWhether viewing of sensitive (NSFW) content is enabled
sensitive_can_changeflags.1?trueWhether the current client can change the sensitive content settings to view NSFW content
+

Type

+

account.ContentSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.password b/data/core.telegram.org/constructor/account.password new file mode 100644 index 0000000000..ab2814775f --- /dev/null +++ b/data/core.telegram.org/constructor/account.password @@ -0,0 +1,208 @@ + + + + + account.password + + + + + + + + + + + + + +
+ +
+
+
+ +

account.password

+ +

Configuration for two-factor authorization

+

+
account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
has_recoveryflags.0?trueWhether the user has a recovery method configured
has_secure_valuesflags.1?trueWhether telegram passport is enabled
has_passwordflags.2?trueWhether the user has a password
current_algoflags.2?PasswordKdfAlgoThe KDF algorithm for SRP two-factor authentication of the current password
srp_Bflags.2?bytesSrp B param for SRP authorization
srp_idflags.2?longSrp ID param for SRP authorization
hintflags.3?stringText hint for the password
email_unconfirmed_patternflags.4?stringA password recovery email with the specified pattern is still awaiting verification
new_algoPasswordKdfAlgoThe KDF algorithm for SRP two-factor authentication to use when creating new passwords
new_secure_algoSecurePasswordKdfAlgoThe KDF algorithm for telegram passport
secure_randombytesSecure random string
+

Type

+

account.Password

+

Related pages

+

Telegram Passport Manual

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+

Pattern matching

+

Some methods require the client to verify if the data obtained from an external source matches a certain pattern.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.passwordInputSettings b/data/core.telegram.org/constructor/account.passwordInputSettings new file mode 100644 index 0000000000..1c243493ab --- /dev/null +++ b/data/core.telegram.org/constructor/account.passwordInputSettings @@ -0,0 +1,176 @@ + + + + + account.passwordInputSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.passwordInputSettings

+ +

Settings for setting up a new password

+

+
account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
new_algoflags.0?PasswordKdfAlgoThe SRP algorithm to use
new_password_hashflags.0?bytesThe computed password hash
hintflags.0?stringText hint for the password
emailflags.1?stringPassword recovery email
new_secure_settingsflags.2?SecureSecretSettingsTelegram passport settings
+

Type

+

account.PasswordInputSettings

+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.passwordSettings b/data/core.telegram.org/constructor/account.passwordSettings new file mode 100644 index 0000000000..81cba281d2 --- /dev/null +++ b/data/core.telegram.org/constructor/account.passwordSettings @@ -0,0 +1,161 @@ + + + + + account.passwordSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.passwordSettings

+ +

Private info associated to the password info (recovery email, telegram passport info & so on)

+

+
account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
emailflags.0?string2FA Recovery email
secure_settingsflags.1?SecureSecretSettingsTelegram passport settings
+

Type

+

account.PasswordSettings

+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.privacyRules b/data/core.telegram.org/constructor/account.privacyRules new file mode 100644 index 0000000000..ba339e86d8 --- /dev/null +++ b/data/core.telegram.org/constructor/account.privacyRules @@ -0,0 +1,157 @@ + + + + + account.privacyRules + + + + + + + + + + + + + +
+ +
+
+
+ +

account.privacyRules

+ +

Privacy rules

+

+
account.privacyRules#50a04e45 rules:Vector<PrivacyRule> chats:Vector<Chat> users:Vector<User> = account.PrivacyRules;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rulesVector<PrivacyRule>Privacy rules
chatsVector<Chat>Chats to which the rules apply
usersVector<User>Users to which the rules apply
+

Type

+

account.PrivacyRules

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.sentChangePhoneCode b/data/core.telegram.org/constructor/account.sentChangePhoneCode new file mode 100644 index 0000000000..5f981a22dc --- /dev/null +++ b/data/core.telegram.org/constructor/account.sentChangePhoneCode @@ -0,0 +1,161 @@ + + + + + account.sentChangePhoneCode + + + + + + + + + + + + + +
+ +
+
+
+ +

account.sentChangePhoneCode

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.sentEmailCode b/data/core.telegram.org/constructor/account.sentEmailCode new file mode 100644 index 0000000000..854b294fd0 --- /dev/null +++ b/data/core.telegram.org/constructor/account.sentEmailCode @@ -0,0 +1,155 @@ + + + + + account.sentEmailCode + + + + + + + + + + + + + +
+ +
+
+
+ +

account.sentEmailCode

+ +

The sent email code

+

+
account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
email_patternstringThe email (to which the code was sent) must match this pattern
lengthintThe length of the verification code
+

Type

+

account.SentEmailCode

+

Related pages

+

Pattern matching

+

Some methods require the client to verify if the data obtained from an external source matches a certain pattern.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.takeout b/data/core.telegram.org/constructor/account.takeout new file mode 100644 index 0000000000..802cfb3326 --- /dev/null +++ b/data/core.telegram.org/constructor/account.takeout @@ -0,0 +1,147 @@ + + + + + account.takeout + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.themes b/data/core.telegram.org/constructor/account.themes new file mode 100644 index 0000000000..bad55380a1 --- /dev/null +++ b/data/core.telegram.org/constructor/account.themes @@ -0,0 +1,155 @@ + + + + + account.themes + + + + + + + + + + + + + +
+ +
+
+
+ +

account.themes

+ +

Installed themes

+

+
account.themes#7f676421 hash:int themes:Vector<Theme> = account.Themes;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
themesVector<Theme>Themes
+

Type

+

account.Themes

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.themesNotModified b/data/core.telegram.org/constructor/account.themesNotModified new file mode 100644 index 0000000000..525f64b26b --- /dev/null +++ b/data/core.telegram.org/constructor/account.themesNotModified @@ -0,0 +1,132 @@ + + + + + account.themesNotModified + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.tmpPassword b/data/core.telegram.org/constructor/account.tmpPassword new file mode 100644 index 0000000000..bb79d741c8 --- /dev/null +++ b/data/core.telegram.org/constructor/account.tmpPassword @@ -0,0 +1,152 @@ + + + + + account.tmpPassword + + + + + + + + + + + + + +
+ +
+
+
+ +

account.tmpPassword

+ +

Temporary payment password

+

+
account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
tmp_passwordbytesTemporary password
valid_untilintValidity period
+

Type

+

account.TmpPassword

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.wallPapers b/data/core.telegram.org/constructor/account.wallPapers new file mode 100644 index 0000000000..898dc30e3c --- /dev/null +++ b/data/core.telegram.org/constructor/account.wallPapers @@ -0,0 +1,155 @@ + + + + + account.wallPapers + + + + + + + + + + + + + +
+ +
+
+
+ +

account.wallPapers

+ +

Installed wallpapers

+

+
account.wallPapers#702b65a9 hash:int wallpapers:Vector<WallPaper> = account.WallPapers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
wallpapersVector<WallPaper>Wallpapers
+

Type

+

account.WallPapers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.wallPapersNotModified b/data/core.telegram.org/constructor/account.wallPapersNotModified new file mode 100644 index 0000000000..2ee4467b9f --- /dev/null +++ b/data/core.telegram.org/constructor/account.wallPapersNotModified @@ -0,0 +1,132 @@ + + + + + account.wallPapersNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

account.wallPapersNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/account.webAuthorizations b/data/core.telegram.org/constructor/account.webAuthorizations new file mode 100644 index 0000000000..16ba6f99a9 --- /dev/null +++ b/data/core.telegram.org/constructor/account.webAuthorizations @@ -0,0 +1,152 @@ + + + + + account.webAuthorizations + + + + + + + + + + + + + +
+ +
+
+
+ +

account.webAuthorizations

+ +

Web authorizations

+

+
account.webAuthorizations#ed56c9fc authorizations:Vector<WebAuthorization> users:Vector<User> = account.WebAuthorizations;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
authorizationsVector<WebAuthorization>Web authorization list
usersVector<User>Users
+

Type

+

account.WebAuthorizations

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/accountDaysTTL.html b/data/core.telegram.org/constructor/accountDaysTTL.html new file mode 100644 index 0000000000..11f289125a --- /dev/null +++ b/data/core.telegram.org/constructor/accountDaysTTL.html @@ -0,0 +1,147 @@ + + + + + accountDaysTTL + + + + + + + + + + + + + +
+ +
+
+
+ +

accountDaysTTL

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.authorization b/data/core.telegram.org/constructor/auth.authorization new file mode 100644 index 0000000000..2e09059f36 --- /dev/null +++ b/data/core.telegram.org/constructor/auth.authorization @@ -0,0 +1,159 @@ + + + + + auth.authorization + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.authorization

+ +

Contains user authorization info.

+

+
auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
tmp_sessionsflags.0?intTemporary passport sessions
userUserInfo on authorized user
+

Type

+

auth.Authorization

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.authorizationSignUpRequired b/data/core.telegram.org/constructor/auth.authorizationSignUpRequired new file mode 100644 index 0000000000..5dd5ec25a8 --- /dev/null +++ b/data/core.telegram.org/constructor/auth.authorizationSignUpRequired @@ -0,0 +1,155 @@ + + + + + auth.authorizationSignUpRequired + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.authorizationSignUpRequired

+ +

An account with this phone number doesn't exist on telegram: the user has to enter basic information and sign up

+

+
auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
terms_of_serviceflags.0?help.TermsOfServiceTelegram's terms of service: the user must read and accept the terms of service before signing up to telegram
+

Type

+

auth.Authorization

+

Related pages

+

User Authorization

+

How to register a user's phone to start using the API.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.codeTypeCall b/data/core.telegram.org/constructor/auth.codeTypeCall new file mode 100644 index 0000000000..02ad30bc18 --- /dev/null +++ b/data/core.telegram.org/constructor/auth.codeTypeCall @@ -0,0 +1,132 @@ + + + + + auth.codeTypeCall + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.codeTypeCall

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.codeTypeFlashCall b/data/core.telegram.org/constructor/auth.codeTypeFlashCall new file mode 100644 index 0000000000..9cbbaa2a71 --- /dev/null +++ b/data/core.telegram.org/constructor/auth.codeTypeFlashCall @@ -0,0 +1,132 @@ + + + + + auth.codeTypeFlashCall + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.codeTypeFlashCall

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.codeTypeSms b/data/core.telegram.org/constructor/auth.codeTypeSms new file mode 100644 index 0000000000..807262aadb --- /dev/null +++ b/data/core.telegram.org/constructor/auth.codeTypeSms @@ -0,0 +1,132 @@ + + + + + auth.codeTypeSms + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.codeTypeSms

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.exportedAuthorization b/data/core.telegram.org/constructor/auth.exportedAuthorization new file mode 100644 index 0000000000..23a2293ef9 --- /dev/null +++ b/data/core.telegram.org/constructor/auth.exportedAuthorization @@ -0,0 +1,152 @@ + + + + + auth.exportedAuthorization + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.exportedAuthorization

+ +

Data for copying of authorization between data centres.

+

+
auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintcurrent user identifier
bytesbytesauthorizes key
+

Type

+

auth.ExportedAuthorization

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.loginToken b/data/core.telegram.org/constructor/auth.loginToken new file mode 100644 index 0000000000..668fa6be34 --- /dev/null +++ b/data/core.telegram.org/constructor/auth.loginToken @@ -0,0 +1,155 @@ + + + + + auth.loginToken + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.loginToken

+ +

Login token (for QR code login)

+

+
auth.loginToken#629f1980 expires:int token:bytes = auth.LoginToken;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
expiresintExpiry date of QR code
tokenbytesToken to render in QR code
+

Type

+

auth.LoginToken

+

Related pages

+

Login via QR code

+

QR code login flow

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.loginTokenMigrateTo b/data/core.telegram.org/constructor/auth.loginTokenMigrateTo new file mode 100644 index 0000000000..4582abc3ab --- /dev/null +++ b/data/core.telegram.org/constructor/auth.loginTokenMigrateTo @@ -0,0 +1,152 @@ + + + + + auth.loginTokenMigrateTo + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.loginTokenMigrateTo

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.loginTokenSuccess b/data/core.telegram.org/constructor/auth.loginTokenSuccess new file mode 100644 index 0000000000..c6ce95ee3a --- /dev/null +++ b/data/core.telegram.org/constructor/auth.loginTokenSuccess @@ -0,0 +1,147 @@ + + + + + auth.loginTokenSuccess + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.loginTokenSuccess

+ +

Login via token (QR code) succeded!

+

+
auth.loginTokenSuccess#390d5c5e authorization:auth.Authorization = auth.LoginToken;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
authorizationauth.AuthorizationAuthorization info
+

Type

+

auth.LoginToken

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.passwordRecovery b/data/core.telegram.org/constructor/auth.passwordRecovery new file mode 100644 index 0000000000..4fa316772a --- /dev/null +++ b/data/core.telegram.org/constructor/auth.passwordRecovery @@ -0,0 +1,152 @@ + + + + + auth.passwordRecovery + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.passwordRecovery

+ +

Recovery info of a 2FA password, only for accounts with a recovery email configured.

+

+
auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
email_patternstringThe email to which the recovery code was sent must match this pattern.
+

Type

+

auth.PasswordRecovery

+

Related pages

+

Pattern matching

+

Some methods require the client to verify if the data obtained from an external source matches a certain pattern.

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.sentAppCode b/data/core.telegram.org/constructor/auth.sentAppCode new file mode 100644 index 0000000000..631be2127d --- /dev/null +++ b/data/core.telegram.org/constructor/auth.sentAppCode @@ -0,0 +1,163 @@ + + + + + auth.sentAppCode + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sentAppCode

+ +

Contains info on a confirmation code message sent via Telegram.

+

You can force resending the message via SMS by invoking the method auth.sendSms.

+

+
Constructor schema is available as of layer 50. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_registeredBoolThe given number corresponds to a registered Telegram user
phone_code_hashstringMessage identifier
send_call_timeoutintDelay in seconds before calling auth.sendCall
is_passwordBoolThe sent code is a text password
+

Type

+

auth.SentCode

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.sentCode b/data/core.telegram.org/constructor/auth.sentCode new file mode 100644 index 0000000000..ed8f48d14d --- /dev/null +++ b/data/core.telegram.org/constructor/auth.sentCode @@ -0,0 +1,172 @@ + + + + + auth.sentCode + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sentCode

+ +

Contains info about a sent verification code.

+

+
auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
typeauth.SentCodeTypePhone code type
phone_code_hashstringPhone code hash, to be stored and later re-used with auth.signIn
next_typeflags.1?auth.CodeTypePhone code type that will be sent next, if the phone code is not received within timeout seconds: to send it use auth.resendCode
timeoutflags.2?intTimeout for reception of the phone code
+

Type

+

auth.SentCode

+

Related pages

+

auth.signIn

+

Signs in a user with a validated phone number.

+

auth.resendCode

+

Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.sentCodeTypeApp b/data/core.telegram.org/constructor/auth.sentCodeTypeApp new file mode 100644 index 0000000000..79ae3f2c22 --- /dev/null +++ b/data/core.telegram.org/constructor/auth.sentCodeTypeApp @@ -0,0 +1,147 @@ + + + + + auth.sentCodeTypeApp + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sentCodeTypeApp

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.sentCodeTypeCall b/data/core.telegram.org/constructor/auth.sentCodeTypeCall new file mode 100644 index 0000000000..041167b080 --- /dev/null +++ b/data/core.telegram.org/constructor/auth.sentCodeTypeCall @@ -0,0 +1,147 @@ + + + + + auth.sentCodeTypeCall + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sentCodeTypeCall

+ +

The code will be sent via a phone call: a synthesized voice will tell the user which verification code to input.

+

+
auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
lengthintLength of the verification code
+

Type

+

auth.SentCodeType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.sentCodeTypeFlashCall b/data/core.telegram.org/constructor/auth.sentCodeTypeFlashCall new file mode 100644 index 0000000000..2eb2e61508 --- /dev/null +++ b/data/core.telegram.org/constructor/auth.sentCodeTypeFlashCall @@ -0,0 +1,150 @@ + + + + + auth.sentCodeTypeFlashCall + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sentCodeTypeFlashCall

+ +

The code will be sent via a flash phone call, that will be closed immediately. The phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern.

+

+
auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
patternstringpattern to match
+

Type

+

auth.SentCodeType

+

Related pages

+

Pattern matching

+

Some methods require the client to verify if the data obtained from an external source matches a certain pattern.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/auth.sentCodeTypeSms b/data/core.telegram.org/constructor/auth.sentCodeTypeSms new file mode 100644 index 0000000000..8123d72cbb --- /dev/null +++ b/data/core.telegram.org/constructor/auth.sentCodeTypeSms @@ -0,0 +1,147 @@ + + + + + auth.sentCodeTypeSms + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sentCodeTypeSms

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/authorization.html b/data/core.telegram.org/constructor/authorization.html new file mode 100644 index 0000000000..12e5bd7ac6 --- /dev/null +++ b/data/core.telegram.org/constructor/authorization.html @@ -0,0 +1,225 @@ + + + + + authorization + + + + + + + + + + + + + +
+ +
+
+
+ +

authorization

+ +

Logged-in session

+

+
authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
currentflags.0?trueWhether this is the current session
official_appflags.1?trueWhether the session is from an official app
password_pendingflags.2?trueWhether the session is still waiting for a 2FA password
hashlongIdentifier
device_modelstringDevice model
platformstringPlatform
system_versionstringSystem version
api_idintAPI ID
app_namestringApp name
app_versionstringApp version
date_createdintWhen was the session created
date_activeintWhen was the session last active
ipstringLast known IP
countrystringCountry determined from IP
regionstringRegion determined from IP
+

Type

+

Authorization

+

Related pages

+

Creating your Telegram Application

+

How to get your application identifier and create a new Telegram app.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/autoDownloadSettings.html b/data/core.telegram.org/constructor/autoDownloadSettings.html new file mode 100644 index 0000000000..9365406844 --- /dev/null +++ b/data/core.telegram.org/constructor/autoDownloadSettings.html @@ -0,0 +1,187 @@ + + + + + autoDownloadSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

autoDownloadSettings

+ +

Autodownload settings

+

+
autoDownloadSettings#e04232f3 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true photo_size_max:int video_size_max:int file_size_max:int video_upload_maxbitrate:int = AutoDownloadSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
disabledflags.0?trueDisable automatic media downloads?
video_preload_largeflags.1?trueWhether to preload the first seconds of videos larger than the specified limit
audio_preload_nextflags.2?trueWhether to preload the next audio track when you're listening to music
phonecalls_less_dataflags.3?trueWhether to enable data saving mode in phone calls
photo_size_maxintMaximum size of photos to preload
video_size_maxintMaximum size of videos to preload
file_size_maxintMaximum size of other files to preload
video_upload_maxbitrateintMaximum suggested bitrate for uploading videos
+

Type

+

AutoDownloadSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/bankCardOpenUrl.html b/data/core.telegram.org/constructor/bankCardOpenUrl.html new file mode 100644 index 0000000000..1b2c15974a --- /dev/null +++ b/data/core.telegram.org/constructor/bankCardOpenUrl.html @@ -0,0 +1,152 @@ + + + + + bankCardOpenUrl + + + + + + + + + + + + + +
+ +
+
+
+ +

bankCardOpenUrl

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/baseThemeArctic.html b/data/core.telegram.org/constructor/baseThemeArctic.html new file mode 100644 index 0000000000..a66f40b8fd --- /dev/null +++ b/data/core.telegram.org/constructor/baseThemeArctic.html @@ -0,0 +1,132 @@ + + + + + baseThemeArctic + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/baseThemeClassic.html b/data/core.telegram.org/constructor/baseThemeClassic.html new file mode 100644 index 0000000000..b16ada4c20 --- /dev/null +++ b/data/core.telegram.org/constructor/baseThemeClassic.html @@ -0,0 +1,132 @@ + + + + + baseThemeClassic + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/baseThemeDay.html b/data/core.telegram.org/constructor/baseThemeDay.html new file mode 100644 index 0000000000..448b90268e --- /dev/null +++ b/data/core.telegram.org/constructor/baseThemeDay.html @@ -0,0 +1,132 @@ + + + + + baseThemeDay + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/baseThemeNight.html b/data/core.telegram.org/constructor/baseThemeNight.html new file mode 100644 index 0000000000..a36b8ef06e --- /dev/null +++ b/data/core.telegram.org/constructor/baseThemeNight.html @@ -0,0 +1,132 @@ + + + + + baseThemeNight + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/baseThemeTinted.html b/data/core.telegram.org/constructor/baseThemeTinted.html new file mode 100644 index 0000000000..08c3fbad53 --- /dev/null +++ b/data/core.telegram.org/constructor/baseThemeTinted.html @@ -0,0 +1,132 @@ + + + + + baseThemeTinted + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/boolFalse.html b/data/core.telegram.org/constructor/boolFalse.html new file mode 100644 index 0000000000..2c5bbd76f0 --- /dev/null +++ b/data/core.telegram.org/constructor/boolFalse.html @@ -0,0 +1,132 @@ + + + + + boolFalse + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/boolTrue.html b/data/core.telegram.org/constructor/boolTrue.html new file mode 100644 index 0000000000..5eca498dbc --- /dev/null +++ b/data/core.telegram.org/constructor/boolTrue.html @@ -0,0 +1,132 @@ + + + + + boolTrue + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/botCommand.html b/data/core.telegram.org/constructor/botCommand.html new file mode 100644 index 0000000000..685b932fcf --- /dev/null +++ b/data/core.telegram.org/constructor/botCommand.html @@ -0,0 +1,152 @@ + + + + + botCommand + + + + + + + + + + + + + +
+ +
+
+
+ +

botCommand

+ +

Describes a bot command that can be used in a chat

+

+
botCommand#c27ac8c7 command:string description:string = BotCommand;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
commandstring/command name
descriptionstringDescription of the command
+

Type

+

BotCommand

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/botInfo.html b/data/core.telegram.org/constructor/botInfo.html new file mode 100644 index 0000000000..97ca7abee0 --- /dev/null +++ b/data/core.telegram.org/constructor/botInfo.html @@ -0,0 +1,157 @@ + + + + + botInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

botInfo

+ +

Info about bots (available bot commands, etc)

+

+
botInfo#98e81d3a user_id:int description:string commands:Vector<BotCommand> = BotInfo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintID of the bot
descriptionstringDescription of the bot
commandsVector<BotCommand>Bot commands that can be used in the chat
+

Type

+

BotInfo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/botInlineMediaResult.html b/data/core.telegram.org/constructor/botInlineMediaResult.html new file mode 100644 index 0000000000..d671c44dbd --- /dev/null +++ b/data/core.telegram.org/constructor/botInlineMediaResult.html @@ -0,0 +1,186 @@ + + + + + botInlineMediaResult + + + + + + + + + + + + + +
+ +
+
+
+ +

botInlineMediaResult

+ +

Media result

+

+
botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idstringResult ID
typestringResult type (see bot API docs)
photoflags.0?PhotoIf type is photo, the photo to send
documentflags.1?DocumentIf type is document, the document to send
titleflags.2?stringResult title
descriptionflags.3?stringDescription
send_messageBotInlineMessageDepending on the type and on the constructor, contains the caption of the media or the content of the message to be sent instead of the media
+

Type

+

BotInlineResult

+

Related pages

+

Telegram Bot API

+

BotInlineMessage

+

Inline message

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/botInlineMessageMediaAuto.html b/data/core.telegram.org/constructor/botInlineMessageMediaAuto.html new file mode 100644 index 0000000000..79e0486389 --- /dev/null +++ b/data/core.telegram.org/constructor/botInlineMessageMediaAuto.html @@ -0,0 +1,167 @@ + + + + + botInlineMessageMediaAuto + + + + + + + + + + + + + +
+ +
+
+
+ +

botInlineMessageMediaAuto

+ +

Send whatever media is attached to the botInlineMediaResult

+

+
botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = BotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
messagestringCaption
entitiesflags.1?Vector<MessageEntity>Message entities for styled text
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

BotInlineMessage

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+

botInlineMediaResult

+

Media result

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/botInlineMessageMediaContact.html b/data/core.telegram.org/constructor/botInlineMessageMediaContact.html new file mode 100644 index 0000000000..95e9948494 --- /dev/null +++ b/data/core.telegram.org/constructor/botInlineMessageMediaContact.html @@ -0,0 +1,172 @@ + + + + + botInlineMessageMediaContact + + + + + + + + + + + + + +
+ +
+
+
+ +

botInlineMessageMediaContact

+ +

Send a contact

+

+
botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
phone_numberstringPhone number
first_namestringFirst name
last_namestringLast name
vcardstringVCard info
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

BotInlineMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/botInlineMessageMediaGeo.html b/data/core.telegram.org/constructor/botInlineMessageMediaGeo.html new file mode 100644 index 0000000000..0f4a395192 --- /dev/null +++ b/data/core.telegram.org/constructor/botInlineMessageMediaGeo.html @@ -0,0 +1,175 @@ + + + + + botInlineMessageMediaGeo + + + + + + + + + + + + + +
+ +
+
+
+ +

botInlineMessageMediaGeo

+ +

Send a geolocation

+

+
botInlineMessageMediaGeo#51846fd flags:# geo:GeoPoint heading:flags.0?int period:flags.1?int proximity_notification_radius:flags.3?int reply_markup:flags.2?ReplyMarkup = BotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
geoGeoPointGeolocation
headingflags.0?intFor live locations, a direction in which the location moves, in degrees; 1-360.
periodflags.1?intValidity period
proximity_notification_radiusflags.3?intFor live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000).
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

BotInlineMessage

+

Related pages

+

Live geolocation

+

Telegram allows sending the live geolocation of a user in a chat, optionally setting a proximity alert.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/botInlineMessageMediaVenue.html b/data/core.telegram.org/constructor/botInlineMessageMediaVenue.html new file mode 100644 index 0000000000..9df1322e13 --- /dev/null +++ b/data/core.telegram.org/constructor/botInlineMessageMediaVenue.html @@ -0,0 +1,182 @@ + + + + + botInlineMessageMediaVenue + + + + + + + + + + + + + +
+ +
+
+
+ +

botInlineMessageMediaVenue

+ +

Send a venue

+

+
botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
geoGeoPointGeolocation of venue
titlestringVenue name
addressstringAddress
providerstringVenue provider: currently only "foursquare" needs to be supported
venue_idstringVenue ID in the provider's database
venue_typestringVenue type in the provider's database
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

BotInlineMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/botInlineMessageText.html b/data/core.telegram.org/constructor/botInlineMessageText.html new file mode 100644 index 0000000000..44c585d8be --- /dev/null +++ b/data/core.telegram.org/constructor/botInlineMessageText.html @@ -0,0 +1,170 @@ + + + + + botInlineMessageText + + + + + + + + + + + + + +
+ +
+
+
+ +

botInlineMessageText

+ +

Send a simple text message

+

+
botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = BotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
no_webpageflags.0?trueDisable webpage preview
messagestringThe message
entitiesflags.1?Vector<MessageEntity>Message entities for styled text
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

BotInlineMessage

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/botInlineResult.html b/data/core.telegram.org/constructor/botInlineResult.html new file mode 100644 index 0000000000..c47f13cc64 --- /dev/null +++ b/data/core.telegram.org/constructor/botInlineResult.html @@ -0,0 +1,189 @@ + + + + + botInlineResult + + + + + + + + + + + + + +
+ +
+
+
+ +

botInlineResult

+ +

Generic result

+

+
botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idstringResult ID
typestringResult type (see bot API docs)
titleflags.1?stringResult title
descriptionflags.2?stringResult description
urlflags.3?stringURL of article or webpage
thumbflags.4?WebDocumentThumbnail for the result
contentflags.5?WebDocumentContent of the result
send_messageBotInlineMessageMessage to send
+

Type

+

BotInlineResult

+

Related pages

+

Telegram Bot API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/cdnConfig.html b/data/core.telegram.org/constructor/cdnConfig.html new file mode 100644 index 0000000000..a370928748 --- /dev/null +++ b/data/core.telegram.org/constructor/cdnConfig.html @@ -0,0 +1,149 @@ + + + + + cdnConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

cdnConfig

+ +

Configuration for CDN file downloads.

+

+
cdnConfig#5725e40a public_keys:Vector<CdnPublicKey> = CdnConfig;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
public_keysVector<CdnPublicKey>Vector of public keys to use only during handshakes to CDN DCs.
+

Type

+

CdnConfig

+

Related pages

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/cdnPublicKey.html b/data/core.telegram.org/constructor/cdnPublicKey.html new file mode 100644 index 0000000000..f7bc68012b --- /dev/null +++ b/data/core.telegram.org/constructor/cdnPublicKey.html @@ -0,0 +1,154 @@ + + + + + cdnPublicKey + + + + + + + + + + + + + +
+ +
+
+
+ +

cdnPublicKey

+ +

Public key to use only during handshakes to CDN DCs.

+

+
cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dc_idintCDN DC ID
public_keystringRSA public key
+

Type

+

CdnPublicKey

+

Related pages

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channel.html b/data/core.telegram.org/constructor/channel.html new file mode 100644 index 0000000000..19dab5153e --- /dev/null +++ b/data/core.telegram.org/constructor/channel.html @@ -0,0 +1,272 @@ + + + + + channel + + + + + + + + + + + + + +
+ +
+
+
+ +

channel

+ +

Channel/supergroup info

+

+
channel#d31a961e flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?Vector<RestrictionReason> admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int = Chat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
creatorflags.0?trueWhether the current user is the creator of this channel
leftflags.2?trueWhether the current user has left this channel
broadcastflags.5?trueIs this a channel?
verifiedflags.7?trueIs this channel verified by telegram?
megagroupflags.8?trueIs this a supergroup?
restrictedflags.9?trueWhether viewing/writing in this channel for a reason (see restriction_reason
signaturesflags.11?trueWhether signatures are enabled (channels)
minflags.12?trueSee min
scamflags.19?trueThis channel/supergroup is probably a scam
has_linkflags.20?trueWhether this channel has a private join link
has_geoflags.21?trueWhether this chanel has a geoposition
slowmode_enabledflags.22?trueWhether slow mode is enabled for groups to prevent flood in chat
idintID of the channel
access_hashflags.13?longAccess hash
titlestringTitle
usernameflags.6?stringUsername
photoChatPhotoProfile photo
dateintDate when the user joined the supergroup/channel, or if the user isn't a member, its creation date
versionintVersion of the channel (always 0)
restriction_reasonflags.9?Vector<RestrictionReason>Contains the reason why access to this channel must be restricted.
admin_rightsflags.14?ChatAdminRightsAdmin rights of the user in this channel (see rights)
banned_rightsflags.15?ChatBannedRightsBanned rights of the user in this channel (see rights)
default_banned_rightsflags.18?ChatBannedRightsDefault chat rights (see rights)
participants_countflags.17?intParticipant count
+

Type

+

Chat

+

Related pages

+

Min constructors

+

In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.

+

Admin, banned, default rights

+

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEvent.html b/data/core.telegram.org/constructor/channelAdminLogEvent.html new file mode 100644 index 0000000000..8d2bef4a24 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEvent.html @@ -0,0 +1,162 @@ + + + + + channelAdminLogEvent + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEvent

+ +

Admin log event

+

+
channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongEvent ID
dateintDate
user_idintUser ID
actionChannelAdminLogEventActionAction
+

Type

+

ChannelAdminLogEvent

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionChangeAbout.html b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeAbout.html new file mode 100644 index 0000000000..6829beeb74 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeAbout.html @@ -0,0 +1,152 @@ + + + + + channelAdminLogEventActionChangeAbout + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionChangeAbout

+ +

The description was changed

+

+
channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_valuestringPrevious description
new_valuestringNew description
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat.html b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat.html new file mode 100644 index 0000000000..df924edc89 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat.html @@ -0,0 +1,152 @@ + + + + + channelAdminLogEventActionChangeLinkedChat + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionChangeLinkedChat

+ +

The linked chat was changed

+

+
channelAdminLogEventActionChangeLinkedChat#a26f881b prev_value:int new_value:int = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_valueintPrevious linked chat
new_valueintNew linked chat
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionChangeLocation.html b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeLocation.html new file mode 100644 index 0000000000..5184e025d7 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeLocation.html @@ -0,0 +1,152 @@ + + + + + channelAdminLogEventActionChangeLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionChangeLocation

+ +

The geogroup location was changed

+

+
channelAdminLogEventActionChangeLocation#e6b76ae prev_value:ChannelLocation new_value:ChannelLocation = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_valueChannelLocationPrevious location
new_valueChannelLocationNew location
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionChangePhoto.html b/data/core.telegram.org/constructor/channelAdminLogEventActionChangePhoto.html new file mode 100644 index 0000000000..e60839a5f6 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionChangePhoto.html @@ -0,0 +1,152 @@ + + + + + channelAdminLogEventActionChangePhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionChangePhoto

+ +

The channel/supergroup's picture was changed

+

+
channelAdminLogEventActionChangePhoto#434bd2af prev_photo:Photo new_photo:Photo = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_photoPhotoPrevious picture
new_photoPhotoNew picture
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet.html b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet.html new file mode 100644 index 0000000000..f194bf6a5a --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet.html @@ -0,0 +1,152 @@ + + + + + channelAdminLogEventActionChangeStickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionChangeStickerSet

+ +

The supergroup's stickerset was changed

+

+
channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_stickersetInputStickerSetPrevious stickerset
new_stickersetInputStickerSetNew stickerset
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionChangeTitle.html b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeTitle.html new file mode 100644 index 0000000000..81300abd70 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeTitle.html @@ -0,0 +1,152 @@ + + + + + channelAdminLogEventActionChangeTitle + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionChangeTitle

+ +

Channel/supergroup title was changed

+

+
channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_valuestringPrevious title
new_valuestringNew title
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionChangeUsername.html b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeUsername.html new file mode 100644 index 0000000000..19e1c9c5b2 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionChangeUsername.html @@ -0,0 +1,152 @@ + + + + + channelAdminLogEventActionChangeUsername + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionChangeUsername

+ +

Channel/supergroup username was changed

+

+
channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_valuestringOld username
new_valuestringNew username
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights.html b/data/core.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights.html new file mode 100644 index 0000000000..9924cad4ae --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights.html @@ -0,0 +1,155 @@ + + + + + channelAdminLogEventActionDefaultBannedRights + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionDefaultBannedRights

+ +

The default banned rights were modified

+

+
channelAdminLogEventActionDefaultBannedRights#2df5fc0a prev_banned_rights:ChatBannedRights new_banned_rights:ChatBannedRights = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_banned_rightsChatBannedRightsPrevious global banned rights
new_banned_rightsChatBannedRightsNew glboal banned rights.
+

Type

+

ChannelAdminLogEventAction

+

Related pages

+

Admin, banned, default rights

+

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionDeleteMessage.html b/data/core.telegram.org/constructor/channelAdminLogEventActionDeleteMessage.html new file mode 100644 index 0000000000..9df70f8568 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionDeleteMessage.html @@ -0,0 +1,147 @@ + + + + + channelAdminLogEventActionDeleteMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionDeleteMessage

+ +

A message was deleted

+

+
channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
messageMessageThe message that was deleted
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionEditMessage.html b/data/core.telegram.org/constructor/channelAdminLogEventActionEditMessage.html new file mode 100644 index 0000000000..afddb693f8 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionEditMessage.html @@ -0,0 +1,152 @@ + + + + + channelAdminLogEventActionEditMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionEditMessage

+ +

A message was edited

+

+
channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_messageMessageOld message
new_messageMessageNew message
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantInvite.html b/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantInvite.html new file mode 100644 index 0000000000..a63b19e9ab --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantInvite.html @@ -0,0 +1,147 @@ + + + + + channelAdminLogEventActionParticipantInvite + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionParticipantInvite

+ +

A user was invited to the group

+

+
channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
participantChannelParticipantThe user that was invited
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantJoin.html b/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantJoin.html new file mode 100644 index 0000000000..7cfc106df2 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantJoin.html @@ -0,0 +1,132 @@ + + + + + channelAdminLogEventActionParticipantJoin + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionParticipantJoin

+ +

A user has joined the group (in the case of big groups, info of the user that has joined isn't shown)

+

+
channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantLeave.html b/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantLeave.html new file mode 100644 index 0000000000..f18080610f --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantLeave.html @@ -0,0 +1,132 @@ + + + + + channelAdminLogEventActionParticipantLeave + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionParticipantLeave

+ +

A user left the channel/supergroup (in the case of big groups, info of the user that has joined isn't shown)

+

+
channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.html b/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.html new file mode 100644 index 0000000000..d4661050c5 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.html @@ -0,0 +1,155 @@ + + + + + channelAdminLogEventActionParticipantToggleAdmin + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionParticipantToggleAdmin

+ +

The admin rights of a user were changed

+

+
channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_participantChannelParticipantPrevious admin rights
new_participantChannelParticipantNew admin rights
+

Type

+

ChannelAdminLogEventAction

+

Related pages

+

Admin, banned, default rights

+

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.html b/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.html new file mode 100644 index 0000000000..233cb8e381 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.html @@ -0,0 +1,155 @@ + + + + + channelAdminLogEventActionParticipantToggleBan + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionParticipantToggleBan

+ +

The banned rights of a user were changed

+

+
channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_participantChannelParticipantOld banned rights of user
new_participantChannelParticipantNew banned rights of user
+

Type

+

ChannelAdminLogEventAction

+

Related pages

+

Admin, banned, default rights

+

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionStopPoll.html b/data/core.telegram.org/constructor/channelAdminLogEventActionStopPoll.html new file mode 100644 index 0000000000..6e02ae5dcd --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionStopPoll.html @@ -0,0 +1,147 @@ + + + + + channelAdminLogEventActionStopPoll + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionStopPoll

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionToggleInvites.html b/data/core.telegram.org/constructor/channelAdminLogEventActionToggleInvites.html new file mode 100644 index 0000000000..7256ba2dfa --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionToggleInvites.html @@ -0,0 +1,147 @@ + + + + + channelAdminLogEventActionToggleInvites + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionToggleInvites

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden.html b/data/core.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden.html new file mode 100644 index 0000000000..a41742a4f9 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionTogglePreHistoryHidden + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionTogglePreHistoryHidden

+ +

The hidden prehistory setting was changed

+

+
channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
new_valueBoolNew value
+

Type

+

ChannelAdminLogEventAction

+

Related pages

+

channels.togglePreHistoryHidden

+

Hide/unhide message history for new channel/supergroup users

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionToggleSignatures.html b/data/core.telegram.org/constructor/channelAdminLogEventActionToggleSignatures.html new file mode 100644 index 0000000000..7b716aadb8 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionToggleSignatures.html @@ -0,0 +1,147 @@ + + + + + channelAdminLogEventActionToggleSignatures + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionToggleSignatures

+ +

Channel signatures were enabled/disabled

+

+
channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
new_valueBoolNew value
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode.html b/data/core.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode.html new file mode 100644 index 0000000000..6027ab610a --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode.html @@ -0,0 +1,155 @@ + + + + + channelAdminLogEventActionToggleSlowMode + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionToggleSlowMode

+ +

Slow mode setting for supergroups was changed

+

+
channelAdminLogEventActionToggleSlowMode#53909779 prev_value:int new_value:int = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_valueintPrevious slow mode value
new_valueintNew slow mode value
+

Type

+

ChannelAdminLogEventAction

+

Related pages

+

channels.toggleSlowMode

+

Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventActionUpdatePinned.html b/data/core.telegram.org/constructor/channelAdminLogEventActionUpdatePinned.html new file mode 100644 index 0000000000..48cc489efa --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventActionUpdatePinned.html @@ -0,0 +1,147 @@ + + + + + channelAdminLogEventActionUpdatePinned + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionUpdatePinned

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelAdminLogEventsFilter.html b/data/core.telegram.org/constructor/channelAdminLogEventsFilter.html new file mode 100644 index 0000000000..52db2ccc45 --- /dev/null +++ b/data/core.telegram.org/constructor/channelAdminLogEventsFilter.html @@ -0,0 +1,256 @@ + + + + + channelAdminLogEventsFilter + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventsFilter

+ +

Filter only certain admin log events

+

+
channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true group_call:flags.14?true invites:flags.15?true = ChannelAdminLogEventsFilter;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
joinflags.0?trueJoin events
leaveflags.1?trueLeave events
inviteflags.2?trueInvite events
banflags.3?trueBan events
unbanflags.4?trueUnban events
kickflags.5?trueKick events
unkickflags.6?trueUnkick events
promoteflags.7?trueAdmin promotion events
demoteflags.8?trueAdmin demotion events
infoflags.9?trueInfo change events (when about, linked chat, location, photo, stickerset, title or username data of a channel gets modified)
settingsflags.10?trueSettings change events (invites, hidden prehistory, signatures, default banned rights)
pinnedflags.11?trueMessage pin events
editflags.12?trueMessage edit events
deleteflags.13?trueMessage deletion events
+

Type

+

ChannelAdminLogEventsFilter

+

Related pages

+

channelAdminLogEventActionParticipantJoin

+

A user has joined the group (in the case of big groups, info of the user that has joined isn't shown)

+

channelAdminLogEventActionParticipantLeave

+

A user left the channel/supergroup (in the case of big groups, info of the user that has joined isn't shown)

+

channelAdminLogEventActionParticipantInvite

+

A user was invited to the group

+

channelAdminLogEventActionParticipantToggleBan

+

The banned rights of a user were changed

+

channelAdminLogEventActionParticipantToggleAdmin

+

The admin rights of a user were changed

+

channelAdminLogEventActionChangeAbout

+

The description was changed

+

channelAdminLogEventActionChangeLinkedChat

+

The linked chat was changed

+

channelAdminLogEventActionChangeLocation

+

The geogroup location was changed

+

channelAdminLogEventActionChangePhoto

+

The channel/supergroup's picture was changed

+

channelAdminLogEventActionChangeStickerSet

+

The supergroup's stickerset was changed

+

channelAdminLogEventActionChangeTitle

+

Channel/supergroup title was changed

+

channelAdminLogEventActionChangeUsername

+

Channel/supergroup username was changed

+

channelAdminLogEventActionToggleInvites

+

Invites were enabled/disabled

+

channelAdminLogEventActionTogglePreHistoryHidden

+

The hidden prehistory setting was changed

+

channelAdminLogEventActionToggleSignatures

+

Channel signatures were enabled/disabled

+

channelAdminLogEventActionDefaultBannedRights

+

The default banned rights were modified

+

channelAdminLogEventActionUpdatePinned

+

A message was pinned

+

channelAdminLogEventActionEditMessage

+

A message was edited

+

channelAdminLogEventActionDeleteMessage

+

A message was deleted

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelForbidden.html b/data/core.telegram.org/constructor/channelForbidden.html new file mode 100644 index 0000000000..a8589dc915 --- /dev/null +++ b/data/core.telegram.org/constructor/channelForbidden.html @@ -0,0 +1,177 @@ + + + + + channelForbidden + + + + + + + + + + + + + +
+ +
+
+
+ +

channelForbidden

+ +

Indicates a channel/supergroup we can't access because we were banned, or for some other reason.

+

+
channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
broadcastflags.5?trueIs this a channel
megagroupflags.8?trueIs this a supergroup
idintChannel ID
access_hashlongAccess hash
titlestringTitle
until_dateflags.16?intThe ban is valid until the specified date
+

Type

+

Chat

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelFull.html b/data/core.telegram.org/constructor/channelFull.html new file mode 100644 index 0000000000..cfa2b9d034 --- /dev/null +++ b/data/core.telegram.org/constructor/channelFull.html @@ -0,0 +1,334 @@ + + + + + channelFull + + + + + + + + + + + + + +
+ +
+
+
+ +

channelFull

+ +

Full info about a channel/supergroup

+

+
channelFull#f0e6672a flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?int location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int = ChatFull;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
can_view_participantsflags.3?trueCan we vew the participant list?
can_set_usernameflags.6?trueCan we set the channel's username?
can_set_stickersflags.7?trueCan we associate a stickerpack to the supergroup?
hidden_prehistoryflags.10?trueIs the history before we joined hidden to us?
can_set_locationflags.16?trueCan we set the geolocation of this group (for geogroups)
has_scheduledflags.19?trueWhether scheduled messages are available
can_view_statsflags.20?trueCan the user view channel/supergroup statistics
blockedflags.22?trueWhether any anonymous admin of this supergroup was blocked: if set, you won't receive messages from anonymous group admins in discussion replies via @replies
idintID of the channel
aboutstringInfo about the channel
participants_countflags.0?intNumber of participants of the channel
admins_countflags.1?intNumber of channel admins
kicked_countflags.2?intNumber of users kicked from the channel
banned_countflags.2?intNumber of users banned from the channel
online_countflags.13?intNumber of users currently online
read_inbox_max_idintPosition up to which all incoming messages are read.
read_outbox_max_idintPosition up to which all outgoing messages are read.
unread_countintCount of unread messages
chat_photoPhotoChannel picture
notify_settingsPeerNotifySettingsNotification settings
exported_inviteExportedChatInviteInvite link
bot_infoVector<BotInfo>Info about bots in the channel/supergrup
migrated_from_chat_idflags.4?intThe chat ID from which this group was migrated
migrated_from_max_idflags.4?intThe message ID in the original chat at which this group was migrated
pinned_msg_idflags.5?intMessage ID of the last pinned message
stickersetflags.8?StickerSetAssociated stickerset
available_min_idflags.9?intIdentifier of a maximum unavailable message in a channel due to hidden history.
folder_idflags.11?intPeer folder ID, for more info click here
linked_chat_idflags.14?intID of the linked discussion chat for channels
locationflags.15?ChannelLocationLocation of the geogroup
slowmode_secondsflags.17?intIf specified, users in supergroups will only be able to send one message every slowmode_seconds seconds
slowmode_next_send_dateflags.18?intIndicates when the user will be allowed to send another message in the supergroup (unixdate)
stats_dcflags.12?intIf set, specifies the DC to use for fetching channel statistics
ptsintLatest PTS for this channel
+

Type

+

ChatFull

+

Related pages

+

channels.setStickers

+

Associate a stickerset to the supergroup

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+

Discussion groups

+

Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.

+

Admin, banned, default rights

+

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+

Pinned messages

+

Telegram allows pinning multiple messages on top of a specific chat.

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelLocation.html b/data/core.telegram.org/constructor/channelLocation.html new file mode 100644 index 0000000000..899dbb9698 --- /dev/null +++ b/data/core.telegram.org/constructor/channelLocation.html @@ -0,0 +1,152 @@ + + + + + channelLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

channelLocation

+ +

Geographical location of supergroup (geogroups)

+

+
channelLocation#209b82db geo_point:GeoPoint address:string = ChannelLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
geo_pointGeoPointGeographical location of supergrup
addressstringTextual description of the address
+

Type

+

ChannelLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelLocationEmpty.html b/data/core.telegram.org/constructor/channelLocationEmpty.html new file mode 100644 index 0000000000..e8bd0931e7 --- /dev/null +++ b/data/core.telegram.org/constructor/channelLocationEmpty.html @@ -0,0 +1,132 @@ + + + + + channelLocationEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelMessagesFilter.html b/data/core.telegram.org/constructor/channelMessagesFilter.html new file mode 100644 index 0000000000..b3d4b7a845 --- /dev/null +++ b/data/core.telegram.org/constructor/channelMessagesFilter.html @@ -0,0 +1,157 @@ + + + + + channelMessagesFilter + + + + + + + + + + + + + +
+ +
+
+
+ +

channelMessagesFilter

+ +

Filter for getting only certain types of channel messages

+

+
channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector<MessageRange> = ChannelMessagesFilter;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
exclude_new_messagesflags.1?trueWhether to exclude new messages from the search
rangesVector<MessageRange>A range of messages to fetch
+

Type

+

ChannelMessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelMessagesFilterEmpty.html b/data/core.telegram.org/constructor/channelMessagesFilterEmpty.html new file mode 100644 index 0000000000..a4bcd21627 --- /dev/null +++ b/data/core.telegram.org/constructor/channelMessagesFilterEmpty.html @@ -0,0 +1,132 @@ + + + + + channelMessagesFilterEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipant.html b/data/core.telegram.org/constructor/channelParticipant.html new file mode 100644 index 0000000000..51fbbcac9b --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipant.html @@ -0,0 +1,152 @@ + + + + + channelParticipant + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipant

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantAdmin.html b/data/core.telegram.org/constructor/channelParticipantAdmin.html new file mode 100644 index 0000000000..4f03d82ef3 --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantAdmin.html @@ -0,0 +1,190 @@ + + + + + channelParticipantAdmin + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantAdmin

+ +

Admin

+

+
channelParticipantAdmin#ccbebbaf flags:# can_edit:flags.0?true self:flags.1?true user_id:int inviter_id:flags.1?int promoted_by:int date:int admin_rights:ChatAdminRights rank:flags.2?string = ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
can_editflags.0?trueCan this admin promote other admins with the same permissions?
selfflags.1?trueIs this the current user
user_idintAdmin user ID
inviter_idflags.1?intUser that invited the admin to the channel/group
promoted_byintUser that promoted the user to admin
dateintWhen did the user join
admin_rightsChatAdminRightsAdmin rights
rankflags.2?stringThe role (rank) of the admin in the group: just an arbitrary string, admin by default
+

Type

+

ChannelParticipant

+

Related pages

+

Admin, banned, default rights

+

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantBanned.html b/data/core.telegram.org/constructor/channelParticipantBanned.html new file mode 100644 index 0000000000..5df7493602 --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantBanned.html @@ -0,0 +1,175 @@ + + + + + channelParticipantBanned + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantBanned

+ +

Banned/kicked user

+

+
channelParticipantBanned#1c0facaf flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChatBannedRights = ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
leftflags.0?trueWhether the user has left the group
user_idintUser ID
kicked_byintUser was kicked by the specified admin
dateintWhen did the user join the group
banned_rightsChatBannedRightsBanned rights
+

Type

+

ChannelParticipant

+

Related pages

+

Admin, banned, default rights

+

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantCreator.html b/data/core.telegram.org/constructor/channelParticipantCreator.html new file mode 100644 index 0000000000..c7c3ec2014 --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantCreator.html @@ -0,0 +1,162 @@ + + + + + channelParticipantCreator + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantCreator

+ +

Channel/supergroup creator

+

+
channelParticipantCreator#447dca4b flags:# user_id:int admin_rights:ChatAdminRights rank:flags.0?string = ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
user_idintUser ID
admin_rightsChatAdminRightsCreator admin rights
rankflags.0?stringThe role (rank) of the group creator in the group: just an arbitrary string, admin by default
+

Type

+

ChannelParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantLeft.html b/data/core.telegram.org/constructor/channelParticipantLeft.html new file mode 100644 index 0000000000..ae8d1baccf --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantLeft.html @@ -0,0 +1,147 @@ + + + + + channelParticipantLeft + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantLeft

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantSelf.html b/data/core.telegram.org/constructor/channelParticipantSelf.html new file mode 100644 index 0000000000..58defa03e8 --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantSelf.html @@ -0,0 +1,157 @@ + + + + + channelParticipantSelf + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantSelf

+ +

Myself

+

+
channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser ID
inviter_idintUser that invited me to the channel/supergroup
dateintWhen did I join the channel/supergroup
+

Type

+

ChannelParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantsAdmins.html b/data/core.telegram.org/constructor/channelParticipantsAdmins.html new file mode 100644 index 0000000000..bc981016c4 --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantsAdmins.html @@ -0,0 +1,132 @@ + + + + + channelParticipantsAdmins + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsAdmins

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantsBanned.html b/data/core.telegram.org/constructor/channelParticipantsBanned.html new file mode 100644 index 0000000000..8d1abca9f1 --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantsBanned.html @@ -0,0 +1,147 @@ + + + + + channelParticipantsBanned + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsBanned

+ +

Fetch only banned participants

+

+
channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
qstringOptional filter for searching banned participants by name (otherwise empty)
+

Type

+

ChannelParticipantsFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantsBots.html b/data/core.telegram.org/constructor/channelParticipantsBots.html new file mode 100644 index 0000000000..2bb6268a29 --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantsBots.html @@ -0,0 +1,132 @@ + + + + + channelParticipantsBots + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsBots

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantsContacts.html b/data/core.telegram.org/constructor/channelParticipantsContacts.html new file mode 100644 index 0000000000..ee374fb1ac --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantsContacts.html @@ -0,0 +1,147 @@ + + + + + channelParticipantsContacts + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsContacts

+ +

Fetch only participants that are also contacts

+

+
channelParticipantsContacts#bb6ae88d q:string = ChannelParticipantsFilter;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
qstringOptional search query for searching contact participants by name
+

Type

+

ChannelParticipantsFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantsKicked.html b/data/core.telegram.org/constructor/channelParticipantsKicked.html new file mode 100644 index 0000000000..ce6b0157ae --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantsKicked.html @@ -0,0 +1,147 @@ + + + + + channelParticipantsKicked + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsKicked

+ +

Fetch only kicked participants

+

+
channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
qstringOptional filter for searching kicked participants by name (otherwise empty)
+

Type

+

ChannelParticipantsFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantsMentions.html b/data/core.telegram.org/constructor/channelParticipantsMentions.html new file mode 100644 index 0000000000..5c933055a5 --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantsMentions.html @@ -0,0 +1,161 @@ + + + + + channelParticipantsMentions + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsMentions

+ +

This filter is used when looking for supergroup members to mention.
+This filter will automatically remove anonymous admins, and return even non-participant users that replied to a specific thread through the comment section of a channel.

+

+
channelParticipantsMentions#e04b5ceb flags:# q:flags.0?string top_msg_id:flags.1?int = ChannelParticipantsFilter;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
qflags.0?stringFilter by user name or username
top_msg_idflags.1?intLook only for users that posted in this thread
+

Type

+

ChannelParticipantsFilter

+

Related pages

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantsRecent.html b/data/core.telegram.org/constructor/channelParticipantsRecent.html new file mode 100644 index 0000000000..a00ba54d16 --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantsRecent.html @@ -0,0 +1,132 @@ + + + + + channelParticipantsRecent + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsRecent

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channelParticipantsSearch.html b/data/core.telegram.org/constructor/channelParticipantsSearch.html new file mode 100644 index 0000000000..cac36c2956 --- /dev/null +++ b/data/core.telegram.org/constructor/channelParticipantsSearch.html @@ -0,0 +1,147 @@ + + + + + channelParticipantsSearch + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsSearch

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channels.adminLogResults b/data/core.telegram.org/constructor/channels.adminLogResults new file mode 100644 index 0000000000..3bf7720834 --- /dev/null +++ b/data/core.telegram.org/constructor/channels.adminLogResults @@ -0,0 +1,157 @@ + + + + + channels.adminLogResults + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.adminLogResults

+ +

Admin log events

+

+
channels.adminLogResults#ed8af74d events:Vector<ChannelAdminLogEvent> chats:Vector<Chat> users:Vector<User> = channels.AdminLogResults;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
eventsVector<ChannelAdminLogEvent>Admin log events
chatsVector<Chat>Chats mentioned in events
usersVector<User>Users mentioned in events
+

Type

+

channels.AdminLogResults

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channels.channelParticipant b/data/core.telegram.org/constructor/channels.channelParticipant new file mode 100644 index 0000000000..a94b9aca6d --- /dev/null +++ b/data/core.telegram.org/constructor/channels.channelParticipant @@ -0,0 +1,152 @@ + + + + + channels.channelParticipant + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.channelParticipant

+ +

Represents a channel participant

+

+
channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector<User> = channels.ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
participantChannelParticipantThe channel participant
usersVector<User>Users
+

Type

+

channels.ChannelParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channels.channelParticipants b/data/core.telegram.org/constructor/channels.channelParticipants new file mode 100644 index 0000000000..f8796cf1c9 --- /dev/null +++ b/data/core.telegram.org/constructor/channels.channelParticipants @@ -0,0 +1,157 @@ + + + + + channels.channelParticipants + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.channelParticipants

+ +

Represents multiple channel participants

+

+
channels.channelParticipants#f56ee2a8 count:int participants:Vector<ChannelParticipant> users:Vector<User> = channels.ChannelParticipants;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countintTotal number of participants that correspond to the given query
participantsVector<ChannelParticipant>Participants
usersVector<User>Users mentioned in participant info
+

Type

+

channels.ChannelParticipants

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/channels.channelParticipantsNotModified b/data/core.telegram.org/constructor/channels.channelParticipantsNotModified new file mode 100644 index 0000000000..d4bd7dae88 --- /dev/null +++ b/data/core.telegram.org/constructor/channels.channelParticipantsNotModified @@ -0,0 +1,132 @@ + + + + + channels.channelParticipantsNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.channelParticipantsNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chat.html b/data/core.telegram.org/constructor/chat.html new file mode 100644 index 0000000000..efdba142ad --- /dev/null +++ b/data/core.telegram.org/constructor/chat.html @@ -0,0 +1,217 @@ + + + + + chat + + + + + + + + + + + + + +
+ +
+
+
+ +

chat

+ +

Info about a group

+

+
chat#3bda1bde flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true deactivated:flags.5?true call_active:flags.23?true call_not_empty:flags.24?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel admin_rights:flags.14?ChatAdminRights default_banned_rights:flags.18?ChatBannedRights = Chat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
creatorflags.0?trueWhether the current user is the creator of the group
kickedflags.1?trueWhether the current user was kicked from the group
leftflags.2?trueWhether the current user has left the group
deactivatedflags.5?trueWhether the group was migrated
idintID of the group
titlestringTitle
photoChatPhotoChat photo
participants_countintParticipant count
dateintDate of creation of the group
versionintUsed in basic groups to reorder updates and make sure that all of them were received.
migrated_toflags.6?InputChannelMeans this chat was upgraded to a supergroup
admin_rightsflags.14?ChatAdminRightsAdmin rights of the user in the group
default_banned_rightsflags.18?ChatBannedRightsDefault banned rights of all users in the group
+

Type

+

Chat

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+

Admin, banned, default rights

+

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatAdminRights.html b/data/core.telegram.org/constructor/chatAdminRights.html new file mode 100644 index 0000000000..7db70930a7 --- /dev/null +++ b/data/core.telegram.org/constructor/chatAdminRights.html @@ -0,0 +1,195 @@ + + + + + chatAdminRights + + + + + + + + + + + + + +
+ +
+
+
+ +

chatAdminRights

+ +

Represents the rights of an admin in a channel/supergroup.

+

+
chatAdminRights#5fb224d5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true pin_messages:flags.7?true add_admins:flags.9?true anonymous:flags.10?true manage_call:flags.11?true other:flags.12?true = ChatAdminRights;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
change_infoflags.0?trueIf set, allows the admin to modify the description of the channel/supergroup
post_messagesflags.1?trueIf set, allows the admin to post messages in the channel
edit_messagesflags.2?trueIf set, allows the admin to also edit messages from other admins in the channel
delete_messagesflags.3?trueIf set, allows the admin to also delete messages from other admins in the channel
ban_usersflags.4?trueIf set, allows the admin to ban users from the channel/supergroup
invite_usersflags.5?trueIf set, allows the admin to invite users in the channel/supergroup
pin_messagesflags.7?trueIf set, allows the admin to pin messages in the channel/supergroup
add_adminsflags.9?trueIf set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup
anonymousflags.10?trueWhether this admin is anonymous
+

Type

+

ChatAdminRights

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatBannedRights.html b/data/core.telegram.org/constructor/chatBannedRights.html new file mode 100644 index 0000000000..a0060d06d3 --- /dev/null +++ b/data/core.telegram.org/constructor/chatBannedRights.html @@ -0,0 +1,215 @@ + + + + + chatBannedRights + + + + + + + + + + + + + +
+ +
+
+
+ +

chatBannedRights

+ +

Represents the rights of a normal user in a supergroup/channel/chat. In this case, the flags are inverted: if set, a flag does not allow a user to do X.

+

+
chatBannedRights#9f120418 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true send_polls:flags.8?true change_info:flags.10?true invite_users:flags.15?true pin_messages:flags.17?true until_date:int = ChatBannedRights;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
view_messagesflags.0?trueIf set, does not allow a user to view messages in a supergroup/channel/chat
send_messagesflags.1?trueIf set, does not allow a user to send messages in a supergroup/chat
send_mediaflags.2?trueIf set, does not allow a user to send any media in a supergroup/chat
send_stickersflags.3?trueIf set, does not allow a user to send stickers in a supergroup/chat
send_gifsflags.4?trueIf set, does not allow a user to send gifs in a supergroup/chat
send_gamesflags.5?trueIf set, does not allow a user to send games in a supergroup/chat
send_inlineflags.6?trueIf set, does not allow a user to use inline bots in a supergroup/chat
embed_linksflags.7?trueIf set, does not allow a user to embed links in the messages of a supergroup/chat
send_pollsflags.8?trueIf set, does not allow a user to send stickers in a supergroup/chat
change_infoflags.10?trueIf set, does not allow any user to change the description of a supergroup/chat
invite_usersflags.15?trueIf set, does not allow any user to invite users in a supergroup/chat
pin_messagesflags.17?trueIf set, does not allow any user to pin messages in a supergroup/chat
until_dateintValidity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days).
+

Type

+

ChatBannedRights

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatEmpty.html b/data/core.telegram.org/constructor/chatEmpty.html new file mode 100644 index 0000000000..a6dc055b22 --- /dev/null +++ b/data/core.telegram.org/constructor/chatEmpty.html @@ -0,0 +1,147 @@ + + + + + chatEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatForbidden.html b/data/core.telegram.org/constructor/chatForbidden.html new file mode 100644 index 0000000000..c8bb986822 --- /dev/null +++ b/data/core.telegram.org/constructor/chatForbidden.html @@ -0,0 +1,152 @@ + + + + + chatForbidden + + + + + + + + + + + + + +
+ +
+
+
+ +

chatForbidden

+ +

A group to which the user has no access. E.g., because the user was kicked from the group.

+

+
chatForbidden#7328bdb id:int title:string = Chat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintUser identifier
titlestringGroup name
+

Type

+

Chat

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatFull.html b/data/core.telegram.org/constructor/chatFull.html new file mode 100644 index 0000000000..72e49fa2a8 --- /dev/null +++ b/data/core.telegram.org/constructor/chatFull.html @@ -0,0 +1,209 @@ + + + + + chatFull + + + + + + + + + + + + + +
+ +
+
+
+ +

chatFull

+ +

Detailed chat info

+

+
chatFull#1b7c9db3 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:int about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int = ChatFull;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
can_set_usernameflags.7?trueCan we change the username of this chat
has_scheduledflags.8?trueWhether scheduled messages are available
idintID of the chat
aboutstringAbout string for this chat
participantsChatParticipantsParticipant list
chat_photoflags.2?PhotoChat photo
notify_settingsPeerNotifySettingsNotification settings
exported_inviteExportedChatInviteChat invite
bot_infoflags.3?Vector<BotInfo>Info about bots that are in this chat
pinned_msg_idflags.6?intMessage ID of the last pinned message
folder_idflags.11?intPeer folder ID, for more info click here
+

Type

+

ChatFull

+

Related pages

+

Scheduled messages

+

Telegram allows scheduling messages

+

Pinned messages

+

Telegram allows pinning multiple messages on top of a specific chat.

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatInvite.html b/data/core.telegram.org/constructor/chatInvite.html new file mode 100644 index 0000000000..6eed68e1b2 --- /dev/null +++ b/data/core.telegram.org/constructor/chatInvite.html @@ -0,0 +1,190 @@ + + + + + chatInvite + + + + + + + + + + + + + +
+ +
+
+
+ +

chatInvite

+ +

Chat invite info

+

+
chatInvite#dfc2f58e flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:Photo participants_count:int participants:flags.4?Vector<User> = ChatInvite;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
channelflags.0?trueWhether this is a channel/supergroup or a normal group
broadcastflags.1?trueWhether this is a channel
publicflags.2?trueWhether this is a public channel/supergroup
megagroupflags.3?trueWhether this is a supergroup
titlestringChat/supergroup/channel title
photoPhotoChat/supergroup/channel photo
participants_countintParticipant count
participantsflags.4?Vector<User>A few of the participants that are in the group
+

Type

+

ChatInvite

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatInviteAlready.html b/data/core.telegram.org/constructor/chatInviteAlready.html new file mode 100644 index 0000000000..b65dbbdf90 --- /dev/null +++ b/data/core.telegram.org/constructor/chatInviteAlready.html @@ -0,0 +1,147 @@ + + + + + chatInviteAlready + + + + + + + + + + + + + +
+ +
+
+
+ +

chatInviteAlready

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatInviteEmpty.html b/data/core.telegram.org/constructor/chatInviteEmpty.html new file mode 100644 index 0000000000..a97594710f --- /dev/null +++ b/data/core.telegram.org/constructor/chatInviteEmpty.html @@ -0,0 +1,132 @@ + + + + + chatInviteEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatInviteExported.html b/data/core.telegram.org/constructor/chatInviteExported.html new file mode 100644 index 0000000000..fbf2a5f75c --- /dev/null +++ b/data/core.telegram.org/constructor/chatInviteExported.html @@ -0,0 +1,147 @@ + + + + + chatInviteExported + + + + + + + + + + + + + +
+ +
+
+
+ +

chatInviteExported

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatInvitePeek.html b/data/core.telegram.org/constructor/chatInvitePeek.html new file mode 100644 index 0000000000..4e4f7431b4 --- /dev/null +++ b/data/core.telegram.org/constructor/chatInvitePeek.html @@ -0,0 +1,152 @@ + + + + + chatInvitePeek + + + + + + + + + + + + + +
+ +
+
+
+ +

chatInvitePeek

+ +

A chat invitation that also allows peeking into the group to read messages without joining it.

+

+
chatInvitePeek#61695cb0 chat:Chat expires:int = ChatInvite;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chatChatChat information
expiresintRead-only anonymous access to this group will be revoked at this date
+

Type

+

ChatInvite

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatOnlines.html b/data/core.telegram.org/constructor/chatOnlines.html new file mode 100644 index 0000000000..6f41ce1855 --- /dev/null +++ b/data/core.telegram.org/constructor/chatOnlines.html @@ -0,0 +1,147 @@ + + + + + chatOnlines + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatParticipant.html b/data/core.telegram.org/constructor/chatParticipant.html new file mode 100644 index 0000000000..de5cc4743d --- /dev/null +++ b/data/core.telegram.org/constructor/chatParticipant.html @@ -0,0 +1,157 @@ + + + + + chatParticipant + + + + + + + + + + + + + +
+ +
+
+
+ +

chatParticipant

+ +

Group member.

+

+
chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintMember user ID
inviter_idintID of the user that added the member to the group
dateintDate added to the group
+

Type

+

ChatParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatParticipantAdmin.html b/data/core.telegram.org/constructor/chatParticipantAdmin.html new file mode 100644 index 0000000000..34ee67e7ad --- /dev/null +++ b/data/core.telegram.org/constructor/chatParticipantAdmin.html @@ -0,0 +1,157 @@ + + + + + chatParticipantAdmin + + + + + + + + + + + + + +
+ +
+
+
+ +

chatParticipantAdmin

+ +

Chat admin

+

+
chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintID of a group member that is admin
inviter_idintID of the user that added the member to the group
dateintDate when the user was added
+

Type

+

ChatParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatParticipantCreator.html b/data/core.telegram.org/constructor/chatParticipantCreator.html new file mode 100644 index 0000000000..4a17e99103 --- /dev/null +++ b/data/core.telegram.org/constructor/chatParticipantCreator.html @@ -0,0 +1,147 @@ + + + + + chatParticipantCreator + + + + + + + + + + + + + +
+ +
+
+
+ +

chatParticipantCreator

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatParticipants.html b/data/core.telegram.org/constructor/chatParticipants.html new file mode 100644 index 0000000000..76983c45af --- /dev/null +++ b/data/core.telegram.org/constructor/chatParticipants.html @@ -0,0 +1,157 @@ + + + + + chatParticipants + + + + + + + + + + + + + +
+ +
+
+
+ +

chatParticipants

+ +

Group members.

+

+
chatParticipants#3f460fed chat_id:int participants:Vector<ChatParticipant> version:int = ChatParticipants;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintGroup identifier
participantsVector<ChatParticipant>List of group members
versionintGroup version number
+

Type

+

ChatParticipants

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatParticipantsForbidden.html b/data/core.telegram.org/constructor/chatParticipantsForbidden.html new file mode 100644 index 0000000000..27061e7669 --- /dev/null +++ b/data/core.telegram.org/constructor/chatParticipantsForbidden.html @@ -0,0 +1,157 @@ + + + + + chatParticipantsForbidden + + + + + + + + + + + + + +
+ +
+
+
+ +

chatParticipantsForbidden

+ +

Info on members is unavailable

+

+
chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
chat_idintGroup ID
self_participantflags.0?ChatParticipantInfo about the group membership of the current user
+

Type

+

ChatParticipants

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatPhoto.html b/data/core.telegram.org/constructor/chatPhoto.html new file mode 100644 index 0000000000..2159f121b6 --- /dev/null +++ b/data/core.telegram.org/constructor/chatPhoto.html @@ -0,0 +1,167 @@ + + + + + chatPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

chatPhoto

+ +

Group profile photo.

+

+
chatPhoto#d20b9f3c flags:# has_video:flags.0?true photo_small:FileLocation photo_big:FileLocation dc_id:int = ChatPhoto;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
has_videoflags.0?trueWhether the user has an animated profile picture
photo_smallFileLocationLocation of the file corresponding to the small thumbnail for group profile photo
photo_bigFileLocationLocation of the file corresponding to the small thumbnail for group profile photo
dc_idintDC where this photo is stored
+

Type

+

ChatPhoto

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/chatPhotoEmpty.html b/data/core.telegram.org/constructor/chatPhotoEmpty.html new file mode 100644 index 0000000000..26e9ad7546 --- /dev/null +++ b/data/core.telegram.org/constructor/chatPhotoEmpty.html @@ -0,0 +1,132 @@ + + + + + chatPhotoEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/codeSettings.html b/data/core.telegram.org/constructor/codeSettings.html new file mode 100644 index 0000000000..d665c901cd --- /dev/null +++ b/data/core.telegram.org/constructor/codeSettings.html @@ -0,0 +1,166 @@ + + + + + codeSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

codeSettings

+ +

Settings used by telegram servers for sending the confirm code.

+

Example implementations: telegram for android, tdlib.

+

+
codeSettings#debebe83 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true = CodeSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
allow_flashcallflags.0?trueWhether to allow phone verification via phone calls.
current_numberflags.1?truePass true if the phone number is used on the current device. Ignored if allow_flashcall is not set.
allow_app_hashflags.4?trueIf a token that will be included in eventually sent SMSs is required: required in newer versions of android, to use the android SMS receiver APIs
+

Type

+

CodeSettings

+

Related pages

+

User Authorization

+

How to register a user's phone to start using the API.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/config.html b/data/core.telegram.org/constructor/config.html new file mode 100644 index 0000000000..525355fe0b --- /dev/null +++ b/data/core.telegram.org/constructor/config.html @@ -0,0 +1,420 @@ + + + + + config + + + + + + + + + + + + + +
+ +
+
+
+ +

config

+ +

Current configuration

+

+
config#330b4067 flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true pfs_enabled:flags.13?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int pinned_infolder_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int base_lang_pack_version:flags.2?int = Config;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
phonecalls_enabledflags.1?trueWhether phone calls can be used
default_p2p_contactsflags.3?trueWhether the client should use P2P by default for phone calls with contacts
preload_featured_stickersflags.4?trueWhether the client should preload featured stickers
ignore_phone_entitiesflags.5?trueWhether the client should ignore phone entities
revoke_pm_inboxflags.6?trueWhether incoming private messages can be deleted for both participants
blocked_modeflags.8?trueIndicates that telegram is probably censored by governments/ISPs in the current region
pfs_enabledflags.13?trueWhether pfs was used
dateintCurrent date at the server
expiresintExpiration date of this config: when it expires it'll have to be refetched using help.getConfig
test_modeBoolWhether we're connected to the test DCs
this_dcintID of the DC that returned the reply
dc_optionsVector<DcOption>DC IP list
dc_txt_domain_namestringDomain name for fetching encrypted DC list from DNS TXT record
chat_size_maxintMaximum member count for normal groups
megagroup_size_maxintMaximum member count for supergroups
forwarded_count_maxintMaximum number of messages that can be forwarded at once using messages.forwardMessages.
online_update_period_msintThe client should update its online status every N milliseconds
offline_blur_timeout_msintDelay before offline status needs to be sent to the server
offline_idle_timeout_msintTime without any user activity after which it should be treated offline
online_cloud_timeout_msintIf we are offline, but were online from some other client in last online_cloud_timeout_ms milliseconds after we had gone offline, then delay offline notification for notify_cloud_delay_ms milliseconds.
notify_cloud_delay_msintIf we are offline, but online from some other client then delay sending the offline notification for notify_cloud_delay_ms milliseconds.
notify_default_delay_msintIf some other client is online, then delay notification for notification_default_delay_ms milliseconds
push_chat_period_msintNot for client use
push_chat_limitintNot for client use
saved_gifs_limitintMaximum count of saved gifs
edit_time_limitintOnly messages with age smaller than the one specified can be edited
revoke_time_limitintOnly channel/supergroup messages with age smaller than the specified can be deleted
revoke_pm_time_limitintOnly private messages with age smaller than the specified can be deleted
rating_e_decayintExponential decay rate for computing top peer rating
stickers_recent_limitintMaximum number of recent stickers
stickers_faved_limitintMaximum number of faved stickers
channels_read_media_periodintIndicates that round videos (video notes) and voice messages sent in channels and older than the specified period must be marked as read
tmp_sessionsflags.0?intTemporary passport sessions
pinned_dialogs_count_maxintMaximum count of pinned dialogs
pinned_infolder_count_maxintMaximum count of dialogs per folder
call_receive_timeout_msintMaximum allowed outgoing ring time in VoIP calls: if the user we're calling doesn't reply within the specified time (in milliseconds), we should hang up the call
call_ring_timeout_msintMaximum allowed incoming ring time in VoIP calls: if the current user doesn't reply within the specified time (in milliseconds), the call will be automatically refused
call_connect_timeout_msintVoIP connection timeout: if the instance of libtgvoip on the other side of the call doesn't connect to our instance of libtgvoip within the specified time (in milliseconds), the call must be aborted
call_packet_timeout_msintIf during a VoIP call a packet isn't received for the specified period of time, the call must be aborted
me_url_prefixstringThe domain to use to parse in-app links.
For example t.me indicates that t.me/username links should parsed to @username, t.me/addsticker/name should be parsed to the appropriate stickerset and so on...
autoupdate_url_prefixflags.7?stringURL to use to auto-update the current app
gif_search_usernameflags.9?stringUsername of the bot to use to search for GIFs
venue_search_usernameflags.10?stringUsername of the bot to use to search for venues
img_search_usernameflags.11?stringUsername of the bot to use for image search
static_maps_providerflags.12?stringID of the map provider to use for venues
caption_length_maxintMaximum length of caption (length in utf8 codepoints)
message_length_maxintMaximum length of messages (length in utf8 codepoints)
webfile_dc_idintDC ID to use to download webfiles
suggested_lang_codeflags.2?stringSuggested language code
lang_pack_versionflags.2?intLanguage pack version
base_lang_pack_versionflags.2?intBasic language pack version
+

Type

+

Config

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+

Perfect Forward Secrecy

+

Binding temporary authorization key to permanent ones.

+

help.getConfig

+

Returns current configuration, including data center configuration.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+

messages.forwardMessages

+

Forwards messages by their IDs.

+

account.updateStatus

+

Updates online user status.

+

Top peer rating

+

If enabled, the rating of top peers indicates the relevance of a frequently used peer in a certain category (frequently messaged users, frequently used bots, inline bots, frequently visited channels and so on).

+

Telegram Passport Manual

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contact.html b/data/core.telegram.org/constructor/contact.html new file mode 100644 index 0000000000..98424d3721 --- /dev/null +++ b/data/core.telegram.org/constructor/contact.html @@ -0,0 +1,152 @@ + + + + + contact + + + + + + + + + + + + + +
+ +
+
+
+ +

contact

+ +

A contact of the current user that is registered in the system.

+

+
contact#f911c994 user_id:int mutual:Bool = Contact;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser identifier
mutualBoolCurrent user is in the user's contact list
+

Type

+

Contact

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contactStatus.html b/data/core.telegram.org/constructor/contactStatus.html new file mode 100644 index 0000000000..6d320c3bcf --- /dev/null +++ b/data/core.telegram.org/constructor/contactStatus.html @@ -0,0 +1,152 @@ + + + + + contactStatus + + + + + + + + + + + + + +
+ +
+
+
+ +

contactStatus

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contacts.blocked b/data/core.telegram.org/constructor/contacts.blocked new file mode 100644 index 0000000000..df17d7108c --- /dev/null +++ b/data/core.telegram.org/constructor/contacts.blocked @@ -0,0 +1,157 @@ + + + + + contacts.blocked + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.blocked

+ +

Full list of blocked users.

+

+
contacts.blocked#ade1591 blocked:Vector<PeerBlocked> chats:Vector<Chat> users:Vector<User> = contacts.Blocked;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
blockedVector<PeerBlocked>List of blocked users
chatsVector<Chat>Blocked chats
usersVector<User>List of users
+

Type

+

contacts.Blocked

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contacts.blockedSlice b/data/core.telegram.org/constructor/contacts.blockedSlice new file mode 100644 index 0000000000..78c9e45e3f --- /dev/null +++ b/data/core.telegram.org/constructor/contacts.blockedSlice @@ -0,0 +1,162 @@ + + + + + contacts.blockedSlice + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.blockedSlice

+ +

Incomplete list of blocked users.

+

+
contacts.blockedSlice#e1664194 count:int blocked:Vector<PeerBlocked> chats:Vector<Chat> users:Vector<User> = contacts.Blocked;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countintTotal number of elements in the list
blockedVector<PeerBlocked>List of blocked users
chatsVector<Chat>Blocked chats
usersVector<User>List of users
+

Type

+

contacts.Blocked

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contacts.contacts b/data/core.telegram.org/constructor/contacts.contacts new file mode 100644 index 0000000000..d9e2ad9576 --- /dev/null +++ b/data/core.telegram.org/constructor/contacts.contacts @@ -0,0 +1,157 @@ + + + + + contacts.contacts + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.contacts

+ +

The current user's contact list and info on users.

+

+
contacts.contacts#eae87e42 contacts:Vector<Contact> saved_count:int users:Vector<User> = contacts.Contacts;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
contactsVector<Contact>Contact list
saved_countintNumber of contacts that were saved successfully
usersVector<User>User list
+

Type

+

contacts.Contacts

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contacts.contactsNotModified b/data/core.telegram.org/constructor/contacts.contactsNotModified new file mode 100644 index 0000000000..29b516a96a --- /dev/null +++ b/data/core.telegram.org/constructor/contacts.contactsNotModified @@ -0,0 +1,132 @@ + + + + + contacts.contactsNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.contactsNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contacts.found b/data/core.telegram.org/constructor/contacts.found new file mode 100644 index 0000000000..f30e310da1 --- /dev/null +++ b/data/core.telegram.org/constructor/contacts.found @@ -0,0 +1,162 @@ + + + + + contacts.found + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.found

+ +

Users found by name substring and auxiliary data.

+

+
contacts.found#b3134d9d my_results:Vector<Peer> results:Vector<Peer> chats:Vector<Chat> users:Vector<User> = contacts.Found;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
my_resultsVector<Peer>Personalized results
resultsVector<Peer>List of found user identifiers
chatsVector<Chat>Found chats
usersVector<User>List of users
+

Type

+

contacts.Found

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contacts.importedContacts b/data/core.telegram.org/constructor/contacts.importedContacts new file mode 100644 index 0000000000..767830fffd --- /dev/null +++ b/data/core.telegram.org/constructor/contacts.importedContacts @@ -0,0 +1,165 @@ + + + + + contacts.importedContacts + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.importedContacts

+ +

Info on succesfully imported contacts.

+

+
contacts.importedContacts#77d01c3b imported:Vector<ImportedContact> popular_invites:Vector<PopularContact> retry_contacts:Vector<long> users:Vector<User> = contacts.ImportedContacts;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
importedVector<ImportedContact>List of succesfully imported contacts
popular_invitesVector<PopularContact>Popular contacts
retry_contactsVector<long>List of contact ids that could not be imported due to system limitation and will need to be imported at a later date.
Parameter added in Layer 13
usersVector<User>List of users
+

Type

+

contacts.ImportedContacts

+

Related pages

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contacts.resolvedPeer b/data/core.telegram.org/constructor/contacts.resolvedPeer new file mode 100644 index 0000000000..5a979bbe60 --- /dev/null +++ b/data/core.telegram.org/constructor/contacts.resolvedPeer @@ -0,0 +1,157 @@ + + + + + contacts.resolvedPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.resolvedPeer

+ +

Resolved peer

+

+
contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector<Chat> users:Vector<User> = contacts.ResolvedPeer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerThe peer
chatsVector<Chat>Chats
usersVector<User>Users
+

Type

+

contacts.ResolvedPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contacts.topPeers b/data/core.telegram.org/constructor/contacts.topPeers new file mode 100644 index 0000000000..b60fbbbc9b --- /dev/null +++ b/data/core.telegram.org/constructor/contacts.topPeers @@ -0,0 +1,157 @@ + + + + + contacts.topPeers + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.topPeers

+ +

Top peers

+

+
contacts.topPeers#70b772a8 categories:Vector<TopPeerCategoryPeers> chats:Vector<Chat> users:Vector<User> = contacts.TopPeers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
categoriesVector<TopPeerCategoryPeers>Top peers by top peer category
chatsVector<Chat>Chats
usersVector<User>Users
+

Type

+

contacts.TopPeers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contacts.topPeersDisabled b/data/core.telegram.org/constructor/contacts.topPeersDisabled new file mode 100644 index 0000000000..bc9fcf7044 --- /dev/null +++ b/data/core.telegram.org/constructor/contacts.topPeersDisabled @@ -0,0 +1,132 @@ + + + + + contacts.topPeersDisabled + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/contacts.topPeersNotModified b/data/core.telegram.org/constructor/contacts.topPeersNotModified new file mode 100644 index 0000000000..80f09d3c3c --- /dev/null +++ b/data/core.telegram.org/constructor/contacts.topPeersNotModified @@ -0,0 +1,132 @@ + + + + + contacts.topPeersNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.topPeersNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/dataJSON.html b/data/core.telegram.org/constructor/dataJSON.html new file mode 100644 index 0000000000..d7d2d31bb8 --- /dev/null +++ b/data/core.telegram.org/constructor/dataJSON.html @@ -0,0 +1,147 @@ + + + + + dataJSON + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/dcOption.html b/data/core.telegram.org/constructor/dcOption.html new file mode 100644 index 0000000000..e0880ce148 --- /dev/null +++ b/data/core.telegram.org/constructor/dcOption.html @@ -0,0 +1,197 @@ + + + + + dcOption + + + + + + + + + + + + + +
+ +
+
+
+ +

dcOption

+ +

Data centre

+

+
dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
ipv6flags.0?trueWhether the specified IP is an IPv6 address
media_onlyflags.1?trueWhether this DC should only be used to download or upload files
tcpo_onlyflags.2?trueWhether this DC only supports connection with transport obfuscation
cdnflags.3?trueWhether this is a CDN DC.
staticflags.4?trueIf set, this IP should be used when connecting through a proxy
idintDC ID
ip_addressstringIP address of DC
portintPort
secretflags.10?bytesIf the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation
+

Type

+

DcOption

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+

MTProto transports

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessage.html b/data/core.telegram.org/constructor/decryptedMessage.html new file mode 100644 index 0000000000..aef16e9a26 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessage.html @@ -0,0 +1,217 @@ + + + + + decryptedMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessage

+ +

Contents of an encrypted message.

+

+
===8===
+decryptedMessage#1f814f1f random_id:long random_bytes:bytes message:string media:DecryptedMessageMedia = DecryptedMessage;
+
+===17===
+decryptedMessage#204d3878 random_id:long ttl:int message:string media:DecryptedMessageMedia = DecryptedMessage;
+
+===45===
+decryptedMessage#36b091de flags:# random_id:long ttl:int message:string media:flags.9?DecryptedMessageMedia entities:flags.7?Vector<MessageEntity> via_bot_name:flags.11?string reply_to_random_id:flags.3?long = DecryptedMessage;
+
+===73===
+decryptedMessage#91cc4674 flags:# no_webpage:flags.1?true silent:flags.5?true random_id:long ttl:int message:string media:flags.9?DecryptedMessageMedia entities:flags.7?Vector<MessageEntity> via_bot_name:flags.11?string reply_to_random_id:flags.3?long grouped_id:flags.17?long = DecryptedMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields (added in layer 45)
no_webpageflags.1?trueWhether the webpage preview is disabled
silentflags.5?trueWhether this is a silent message (no notification triggered)
random_idlongRandom message ID, assigned by the author of message.
Must be equal to the ID passed to sending method.
ttlintMessage lifetime. Has higher priority than decryptedMessageActionSetMessageTTL.
Parameter added in Layer 17.
messagestringMessage text
mediaflags.9?DecryptedMessageMediaMedia content
entitiesflags.7?Vector<MessageEntity>Message entities for styled text (parameter added in layer 45)
via_bot_nameflags.11?stringSpecifies the ID of the inline bot that generated the message (parameter added in layer 45)
reply_to_random_idflags.3?longRandom message ID of the message this message replies to (parameter added in layer 45)
grouped_idflags.17?longRandom group ID, assigned by the author of message.
Multiple encrypted messages with a photo attached and with the same group ID indicate an album or grouped media (parameter added in layer 45)
+

Type

+

DecryptedMessage

+

Related pages

+

decryptedMessageActionSetMessageTTL

+

Setting of a message lifetime after reading.

+

Upon receiving such message the client shall start deleting of all messages of an encrypted chat ttl_seconds seconds after the messages were read by user.

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+

Styled text with message entities

+

How to create styled text with message entities

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionAbortKey.html b/data/core.telegram.org/constructor/decryptedMessageActionAbortKey.html new file mode 100644 index 0000000000..1ff212bf50 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionAbortKey.html @@ -0,0 +1,148 @@ + + + + + decryptedMessageActionAbortKey + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionAbortKey

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionAcceptKey.html b/data/core.telegram.org/constructor/decryptedMessageActionAcceptKey.html new file mode 100644 index 0000000000..b8e1b16c4f --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionAcceptKey.html @@ -0,0 +1,160 @@ + + + + + decryptedMessageActionAcceptKey + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionAcceptKey

+ +

Accept new key

+

+
===20===
+decryptedMessageActionAcceptKey#6fe1735b exchange_id:long g_b:bytes key_fingerprint:long = DecryptedMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
exchange_idlongExchange ID
g_bbytesB parameter, see rekeying process
key_fingerprintlongKey fingerprint, see rekeying process
+

Type

+

DecryptedMessageAction

+

Related pages

+

Perfect Forward Secrecy

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionCommitKey.html b/data/core.telegram.org/constructor/decryptedMessageActionCommitKey.html new file mode 100644 index 0000000000..53b57d2e22 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionCommitKey.html @@ -0,0 +1,155 @@ + + + + + decryptedMessageActionCommitKey + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionCommitKey

+ +

Commit new key, see rekeying process

+

+
===20===
+decryptedMessageActionCommitKey#ec2e0b9b exchange_id:long key_fingerprint:long = DecryptedMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
exchange_idlongExchange ID, see rekeying process
key_fingerprintlongKey fingerprint, see rekeying process
+

Type

+

DecryptedMessageAction

+

Related pages

+

Perfect Forward Secrecy

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionDeleteMessages.html b/data/core.telegram.org/constructor/decryptedMessageActionDeleteMessages.html new file mode 100644 index 0000000000..53ebf03019 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionDeleteMessages.html @@ -0,0 +1,148 @@ + + + + + decryptedMessageActionDeleteMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionDeleteMessages

+ +

Deleted messages.

+

+
===8===
+decryptedMessageActionDeleteMessages#65614304 random_ids:Vector<long> = DecryptedMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
random_idsVector<long>List of deleted message IDs
+

Type

+

DecryptedMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionFlushHistory.html b/data/core.telegram.org/constructor/decryptedMessageActionFlushHistory.html new file mode 100644 index 0000000000..fbd24979cf --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionFlushHistory.html @@ -0,0 +1,133 @@ + + + + + decryptedMessageActionFlushHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionFlushHistory

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionNoop.html b/data/core.telegram.org/constructor/decryptedMessageActionNoop.html new file mode 100644 index 0000000000..b5c513beeb --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionNoop.html @@ -0,0 +1,133 @@ + + + + + decryptedMessageActionNoop + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionNoop

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionNotifyLayer.html b/data/core.telegram.org/constructor/decryptedMessageActionNotifyLayer.html new file mode 100644 index 0000000000..52b89dad0c --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionNotifyLayer.html @@ -0,0 +1,151 @@ + + + + + decryptedMessageActionNotifyLayer + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionNotifyLayer

+ +

A notification stating the API layer that is used by the client. You should use your current layer and take notice of the layer used on the other side of a conversation when sending messages.

+

+
===17===
+decryptedMessageActionNotifyLayer#f3048883 layer:int = DecryptedMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
layerintLayer number, must be 17 or higher (this contructor was introduced in Layer 17).
+

Type

+

DecryptedMessageAction

+

Related pages

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionReadMessages.html b/data/core.telegram.org/constructor/decryptedMessageActionReadMessages.html new file mode 100644 index 0000000000..3f968d0078 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionReadMessages.html @@ -0,0 +1,148 @@ + + + + + decryptedMessageActionReadMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionReadMessages

+ +

Messages marked as read.

+

+
===8===
+decryptedMessageActionReadMessages#c4f40be random_ids:Vector<long> = DecryptedMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
random_idsVector<long>List of message IDs
+

Type

+

DecryptedMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionRequestKey.html b/data/core.telegram.org/constructor/decryptedMessageActionRequestKey.html new file mode 100644 index 0000000000..7917d5d473 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionRequestKey.html @@ -0,0 +1,155 @@ + + + + + decryptedMessageActionRequestKey + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionRequestKey

+ +

Request rekeying, see rekeying process

+

+
===20===
+decryptedMessageActionRequestKey#f3c9611b exchange_id:long g_a:bytes = DecryptedMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
exchange_idlongExchange ID
g_abytesg_a, see rekeying process
+

Type

+

DecryptedMessageAction

+

Related pages

+

Perfect Forward Secrecy

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionResend.html b/data/core.telegram.org/constructor/decryptedMessageActionResend.html new file mode 100644 index 0000000000..2fd3de2b58 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionResend.html @@ -0,0 +1,155 @@ + + + + + decryptedMessageActionResend + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionResend

+ +

Request for the other party in a Secret Chat to automatically resend a contiguous range of previously sent messages, as explained in Sequence number is Secret Chats.

+

+
===17===
+decryptedMessageActionResend#511110b0 start_seq_no:int end_seq_no:int = DecryptedMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
start_seq_nointout_seq_no of the first message to be resent, with correct parity
end_seq_nointout_seq_no of the last message to be resent, with same parity.
+

Type

+

DecryptedMessageAction

+

Related pages

+

Sequence numbers in Secret Chats

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionScreenshotMessages.html b/data/core.telegram.org/constructor/decryptedMessageActionScreenshotMessages.html new file mode 100644 index 0000000000..81ba8b7d01 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionScreenshotMessages.html @@ -0,0 +1,148 @@ + + + + + decryptedMessageActionScreenshotMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionScreenshotMessages

+ +

A screenshot was taken.

+

+
===8===
+decryptedMessageActionScreenshotMessages#8ac1f475 random_ids:Vector<long> = DecryptedMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
random_idsVector<long>List of affected message ids (that appeared on the screenshot)
+

Type

+

DecryptedMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionSetMessageTTL.html b/data/core.telegram.org/constructor/decryptedMessageActionSetMessageTTL.html new file mode 100644 index 0000000000..cc4d6651e7 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionSetMessageTTL.html @@ -0,0 +1,149 @@ + + + + + decryptedMessageActionSetMessageTTL + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionSetMessageTTL

+ +

Setting of a message lifetime after reading.

+

Upon receiving such message the client shall start deleting of all messages of an encrypted chat ttl_seconds seconds after the messages were read by user.

+

+
===8===
+decryptedMessageActionSetMessageTTL#a1733aec ttl_seconds:int = DecryptedMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
ttl_secondsintLifetime in seconds
+

Type

+

DecryptedMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageActionTyping.html b/data/core.telegram.org/constructor/decryptedMessageActionTyping.html new file mode 100644 index 0000000000..1d23f2e882 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageActionTyping.html @@ -0,0 +1,148 @@ + + + + + decryptedMessageActionTyping + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionTyping

+ +

User is preparing a message: typing, recording, uploading, etc.

+

+
===17===
+decryptedMessageActionTyping#ccb27641 action:SendMessageAction = DecryptedMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
actionSendMessageActionType of action
+

Type

+

DecryptedMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageLayer.html b/data/core.telegram.org/constructor/decryptedMessageLayer.html new file mode 100644 index 0000000000..834201b2e3 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageLayer.html @@ -0,0 +1,173 @@ + + + + + decryptedMessageLayer + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageLayer

+ +

Sets the layer number for the contents of an encrypted message.

+

+
===17===
+decryptedMessageLayer#1be31789 random_bytes:bytes layer:int in_seq_no:int out_seq_no:int message:DecryptedMessage = DecryptedMessageLayer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
random_bytesbytesSet of random bytes to prevent content recognition in short encrypted messages.
Clients are required to check that there are at least 15 random bytes included in each message. Messages with less than 15 random bytes must be ignored.
Parameter moved here from decryptedMessage in Layer 17.
layerintLayer number. Mimimal value - 17 (the layer in which the constructor was added).
in_seq_noint2x the number of messages in the sender's inbox (including deleted and service messages), incremented by 1 if current user was not the chat creator
Parameter added in Layer 17.
out_seq_noint2x the number of messages in the recipient's inbox (including deleted and service messages), incremented by 1 if current user was the chat creator
Parameter added in Layer 17.
messageDecryptedMessageThe content of message itself
+

Type

+

DecryptedMessageLayer

+

Related pages

+

decryptedMessage

+

Contents of an encrypted message.

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageMediaAudio.html b/data/core.telegram.org/constructor/decryptedMessageMediaAudio.html new file mode 100644 index 0000000000..2231da96c7 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageMediaAudio.html @@ -0,0 +1,174 @@ + + + + + decryptedMessageMediaAudio + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaAudio

+ +

Audio file attached to a secret chat message.

+

+
===8===
+decryptedMessageMediaAudio#6080758f duration:int size:int key:bytes iv:bytes = DecryptedMessageMedia;
+
+===17===
+decryptedMessageMediaAudio#57e0a9cb duration:int mime_type:string size:int key:bytes iv:bytes = DecryptedMessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
durationintAudio duration in seconds
mime_typestringMIME-type of the audio file
Parameter added in Layer 13.
sizeintFile size
keybytesKey to decrypt the attached media file
ivbytesInitialization vector
+

Type

+

DecryptedMessageMedia

+

Related pages

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageMediaContact.html b/data/core.telegram.org/constructor/decryptedMessageMediaContact.html new file mode 100644 index 0000000000..8d6d7eae6a --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageMediaContact.html @@ -0,0 +1,163 @@ + + + + + decryptedMessageMediaContact + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaContact

+ +

Contact attached to an encrypted message.

+

+
===8===
+decryptedMessageMediaContact#588a0a97 phone_number:string first_name:string last_name:string user_id:int = DecryptedMessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number
first_namestringContact's first name
last_namestringContact's last name
user_idintTelegram User ID of signed-up contact
+

Type

+

DecryptedMessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageMediaDocument.html b/data/core.telegram.org/constructor/decryptedMessageMediaDocument.html new file mode 100644 index 0000000000..7f35a6b824 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageMediaDocument.html @@ -0,0 +1,191 @@ + + + + + decryptedMessageMediaDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaDocument

+ +

Document attached to a message in a secret chat.

+

+
===8===
+decryptedMessageMediaDocument#b095434b thumb:bytes thumb_w:int thumb_h:int file_name:string mime_type:string size:int key:bytes iv:bytes = DecryptedMessageMedia;
+
+===45===
+decryptedMessageMediaDocument#7afe8ae2 thumb:bytes thumb_w:int thumb_h:int mime_type:string size:int key:bytes iv:bytes attributes:Vector<DocumentAttribute> caption:string = DecryptedMessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
thumbbytesThumbnail-file contents (JPEG-file, quality 55, set in a 90x90 square)
thumb_wintThumbnail width
thumb_hintThumbnail height
mime_typestringFile MIME-type
sizeintDocument size
keybytesKey to decrypt the attached document file
ivbytesInitialization
attributesVector<DocumentAttribute>Document attributes for media types
captionstringCaption
+

Type

+

DecryptedMessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageMediaEmpty.html b/data/core.telegram.org/constructor/decryptedMessageMediaEmpty.html new file mode 100644 index 0000000000..fefe75ebcb --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageMediaEmpty.html @@ -0,0 +1,133 @@ + + + + + decryptedMessageMediaEmpty + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaEmpty

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageMediaExternalDocument.html b/data/core.telegram.org/constructor/decryptedMessageMediaExternalDocument.html new file mode 100644 index 0000000000..8a486544be --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageMediaExternalDocument.html @@ -0,0 +1,183 @@ + + + + + decryptedMessageMediaExternalDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaExternalDocument

+ +

Non-e2e documented forwarded from non-secret chat

+

+
===23===
+decryptedMessageMediaExternalDocument#fa95b0dd id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector<DocumentAttribute> = DecryptedMessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongDocument ID
access_hashlongaccess hash
dateintDate
mime_typestringMime type
sizeintSize
thumbPhotoSizeThumbnail
dc_idintDC ID
attributesVector<DocumentAttribute>Attributes for media types
+

Type

+

DecryptedMessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageMediaGeoPoint.html b/data/core.telegram.org/constructor/decryptedMessageMediaGeoPoint.html new file mode 100644 index 0000000000..70b028a15d --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageMediaGeoPoint.html @@ -0,0 +1,153 @@ + + + + + decryptedMessageMediaGeoPoint + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaGeoPoint

+ +

GeoPont attached to an encrypted message.

+

+
===8===
+decryptedMessageMediaGeoPoint#35480a59 lat:double long:double = DecryptedMessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
latdoubleLatitude of point
longdoubleLongtitude of point
+

Type

+

DecryptedMessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageMediaPhoto.html b/data/core.telegram.org/constructor/decryptedMessageMediaPhoto.html new file mode 100644 index 0000000000..bfd6167d2c --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageMediaPhoto.html @@ -0,0 +1,191 @@ + + + + + decryptedMessageMediaPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaPhoto

+ +

Photo attached to an encrypted message.

+

+
===8===
+decryptedMessageMediaPhoto#32798a8c thumb:bytes thumb_w:int thumb_h:int w:int h:int size:int key:bytes iv:bytes = DecryptedMessageMedia;
+
+===45===
+decryptedMessageMediaPhoto#f1fa8d78 thumb:bytes thumb_w:int thumb_h:int w:int h:int size:int key:bytes iv:bytes caption:string = DecryptedMessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
thumbbytesContent of thumbnail file (JPEGfile, quality 55, set in a square 90x90)
thumb_wintThumbnail width
thumb_hintThumbnail height
wintPhoto width
hintPhoto height
sizeintSize of the photo in bytes
keybytesKey to decrypt an attached file with a full version
ivbytesInitialization vector
captionstringCaption
+

Type

+

DecryptedMessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageMediaVenue.html b/data/core.telegram.org/constructor/decryptedMessageMediaVenue.html new file mode 100644 index 0000000000..7cfa09dbe7 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageMediaVenue.html @@ -0,0 +1,173 @@ + + + + + decryptedMessageMediaVenue + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaVenue

+ +

Venue

+

+
===45===
+decryptedMessageMediaVenue#8a0df56f lat:double long:double title:string address:string provider:string venue_id:string = DecryptedMessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
latdoubleLatitude of venue
longdoubleLongitude of venue
titlestringVenue name
addressstringAddress
providerstringVenue provider: currently only "foursquare" needs to be supported
venue_idstringVenue ID in the provider's database
+

Type

+

DecryptedMessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageMediaVideo.html b/data/core.telegram.org/constructor/decryptedMessageMediaVideo.html new file mode 100644 index 0000000000..56f021246f --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageMediaVideo.html @@ -0,0 +1,207 @@ + + + + + decryptedMessageMediaVideo + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaVideo

+ +

Video attached to an encrypted message.

+

+
===8===
+decryptedMessageMediaVideo#4cee6ef3 thumb:bytes thumb_w:int thumb_h:int duration:int w:int h:int size:int key:bytes iv:bytes = DecryptedMessageMedia;
+
+===17===
+decryptedMessageMediaVideo#524a415d thumb:bytes thumb_w:int thumb_h:int duration:int mime_type:string w:int h:int size:int key:bytes iv:bytes = DecryptedMessageMedia;
+
+===45===
+decryptedMessageMediaVideo#970c8c0e thumb:bytes thumb_w:int thumb_h:int duration:int mime_type:string w:int h:int size:int key:bytes iv:bytes caption:string = DecryptedMessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
thumbbytesContent of thumbnail file (JPEG file, quality 55, set in a square 90x90)
thumb_wintThumbnail width
thumb_hintThumbnail height
durationintDuration of video in seconds
mime_typestringMIME-type of the video file
Parameter added in Layer 17.
wintImage width
hintImage height
sizeintFile size
keybytesKey to decrypt the attached video file
ivbytesInitialization vector
captionstringCaption
+

Type

+

DecryptedMessageMedia

+

Related pages

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageMediaWebPage.html b/data/core.telegram.org/constructor/decryptedMessageMediaWebPage.html new file mode 100644 index 0000000000..e312bd108f --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageMediaWebPage.html @@ -0,0 +1,148 @@ + + + + + decryptedMessageMediaWebPage + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaWebPage

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/decryptedMessageService.html b/data/core.telegram.org/constructor/decryptedMessageService.html new file mode 100644 index 0000000000..47ea730538 --- /dev/null +++ b/data/core.telegram.org/constructor/decryptedMessageService.html @@ -0,0 +1,156 @@ + + + + + decryptedMessageService + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageService

+ +

Contents of an encrypted service message.

+

+
===8===
+decryptedMessageService#aa48327d random_id:long random_bytes:bytes action:DecryptedMessageAction = DecryptedMessage;
+
+===17===
+decryptedMessageService#73164160 random_id:long action:DecryptedMessageAction = DecryptedMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
random_idlongRandom message ID, assigned by the message author.
Must be equal to the ID passed to the sending method.
actionDecryptedMessageActionAction relevant to the service message
+

Type

+

DecryptedMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/dialog.html b/data/core.telegram.org/constructor/dialog.html new file mode 100644 index 0000000000..2dac3f423c --- /dev/null +++ b/data/core.telegram.org/constructor/dialog.html @@ -0,0 +1,214 @@ + + + + + dialog + + + + + + + + + + + + + +
+ +
+
+
+ +

dialog

+ +

Chat

+

+
dialog#2c171f72 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
pinnedflags.2?trueIs the dialog pinned
unread_markflags.3?trueWhether the chat was manually marked as unread
peerPeerThe chat
top_messageintThe latest message ID
read_inbox_max_idintPosition up to which all incoming messages are read.
read_outbox_max_idintPosition up to which all outgoing messages are read.
unread_countintNumber of unread messages
unread_mentions_countintNumber of unread mentions
notify_settingsPeerNotifySettingsNotification settings
ptsflags.0?intPTS
draftflags.1?DraftMessageMessage draft
folder_idflags.4?intPeer folder ID, for more info click here
+

Type

+

Dialog

+

Related pages

+

Mentions

+

Telegram allows mentioning other users in case of urgent duckling matters, and quickly navigating to those mentions in order to read them as swiftly as possible.

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/dialogFilter.html b/data/core.telegram.org/constructor/dialogFilter.html new file mode 100644 index 0000000000..5856688eb8 --- /dev/null +++ b/data/core.telegram.org/constructor/dialogFilter.html @@ -0,0 +1,220 @@ + + + + + dialogFilter + + + + + + + + + + + + + +
+ +
+
+
+ +

dialogFilter

+ +

Dialog filter AKA folder

+

+
dialogFilter#7438f7e8 flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string pinned_peers:Vector<InputPeer> include_peers:Vector<InputPeer> exclude_peers:Vector<InputPeer> = DialogFilter;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
contactsflags.0?trueWhether to include all contacts in this folder
non_contactsflags.1?trueWhether to include all non-contacts in this folder
groupsflags.2?trueWhether to include all groups in this folder
broadcastsflags.3?trueWhether to include all channels in this folder
botsflags.4?trueWhether to include all bots in this folder
exclude_mutedflags.11?trueWhether to exclude muted chats from this folder
exclude_readflags.12?trueWhether to exclude read chats from this folder
exclude_archivedflags.13?trueWhether to exclude archived chats from this folder
idintFolder ID
titlestringFolder name
emoticonflags.25?stringFolder emoticon
pinned_peersVector<InputPeer>Pinned chats, folders can have unlimited pinned chats
include_peersVector<InputPeer>Include the following chats in this folder
exclude_peersVector<InputPeer>Exclude the following chats from this folder
+

Type

+

DialogFilter

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/dialogFilterSuggested.html b/data/core.telegram.org/constructor/dialogFilterSuggested.html new file mode 100644 index 0000000000..6ddc48adfc --- /dev/null +++ b/data/core.telegram.org/constructor/dialogFilterSuggested.html @@ -0,0 +1,155 @@ + + + + + dialogFilterSuggested + + + + + + + + + + + + + +
+ +
+
+
+ +

dialogFilterSuggested

+ +

Suggested folders

+

+
dialogFilterSuggested#77744d4a filter:DialogFilter description:string = DialogFilterSuggested;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
filterDialogFilterFolder info
descriptionstringFolder description
+

Type

+

DialogFilterSuggested

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/dialogFolder.html b/data/core.telegram.org/constructor/dialogFolder.html new file mode 100644 index 0000000000..daaa4f6a68 --- /dev/null +++ b/data/core.telegram.org/constructor/dialogFolder.html @@ -0,0 +1,187 @@ + + + + + dialogFolder + + + + + + + + + + + + + +
+ +
+
+
+ +

dialogFolder

+ +

Dialog in folder

+

+
dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
pinnedflags.2?trueIs this folder pinned
folderFolderThe folder
peerPeerPeer in folder
top_messageintLatest message ID of dialog
unread_muted_peers_countintNumber of unread muted peers in folder
unread_unmuted_peers_countintNumber of unread unmuted peers in folder
unread_muted_messages_countintNumber of unread messages from muted peers in folder
unread_unmuted_messages_countintNumber of unread messages from unmuted peers in folder
+

Type

+

Dialog

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/dialogPeer.html b/data/core.telegram.org/constructor/dialogPeer.html new file mode 100644 index 0000000000..88d4c07287 --- /dev/null +++ b/data/core.telegram.org/constructor/dialogPeer.html @@ -0,0 +1,147 @@ + + + + + dialogPeer + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/dialogPeerFolder.html b/data/core.telegram.org/constructor/dialogPeerFolder.html new file mode 100644 index 0000000000..8e1ea4fae8 --- /dev/null +++ b/data/core.telegram.org/constructor/dialogPeerFolder.html @@ -0,0 +1,150 @@ + + + + + dialogPeerFolder + + + + + + + + + + + + + +
+ +
+
+
+ +

dialogPeerFolder

+ +

Peer folder

+

+
dialogPeerFolder#514519e2 folder_id:int = DialogPeer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
folder_idintPeer folder ID, for more info click here
+

Type

+

DialogPeer

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/disabledFeature.html b/data/core.telegram.org/constructor/disabledFeature.html new file mode 100644 index 0000000000..45f9a9498a --- /dev/null +++ b/data/core.telegram.org/constructor/disabledFeature.html @@ -0,0 +1,163 @@ + + + + + disabledFeature + + + + + + + + + + + + + +
+ +
+
+
+ +

disabledFeature

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/document.html b/data/core.telegram.org/constructor/document.html new file mode 100644 index 0000000000..fe468ceb8b --- /dev/null +++ b/data/core.telegram.org/constructor/document.html @@ -0,0 +1,200 @@ + + + + + document + + + + + + + + + + + + + +
+ +
+
+
+ +

document

+ +

Document

+

+
document#1e87342b flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumbs:flags.0?Vector<PhotoSize> video_thumbs:flags.1?Vector<VideoSize> dc_id:int attributes:Vector<DocumentAttribute> = Document;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idlongDocument ID
access_hashlongCheck sum, dependant on document ID
file_referencebytesFile reference
dateintCreation date
mime_typestringMIME type
sizeintSize
thumbsflags.0?Vector<PhotoSize>Thumbnails
video_thumbsflags.1?Vector<VideoSize>Video thumbnails
dc_idintDC ID
attributesVector<DocumentAttribute>Attributes
+

Type

+

Document

+

Related pages

+

File references

+

How to handle file references.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/documentAttributeAnimated.html b/data/core.telegram.org/constructor/documentAttributeAnimated.html new file mode 100644 index 0000000000..dfbfb04e42 --- /dev/null +++ b/data/core.telegram.org/constructor/documentAttributeAnimated.html @@ -0,0 +1,132 @@ + + + + + documentAttributeAnimated + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/documentAttributeAudio.html b/data/core.telegram.org/constructor/documentAttributeAudio.html new file mode 100644 index 0000000000..891a106dea --- /dev/null +++ b/data/core.telegram.org/constructor/documentAttributeAudio.html @@ -0,0 +1,172 @@ + + + + + documentAttributeAudio + + + + + + + + + + + + + +
+ +
+
+
+ +

documentAttributeAudio

+ +

Represents an audio file

+

+
documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
voiceflags.10?trueWhether this is a voice message
durationintDuration in seconds
titleflags.0?stringName of song
performerflags.1?stringPerformer
waveformflags.2?bytesWaveform
+

Type

+

DocumentAttribute

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/documentAttributeFilename.html b/data/core.telegram.org/constructor/documentAttributeFilename.html new file mode 100644 index 0000000000..b9a5741df1 --- /dev/null +++ b/data/core.telegram.org/constructor/documentAttributeFilename.html @@ -0,0 +1,147 @@ + + + + + documentAttributeFilename + + + + + + + + + + + + + +
+ +
+
+
+ +

documentAttributeFilename

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/documentAttributeHasStickers.html b/data/core.telegram.org/constructor/documentAttributeHasStickers.html new file mode 100644 index 0000000000..b5afcf9cdc --- /dev/null +++ b/data/core.telegram.org/constructor/documentAttributeHasStickers.html @@ -0,0 +1,132 @@ + + + + + documentAttributeHasStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

documentAttributeHasStickers

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/documentAttributeImageSize.html b/data/core.telegram.org/constructor/documentAttributeImageSize.html new file mode 100644 index 0000000000..b24384e936 --- /dev/null +++ b/data/core.telegram.org/constructor/documentAttributeImageSize.html @@ -0,0 +1,152 @@ + + + + + documentAttributeImageSize + + + + + + + + + + + + + +
+ +
+
+
+ +

documentAttributeImageSize

+ +

Defines the width and height of an image uploaded as document

+

+
documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
wintWidth of image
hintHeight of image
+

Type

+

DocumentAttribute

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/documentAttributeSticker.html b/data/core.telegram.org/constructor/documentAttributeSticker.html new file mode 100644 index 0000000000..ce9cd3a723 --- /dev/null +++ b/data/core.telegram.org/constructor/documentAttributeSticker.html @@ -0,0 +1,167 @@ + + + + + documentAttributeSticker + + + + + + + + + + + + + +
+ +
+
+
+ +

documentAttributeSticker

+ +

Defines a sticker

+

+
documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
maskflags.1?trueWhether this is a mask sticker
altstringAlternative emoji representation of sticker
stickersetInputStickerSetAssociated stickerset
mask_coordsflags.0?MaskCoordsMask coordinates (if this is a mask sticker, attached to a photo)
+

Type

+

DocumentAttribute

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/documentAttributeVideo.html b/data/core.telegram.org/constructor/documentAttributeVideo.html new file mode 100644 index 0000000000..06a0b7806e --- /dev/null +++ b/data/core.telegram.org/constructor/documentAttributeVideo.html @@ -0,0 +1,172 @@ + + + + + documentAttributeVideo + + + + + + + + + + + + + +
+ +
+
+
+ +

documentAttributeVideo

+ +

Defines a video

+

+
documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
round_messageflags.0?trueWhether this is a round video
supports_streamingflags.1?trueWhether the video supports streaming
durationintDuration in seconds
wintVideo width
hintVideo height
+

Type

+

DocumentAttribute

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/documentEmpty.html b/data/core.telegram.org/constructor/documentEmpty.html new file mode 100644 index 0000000000..b9b690343d --- /dev/null +++ b/data/core.telegram.org/constructor/documentEmpty.html @@ -0,0 +1,147 @@ + + + + + documentEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/draftMessage.html b/data/core.telegram.org/constructor/draftMessage.html new file mode 100644 index 0000000000..8d39a03d6e --- /dev/null +++ b/data/core.telegram.org/constructor/draftMessage.html @@ -0,0 +1,177 @@ + + + + + draftMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

draftMessage

+ +

Represents a message draft.

+

+
draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector<MessageEntity> date:int = DraftMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
no_webpageflags.1?trueWhether no webpage preview will be generated
reply_to_msg_idflags.0?intThe message this message will reply to
messagestringThe draft
entitiesflags.3?Vector<MessageEntity>Message entities for styled text.
dateintDate of last update of the draft.
+

Type

+

DraftMessage

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+

Message drafts

+

How to handle message drafts

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/draftMessageEmpty.html b/data/core.telegram.org/constructor/draftMessageEmpty.html new file mode 100644 index 0000000000..f9aadc2853 --- /dev/null +++ b/data/core.telegram.org/constructor/draftMessageEmpty.html @@ -0,0 +1,152 @@ + + + + + draftMessageEmpty + + + + + + + + + + + + + +
+ +
+
+
+ +

draftMessageEmpty

+ +

Empty draft

+

+
draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
dateflags.0?intWhen was the draft last updated
+

Type

+

DraftMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/emojiKeyword.html b/data/core.telegram.org/constructor/emojiKeyword.html new file mode 100644 index 0000000000..95ec5b08b2 --- /dev/null +++ b/data/core.telegram.org/constructor/emojiKeyword.html @@ -0,0 +1,152 @@ + + + + + emojiKeyword + + + + + + + + + + + + + +
+ +
+
+
+ +

emojiKeyword

+ +

Emoji keyword

+

+
emojiKeyword#d5b3b9f9 keyword:string emoticons:Vector<string> = EmojiKeyword;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
keywordstringKeyword
emoticonsVector<string>Emojis associated to keyword
+

Type

+

EmojiKeyword

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/emojiKeywordDeleted.html b/data/core.telegram.org/constructor/emojiKeywordDeleted.html new file mode 100644 index 0000000000..71635fb927 --- /dev/null +++ b/data/core.telegram.org/constructor/emojiKeywordDeleted.html @@ -0,0 +1,152 @@ + + + + + emojiKeywordDeleted + + + + + + + + + + + + + +
+ +
+
+
+ +

emojiKeywordDeleted

+ +

Deleted emoji keyword

+

+
emojiKeywordDeleted#236df622 keyword:string emoticons:Vector<string> = EmojiKeyword;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
keywordstringKeyword
emoticonsVector<string>Emojis that were associated to keyword
+

Type

+

EmojiKeyword

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/emojiKeywordsDifference.html b/data/core.telegram.org/constructor/emojiKeywordsDifference.html new file mode 100644 index 0000000000..04afb8ee1c --- /dev/null +++ b/data/core.telegram.org/constructor/emojiKeywordsDifference.html @@ -0,0 +1,162 @@ + + + + + emojiKeywordsDifference + + + + + + + + + + + + + +
+ +
+
+
+ +

emojiKeywordsDifference

+ +

Changes to emoji keywords

+

+
emojiKeywordsDifference#5cc761bd lang_code:string from_version:int version:int keywords:Vector<EmojiKeyword> = EmojiKeywordsDifference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lang_codestringLanguage code for keywords
from_versionintPrevious emoji keyword list version
versionintCurrent version of emoji keyword list
keywordsVector<EmojiKeyword>Emojis associated to keywords
+

Type

+

EmojiKeywordsDifference

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/emojiLanguage.html b/data/core.telegram.org/constructor/emojiLanguage.html new file mode 100644 index 0000000000..2e16892867 --- /dev/null +++ b/data/core.telegram.org/constructor/emojiLanguage.html @@ -0,0 +1,147 @@ + + + + + emojiLanguage + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/emojiURL.html b/data/core.telegram.org/constructor/emojiURL.html new file mode 100644 index 0000000000..f1daa8cf2e --- /dev/null +++ b/data/core.telegram.org/constructor/emojiURL.html @@ -0,0 +1,147 @@ + + + + + emojiURL + + + + + + + + + + + + + +
+ +
+
+
+ +

emojiURL

+ +

An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation

+

+
emojiURL#a575739d url:string = EmojiURL;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
urlstringAn HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation
+

Type

+

EmojiURL

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/encryptedChat.html b/data/core.telegram.org/constructor/encryptedChat.html new file mode 100644 index 0000000000..0a9b51649b --- /dev/null +++ b/data/core.telegram.org/constructor/encryptedChat.html @@ -0,0 +1,177 @@ + + + + + encryptedChat + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedChat

+ +

Encrypted chat

+

+
encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintChat ID
access_hashlongCheck sum dependant on the user ID
dateintDate chat was created
admin_idintChat creator ID
participant_idintID of the second chat participant
g_a_or_bbytesB = g ^ b mod p, if the currently authorized user is the chat's creator,
or A = g ^ a mod p otherwise
See Wikipedia for more info
key_fingerprintlong64-bit fingerprint of received key
+

Type

+

EncryptedChat

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/encryptedChatDiscarded.html b/data/core.telegram.org/constructor/encryptedChatDiscarded.html new file mode 100644 index 0000000000..72bbcae260 --- /dev/null +++ b/data/core.telegram.org/constructor/encryptedChatDiscarded.html @@ -0,0 +1,147 @@ + + + + + encryptedChatDiscarded + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/encryptedChatEmpty.html b/data/core.telegram.org/constructor/encryptedChatEmpty.html new file mode 100644 index 0000000000..43c03a7b62 --- /dev/null +++ b/data/core.telegram.org/constructor/encryptedChatEmpty.html @@ -0,0 +1,147 @@ + + + + + encryptedChatEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/encryptedChatRequested.html b/data/core.telegram.org/constructor/encryptedChatRequested.html new file mode 100644 index 0000000000..e1580a0f91 --- /dev/null +++ b/data/core.telegram.org/constructor/encryptedChatRequested.html @@ -0,0 +1,185 @@ + + + + + encryptedChatRequested + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedChatRequested

+ +

Request to create an encrypted chat.

+

+
encryptedChatRequested#62718a82 flags:# folder_id:flags.0?int id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
folder_idflags.0?intPeer folder ID, for more info click here
idintChat ID
access_hashlongCheck sum depending on user ID
dateintChat creation date
admin_idintChat creator ID
participant_idintID of second chat participant
g_abytesA = g ^ a mod p, see Wikipedia
+

Type

+

EncryptedChat

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/encryptedChatWaiting.html b/data/core.telegram.org/constructor/encryptedChatWaiting.html new file mode 100644 index 0000000000..ec8b1ed959 --- /dev/null +++ b/data/core.telegram.org/constructor/encryptedChatWaiting.html @@ -0,0 +1,167 @@ + + + + + encryptedChatWaiting + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedChatWaiting

+ +

Chat waiting for approval of second participant.

+

+
encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintChat ID
access_hashlongChecking sum depending on user ID
dateintDate of chat creation
admin_idintChat creator ID
participant_idintID of second chat participant
+

Type

+

EncryptedChat

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/encryptedFile.html b/data/core.telegram.org/constructor/encryptedFile.html new file mode 100644 index 0000000000..cac1023d61 --- /dev/null +++ b/data/core.telegram.org/constructor/encryptedFile.html @@ -0,0 +1,167 @@ + + + + + encryptedFile + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedFile

+ +

Encrypted file.

+

+
encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongFile ID
access_hashlongChecking sum depending on user ID
sizeintFile size in bytes
dc_idintNumber of data centre
key_fingerprintint32-bit fingerprint of key used for file encryption
+

Type

+

EncryptedFile

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/encryptedFileEmpty.html b/data/core.telegram.org/constructor/encryptedFileEmpty.html new file mode 100644 index 0000000000..051067e048 --- /dev/null +++ b/data/core.telegram.org/constructor/encryptedFileEmpty.html @@ -0,0 +1,132 @@ + + + + + encryptedFileEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/encryptedMessage.html b/data/core.telegram.org/constructor/encryptedMessage.html new file mode 100644 index 0000000000..dfca893bb9 --- /dev/null +++ b/data/core.telegram.org/constructor/encryptedMessage.html @@ -0,0 +1,170 @@ + + + + + encryptedMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedMessage

+ +

Encrypted message.

+

+
encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
random_idlongRandom message ID, assigned by the author of message
chat_idintID of encrypted chat
dateintDate of sending
bytesbytesTL-serialising of DecryptedMessage type, encrypted with the key creatied at stage of chat initialization
fileEncryptedFileAttached encrypted file
+

Type

+

EncryptedMessage

+

Related pages

+

DecryptedMessage

+

Object describes the contents of an encrypted message.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/encryptedMessageService.html b/data/core.telegram.org/constructor/encryptedMessageService.html new file mode 100644 index 0000000000..8b2d38076b --- /dev/null +++ b/data/core.telegram.org/constructor/encryptedMessageService.html @@ -0,0 +1,165 @@ + + + + + encryptedMessageService + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedMessageService

+ +

Encrypted service message

+

+
encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
random_idlongRandom message ID, assigned by the author of message
chat_idintID of encrypted chat
dateintDate of sending
bytesbytesTL-serialising of DecryptedMessage type, encrypted with the key creatied at stage of chat initialization
+

Type

+

EncryptedMessage

+

Related pages

+

DecryptedMessage

+

Object describes the contents of an encrypted message.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/error.html b/data/core.telegram.org/constructor/error.html new file mode 100644 index 0000000000..e15504ea0a --- /dev/null +++ b/data/core.telegram.org/constructor/error.html @@ -0,0 +1,152 @@ + + + + + error + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/exportedMessageLink.html b/data/core.telegram.org/constructor/exportedMessageLink.html new file mode 100644 index 0000000000..85c35030ca --- /dev/null +++ b/data/core.telegram.org/constructor/exportedMessageLink.html @@ -0,0 +1,152 @@ + + + + + exportedMessageLink + + + + + + + + + + + + + +
+ +
+
+
+ +

exportedMessageLink

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/fileHash.html b/data/core.telegram.org/constructor/fileHash.html new file mode 100644 index 0000000000..10060bb4f1 --- /dev/null +++ b/data/core.telegram.org/constructor/fileHash.html @@ -0,0 +1,171 @@ + + + + + FileHash + + + + + + + + + + + + + +
+ +
+
+
+ +

FileHash

+ +

SHA256 Hash of an uploaded file, to be checked for validity after download

+

+
fileHash#6242c773 offset:int limit:int hash:bytes = FileHash;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset from where to start computing SHA-256 hash
limitintLength
hashbytesSHA-256 Hash of file chunk, to be checked for validity after download
+

Type

+

FileHash

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/fileLocation.html b/data/core.telegram.org/constructor/fileLocation.html new file mode 100644 index 0000000000..f9bf845025 --- /dev/null +++ b/data/core.telegram.org/constructor/fileLocation.html @@ -0,0 +1,182 @@ + + + + + fileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

fileLocation

+ +

File location.

+

+
Constructor schema is available as of layer 86. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dc_idintNumber of the data center holding the file
volume_idlongServer volume
local_idintFile ID
secretlongChecksum to access the file
+

Type

+

FileLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/fileLocationToBeDeprecated.html b/data/core.telegram.org/constructor/fileLocationToBeDeprecated.html new file mode 100644 index 0000000000..48e325ca4e --- /dev/null +++ b/data/core.telegram.org/constructor/fileLocationToBeDeprecated.html @@ -0,0 +1,152 @@ + + + + + fileLocationToBeDeprecated + + + + + + + + + + + + + +
+ +
+
+
+ +

fileLocationToBeDeprecated

+ +

Indicates the location of a photo, will be deprecated soon

+

+
fileLocationToBeDeprecated#bc7fc6cd volume_id:long local_id:int = FileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
volume_idlongVolume ID
local_idintLocal ID
+

Type

+

FileLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/fileLocationUnavailable.html b/data/core.telegram.org/constructor/fileLocationUnavailable.html new file mode 100644 index 0000000000..361ebf6d88 --- /dev/null +++ b/data/core.telegram.org/constructor/fileLocationUnavailable.html @@ -0,0 +1,179 @@ + + + + + fileLocationUnavailable + + + + + + + + + + + + + +
+ +
+
+
+ +

fileLocationUnavailable

+ +

File is currently unavailable.

+

+
Constructor schema is available as of layer 98. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
volume_idlongServer volume
local_idintFile ID
secretlongChecksum to access the file
+

Type

+

FileLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/folder.html b/data/core.telegram.org/constructor/folder.html new file mode 100644 index 0000000000..a3561b8c91 --- /dev/null +++ b/data/core.telegram.org/constructor/folder.html @@ -0,0 +1,177 @@ + + + + + folder + + + + + + + + + + + + + +
+ +
+
+
+ +

folder

+ +

Folder

+

+
folder#ff544e65 flags:# autofill_new_broadcasts:flags.0?true autofill_public_groups:flags.1?true autofill_new_correspondents:flags.2?true id:int title:string photo:flags.3?ChatPhoto = Folder;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
autofill_new_broadcastsflags.0?trueAutomatically add new channels to this folder
autofill_public_groupsflags.1?trueAutomatically add joined new public supergroups to this folder
autofill_new_correspondentsflags.2?trueAutomatically add new private chats to this folder
idintFolder ID
titlestringFolder title
photoflags.3?ChatPhotoFolder picture
+

Type

+

Folder

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/folderPeer.html b/data/core.telegram.org/constructor/folderPeer.html new file mode 100644 index 0000000000..16e3e9dc8c --- /dev/null +++ b/data/core.telegram.org/constructor/folderPeer.html @@ -0,0 +1,155 @@ + + + + + folderPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

folderPeer

+ +

Peer in a folder

+

+
folderPeer#e9baa668 peer:Peer folder_id:int = FolderPeer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerFolder peer info
folder_idintPeer folder ID, for more info click here
+

Type

+

FolderPeer

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/game.html b/data/core.telegram.org/constructor/game.html new file mode 100644 index 0000000000..77710d351c --- /dev/null +++ b/data/core.telegram.org/constructor/game.html @@ -0,0 +1,182 @@ + + + + + game + + + + + + + + + + + + + +
+ +
+
+
+ +

game

+ +

Indicates an already sent game

+

+
game#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idlongID of the game
access_hashlongAccess hash of the game
short_namestringShort name for the game
titlestringTitle of the game
descriptionstringGame description
photoPhotoGame preview
documentflags.0?DocumentOptional attached document
+

Type

+

Game

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/geoPoint.html b/data/core.telegram.org/constructor/geoPoint.html new file mode 100644 index 0000000000..074d7fdc26 --- /dev/null +++ b/data/core.telegram.org/constructor/geoPoint.html @@ -0,0 +1,167 @@ + + + + + geoPoint + + + + + + + + + + + + + +
+ +
+
+
+ +

geoPoint

+ +

GeoPoint.

+

+
geoPoint#b2a2f663 flags:# long:double lat:double access_hash:long accuracy_radius:flags.0?int = GeoPoint;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
longdoubleLongtitude
latdoubleLatitude
access_hashlongAccess hash
accuracy_radiusflags.0?intThe estimated horizontal accuracy of the location, in meters; as defined by the sender.
+

Type

+

GeoPoint

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/geoPointEmpty.html b/data/core.telegram.org/constructor/geoPointEmpty.html new file mode 100644 index 0000000000..8c08f7b5eb --- /dev/null +++ b/data/core.telegram.org/constructor/geoPointEmpty.html @@ -0,0 +1,132 @@ + + + + + geoPointEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/globalPrivacySettings.html b/data/core.telegram.org/constructor/globalPrivacySettings.html new file mode 100644 index 0000000000..d2be57e42b --- /dev/null +++ b/data/core.telegram.org/constructor/globalPrivacySettings.html @@ -0,0 +1,152 @@ + + + + + globalPrivacySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

globalPrivacySettings

+ +

Global privacy settings

+

+
globalPrivacySettings#bea2f424 flags:# archive_and_mute_new_noncontact_peers:flags.0?Bool = GlobalPrivacySettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
archive_and_mute_new_noncontact_peersflags.0?BoolWhether to archive and mute new chats from non-contacts
+

Type

+

GlobalPrivacySettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.appUpdate b/data/core.telegram.org/constructor/help.appUpdate new file mode 100644 index 0000000000..fdbaa74fb7 --- /dev/null +++ b/data/core.telegram.org/constructor/help.appUpdate @@ -0,0 +1,185 @@ + + + + + help.appUpdate + + + + + + + + + + + + + +
+ +
+
+
+ +

help.appUpdate

+ +

An update is available for the application.

+

+
help.appUpdate#1da7158f flags:# can_not_skip:flags.0?true id:int version:string text:string entities:Vector<MessageEntity> document:flags.1?Document url:flags.2?string = help.AppUpdate;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
can_not_skipflags.0?trueUnskippable, the new info must be shown to the user (with a popup or something else)
idintUpdate ID
versionstringNew version name
textstringText description of the update
entitiesVector<MessageEntity>Message entities for styled text
documentflags.1?DocumentApplication binary
urlflags.2?stringApplication download URL
+

Type

+

help.AppUpdate

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.countriesList b/data/core.telegram.org/constructor/help.countriesList new file mode 100644 index 0000000000..d1c1d041a5 --- /dev/null +++ b/data/core.telegram.org/constructor/help.countriesList @@ -0,0 +1,155 @@ + + + + + help.countriesList + + + + + + + + + + + + + +
+ +
+
+
+ +

help.countriesList

+ +

Name, ISO code, localized name and phone codes/patterns of all available countries

+

+
help.countriesList#87d0759e countries:Vector<help.Country> hash:int = help.CountriesList;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countriesVector<help.Country>Name, ISO code, localized name and phone codes/patterns of all available countries
hashintHash for pagination, for more info click here
+

Type

+

help.CountriesList

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.countriesListNotModified b/data/core.telegram.org/constructor/help.countriesListNotModified new file mode 100644 index 0000000000..cccd39dd0d --- /dev/null +++ b/data/core.telegram.org/constructor/help.countriesListNotModified @@ -0,0 +1,132 @@ + + + + + help.countriesListNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

help.countriesListNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.country b/data/core.telegram.org/constructor/help.country new file mode 100644 index 0000000000..34e35e6976 --- /dev/null +++ b/data/core.telegram.org/constructor/help.country @@ -0,0 +1,172 @@ + + + + + help.country + + + + + + + + + + + + + +
+ +
+
+
+ +

help.country

+ +

Name, ISO code, localized name and phone codes/patterns of a specific country

+

+
help.country#c3878e23 flags:# hidden:flags.0?true iso2:string default_name:string name:flags.1?string country_codes:Vector<help.CountryCode> = help.Country;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
hiddenflags.0?trueWhether this country should not be shown in the list
iso2stringISO code of country
default_namestringName of the country in the country's language
nameflags.1?stringName of the country in the user's language, if different from the original name
country_codesVector<help.CountryCode>Phone codes/patterns
+

Type

+

help.Country

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.countryCode b/data/core.telegram.org/constructor/help.countryCode new file mode 100644 index 0000000000..685cf34a20 --- /dev/null +++ b/data/core.telegram.org/constructor/help.countryCode @@ -0,0 +1,162 @@ + + + + + help.countryCode + + + + + + + + + + + + + +
+ +
+
+
+ +

help.countryCode

+ +

Country code and phone number pattern of a specific country

+

+
help.countryCode#4203c5ef flags:# country_code:string prefixes:flags.0?Vector<string> patterns:flags.1?Vector<string> = help.CountryCode;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
country_codestringISO country code
prefixesflags.0?Vector<string>Possible phone prefixes
patternsflags.1?Vector<string>Phone patterns: for example, XXX XXX XXX
+

Type

+

help.CountryCode

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.deepLinkInfo b/data/core.telegram.org/constructor/help.deepLinkInfo new file mode 100644 index 0000000000..0ec33aaa43 --- /dev/null +++ b/data/core.telegram.org/constructor/help.deepLinkInfo @@ -0,0 +1,165 @@ + + + + + help.deepLinkInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

help.deepLinkInfo

+ +

Deep linking info

+

+
help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector<MessageEntity> = help.DeepLinkInfo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
update_appflags.0?trueAn update of the app is required to parse this link
messagestringMessage to show to the user
entitiesflags.1?Vector<MessageEntity>Message entities for styled text
+

Type

+

help.DeepLinkInfo

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.deepLinkInfoEmpty b/data/core.telegram.org/constructor/help.deepLinkInfoEmpty new file mode 100644 index 0000000000..af5fc6beb9 --- /dev/null +++ b/data/core.telegram.org/constructor/help.deepLinkInfoEmpty @@ -0,0 +1,132 @@ + + + + + help.deepLinkInfoEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.inviteText b/data/core.telegram.org/constructor/help.inviteText new file mode 100644 index 0000000000..4035ff9afa --- /dev/null +++ b/data/core.telegram.org/constructor/help.inviteText @@ -0,0 +1,147 @@ + + + + + help.inviteText + + + + + + + + + + + + + +
+ +
+
+
+ +

help.inviteText

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.noAppUpdate b/data/core.telegram.org/constructor/help.noAppUpdate new file mode 100644 index 0000000000..8a4fd1fc2e --- /dev/null +++ b/data/core.telegram.org/constructor/help.noAppUpdate @@ -0,0 +1,132 @@ + + + + + help.noAppUpdate + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.passportConfig b/data/core.telegram.org/constructor/help.passportConfig new file mode 100644 index 0000000000..385fa7a242 --- /dev/null +++ b/data/core.telegram.org/constructor/help.passportConfig @@ -0,0 +1,156 @@ + + + + + help.passportConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

help.passportConfig

+ +

Telegram passport configuration

+

+
help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
countries_langsDataJSONLocalization
+

Type

+

help.PassportConfig

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.passportConfigNotModified b/data/core.telegram.org/constructor/help.passportConfigNotModified new file mode 100644 index 0000000000..6aebd7523e --- /dev/null +++ b/data/core.telegram.org/constructor/help.passportConfigNotModified @@ -0,0 +1,132 @@ + + + + + help.passportConfigNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

help.passportConfigNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.promoData b/data/core.telegram.org/constructor/help.promoData new file mode 100644 index 0000000000..19d69273dd --- /dev/null +++ b/data/core.telegram.org/constructor/help.promoData @@ -0,0 +1,182 @@ + + + + + help.promoData + + + + + + + + + + + + + +
+ +
+
+
+ +

help.promoData

+ +

MTProxy/Public Service Announcement information

+

+
help.promoData#8c39793f flags:# proxy:flags.0?true expires:int peer:Peer chats:Vector<Chat> users:Vector<User> psa_type:flags.1?string psa_message:flags.2?string = help.PromoData;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
proxyflags.0?trueMTProxy-related channel
expiresintExpiry of PSA/MTProxy info
peerPeerMTProxy/PSA peer
chatsVector<Chat>Chat info
usersVector<User>User info
psa_typeflags.1?stringPSA type
psa_messageflags.2?stringPSA message
+

Type

+

help.PromoData

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.promoDataEmpty b/data/core.telegram.org/constructor/help.promoDataEmpty new file mode 100644 index 0000000000..bdc2f99481 --- /dev/null +++ b/data/core.telegram.org/constructor/help.promoDataEmpty @@ -0,0 +1,147 @@ + + + + + help.promoDataEmpty + + + + + + + + + + + + + +
+ +
+
+
+ +

help.promoDataEmpty

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.recentMeUrls b/data/core.telegram.org/constructor/help.recentMeUrls new file mode 100644 index 0000000000..a8921bd018 --- /dev/null +++ b/data/core.telegram.org/constructor/help.recentMeUrls @@ -0,0 +1,157 @@ + + + + + help.recentMeUrls + + + + + + + + + + + + + +
+ +
+
+
+ +

help.recentMeUrls

+ +

Recent t.me URLs

+

+
help.recentMeUrls#e0310d7 urls:Vector<RecentMeUrl> chats:Vector<Chat> users:Vector<User> = help.RecentMeUrls;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlsVector<RecentMeUrl>URLs
chatsVector<Chat>Chats
usersVector<User>Users
+

Type

+

help.RecentMeUrls

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.support b/data/core.telegram.org/constructor/help.support new file mode 100644 index 0000000000..8f83bab3a7 --- /dev/null +++ b/data/core.telegram.org/constructor/help.support @@ -0,0 +1,152 @@ + + + + + help.support + + + + + + + + + + + + + +
+ +
+
+
+ +

help.support

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.supportName b/data/core.telegram.org/constructor/help.supportName new file mode 100644 index 0000000000..8bfc1babd4 --- /dev/null +++ b/data/core.telegram.org/constructor/help.supportName @@ -0,0 +1,147 @@ + + + + + help.supportName + + + + + + + + + + + + + +
+ +
+
+
+ +

help.supportName

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.termsOfService b/data/core.telegram.org/constructor/help.termsOfService new file mode 100644 index 0000000000..5cea618eb5 --- /dev/null +++ b/data/core.telegram.org/constructor/help.termsOfService @@ -0,0 +1,175 @@ + + + + + help.termsOfService + + + + + + + + + + + + + +
+ +
+
+
+ +

help.termsOfService

+ +

Info about the latest telegram Terms Of Service

+

+
help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector<MessageEntity> min_age_confirm:flags.1?int = help.TermsOfService;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
popupflags.0?trueWhether a prompt must be showed to the user, in order to accept the new terms.
idDataJSONID of the new terms
textstringText of the new terms
entitiesVector<MessageEntity>Message entities for styled text
min_age_confirmflags.1?intMinimum age required to sign up to telegram, the user must confirm that they is older than the minimum age.
+

Type

+

help.TermsOfService

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.termsOfServiceUpdate b/data/core.telegram.org/constructor/help.termsOfServiceUpdate new file mode 100644 index 0000000000..0653940f6e --- /dev/null +++ b/data/core.telegram.org/constructor/help.termsOfServiceUpdate @@ -0,0 +1,157 @@ + + + + + help.termsOfServiceUpdate + + + + + + + + + + + + + +
+ +
+
+
+ +

help.termsOfServiceUpdate

+ +

Info about an update of telegram's terms of service. If the terms of service are declined, then the account.deleteAccount method should be called with the reason "Decline ToS update"

+

+
help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
expiresintNew TOS updates will have to be queried using help.getTermsOfServiceUpdate in expires seconds
terms_of_servicehelp.TermsOfServiceNew terms of service
+

Type

+

help.TermsOfServiceUpdate

+

Related pages

+

help.getTermsOfServiceUpdate

+

Look for updates of telegram's terms of service

+

account.deleteAccount

+

Delete the user's account from the telegram servers. Can be used, for example, to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.termsOfServiceUpdateEmpty b/data/core.telegram.org/constructor/help.termsOfServiceUpdateEmpty new file mode 100644 index 0000000000..dfd91f34c2 --- /dev/null +++ b/data/core.telegram.org/constructor/help.termsOfServiceUpdateEmpty @@ -0,0 +1,150 @@ + + + + + help.termsOfServiceUpdateEmpty + + + + + + + + + + + + + +
+ +
+
+
+ +

help.termsOfServiceUpdateEmpty

+ +

No changes were made to telegram's terms of service

+

+
help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
expiresintNew TOS updates will have to be queried using help.getTermsOfServiceUpdate in expires seconds
+

Type

+

help.TermsOfServiceUpdate

+

Related pages

+

help.getTermsOfServiceUpdate

+

Look for updates of telegram's terms of service

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.userInfo b/data/core.telegram.org/constructor/help.userInfo new file mode 100644 index 0000000000..139b469803 --- /dev/null +++ b/data/core.telegram.org/constructor/help.userInfo @@ -0,0 +1,165 @@ + + + + + help.userInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

help.userInfo

+ +

Internal use

+

+
help.userInfo#1eb3758 message:string entities:Vector<MessageEntity> author:string date:int = help.UserInfo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messagestringInfo
entitiesVector<MessageEntity>Message entities for styled text
authorstringAuthor
dateintDate
+

Type

+

help.UserInfo

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/help.userInfoEmpty b/data/core.telegram.org/constructor/help.userInfoEmpty new file mode 100644 index 0000000000..fc3a30bfa4 --- /dev/null +++ b/data/core.telegram.org/constructor/help.userInfoEmpty @@ -0,0 +1,132 @@ + + + + + help.userInfoEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/highScore.html b/data/core.telegram.org/constructor/highScore.html new file mode 100644 index 0000000000..bd216b1db1 --- /dev/null +++ b/data/core.telegram.org/constructor/highScore.html @@ -0,0 +1,157 @@ + + + + + highScore + + + + + + + + + + + + + +
+ +
+
+
+ +

highScore

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/importedContact.html b/data/core.telegram.org/constructor/importedContact.html new file mode 100644 index 0000000000..fcf6fa35b1 --- /dev/null +++ b/data/core.telegram.org/constructor/importedContact.html @@ -0,0 +1,155 @@ + + + + + importedContact + + + + + + + + + + + + + +
+ +
+
+
+ +

importedContact

+ +

Successfully imported contact.

+

+
importedContact#d0028438 user_id:int client_id:long = ImportedContact;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser identifier
client_idlongThe contact's client identifier (passed to one of the InputContact constructors)
+

Type

+

ImportedContact

+

Related pages

+

InputContact

+

Object defines a contact from the user's phonebook.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inlineBotSwitchPM.html b/data/core.telegram.org/constructor/inlineBotSwitchPM.html new file mode 100644 index 0000000000..1fe76b46ad --- /dev/null +++ b/data/core.telegram.org/constructor/inlineBotSwitchPM.html @@ -0,0 +1,152 @@ + + + + + inlineBotSwitchPM + + + + + + + + + + + + + +
+ +
+
+
+ +

inlineBotSwitchPM

+ +

The bot requested the user to message him in private

+

+
inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textstringText for the button that switches the user to a private chat with the bot and sends the bot a start message with the parameter start_parameter (can be empty)
start_paramstringThe parameter for the /start parameter
+

Type

+

InlineBotSwitchPM

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputAppEvent.html b/data/core.telegram.org/constructor/inputAppEvent.html new file mode 100644 index 0000000000..4ce3bc5fd5 --- /dev/null +++ b/data/core.telegram.org/constructor/inputAppEvent.html @@ -0,0 +1,162 @@ + + + + + inputAppEvent + + + + + + + + + + + + + +
+ +
+
+
+ +

inputAppEvent

+ +

Event that occured in the application.

+

+
inputAppEvent#1d1b1245 time:double type:string peer:long data:JSONValue = InputAppEvent;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
timedoubleClient's exact timestamp for the event
typestringType of event
peerlongArbitrary numeric value for more convenient selection of certain event types, or events referring to a certain object
dataJSONValueDetails of the event
+

Type

+

InputAppEvent

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputBotInlineMessageGame.html b/data/core.telegram.org/constructor/inputBotInlineMessageGame.html new file mode 100644 index 0000000000..71357ea049 --- /dev/null +++ b/data/core.telegram.org/constructor/inputBotInlineMessageGame.html @@ -0,0 +1,152 @@ + + + + + inputBotInlineMessageGame + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineMessageGame

+ +

A game

+

+
inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

InputBotInlineMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputBotInlineMessageID.html b/data/core.telegram.org/constructor/inputBotInlineMessageID.html new file mode 100644 index 0000000000..cdbb7a33b8 --- /dev/null +++ b/data/core.telegram.org/constructor/inputBotInlineMessageID.html @@ -0,0 +1,157 @@ + + + + + inputBotInlineMessageID + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineMessageID

+ +

Represents a sent inline message from the perspective of a bot

+

+
inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dc_idintDC ID to use when working with this inline message
idlongID of message
access_hashlongAccess hash of message
+

Type

+

InputBotInlineMessageID

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputBotInlineMessageMediaAuto.html b/data/core.telegram.org/constructor/inputBotInlineMessageMediaAuto.html new file mode 100644 index 0000000000..3e07227ed5 --- /dev/null +++ b/data/core.telegram.org/constructor/inputBotInlineMessageMediaAuto.html @@ -0,0 +1,165 @@ + + + + + inputBotInlineMessageMediaAuto + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineMessageMediaAuto

+ +

A media

+

+
inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
messagestringCaption
entitiesflags.1?Vector<MessageEntity>Message entities for styled text
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

InputBotInlineMessage

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputBotInlineMessageMediaContact.html b/data/core.telegram.org/constructor/inputBotInlineMessageMediaContact.html new file mode 100644 index 0000000000..bb271462af --- /dev/null +++ b/data/core.telegram.org/constructor/inputBotInlineMessageMediaContact.html @@ -0,0 +1,172 @@ + + + + + inputBotInlineMessageMediaContact + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineMessageMediaContact

+ +

A contact

+

+
inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
phone_numberstringPhone number
first_namestringFirst name
last_namestringLast name
vcardstringVCard info
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

InputBotInlineMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputBotInlineMessageMediaGeo.html b/data/core.telegram.org/constructor/inputBotInlineMessageMediaGeo.html new file mode 100644 index 0000000000..ca05cefc23 --- /dev/null +++ b/data/core.telegram.org/constructor/inputBotInlineMessageMediaGeo.html @@ -0,0 +1,175 @@ + + + + + inputBotInlineMessageMediaGeo + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineMessageMediaGeo

+ +

Geolocation

+

+
inputBotInlineMessageMediaGeo#96929a85 flags:# geo_point:InputGeoPoint heading:flags.0?int period:flags.1?int proximity_notification_radius:flags.3?int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
geo_pointInputGeoPointGeolocation
headingflags.0?intFor live locations, a direction in which the location moves, in degrees; 1-360
periodflags.1?intValidity period
proximity_notification_radiusflags.3?intFor live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)
reply_markupflags.2?ReplyMarkupReply markup for bot/inline keyboards
+

Type

+

InputBotInlineMessage

+

Related pages

+

Live geolocation

+

Telegram allows sending the live geolocation of a user in a chat, optionally setting a proximity alert.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputBotInlineMessageMediaVenue.html b/data/core.telegram.org/constructor/inputBotInlineMessageMediaVenue.html new file mode 100644 index 0000000000..bbc302623a --- /dev/null +++ b/data/core.telegram.org/constructor/inputBotInlineMessageMediaVenue.html @@ -0,0 +1,182 @@ + + + + + inputBotInlineMessageMediaVenue + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineMessageMediaVenue

+ +

Venue

+

+
inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
geo_pointInputGeoPointGeolocation
titlestringVenue name
addressstringAddress
providerstringVenue provider: currently only "foursquare" needs to be supported
venue_idstringVenue ID in the provider's database
venue_typestringVenue type in the provider's database
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

InputBotInlineMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputBotInlineMessageText.html b/data/core.telegram.org/constructor/inputBotInlineMessageText.html new file mode 100644 index 0000000000..c94963ea67 --- /dev/null +++ b/data/core.telegram.org/constructor/inputBotInlineMessageText.html @@ -0,0 +1,170 @@ + + + + + inputBotInlineMessageText + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineMessageText

+ +

Simple text message

+

+
inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
no_webpageflags.0?trueDisable webpage preview
messagestringMessage
entitiesflags.1?Vector<MessageEntity>Message entities for styled text
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

InputBotInlineMessage

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputBotInlineResult.html b/data/core.telegram.org/constructor/inputBotInlineResult.html new file mode 100644 index 0000000000..6ef051cb0c --- /dev/null +++ b/data/core.telegram.org/constructor/inputBotInlineResult.html @@ -0,0 +1,189 @@ + + + + + inputBotInlineResult + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineResult

+ +

An inline bot result

+

+
inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idstringID of result
typestringResult type (see bot API docs)
titleflags.1?stringResult title
descriptionflags.2?stringResult description
urlflags.3?stringURL of result
thumbflags.4?InputWebDocumentThumbnail for result
contentflags.5?InputWebDocumentResult contents
send_messageInputBotInlineMessageMessage to send when the result is selected
+

Type

+

InputBotInlineResult

+

Related pages

+

Telegram Bot API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputBotInlineResultDocument.html b/data/core.telegram.org/constructor/inputBotInlineResultDocument.html new file mode 100644 index 0000000000..99c3bba4c9 --- /dev/null +++ b/data/core.telegram.org/constructor/inputBotInlineResultDocument.html @@ -0,0 +1,179 @@ + + + + + inputBotInlineResultDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineResultDocument

+ +

Document (media of any type except for photos)

+

+
inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idstringResult ID
typestringResult type (see bot API docs)
titleflags.1?stringResult title
descriptionflags.2?stringResult description
documentInputDocumentDocument to send
send_messageInputBotInlineMessageMessage to send when the result is selected
+

Type

+

InputBotInlineResult

+

Related pages

+

Telegram Bot API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputBotInlineResultGame.html b/data/core.telegram.org/constructor/inputBotInlineResultGame.html new file mode 100644 index 0000000000..d8f81c0794 --- /dev/null +++ b/data/core.telegram.org/constructor/inputBotInlineResultGame.html @@ -0,0 +1,157 @@ + + + + + inputBotInlineResultGame + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineResultGame

+ +

Game

+

+
inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idstringResult ID
short_namestringGame short name
send_messageInputBotInlineMessageMessage to send when the result is selected
+

Type

+

InputBotInlineResult

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputBotInlineResultPhoto.html b/data/core.telegram.org/constructor/inputBotInlineResultPhoto.html new file mode 100644 index 0000000000..027673aebe --- /dev/null +++ b/data/core.telegram.org/constructor/inputBotInlineResultPhoto.html @@ -0,0 +1,164 @@ + + + + + inputBotInlineResultPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineResultPhoto

+ +

Photo

+

+
inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idstringResult ID
typestringResult type (see bot API docs)
photoInputPhotoPhoto to send
send_messageInputBotInlineMessageMessage to send when the result is selected
+

Type

+

InputBotInlineResult

+

Related pages

+

Telegram Bot API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputChannel.html b/data/core.telegram.org/constructor/inputChannel.html new file mode 100644 index 0000000000..fc4ca89d96 --- /dev/null +++ b/data/core.telegram.org/constructor/inputChannel.html @@ -0,0 +1,155 @@ + + + + + inputChannel + + + + + + + + + + + + + +
+ +
+
+
+ +

inputChannel

+ +

Represents a channel

+

+
inputChannel#afeb712e channel_id:int access_hash:long = InputChannel;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idintChannel ID
access_hashlongAccess hash taken from the channel constructor
+

Type

+

InputChannel

+

Related pages

+

channel

+

Channel/supergroup info

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputChannelEmpty.html b/data/core.telegram.org/constructor/inputChannelEmpty.html new file mode 100644 index 0000000000..bfac096be5 --- /dev/null +++ b/data/core.telegram.org/constructor/inputChannelEmpty.html @@ -0,0 +1,132 @@ + + + + + inputChannelEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputChannelFromMessage.html b/data/core.telegram.org/constructor/inputChannelFromMessage.html new file mode 100644 index 0000000000..12a755d56f --- /dev/null +++ b/data/core.telegram.org/constructor/inputChannelFromMessage.html @@ -0,0 +1,160 @@ + + + + + inputChannelFromMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

inputChannelFromMessage

+ +

Defines a min channel that was seen in a certain message of a certain chat.

+

+
inputChannelFromMessage#2a286531 peer:InputPeer msg_id:int channel_id:int = InputChannel;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat where the channel was seen
msg_idintThe message ID in the chat where the channel was seen
channel_idintThe channel ID
+

Type

+

InputChannel

+

Related pages

+

Min constructors

+

In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputChatPhoto.html b/data/core.telegram.org/constructor/inputChatPhoto.html new file mode 100644 index 0000000000..0667230122 --- /dev/null +++ b/data/core.telegram.org/constructor/inputChatPhoto.html @@ -0,0 +1,147 @@ + + + + + inputChatPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

inputChatPhoto

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputChatPhotoEmpty.html b/data/core.telegram.org/constructor/inputChatPhotoEmpty.html new file mode 100644 index 0000000000..0e41004e2d --- /dev/null +++ b/data/core.telegram.org/constructor/inputChatPhotoEmpty.html @@ -0,0 +1,132 @@ + + + + + inputChatPhotoEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputChatUploadedPhoto.html b/data/core.telegram.org/constructor/inputChatUploadedPhoto.html new file mode 100644 index 0000000000..bf008426c4 --- /dev/null +++ b/data/core.telegram.org/constructor/inputChatUploadedPhoto.html @@ -0,0 +1,165 @@ + + + + + inputChatUploadedPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

inputChatUploadedPhoto

+ +

New photo to be set as group profile photo.

+

+
inputChatUploadedPhoto#c642724e flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = InputChatPhoto;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
fileflags.0?InputFileFile saved in parts using the method upload.saveFilePart
videoflags.1?InputFileSquare video for animated profile picture
video_start_tsflags.2?doubleTimestamp that should be shown as static preview to the user (seconds)
+

Type

+

InputChatPhoto

+

Related pages

+

upload.saveFilePart

+

Saves a part of file for futher sending to one of the methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputCheckPasswordEmpty.html b/data/core.telegram.org/constructor/inputCheckPasswordEmpty.html new file mode 100644 index 0000000000..2851845617 --- /dev/null +++ b/data/core.telegram.org/constructor/inputCheckPasswordEmpty.html @@ -0,0 +1,132 @@ + + + + + inputCheckPasswordEmpty + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputCheckPasswordSRP.html b/data/core.telegram.org/constructor/inputCheckPasswordSRP.html new file mode 100644 index 0000000000..b7c2204a6e --- /dev/null +++ b/data/core.telegram.org/constructor/inputCheckPasswordSRP.html @@ -0,0 +1,160 @@ + + + + + inputCheckPasswordSRP + + + + + + + + + + + + + +
+ +
+
+
+ +

inputCheckPasswordSRP

+ +

Constructor for checking the validity of a 2FA SRP password (see SRP)

+

+
inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
srp_idlongSRP ID
AbytesA parameter (see SRP)
M1bytesM1 parameter (see SRP)
+

Type

+

InputCheckPasswordSRP

+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputClientProxy.html b/data/core.telegram.org/constructor/inputClientProxy.html new file mode 100644 index 0000000000..a2dbe17739 --- /dev/null +++ b/data/core.telegram.org/constructor/inputClientProxy.html @@ -0,0 +1,154 @@ + + + + + inputClientProxy + + + + + + + + + + + + + +
+ +
+
+
+ +

inputClientProxy

+ +

Info about an MTProxy used to connect.

+

+
inputClientProxy#75588b3f address:string port:int = InputClientProxy;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
addressstringProxy address
portintProxy port
+

Type

+

InputClientProxy

+

Related pages

+

MTProto transports

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputDialogPeer.html b/data/core.telegram.org/constructor/inputDialogPeer.html new file mode 100644 index 0000000000..8115240d8b --- /dev/null +++ b/data/core.telegram.org/constructor/inputDialogPeer.html @@ -0,0 +1,147 @@ + + + + + inputDialogPeer + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputDialogPeerFolder.html b/data/core.telegram.org/constructor/inputDialogPeerFolder.html new file mode 100644 index 0000000000..1171e953b5 --- /dev/null +++ b/data/core.telegram.org/constructor/inputDialogPeerFolder.html @@ -0,0 +1,150 @@ + + + + + inputDialogPeerFolder + + + + + + + + + + + + + +
+ +
+
+
+ +

inputDialogPeerFolder

+ +

All peers in a peer folder

+

+
inputDialogPeerFolder#64600527 folder_id:int = InputDialogPeer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
folder_idintPeer folder ID, for more info click here
+

Type

+

InputDialogPeer

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputDocument.html b/data/core.telegram.org/constructor/inputDocument.html new file mode 100644 index 0000000000..2a0a466ac0 --- /dev/null +++ b/data/core.telegram.org/constructor/inputDocument.html @@ -0,0 +1,162 @@ + + + + + inputDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

inputDocument

+ +

Defines a video for subsequent interaction.

+

+
inputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongDocument ID
access_hashlongaccess_hash parameter from the document constructor
file_referencebytesFile reference
+

Type

+

InputDocument

+

Related pages

+

document

+

Document

+

File references

+

How to handle file references.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputDocumentEmpty.html b/data/core.telegram.org/constructor/inputDocumentEmpty.html new file mode 100644 index 0000000000..dec99d82eb --- /dev/null +++ b/data/core.telegram.org/constructor/inputDocumentEmpty.html @@ -0,0 +1,132 @@ + + + + + inputDocumentEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputDocumentFileLocation.html b/data/core.telegram.org/constructor/inputDocumentFileLocation.html new file mode 100644 index 0000000000..fcfea2dc5d --- /dev/null +++ b/data/core.telegram.org/constructor/inputDocumentFileLocation.html @@ -0,0 +1,167 @@ + + + + + inputDocumentFileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

inputDocumentFileLocation

+ +

Document location (video, voice, audio, basically every type except photo)

+

+
inputDocumentFileLocation#bad07584 id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongDocument ID
access_hashlongaccess_hash parameter from the document constructor
file_referencebytesFile reference
thumb_sizestringThumbnail size to download the thumbnail
+

Type

+

InputFileLocation

+

Related pages

+

document

+

Document

+

File references

+

How to handle file references.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputEncryptedChat.html b/data/core.telegram.org/constructor/inputEncryptedChat.html new file mode 100644 index 0000000000..a34e8990f4 --- /dev/null +++ b/data/core.telegram.org/constructor/inputEncryptedChat.html @@ -0,0 +1,159 @@ + + + + + inputEncryptedChat + + + + + + + + + + + + + +
+ +
+
+
+ +

inputEncryptedChat

+ +

Creates an encrypted chat.

+

+
inputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintChat ID
access_hashlongChecking sum from constructor encryptedChat, encryptedChatWaiting or encryptedChatRequested
+

Type

+

InputEncryptedChat

+

Related pages

+

encryptedChat

+

Encrypted chat

+

encryptedChatWaiting

+

Chat waiting for approval of second participant.

+

encryptedChatRequested

+

Request to create an encrypted chat.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputEncryptedFile.html b/data/core.telegram.org/constructor/inputEncryptedFile.html new file mode 100644 index 0000000000..f4a1af1ee6 --- /dev/null +++ b/data/core.telegram.org/constructor/inputEncryptedFile.html @@ -0,0 +1,155 @@ + + + + + inputEncryptedFile + + + + + + + + + + + + + +
+ +
+
+
+ +

inputEncryptedFile

+ +

Sets forwarded encrypted file for attachment.

+

+
inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongFile ID, value of id parameter from encryptedFile
access_hashlongChecking sum, value of access_hash parameter from encryptedFile
+

Type

+

InputEncryptedFile

+

Related pages

+

encryptedFile

+

Encrypted file.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputEncryptedFileBigUploaded.html b/data/core.telegram.org/constructor/inputEncryptedFileBigUploaded.html new file mode 100644 index 0000000000..eaabaa1db6 --- /dev/null +++ b/data/core.telegram.org/constructor/inputEncryptedFileBigUploaded.html @@ -0,0 +1,160 @@ + + + + + inputEncryptedFileBigUploaded + + + + + + + + + + + + + +
+ +
+
+
+ +

inputEncryptedFileBigUploaded

+ +

Assigns a new big encrypted file (over 10Mb in size), saved in parts using the method upload.saveBigFilePart.

+

+
inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongRandom file id, created by the client
partsintNumber of saved parts
key_fingerprintint32-bit imprint of the key used to encrypt the file
+

Type

+

InputEncryptedFile

+

Related pages

+

upload.saveBigFilePart

+

Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputEncryptedFileEmpty.html b/data/core.telegram.org/constructor/inputEncryptedFileEmpty.html new file mode 100644 index 0000000000..5a11560a5b --- /dev/null +++ b/data/core.telegram.org/constructor/inputEncryptedFileEmpty.html @@ -0,0 +1,132 @@ + + + + + inputEncryptedFileEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputEncryptedFileLocation.html b/data/core.telegram.org/constructor/inputEncryptedFileLocation.html new file mode 100644 index 0000000000..ccc51c78c9 --- /dev/null +++ b/data/core.telegram.org/constructor/inputEncryptedFileLocation.html @@ -0,0 +1,155 @@ + + + + + inputEncryptedFileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

inputEncryptedFileLocation

+ +

Location of encrypted secret chat file.

+

+
inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongFile ID, id parameter value from encryptedFile
access_hashlongChecksum, access_hash parameter value from encryptedFile
+

Type

+

InputFileLocation

+

Related pages

+

encryptedFile

+

Encrypted file.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputEncryptedFileUploaded.html b/data/core.telegram.org/constructor/inputEncryptedFileUploaded.html new file mode 100644 index 0000000000..40deccc4db --- /dev/null +++ b/data/core.telegram.org/constructor/inputEncryptedFileUploaded.html @@ -0,0 +1,162 @@ + + + + + inputEncryptedFileUploaded + + + + + + + + + + + + + +
+ +
+
+
+ +

inputEncryptedFileUploaded

+ +

Sets new encrypted file saved by parts using upload.saveFilePart method.

+

+
inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongRandom file ID created by clien
partsintNumber of saved parts
md5_checksumstringIn case md5-HASH of the (already encrypted) file was transmitted, file content will be checked prior to use
key_fingerprintint32-bit fingerprint of the key used to encrypt a file
+

Type

+

InputEncryptedFile

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputFile.html b/data/core.telegram.org/constructor/inputFile.html new file mode 100644 index 0000000000..814583c2b2 --- /dev/null +++ b/data/core.telegram.org/constructor/inputFile.html @@ -0,0 +1,165 @@ + + + + + inputFile + + + + + + + + + + + + + +
+ +
+
+
+ +

inputFile

+ +

Defines a file saved in parts using the method upload.saveFilePart.

+

+
inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongRandom file identifier created by the client
partsintNumber of parts saved
namestringFull name of the file
md5_checksumstringIn case the file's md5-hash was passed, contents of the file will be checked prior to use
+

Type

+

InputFile

+

Related pages

+

upload.saveFilePart

+

Saves a part of file for futher sending to one of the methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputFileBig.html b/data/core.telegram.org/constructor/inputFileBig.html new file mode 100644 index 0000000000..67cd90696b --- /dev/null +++ b/data/core.telegram.org/constructor/inputFileBig.html @@ -0,0 +1,160 @@ + + + + + inputFileBig + + + + + + + + + + + + + +
+ +
+
+
+ +

inputFileBig

+ +

Assigns a big file (over 10Mb in size), saved in part using the method upload.saveBigFilePart.

+

+
inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongRandom file id, created by the client
partsintNumber of parts saved
namestringFull file name
+

Type

+

InputFile

+

Related pages

+

upload.saveBigFilePart

+

Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputFileLocation.html b/data/core.telegram.org/constructor/inputFileLocation.html new file mode 100644 index 0000000000..b629d88554 --- /dev/null +++ b/data/core.telegram.org/constructor/inputFileLocation.html @@ -0,0 +1,165 @@ + + + + + inputFileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

inputFileLocation

+ +

DEPRECATED location of a photo

+

+
inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
volume_idlongServer volume
local_idintFile identifier
secretlongCheck sum to access the file
file_referencebytesFile reference
+

Type

+

InputFileLocation

+

Related pages

+

File references

+

How to handle file references.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputFolderPeer.html b/data/core.telegram.org/constructor/inputFolderPeer.html new file mode 100644 index 0000000000..8dc9163264 --- /dev/null +++ b/data/core.telegram.org/constructor/inputFolderPeer.html @@ -0,0 +1,155 @@ + + + + + inputFolderPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

inputFolderPeer

+ +

Peer in a folder

+

+
inputFolderPeer#fbd2c296 peer:InputPeer folder_id:int = InputFolderPeer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer
folder_idintPeer folder ID, for more info click here
+

Type

+

InputFolderPeer

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputGameID.html b/data/core.telegram.org/constructor/inputGameID.html new file mode 100644 index 0000000000..d4c58c043c --- /dev/null +++ b/data/core.telegram.org/constructor/inputGameID.html @@ -0,0 +1,155 @@ + + + + + inputGameID + + + + + + + + + + + + + +
+ +
+
+
+ +

inputGameID

+ +

Indicates an already sent game

+

+
inputGameID#32c3e77 id:long access_hash:long = InputGame;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlonggame ID from Game constructor
access_hashlongaccess hash from Game constructor
+

Type

+

InputGame

+

Related pages

+

Game

+

Indicates an already sent game

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputGameShortName.html b/data/core.telegram.org/constructor/inputGameShortName.html new file mode 100644 index 0000000000..189efb94ae --- /dev/null +++ b/data/core.telegram.org/constructor/inputGameShortName.html @@ -0,0 +1,152 @@ + + + + + inputGameShortName + + + + + + + + + + + + + +
+ +
+
+
+ +

inputGameShortName

+ +

Game by short name

+

+
inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
bot_idInputUserThe bot that provides the game
short_namestringThe game's short name
+

Type

+

InputGame

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputGeoPoint.html b/data/core.telegram.org/constructor/inputGeoPoint.html new file mode 100644 index 0000000000..e3daec7d01 --- /dev/null +++ b/data/core.telegram.org/constructor/inputGeoPoint.html @@ -0,0 +1,162 @@ + + + + + inputGeoPoint + + + + + + + + + + + + + +
+ +
+
+
+ +

inputGeoPoint

+ +

Defines a GeoPoint by its coordinates.

+

+
inputGeoPoint#48222faf flags:# lat:double long:double accuracy_radius:flags.0?int = InputGeoPoint;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
latdoubleLatitide
longdoubleLongtitude
accuracy_radiusflags.0?intThe estimated horizontal accuracy of the location, in meters; as defined by the sender.
+

Type

+

InputGeoPoint

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputGeoPointEmpty.html b/data/core.telegram.org/constructor/inputGeoPointEmpty.html new file mode 100644 index 0000000000..57bbf29f9a --- /dev/null +++ b/data/core.telegram.org/constructor/inputGeoPointEmpty.html @@ -0,0 +1,132 @@ + + + + + inputGeoPointEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputKeyboardButtonUrlAuth.html b/data/core.telegram.org/constructor/inputKeyboardButtonUrlAuth.html new file mode 100644 index 0000000000..573e612684 --- /dev/null +++ b/data/core.telegram.org/constructor/inputKeyboardButtonUrlAuth.html @@ -0,0 +1,176 @@ + + + + + inputKeyboardButtonUrlAuth + + + + + + + + + + + + + +
+ +
+
+
+ +

inputKeyboardButtonUrlAuth

+ +

Button to request a user to authorize via URL using Seamless Telegram Login.

+

+
inputKeyboardButtonUrlAuth#d02e7fd4 flags:# request_write_access:flags.0?true text:string fwd_text:flags.1?string url:string bot:InputUser = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
request_write_accessflags.0?trueSet this flag to request the permission for your bot to send messages to the user.
textstringButton text
fwd_textflags.1?stringNew text of the button in forwarded messages.
urlstringAn HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.
NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.
botInputUserUsername of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details.
+

Type

+

KeyboardButton

+

Related pages

+

Telegram Login Widget

+

messages.acceptUrlAuth

+

Use this to accept a Seamless Telegram Login authorization request, for more info click here »

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaContact.html b/data/core.telegram.org/constructor/inputMediaContact.html new file mode 100644 index 0000000000..615e6798d4 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaContact.html @@ -0,0 +1,162 @@ + + + + + inputMediaContact + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaContact

+ +

Phonebook contact

+

+
inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number
first_namestringContact's first name
last_namestringContact's last name
vcardstringContact vcard
+

Type

+

InputMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaDice.html b/data/core.telegram.org/constructor/inputMediaDice.html new file mode 100644 index 0000000000..9c1bf04e89 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaDice.html @@ -0,0 +1,150 @@ + + + + + inputMediaDice + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaDice

+ +

Send a dice-based animated sticker

+

+
inputMediaDice#e66fbf7b emoticon:string = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
emoticonstringThe emoji, for now 🏀, 🎲 and 🎯 are supported
+

Type

+

InputMedia

+

Related pages

+

Dice

+

Telegram supports sending animated dice emojis.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaDocument.html b/data/core.telegram.org/constructor/inputMediaDocument.html new file mode 100644 index 0000000000..87b355e15d --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaDocument.html @@ -0,0 +1,157 @@ + + + + + inputMediaDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaDocument

+ +

Forwarded document

+

+
inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idInputDocumentThe document to be forwarded.
ttl_secondsflags.0?intTime to live of self-destructing document
+

Type

+

InputMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaDocumentExternal.html b/data/core.telegram.org/constructor/inputMediaDocumentExternal.html new file mode 100644 index 0000000000..8cb0f3f012 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaDocumentExternal.html @@ -0,0 +1,157 @@ + + + + + inputMediaDocumentExternal + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaDocumentExternal

+ +

Document that will be downloaded by the telegram servers

+

+
inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
urlstringURL of the document
ttl_secondsflags.0?intSelf-destruct time to live of document
+

Type

+

InputMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaEmpty.html b/data/core.telegram.org/constructor/inputMediaEmpty.html new file mode 100644 index 0000000000..db9ed3ea93 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaEmpty.html @@ -0,0 +1,132 @@ + + + + + inputMediaEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaGame.html b/data/core.telegram.org/constructor/inputMediaGame.html new file mode 100644 index 0000000000..255e2159f6 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaGame.html @@ -0,0 +1,147 @@ + + + + + inputMediaGame + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaGeoLive.html b/data/core.telegram.org/constructor/inputMediaGeoLive.html new file mode 100644 index 0000000000..e849836184 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaGeoLive.html @@ -0,0 +1,175 @@ + + + + + inputMediaGeoLive + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaGeoLive

+ +

Live geolocation

+

+
inputMediaGeoLive#971fa843 flags:# stopped:flags.0?true geo_point:InputGeoPoint heading:flags.2?int period:flags.1?int proximity_notification_radius:flags.3?int = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
stoppedflags.0?trueWhether sending of the geolocation was stopped
geo_pointInputGeoPointCurrent geolocation
headingflags.2?intFor live locations, a direction in which the location moves, in degrees; 1-360.
periodflags.1?intValidity period of the current location
proximity_notification_radiusflags.3?intFor live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)
+

Type

+

InputMedia

+

Related pages

+

Live geolocation

+

Telegram allows sending the live geolocation of a user in a chat, optionally setting a proximity alert.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaGeoPoint.html b/data/core.telegram.org/constructor/inputMediaGeoPoint.html new file mode 100644 index 0000000000..7be17f2c2c --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaGeoPoint.html @@ -0,0 +1,147 @@ + + + + + inputMediaGeoPoint + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaInvoice.html b/data/core.telegram.org/constructor/inputMediaInvoice.html new file mode 100644 index 0000000000..fe818423e1 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaInvoice.html @@ -0,0 +1,189 @@ + + + + + inputMediaInvoice + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaInvoice

+ +

Generated invoice of a bot payment

+

+
inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
titlestringProduct name, 1-32 characters
descriptionstringProduct description, 1-255 characters
photoflags.0?InputWebDocumentURL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.
invoiceInvoiceThe actual invoice
payloadbytesBot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
providerstringPayments provider token, obtained via Botfather
provider_dataDataJSONJSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.
start_paramstringStart parameter
+

Type

+

InputMedia

+

Related pages

+

Bot Payments API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaPhoto.html b/data/core.telegram.org/constructor/inputMediaPhoto.html new file mode 100644 index 0000000000..2014ef96fd --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaPhoto.html @@ -0,0 +1,157 @@ + + + + + inputMediaPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaPhoto

+ +

Forwarded photo

+

+
inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idInputPhotoPhoto to be forwarded
ttl_secondsflags.0?intTime to live in seconds of self-destructing photo
+

Type

+

InputMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaPhotoExternal.html b/data/core.telegram.org/constructor/inputMediaPhotoExternal.html new file mode 100644 index 0000000000..64da98b1f8 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaPhotoExternal.html @@ -0,0 +1,157 @@ + + + + + inputMediaPhotoExternal + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaPhotoExternal

+ +

New photo that will be uploaded by the server using the specified URL

+

+
inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
urlstringURL of the photo
ttl_secondsflags.0?intSelf-destruct time to live of photo
+

Type

+

InputMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaPoll.html b/data/core.telegram.org/constructor/inputMediaPoll.html new file mode 100644 index 0000000000..6d6240baf7 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaPoll.html @@ -0,0 +1,170 @@ + + + + + inputMediaPoll + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaPoll

+ +

A poll

+

+
inputMediaPoll#f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector<bytes> solution:flags.1?string solution_entities:flags.1?Vector<MessageEntity> = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
pollPollThe poll to send
correct_answersflags.0?Vector<bytes>Correct answer IDs (for quiz polls)
solutionflags.1?stringExplanation of quiz solution
solution_entitiesflags.1?Vector<MessageEntity>Message entities for styled text
+

Type

+

InputMedia

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaUploadedDocument.html b/data/core.telegram.org/constructor/inputMediaUploadedDocument.html new file mode 100644 index 0000000000..d982af80c9 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaUploadedDocument.html @@ -0,0 +1,190 @@ + + + + + inputMediaUploadedDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaUploadedDocument

+ +

New document

+

+
inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true force_file:flags.4?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector<DocumentAttribute> stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
nosound_videoflags.3?trueWhether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example)
force_fileflags.4?trueForce the media file to be uploaded as document
fileInputFileThe uploaded file
thumbflags.2?InputFileThumbnail of the document, uploaded as for the file
mime_typestringMIME type of document
attributesVector<DocumentAttribute>Attributes that specify the type of the document (video, audio, voice, sticker, etc.)
stickersflags.0?Vector<InputDocument>Attached stickers
ttl_secondsflags.1?intTime to live in seconds of self-destructing document
+

Type

+

InputMedia

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaUploadedPhoto.html b/data/core.telegram.org/constructor/inputMediaUploadedPhoto.html new file mode 100644 index 0000000000..b206754e1d --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaUploadedPhoto.html @@ -0,0 +1,165 @@ + + + + + inputMediaUploadedPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaUploadedPhoto

+ +

Photo

+

+
inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
fileInputFileThe uploaded file
stickersflags.0?Vector<InputDocument>Attached mask stickers
ttl_secondsflags.1?intTime to live in seconds of self-destructing photo
+

Type

+

InputMedia

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaUploadedThumbDocument.html b/data/core.telegram.org/constructor/inputMediaUploadedThumbDocument.html new file mode 100644 index 0000000000..39fffd0454 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaUploadedThumbDocument.html @@ -0,0 +1,176 @@ + + + + + inputMediaUploadedThumbDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaUploadedThumbDocument

+ +

New document with a thumbnail.

+

+
Constructor schema is available as of layer 22. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fileInputFileDocument, saved in parts by using the methods upload.saveFilePart or upload.saveBigFilePart
thumbInputFileThumbnail file, saved in parts by using upload.saveFilePart
file_namestringFile name with extension
mime_typestringFile MIME-type
+

Type

+

InputMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMediaVenue.html b/data/core.telegram.org/constructor/inputMediaVenue.html new file mode 100644 index 0000000000..a47520c245 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMediaVenue.html @@ -0,0 +1,172 @@ + + + + + inputMediaVenue + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaVenue

+ +

Can be used to send a venue geolocation.

+

+
inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
geo_pointInputGeoPointGeolocation
titlestringVenue name
addressstringPhysical address of the venue
providerstringVenue provider: currently only "foursquare" needs to be supported
venue_idstringVenue ID in the provider's database
venue_typestringVenue type in the provider's database
+

Type

+

InputMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessageCallbackQuery.html b/data/core.telegram.org/constructor/inputMessageCallbackQuery.html new file mode 100644 index 0000000000..fc2edaba24 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessageCallbackQuery.html @@ -0,0 +1,152 @@ + + + + + inputMessageCallbackQuery + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessageCallbackQuery

+ +

Used by bots for fetching information about the message that originated a callback query

+

+
inputMessageCallbackQuery#acfa1a7e id:int query_id:long = InputMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintMessage ID
query_idlongCallback query ID
+

Type

+

InputMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessageEntityMentionName.html b/data/core.telegram.org/constructor/inputMessageEntityMentionName.html new file mode 100644 index 0000000000..317716c1df --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessageEntityMentionName.html @@ -0,0 +1,162 @@ + + + + + inputMessageEntityMentionName + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessageEntityMentionName

+ +

Message entity that can be used to create a user user mention: received mentions use the messageEntityMentionName constructor, instead.

+

+
inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
user_idInputUserIdentifier of the user that was mentioned
+

Type

+

MessageEntity

+

Related pages

+

Mentions

+

Telegram allows mentioning other users in case of urgent duckling matters, and quickly navigating to those mentions in order to read them as swiftly as possible.

+

messageEntityMentionName

+

Message entity representing a user mention: for creating a mention use inputMessageEntityMentionName.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessageID.html b/data/core.telegram.org/constructor/inputMessageID.html new file mode 100644 index 0000000000..22913e6fa8 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessageID.html @@ -0,0 +1,147 @@ + + + + + inputMessageID + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagePinned.html b/data/core.telegram.org/constructor/inputMessagePinned.html new file mode 100644 index 0000000000..9a78971329 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagePinned.html @@ -0,0 +1,132 @@ + + + + + inputMessagePinned + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessageReplyTo.html b/data/core.telegram.org/constructor/inputMessageReplyTo.html new file mode 100644 index 0000000000..dad53bc175 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessageReplyTo.html @@ -0,0 +1,147 @@ + + + + + inputMessageReplyTo + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessageReplyTo

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterChatPhotos.html b/data/core.telegram.org/constructor/inputMessagesFilterChatPhotos.html new file mode 100644 index 0000000000..cbcc4ad9b8 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterChatPhotos.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterChatPhotos + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterChatPhotos

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterContacts.html b/data/core.telegram.org/constructor/inputMessagesFilterContacts.html new file mode 100644 index 0000000000..c57c223963 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterContacts.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterContacts + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterContacts

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterDocument.html b/data/core.telegram.org/constructor/inputMessagesFilterDocument.html new file mode 100644 index 0000000000..179af182d3 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterDocument.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterDocument

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterEmpty.html b/data/core.telegram.org/constructor/inputMessagesFilterEmpty.html new file mode 100644 index 0000000000..d1a506c9fe --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterEmpty.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterGeo.html b/data/core.telegram.org/constructor/inputMessagesFilterGeo.html new file mode 100644 index 0000000000..3377fea746 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterGeo.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterGeo + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterGif.html b/data/core.telegram.org/constructor/inputMessagesFilterGif.html new file mode 100644 index 0000000000..bc12e26303 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterGif.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterGif + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterMusic.html b/data/core.telegram.org/constructor/inputMessagesFilterMusic.html new file mode 100644 index 0000000000..7678d37b96 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterMusic.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterMusic + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterMusic

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterMyMentions.html b/data/core.telegram.org/constructor/inputMessagesFilterMyMentions.html new file mode 100644 index 0000000000..147838e562 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterMyMentions.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterMyMentions + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterMyMentions

+ +

Return only messages where the current user was mentioned.

+

+
inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+

Related pages

+

Mentions

+

Telegram allows mentioning other users in case of urgent duckling matters, and quickly navigating to those mentions in order to read them as swiftly as possible.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterPhoneCalls.html b/data/core.telegram.org/constructor/inputMessagesFilterPhoneCalls.html new file mode 100644 index 0000000000..6f5eece17a --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterPhoneCalls.html @@ -0,0 +1,152 @@ + + + + + inputMessagesFilterPhoneCalls + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterPhoneCalls

+ +

Return only phone calls

+

+
inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
missedflags.0?trueReturn only missed phone calls
+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterPhotoVideo.html b/data/core.telegram.org/constructor/inputMessagesFilterPhotoVideo.html new file mode 100644 index 0000000000..20a4944a46 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterPhotoVideo.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterPhotoVideo + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterPhotoVideo

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterPhotos.html b/data/core.telegram.org/constructor/inputMessagesFilterPhotos.html new file mode 100644 index 0000000000..748934af2f --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterPhotos.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterPhotos + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterPhotos

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterPinned.html b/data/core.telegram.org/constructor/inputMessagesFilterPinned.html new file mode 100644 index 0000000000..d7c425b661 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterPinned.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterPinned + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterRoundVideo.html b/data/core.telegram.org/constructor/inputMessagesFilterRoundVideo.html new file mode 100644 index 0000000000..a6e086efce --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterRoundVideo.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterRoundVideo + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterRoundVoice.html b/data/core.telegram.org/constructor/inputMessagesFilterRoundVoice.html new file mode 100644 index 0000000000..d778aff556 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterRoundVoice.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterRoundVoice + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterRoundVoice

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterUrl.html b/data/core.telegram.org/constructor/inputMessagesFilterUrl.html new file mode 100644 index 0000000000..be3c935f14 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterUrl.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterUrl + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterVideo.html b/data/core.telegram.org/constructor/inputMessagesFilterVideo.html new file mode 100644 index 0000000000..65904b89b5 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterVideo.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterVideo + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputMessagesFilterVoice.html b/data/core.telegram.org/constructor/inputMessagesFilterVoice.html new file mode 100644 index 0000000000..3524915f17 --- /dev/null +++ b/data/core.telegram.org/constructor/inputMessagesFilterVoice.html @@ -0,0 +1,132 @@ + + + + + inputMessagesFilterVoice + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterVoice

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputNotifyBroadcasts.html b/data/core.telegram.org/constructor/inputNotifyBroadcasts.html new file mode 100644 index 0000000000..c7640574e4 --- /dev/null +++ b/data/core.telegram.org/constructor/inputNotifyBroadcasts.html @@ -0,0 +1,135 @@ + + + + + inputNotifyBroadcasts + + + + + + + + + + + + + +
+ +
+
+
+ +

inputNotifyBroadcasts

+ +

All channels

+

+
inputNotifyBroadcasts#b1db7c7e = InputNotifyPeer;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputNotifyPeer

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputNotifyChats.html b/data/core.telegram.org/constructor/inputNotifyChats.html new file mode 100644 index 0000000000..d459248c43 --- /dev/null +++ b/data/core.telegram.org/constructor/inputNotifyChats.html @@ -0,0 +1,132 @@ + + + + + inputNotifyChats + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputNotifyPeer.html b/data/core.telegram.org/constructor/inputNotifyPeer.html new file mode 100644 index 0000000000..f56aee94b4 --- /dev/null +++ b/data/core.telegram.org/constructor/inputNotifyPeer.html @@ -0,0 +1,147 @@ + + + + + inputNotifyPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

inputNotifyPeer

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputNotifyUsers.html b/data/core.telegram.org/constructor/inputNotifyUsers.html new file mode 100644 index 0000000000..de9e270113 --- /dev/null +++ b/data/core.telegram.org/constructor/inputNotifyUsers.html @@ -0,0 +1,132 @@ + + + + + inputNotifyUsers + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPaymentCredentials.html b/data/core.telegram.org/constructor/inputPaymentCredentials.html new file mode 100644 index 0000000000..cef314919d --- /dev/null +++ b/data/core.telegram.org/constructor/inputPaymentCredentials.html @@ -0,0 +1,157 @@ + + + + + inputPaymentCredentials + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPaymentCredentials

+ +

Payment credentials

+

+
inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
saveflags.0?trueSave payment credential for future use
dataDataJSONPayment credentials
+

Type

+

InputPaymentCredentials

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPaymentCredentialsAndroidPay.html b/data/core.telegram.org/constructor/inputPaymentCredentialsAndroidPay.html new file mode 100644 index 0000000000..40fd3588ca --- /dev/null +++ b/data/core.telegram.org/constructor/inputPaymentCredentialsAndroidPay.html @@ -0,0 +1,152 @@ + + + + + inputPaymentCredentialsAndroidPay + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPaymentCredentialsAndroidPay

+ +

Android pay payment credentials

+

+
inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
payment_tokenDataJSONAndroid pay payment token
google_transaction_idstringGoogle transaction ID
+

Type

+

InputPaymentCredentials

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPaymentCredentialsApplePay.html b/data/core.telegram.org/constructor/inputPaymentCredentialsApplePay.html new file mode 100644 index 0000000000..ec4f299d4c --- /dev/null +++ b/data/core.telegram.org/constructor/inputPaymentCredentialsApplePay.html @@ -0,0 +1,147 @@ + + + + + inputPaymentCredentialsApplePay + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPaymentCredentialsApplePay

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPaymentCredentialsSaved.html b/data/core.telegram.org/constructor/inputPaymentCredentialsSaved.html new file mode 100644 index 0000000000..bc6e70b76f --- /dev/null +++ b/data/core.telegram.org/constructor/inputPaymentCredentialsSaved.html @@ -0,0 +1,152 @@ + + + + + inputPaymentCredentialsSaved + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPaymentCredentialsSaved

+ +

Saved payment credentials

+

+
inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idstringCredential ID
tmp_passwordbytesTemporary password
+

Type

+

InputPaymentCredentials

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPeerChannel.html b/data/core.telegram.org/constructor/inputPeerChannel.html new file mode 100644 index 0000000000..ece151e6f8 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPeerChannel.html @@ -0,0 +1,155 @@ + + + + + inputPeerChannel + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerChannel

+ +

Defines a channel for further interaction.

+

+
inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idintChannel identifier
access_hashlongaccess_hash value from the channel constructor
+

Type

+

InputPeer

+

Related pages

+

channel

+

Channel/supergroup info

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPeerChannelFromMessage.html b/data/core.telegram.org/constructor/inputPeerChannelFromMessage.html new file mode 100644 index 0000000000..6e2061d59f --- /dev/null +++ b/data/core.telegram.org/constructor/inputPeerChannelFromMessage.html @@ -0,0 +1,160 @@ + + + + + inputPeerChannelFromMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerChannelFromMessage

+ +

Defines a min channel that was seen in a certain message of a certain chat.

+

+
inputPeerChannelFromMessage#9c95f7bb peer:InputPeer msg_id:int channel_id:int = InputPeer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat where the channel's message was seen
msg_idintThe message ID
channel_idintThe identifier of the channel that was seen
+

Type

+

InputPeer

+

Related pages

+

Min constructors

+

In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPeerChat.html b/data/core.telegram.org/constructor/inputPeerChat.html new file mode 100644 index 0000000000..558896fbf6 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPeerChat.html @@ -0,0 +1,147 @@ + + + + + inputPeerChat + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPeerEmpty.html b/data/core.telegram.org/constructor/inputPeerEmpty.html new file mode 100644 index 0000000000..e9552ec1b5 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPeerEmpty.html @@ -0,0 +1,132 @@ + + + + + inputPeerEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPeerNotifySettings.html b/data/core.telegram.org/constructor/inputPeerNotifySettings.html new file mode 100644 index 0000000000..867c79bd40 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPeerNotifySettings.html @@ -0,0 +1,167 @@ + + + + + inputPeerNotifySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerNotifySettings

+ +

Notification settings.

+

+
inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
show_previewsflags.0?BoolIf the text of the message shall be displayed in notification
silentflags.1?BoolPeer was muted?
mute_untilflags.2?intDate until which all notifications shall be switched off
soundflags.3?stringName of an audio file for notification
+

Type

+

InputPeerNotifySettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPeerPhotoFileLocation.html b/data/core.telegram.org/constructor/inputPeerPhotoFileLocation.html new file mode 100644 index 0000000000..deb768cbc9 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPeerPhotoFileLocation.html @@ -0,0 +1,170 @@ + + + + + inputPeerPhotoFileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerPhotoFileLocation

+ +

Location of profile photo of channel/group/supergroup/user

+

+
inputPeerPhotoFileLocation#27d69997 flags:# big:flags.0?true peer:InputPeer volume_id:long local_id:int = InputFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
bigflags.0?trueWhether to download the high-quality version of the picture
peerInputPeerThe peer whose profile picture should be downloaded
volume_idlongVolume ID from FileLocation met in the profile photo container.
local_idintLocal ID from FileLocation met in the profile photo container.
+

Type

+

InputFileLocation

+

Related pages

+

FileLocation

+

Indicates the location of a photo, will be deprecated soon

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPeerSelf.html b/data/core.telegram.org/constructor/inputPeerSelf.html new file mode 100644 index 0000000000..30d3449355 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPeerSelf.html @@ -0,0 +1,132 @@ + + + + + inputPeerSelf + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPeerUser.html b/data/core.telegram.org/constructor/inputPeerUser.html new file mode 100644 index 0000000000..07071ee6a0 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPeerUser.html @@ -0,0 +1,155 @@ + + + + + inputPeerUser + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerUser

+ +

Defines a user for further interaction.

+

+
inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser identifier
access_hashlongaccess_hash value from the user constructor
+

Type

+

InputPeer

+

Related pages

+

user

+

Indicates info about a certain user

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPeerUserFromMessage.html b/data/core.telegram.org/constructor/inputPeerUserFromMessage.html new file mode 100644 index 0000000000..abd028ec9a --- /dev/null +++ b/data/core.telegram.org/constructor/inputPeerUserFromMessage.html @@ -0,0 +1,160 @@ + + + + + inputPeerUserFromMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerUserFromMessage

+ +

Defines a min user that was seen in a certain message of a certain chat.

+

+
inputPeerUserFromMessage#17bae2e6 peer:InputPeer msg_id:int user_id:int = InputPeer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat where the user was seen
msg_idintThe message ID
user_idintThe identifier of the user that was seen
+

Type

+

InputPeer

+

Related pages

+

Min constructors

+

In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPhoneCall.html b/data/core.telegram.org/constructor/inputPhoneCall.html new file mode 100644 index 0000000000..d4471702ca --- /dev/null +++ b/data/core.telegram.org/constructor/inputPhoneCall.html @@ -0,0 +1,152 @@ + + + + + inputPhoneCall + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPhoneCall

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPhoneContact.html b/data/core.telegram.org/constructor/inputPhoneContact.html new file mode 100644 index 0000000000..80325df0c6 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPhoneContact.html @@ -0,0 +1,166 @@ + + + + + inputPhoneContact + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPhoneContact

+ +

Phone contact. The client_id is just an arbitrary contact ID: it should be set, for example, to an incremental number when using contacts.importContacts, in order to retry importing only the contacts that weren't imported successfully.

+

+
inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
client_idlongUser identifier on the client
phonestringPhone number
first_namestringContact's first name
last_namestringContact's last name
+

Type

+

InputContact

+

Related pages

+

contacts.importContacts

+

Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.

+

Use contacts.addContact to add Telegram contacts without actually using their phone number.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPhoto.html b/data/core.telegram.org/constructor/inputPhoto.html new file mode 100644 index 0000000000..4c1b458a92 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPhoto.html @@ -0,0 +1,162 @@ + + + + + inputPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPhoto

+ +

Defines a photo for further interaction.

+

+
inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongPhoto identifier
access_hashlongaccess_hash value from the photo constructor
file_referencebytesFile reference
+

Type

+

InputPhoto

+

Related pages

+

photo

+

Photo

+

File references

+

How to handle file references.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPhotoEmpty.html b/data/core.telegram.org/constructor/inputPhotoEmpty.html new file mode 100644 index 0000000000..5c0f3af2ed --- /dev/null +++ b/data/core.telegram.org/constructor/inputPhotoEmpty.html @@ -0,0 +1,132 @@ + + + + + inputPhotoEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPhotoFileLocation.html b/data/core.telegram.org/constructor/inputPhotoFileLocation.html new file mode 100644 index 0000000000..e4dde1e831 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPhotoFileLocation.html @@ -0,0 +1,171 @@ + + + + + inputPhotoFileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPhotoFileLocation

+ +

Use this object to download a photo with upload.getFile method

+

+
inputPhotoFileLocation#40181ffe id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongPhoto ID, obtained from the photo object
access_hashlongPhoto's access hash, obtained from the photo object
file_referencebytesFile reference
thumb_sizestringThe PhotoSize to download: must be set to the type field of the desired PhotoSize object of the photo
+

Type

+

InputFileLocation

+

Related pages

+

photo

+

Photo

+

File references

+

How to handle file references.

+

PhotoSize

+

Location of a certain size of a picture

+

upload.getFile

+

Returns content of a whole file or its part.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPhotoLegacyFileLocation.html b/data/core.telegram.org/constructor/inputPhotoLegacyFileLocation.html new file mode 100644 index 0000000000..fbb851dd5b --- /dev/null +++ b/data/core.telegram.org/constructor/inputPhotoLegacyFileLocation.html @@ -0,0 +1,172 @@ + + + + + inputPhotoLegacyFileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPhotoLegacyFileLocation

+ +

Legacy photo file location

+

+
inputPhotoLegacyFileLocation#d83466f3 id:long access_hash:long file_reference:bytes volume_id:long local_id:int secret:long = InputFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongPhoto ID
access_hashlongAccess hash
file_referencebytesFile reference
volume_idlongVolume ID
local_idintLocal ID
secretlongSecret
+

Type

+

InputFileLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyKeyAddedByPhone.html b/data/core.telegram.org/constructor/inputPrivacyKeyAddedByPhone.html new file mode 100644 index 0000000000..aa4d8e2fd9 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyKeyAddedByPhone.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyKeyAddedByPhone + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyAddedByPhone

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyKeyChatInvite.html b/data/core.telegram.org/constructor/inputPrivacyKeyChatInvite.html new file mode 100644 index 0000000000..52cd205577 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyKeyChatInvite.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyKeyChatInvite + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyChatInvite

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyKeyForwards.html b/data/core.telegram.org/constructor/inputPrivacyKeyForwards.html new file mode 100644 index 0000000000..2f4ae857c0 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyKeyForwards.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyKeyForwards + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyForwards

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyKeyPhoneCall.html b/data/core.telegram.org/constructor/inputPrivacyKeyPhoneCall.html new file mode 100644 index 0000000000..79c1539382 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyKeyPhoneCall.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyKeyPhoneCall + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyPhoneCall

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyKeyPhoneNumber.html b/data/core.telegram.org/constructor/inputPrivacyKeyPhoneNumber.html new file mode 100644 index 0000000000..c508014bbb --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyKeyPhoneNumber.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyKeyPhoneNumber + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyPhoneNumber

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyKeyPhoneP2P.html b/data/core.telegram.org/constructor/inputPrivacyKeyPhoneP2P.html new file mode 100644 index 0000000000..3e64fc7bcc --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyKeyPhoneP2P.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyKeyPhoneP2P + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyPhoneP2P

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyKeyProfilePhoto.html b/data/core.telegram.org/constructor/inputPrivacyKeyProfilePhoto.html new file mode 100644 index 0000000000..128c90fb8c --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyKeyProfilePhoto.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyKeyProfilePhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyProfilePhoto

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.html b/data/core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.html new file mode 100644 index 0000000000..c669e1eea6 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyKeyStatusTimestamp + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyStatusTimestamp

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyValueAllowAll.html b/data/core.telegram.org/constructor/inputPrivacyValueAllowAll.html new file mode 100644 index 0000000000..bb42e0093b --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyValueAllowAll.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyValueAllowAll + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyValueAllowChatParticipants.html b/data/core.telegram.org/constructor/inputPrivacyValueAllowChatParticipants.html new file mode 100644 index 0000000000..ba502455aa --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyValueAllowChatParticipants.html @@ -0,0 +1,147 @@ + + + + + inputPrivacyValueAllowChatParticipants + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueAllowChatParticipants

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyValueAllowContacts.html b/data/core.telegram.org/constructor/inputPrivacyValueAllowContacts.html new file mode 100644 index 0000000000..61c25a58f8 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyValueAllowContacts.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyValueAllowContacts + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyValueAllowUsers.html b/data/core.telegram.org/constructor/inputPrivacyValueAllowUsers.html new file mode 100644 index 0000000000..dfcf8868a1 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyValueAllowUsers.html @@ -0,0 +1,147 @@ + + + + + inputPrivacyValueAllowUsers + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueAllowUsers

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyValueDisallowAll.html b/data/core.telegram.org/constructor/inputPrivacyValueDisallowAll.html new file mode 100644 index 0000000000..e152f534b9 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyValueDisallowAll.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyValueDisallowAll + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants.html b/data/core.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants.html new file mode 100644 index 0000000000..fea361efb0 --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants.html @@ -0,0 +1,147 @@ + + + + + inputPrivacyValueDisallowChatParticipants + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueDisallowChatParticipants

+ +

Disallow only participants of certain chats

+

+
inputPrivacyValueDisallowChatParticipants#d82363af chats:Vector<int> = InputPrivacyRule;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chatsVector<int>Disallowed chat IDs
+

Type

+

InputPrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyValueDisallowContacts.html b/data/core.telegram.org/constructor/inputPrivacyValueDisallowContacts.html new file mode 100644 index 0000000000..8d70e2fbcc --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyValueDisallowContacts.html @@ -0,0 +1,132 @@ + + + + + inputPrivacyValueDisallowContacts + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueDisallowContacts

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputPrivacyValueDisallowUsers.html b/data/core.telegram.org/constructor/inputPrivacyValueDisallowUsers.html new file mode 100644 index 0000000000..7c8f54a4de --- /dev/null +++ b/data/core.telegram.org/constructor/inputPrivacyValueDisallowUsers.html @@ -0,0 +1,147 @@ + + + + + inputPrivacyValueDisallowUsers + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueDisallowUsers

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputReportReasonChildAbuse.html b/data/core.telegram.org/constructor/inputReportReasonChildAbuse.html new file mode 100644 index 0000000000..29bcd6b79b --- /dev/null +++ b/data/core.telegram.org/constructor/inputReportReasonChildAbuse.html @@ -0,0 +1,132 @@ + + + + + inputReportReasonChildAbuse + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputReportReasonCopyright.html b/data/core.telegram.org/constructor/inputReportReasonCopyright.html new file mode 100644 index 0000000000..7bb58109c8 --- /dev/null +++ b/data/core.telegram.org/constructor/inputReportReasonCopyright.html @@ -0,0 +1,132 @@ + + + + + inputReportReasonCopyright + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputReportReasonGeoIrrelevant.html b/data/core.telegram.org/constructor/inputReportReasonGeoIrrelevant.html new file mode 100644 index 0000000000..fa8d772fd4 --- /dev/null +++ b/data/core.telegram.org/constructor/inputReportReasonGeoIrrelevant.html @@ -0,0 +1,132 @@ + + + + + inputReportReasonGeoIrrelevant + + + + + + + + + + + + + +
+ +
+
+
+ +

inputReportReasonGeoIrrelevant

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputReportReasonOther.html b/data/core.telegram.org/constructor/inputReportReasonOther.html new file mode 100644 index 0000000000..f0537461bc --- /dev/null +++ b/data/core.telegram.org/constructor/inputReportReasonOther.html @@ -0,0 +1,147 @@ + + + + + inputReportReasonOther + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputReportReasonPornography.html b/data/core.telegram.org/constructor/inputReportReasonPornography.html new file mode 100644 index 0000000000..8e2e990c74 --- /dev/null +++ b/data/core.telegram.org/constructor/inputReportReasonPornography.html @@ -0,0 +1,132 @@ + + + + + inputReportReasonPornography + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputReportReasonSpam.html b/data/core.telegram.org/constructor/inputReportReasonSpam.html new file mode 100644 index 0000000000..899b0f8f05 --- /dev/null +++ b/data/core.telegram.org/constructor/inputReportReasonSpam.html @@ -0,0 +1,132 @@ + + + + + inputReportReasonSpam + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputReportReasonViolence.html b/data/core.telegram.org/constructor/inputReportReasonViolence.html new file mode 100644 index 0000000000..d579f7bcfa --- /dev/null +++ b/data/core.telegram.org/constructor/inputReportReasonViolence.html @@ -0,0 +1,132 @@ + + + + + inputReportReasonViolence + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputSecureFile.html b/data/core.telegram.org/constructor/inputSecureFile.html new file mode 100644 index 0000000000..a174824eb9 --- /dev/null +++ b/data/core.telegram.org/constructor/inputSecureFile.html @@ -0,0 +1,155 @@ + + + + + inputSecureFile + + + + + + + + + + + + + +
+ +
+
+
+ +

inputSecureFile

+ +

Preuploaded passport file, for more info see the passport docs »

+

+
inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongSecure file ID
access_hashlongSecure file access hash
+

Type

+

InputSecureFile

+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputSecureFileLocation.html b/data/core.telegram.org/constructor/inputSecureFileLocation.html new file mode 100644 index 0000000000..285fdc7f0c --- /dev/null +++ b/data/core.telegram.org/constructor/inputSecureFileLocation.html @@ -0,0 +1,156 @@ + + + + + inputSecureFileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

inputSecureFileLocation

+ +

Location of encrypted telegram passport file.

+

+
inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongFile ID, id parameter value from secureFile
access_hashlongChecksum, access_hash parameter value from secureFile
+

Type

+

InputFileLocation

+

Related pages

+

secureFile

+

Secure passport file, for more info see the passport docs »

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputSecureFileUploaded.html b/data/core.telegram.org/constructor/inputSecureFileUploaded.html new file mode 100644 index 0000000000..923e8e2a8f --- /dev/null +++ b/data/core.telegram.org/constructor/inputSecureFileUploaded.html @@ -0,0 +1,169 @@ + + + + + inputSecureFileUploaded + + + + + + + + + + + + + +
+ +
+
+
+ +

inputSecureFileUploaded

+ +

Uploaded secure file, for more info see the passport docs »

+

+
inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongSecure file ID
partsintSecure file part count
md5_checksumstringMD5 hash of encrypted uploaded file, to be checked server-side
file_hashbytesFile hash
secretbytesSecret
+

Type

+

InputSecureFile

+

Related pages

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputSecureValue.html b/data/core.telegram.org/constructor/inputSecureValue.html new file mode 100644 index 0000000000..6c7e284ad1 --- /dev/null +++ b/data/core.telegram.org/constructor/inputSecureValue.html @@ -0,0 +1,190 @@ + + + + + inputSecureValue + + + + + + + + + + + + + +
+ +
+
+
+ +

inputSecureValue

+ +

Secure value, for more info see the passport docs »

+

+
inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector<InputSecureFile> files:flags.4?Vector<InputSecureFile> plain_data:flags.5?SecurePlainData = InputSecureValue;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
typeSecureValueTypeSecure passport value type
dataflags.0?SecureDataEncrypted Telegram Passport element data
front_sideflags.1?InputSecureFileEncrypted passport file with the front side of the document
reverse_sideflags.2?InputSecureFileEncrypted passport file with the reverse side of the document
selfieflags.3?InputSecureFileEncrypted passport file with a selfie of the user holding the document
translationflags.6?Vector<InputSecureFile>Array of encrypted passport files with translated versions of the provided documents
filesflags.4?Vector<InputSecureFile>Array of encrypted passport files with photos the of the documents
plain_dataflags.5?SecurePlainDataPlaintext verified passport data
+

Type

+

InputSecureValue

+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputSingleMedia.html b/data/core.telegram.org/constructor/inputSingleMedia.html new file mode 100644 index 0000000000..6c03c8c5f2 --- /dev/null +++ b/data/core.telegram.org/constructor/inputSingleMedia.html @@ -0,0 +1,174 @@ + + + + + inputSingleMedia + + + + + + + + + + + + + +
+ +
+
+
+ +

inputSingleMedia

+ +

A single media in an album or grouped media sent with messages.sendMultiMedia.

+

+
inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector<MessageEntity> = InputSingleMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
mediaInputMediaThe media
random_idlongUnique client media ID required to prevent message resending
messagestringA caption for the media
entitiesflags.0?Vector<MessageEntity>Message entities for styled text
+

Type

+

InputSingleMedia

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+

messages.sendMultiMedia

+

Send an album or grouped media

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputStickerSetAnimatedEmoji.html b/data/core.telegram.org/constructor/inputStickerSetAnimatedEmoji.html new file mode 100644 index 0000000000..c30ad1fa81 --- /dev/null +++ b/data/core.telegram.org/constructor/inputStickerSetAnimatedEmoji.html @@ -0,0 +1,132 @@ + + + + + inputStickerSetAnimatedEmoji + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputStickerSetDice.html b/data/core.telegram.org/constructor/inputStickerSetDice.html new file mode 100644 index 0000000000..06fc8994fe --- /dev/null +++ b/data/core.telegram.org/constructor/inputStickerSetDice.html @@ -0,0 +1,150 @@ + + + + + inputStickerSetDice + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickerSetDice

+ +

Used for fetching animated dice stickers

+

+
inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
emoticonstringThe emoji, for now 🏀, 🎲 and 🎯 are supported
+

Type

+

InputStickerSet

+

Related pages

+

Dice

+

Telegram supports sending animated dice emojis.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputStickerSetEmpty.html b/data/core.telegram.org/constructor/inputStickerSetEmpty.html new file mode 100644 index 0000000000..0ad0a16932 --- /dev/null +++ b/data/core.telegram.org/constructor/inputStickerSetEmpty.html @@ -0,0 +1,132 @@ + + + + + inputStickerSetEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputStickerSetID.html b/data/core.telegram.org/constructor/inputStickerSetID.html new file mode 100644 index 0000000000..53717e523a --- /dev/null +++ b/data/core.telegram.org/constructor/inputStickerSetID.html @@ -0,0 +1,152 @@ + + + + + inputStickerSetID + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickerSetID

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputStickerSetItem.html b/data/core.telegram.org/constructor/inputStickerSetItem.html new file mode 100644 index 0000000000..16e3d031c8 --- /dev/null +++ b/data/core.telegram.org/constructor/inputStickerSetItem.html @@ -0,0 +1,162 @@ + + + + + inputStickerSetItem + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickerSetItem

+ +

Sticker in a stickerset

+

+
inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
documentInputDocumentThe sticker
emojistringAssociated emoji
mask_coordsflags.0?MaskCoordsCoordinates for mask sticker
+

Type

+

InputStickerSetItem

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputStickerSetShortName.html b/data/core.telegram.org/constructor/inputStickerSetShortName.html new file mode 100644 index 0000000000..33f12db5d7 --- /dev/null +++ b/data/core.telegram.org/constructor/inputStickerSetShortName.html @@ -0,0 +1,147 @@ + + + + + inputStickerSetShortName + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickerSetShortName

+ +

Stickerset by short name, from tg://addstickers?set=short_name

+

+
inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
short_namestringFrom tg://addstickers?set=short_name
+

Type

+

InputStickerSet

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputStickerSetThumb.html b/data/core.telegram.org/constructor/inputStickerSetThumb.html new file mode 100644 index 0000000000..488108cf15 --- /dev/null +++ b/data/core.telegram.org/constructor/inputStickerSetThumb.html @@ -0,0 +1,160 @@ + + + + + inputStickerSetThumb + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickerSetThumb

+ +

Location of stickerset thumbnail (see files)

+

+
inputStickerSetThumb#dbaeae9 stickerset:InputStickerSet volume_id:long local_id:int = InputFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
stickersetInputStickerSetSticker set
volume_idlongVolume ID
local_idintLocal ID
+

Type

+

InputFileLocation

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputStickeredMediaDocument.html b/data/core.telegram.org/constructor/inputStickeredMediaDocument.html new file mode 100644 index 0000000000..e2a994c87a --- /dev/null +++ b/data/core.telegram.org/constructor/inputStickeredMediaDocument.html @@ -0,0 +1,147 @@ + + + + + inputStickeredMediaDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickeredMediaDocument

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputStickeredMediaPhoto.html b/data/core.telegram.org/constructor/inputStickeredMediaPhoto.html new file mode 100644 index 0000000000..1d8ad48280 --- /dev/null +++ b/data/core.telegram.org/constructor/inputStickeredMediaPhoto.html @@ -0,0 +1,147 @@ + + + + + inputStickeredMediaPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickeredMediaPhoto

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputTakeoutFileLocation.html b/data/core.telegram.org/constructor/inputTakeoutFileLocation.html new file mode 100644 index 0000000000..03f078df84 --- /dev/null +++ b/data/core.telegram.org/constructor/inputTakeoutFileLocation.html @@ -0,0 +1,132 @@ + + + + + inputTakeoutFileLocation + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputTheme.html b/data/core.telegram.org/constructor/inputTheme.html new file mode 100644 index 0000000000..7189a67de4 --- /dev/null +++ b/data/core.telegram.org/constructor/inputTheme.html @@ -0,0 +1,152 @@ + + + + + inputTheme + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputThemeSettings.html b/data/core.telegram.org/constructor/inputThemeSettings.html new file mode 100644 index 0000000000..c4c7c723c5 --- /dev/null +++ b/data/core.telegram.org/constructor/inputThemeSettings.html @@ -0,0 +1,177 @@ + + + + + inputThemeSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

inputThemeSettings

+ +

Theme settings

+

+
inputThemeSettings#bd507cd1 flags:# base_theme:BaseTheme accent_color:int message_top_color:flags.0?int message_bottom_color:flags.0?int wallpaper:flags.1?InputWallPaper wallpaper_settings:flags.1?WallPaperSettings = InputThemeSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
base_themeBaseThemeDefault theme on which this theme is based
accent_colorintAccent color, RGB24 format
message_top_colorflags.0?intMessage gradient color (top), RGB24 format
message_bottom_colorflags.0?intMessage gradient color (bottom), RGB24 format
wallpaperflags.1?InputWallPaperWallpaper
wallpaper_settingsflags.1?WallPaperSettingsWallpaper settings
+

Type

+

InputThemeSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputThemeSlug.html b/data/core.telegram.org/constructor/inputThemeSlug.html new file mode 100644 index 0000000000..51be2ac4fd --- /dev/null +++ b/data/core.telegram.org/constructor/inputThemeSlug.html @@ -0,0 +1,147 @@ + + + + + inputThemeSlug + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputUser.html b/data/core.telegram.org/constructor/inputUser.html new file mode 100644 index 0000000000..37e2c1a806 --- /dev/null +++ b/data/core.telegram.org/constructor/inputUser.html @@ -0,0 +1,155 @@ + + + + + inputUser + + + + + + + + + + + + + +
+ +
+
+
+ +

inputUser

+ +

Defines a user for further interaction.

+

+
inputUser#d8292816 user_id:int access_hash:long = InputUser;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser identifier
access_hashlongaccess_hash value from the user constructor
+

Type

+

InputUser

+

Related pages

+

user

+

Indicates info about a certain user

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputUserEmpty.html b/data/core.telegram.org/constructor/inputUserEmpty.html new file mode 100644 index 0000000000..be35722a15 --- /dev/null +++ b/data/core.telegram.org/constructor/inputUserEmpty.html @@ -0,0 +1,132 @@ + + + + + inputUserEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputUserFromMessage.html b/data/core.telegram.org/constructor/inputUserFromMessage.html new file mode 100644 index 0000000000..e2720267d3 --- /dev/null +++ b/data/core.telegram.org/constructor/inputUserFromMessage.html @@ -0,0 +1,160 @@ + + + + + inputUserFromMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

inputUserFromMessage

+ +

Defines a min user that was seen in a certain message of a certain chat.

+

+
inputUserFromMessage#2d117597 peer:InputPeer msg_id:int user_id:int = InputUser;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat where the user was seen
msg_idintThe message ID
user_idintThe identifier of the user that was seen
+

Type

+

InputUser

+

Related pages

+

Min constructors

+

In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputUserSelf.html b/data/core.telegram.org/constructor/inputUserSelf.html new file mode 100644 index 0000000000..887d46cc49 --- /dev/null +++ b/data/core.telegram.org/constructor/inputUserSelf.html @@ -0,0 +1,132 @@ + + + + + inputUserSelf + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputWallPaper.html b/data/core.telegram.org/constructor/inputWallPaper.html new file mode 100644 index 0000000000..311a4f0526 --- /dev/null +++ b/data/core.telegram.org/constructor/inputWallPaper.html @@ -0,0 +1,152 @@ + + + + + inputWallPaper + + + + + + + + + + + + + +
+ +
+
+
+ +

inputWallPaper

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputWallPaperNoFile.html b/data/core.telegram.org/constructor/inputWallPaperNoFile.html new file mode 100644 index 0000000000..e2d8222196 --- /dev/null +++ b/data/core.telegram.org/constructor/inputWallPaperNoFile.html @@ -0,0 +1,132 @@ + + + + + inputWallPaperNoFile + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputWallPaperSlug.html b/data/core.telegram.org/constructor/inputWallPaperSlug.html new file mode 100644 index 0000000000..8662176d16 --- /dev/null +++ b/data/core.telegram.org/constructor/inputWallPaperSlug.html @@ -0,0 +1,147 @@ + + + + + inputWallPaperSlug + + + + + + + + + + + + + +
+ +
+
+
+ +

inputWallPaperSlug

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputWebDocument.html b/data/core.telegram.org/constructor/inputWebDocument.html new file mode 100644 index 0000000000..f8695cc856 --- /dev/null +++ b/data/core.telegram.org/constructor/inputWebDocument.html @@ -0,0 +1,165 @@ + + + + + inputWebDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

inputWebDocument

+ +

The document

+

+
inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector<DocumentAttribute> = InputWebDocument;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringRemote document URL to be downloaded using the appropriate method
sizeintRemote file size
mime_typestringMime type
attributesVector<DocumentAttribute>Attributes for media types
+

Type

+

InputWebDocument

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputWebFileGeoPointLocation.html b/data/core.telegram.org/constructor/inputWebFileGeoPointLocation.html new file mode 100644 index 0000000000..ee8704648f --- /dev/null +++ b/data/core.telegram.org/constructor/inputWebFileGeoPointLocation.html @@ -0,0 +1,172 @@ + + + + + inputWebFileGeoPointLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

inputWebFileGeoPointLocation

+ +

Geolocation

+

+
inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
geo_pointInputGeoPointGeolocation
access_hashlongAccess hash
wintMap width in pixels before applying scale; 16-1024
hintMap height in pixels before applying scale; 16-1024
zoomintMap zoom level; 13-20
scaleintMap scale; 1-3
+

Type

+

InputWebFileLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/inputWebFileLocation.html b/data/core.telegram.org/constructor/inputWebFileLocation.html new file mode 100644 index 0000000000..17dd3f456c --- /dev/null +++ b/data/core.telegram.org/constructor/inputWebFileLocation.html @@ -0,0 +1,152 @@ + + + + + inputWebFileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

inputWebFileLocation

+ +

Location of a remote HTTP(s) file

+

+
inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringHTTP URL of file
access_hashlongAccess hash
+

Type

+

InputWebFileLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/invoice.html b/data/core.telegram.org/constructor/invoice.html new file mode 100644 index 0000000000..4262fbf464 --- /dev/null +++ b/data/core.telegram.org/constructor/invoice.html @@ -0,0 +1,199 @@ + + + + + invoice + + + + + + + + + + + + + +
+ +
+
+
+ +

invoice

+ +

Invoice

+

+
invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector<LabeledPrice> = Invoice;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
testflags.0?trueTest invoice
name_requestedflags.1?trueSet this flag if you require the user's full name to complete the order
phone_requestedflags.2?trueSet this flag if you require the user's phone number to complete the order
email_requestedflags.3?trueSet this flag if you require the user's email address to complete the order
shipping_address_requestedflags.4?trueSet this flag if you require the user's shipping address to complete the order
flexibleflags.5?trueSet this flag if the final price depends on the shipping method
phone_to_providerflags.6?trueSet this flag if user's phone number should be sent to provider
email_to_providerflags.7?trueSet this flag if user's email address should be sent to provider
currencystringThree-letter ISO 4217 currency code
pricesVector<LabeledPrice>Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)
+

Type

+

Invoice

+

Related pages

+

Bot Payments API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/jsonArray.html b/data/core.telegram.org/constructor/jsonArray.html new file mode 100644 index 0000000000..69c9337c30 --- /dev/null +++ b/data/core.telegram.org/constructor/jsonArray.html @@ -0,0 +1,147 @@ + + + + + jsonArray + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/jsonBool.html b/data/core.telegram.org/constructor/jsonBool.html new file mode 100644 index 0000000000..d97c239c12 --- /dev/null +++ b/data/core.telegram.org/constructor/jsonBool.html @@ -0,0 +1,147 @@ + + + + + jsonBool + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/jsonNull.html b/data/core.telegram.org/constructor/jsonNull.html new file mode 100644 index 0000000000..647c80022e --- /dev/null +++ b/data/core.telegram.org/constructor/jsonNull.html @@ -0,0 +1,132 @@ + + + + + jsonNull + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/jsonNumber.html b/data/core.telegram.org/constructor/jsonNumber.html new file mode 100644 index 0000000000..08a4197b32 --- /dev/null +++ b/data/core.telegram.org/constructor/jsonNumber.html @@ -0,0 +1,147 @@ + + + + + jsonNumber + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/jsonObject.html b/data/core.telegram.org/constructor/jsonObject.html new file mode 100644 index 0000000000..a24bc1656e --- /dev/null +++ b/data/core.telegram.org/constructor/jsonObject.html @@ -0,0 +1,147 @@ + + + + + jsonObject + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/jsonObjectValue.html b/data/core.telegram.org/constructor/jsonObjectValue.html new file mode 100644 index 0000000000..4a568a9deb --- /dev/null +++ b/data/core.telegram.org/constructor/jsonObjectValue.html @@ -0,0 +1,152 @@ + + + + + jsonObjectValue + + + + + + + + + + + + + +
+ +
+
+
+ +

jsonObjectValue

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/jsonString.html b/data/core.telegram.org/constructor/jsonString.html new file mode 100644 index 0000000000..e8e55cf737 --- /dev/null +++ b/data/core.telegram.org/constructor/jsonString.html @@ -0,0 +1,147 @@ + + + + + jsonString + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/keyboardButton.html b/data/core.telegram.org/constructor/keyboardButton.html new file mode 100644 index 0000000000..1d8023310a --- /dev/null +++ b/data/core.telegram.org/constructor/keyboardButton.html @@ -0,0 +1,147 @@ + + + + + keyboardButton + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/keyboardButtonBuy.html b/data/core.telegram.org/constructor/keyboardButtonBuy.html new file mode 100644 index 0000000000..b36258b582 --- /dev/null +++ b/data/core.telegram.org/constructor/keyboardButtonBuy.html @@ -0,0 +1,147 @@ + + + + + keyboardButtonBuy + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/keyboardButtonCallback.html b/data/core.telegram.org/constructor/keyboardButtonCallback.html new file mode 100644 index 0000000000..aa7bd59c32 --- /dev/null +++ b/data/core.telegram.org/constructor/keyboardButtonCallback.html @@ -0,0 +1,167 @@ + + + + + keyboardButtonCallback + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonCallback

+ +

Callback button

+

+
keyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
requires_passwordflags.0?trueWhether the user should verify his identity by entering his 2FA SRP parameters to the messages.getBotCallbackAnswer method. NOTE: telegram and the bot WILL NOT have access to the plaintext password, thanks to SRP. This button is mainly used by the official @botfather bot, for verifying the user's identity before transferring ownership of a bot to another user.
textstringButton text
databytesCallback data
+

Type

+

KeyboardButton

+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+

messages.getBotCallbackAnswer

+

Press an inline callback button and get a callback answer from the bot

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/keyboardButtonGame.html b/data/core.telegram.org/constructor/keyboardButtonGame.html new file mode 100644 index 0000000000..0d0011f303 --- /dev/null +++ b/data/core.telegram.org/constructor/keyboardButtonGame.html @@ -0,0 +1,147 @@ + + + + + keyboardButtonGame + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/keyboardButtonRequestGeoLocation.html b/data/core.telegram.org/constructor/keyboardButtonRequestGeoLocation.html new file mode 100644 index 0000000000..c63ada53fc --- /dev/null +++ b/data/core.telegram.org/constructor/keyboardButtonRequestGeoLocation.html @@ -0,0 +1,147 @@ + + + + + keyboardButtonRequestGeoLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonRequestGeoLocation

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/keyboardButtonRequestPhone.html b/data/core.telegram.org/constructor/keyboardButtonRequestPhone.html new file mode 100644 index 0000000000..3faf91a9de --- /dev/null +++ b/data/core.telegram.org/constructor/keyboardButtonRequestPhone.html @@ -0,0 +1,147 @@ + + + + + keyboardButtonRequestPhone + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonRequestPhone

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/keyboardButtonRequestPoll.html b/data/core.telegram.org/constructor/keyboardButtonRequestPoll.html new file mode 100644 index 0000000000..429f723ee2 --- /dev/null +++ b/data/core.telegram.org/constructor/keyboardButtonRequestPoll.html @@ -0,0 +1,157 @@ + + + + + keyboardButtonRequestPoll + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonRequestPoll

+ +

A button that allows the user to create and send a poll when pressed; available only in private

+

+
keyboardButtonRequestPoll#bbc7515d flags:# quiz:flags.0?Bool text:string = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
quizflags.0?BoolIf set, only quiz polls can be sent
textstringButton text
+

Type

+

KeyboardButton

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/keyboardButtonRow.html b/data/core.telegram.org/constructor/keyboardButtonRow.html new file mode 100644 index 0000000000..d5c5104af0 --- /dev/null +++ b/data/core.telegram.org/constructor/keyboardButtonRow.html @@ -0,0 +1,147 @@ + + + + + keyboardButtonRow + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonRow

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/keyboardButtonSwitchInline.html b/data/core.telegram.org/constructor/keyboardButtonSwitchInline.html new file mode 100644 index 0000000000..16eb76dad1 --- /dev/null +++ b/data/core.telegram.org/constructor/keyboardButtonSwitchInline.html @@ -0,0 +1,162 @@ + + + + + keyboardButtonSwitchInline + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonSwitchInline

+ +

Button to force a user to switch to inline mode Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field.

+

+
keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
same_peerflags.0?trueIf set, pressing the button will insert the bot‘s username and the specified inline query in the current chat's input field.
textstringButton label
querystringThe inline query to use
+

Type

+

KeyboardButton

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/keyboardButtonUrl.html b/data/core.telegram.org/constructor/keyboardButtonUrl.html new file mode 100644 index 0000000000..104da0b62e --- /dev/null +++ b/data/core.telegram.org/constructor/keyboardButtonUrl.html @@ -0,0 +1,152 @@ + + + + + keyboardButtonUrl + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonUrl

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/keyboardButtonUrlAuth.html b/data/core.telegram.org/constructor/keyboardButtonUrlAuth.html new file mode 100644 index 0000000000..3822175cef --- /dev/null +++ b/data/core.telegram.org/constructor/keyboardButtonUrlAuth.html @@ -0,0 +1,179 @@ + + + + + keyboardButtonUrlAuth + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonUrlAuth

+ +

Button to request a user to authorize via URL using Seamless Telegram Login. When the user clicks on such a button, messages.requestUrlAuth should be called, providing the button_id and the ID of the container message. The returned urlAuthResultRequest object will contain more details about the authorization request (request_write_access if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). Finally, the user can choose to call messages.acceptUrlAuth to get a urlAuthResultAccepted with the URL to open instead of the url of this constructor, or a urlAuthResultDefault, in which case the url of this constructor must be opened, instead. If the user refuses the authorization request but still wants to open the link, the url of this constructor must be used.

+

+
keyboardButtonUrlAuth#10b78d29 flags:# text:string fwd_text:flags.0?string url:string button_id:int = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
textstringButton label
fwd_textflags.0?stringNew text of the button in forwarded messages.
urlstringAn HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.

NOTE: Services must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.
button_idintID of the button to pass to messages.requestUrlAuth
+

Type

+

KeyboardButton

+

Related pages

+

Telegram Login Widget

+

messages.requestUrlAuth

+

Get more info about a Seamless Telegram Login authorization request, for more info click here »

+

urlAuthResultRequest

+

Details about the authorization request, for more info click here »

+

messages.acceptUrlAuth

+

Use this to accept a Seamless Telegram Login authorization request, for more info click here »

+

urlAuthResultAccepted

+

Details about an accepted authorization request, for more info click here »

+

urlAuthResultDefault

+

Details about an accepted authorization request, for more info click here »

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/labeledPrice.html b/data/core.telegram.org/constructor/labeledPrice.html new file mode 100644 index 0000000000..187e7aef80 --- /dev/null +++ b/data/core.telegram.org/constructor/labeledPrice.html @@ -0,0 +1,154 @@ + + + + + labeledPrice + + + + + + + + + + + + + +
+ +
+
+
+ +

labeledPrice

+ +

This object represents a portion of the price for goods or services.

+

+
labeledPrice#cb296bf8 label:string amount:long = LabeledPrice;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
labelstringPortion label
amountlongPrice of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
+

Type

+

LabeledPrice

+

Related pages

+

Bot Payments API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/langPackDifference.html b/data/core.telegram.org/constructor/langPackDifference.html new file mode 100644 index 0000000000..7ee49e5ba0 --- /dev/null +++ b/data/core.telegram.org/constructor/langPackDifference.html @@ -0,0 +1,162 @@ + + + + + langPackDifference + + + + + + + + + + + + + +
+ +
+
+
+ +

langPackDifference

+ +

Changes to the app's localization pack

+

+
langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector<LangPackString> = LangPackDifference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lang_codestringLanguage code
from_versionintPrevious version number
versionintNew version number
stringsVector<LangPackString>Localized strings
+

Type

+

LangPackDifference

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/langPackLanguage.html b/data/core.telegram.org/constructor/langPackLanguage.html new file mode 100644 index 0000000000..d7b419e2d5 --- /dev/null +++ b/data/core.telegram.org/constructor/langPackLanguage.html @@ -0,0 +1,202 @@ + + + + + langPackLanguage + + + + + + + + + + + + + +
+ +
+
+
+ +

langPackLanguage

+ +

Identifies a localization pack

+

+
langPackLanguage#eeca5ce3 flags:# official:flags.0?true rtl:flags.2?true beta:flags.3?true name:string native_name:string lang_code:string base_lang_code:flags.1?string plural_code:string strings_count:int translated_count:int translations_url:string = LangPackLanguage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
officialflags.0?trueWhether the language pack is official
rtlflags.2?trueIs this a localization pack for an RTL language
betaflags.3?trueIs this a beta localization pack?
namestringLanguage name
native_namestringLanguage name in the language itself
lang_codestringLanguage code (pack identifier)
base_lang_codeflags.1?stringIdentifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs
plural_codestringA language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info
strings_countintTotal number of non-deleted strings from the language pack
translated_countintTotal number of translated strings from the language pack
translations_urlstringLink to language translation interface; empty for custom local language packs
+

Type

+

LangPackLanguage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/langPackString.html b/data/core.telegram.org/constructor/langPackString.html new file mode 100644 index 0000000000..3fde904173 --- /dev/null +++ b/data/core.telegram.org/constructor/langPackString.html @@ -0,0 +1,152 @@ + + + + + langPackString + + + + + + + + + + + + + +
+ +
+
+
+ +

langPackString

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/langPackStringDeleted.html b/data/core.telegram.org/constructor/langPackStringDeleted.html new file mode 100644 index 0000000000..1a6cc2cffb --- /dev/null +++ b/data/core.telegram.org/constructor/langPackStringDeleted.html @@ -0,0 +1,147 @@ + + + + + langPackStringDeleted + + + + + + + + + + + + + +
+ +
+
+
+ +

langPackStringDeleted

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/langPackStringPluralized.html b/data/core.telegram.org/constructor/langPackStringPluralized.html new file mode 100644 index 0000000000..ee87c92eb6 --- /dev/null +++ b/data/core.telegram.org/constructor/langPackStringPluralized.html @@ -0,0 +1,182 @@ + + + + + langPackStringPluralized + + + + + + + + + + + + + +
+ +
+
+
+ +

langPackStringPluralized

+ +

A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info

+

+
langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
keystringLocalization key
zero_valueflags.0?stringValue for zero objects
one_valueflags.1?stringValue for one object
two_valueflags.2?stringValue for two objects
few_valueflags.3?stringValue for a few objects
many_valueflags.4?stringValue for many objects
other_valuestringDefault value
+

Type

+

LangPackString

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/maskCoords.html b/data/core.telegram.org/constructor/maskCoords.html new file mode 100644 index 0000000000..277044aae9 --- /dev/null +++ b/data/core.telegram.org/constructor/maskCoords.html @@ -0,0 +1,169 @@ + + + + + maskCoords + + + + + + + + + + + + + +
+ +
+
+
+ +

maskCoords

+ +

Position on a photo where a mask should be placed

+

The n position indicates where the mask should be placed:

+
    +
  • 0 => Relative to the forehead
  • +
  • 1 => Relative to the eyes
  • +
  • 2 => Relative to the mouth
  • +
  • 3 => Relative to the chin
  • +
+

+
maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nintPart of the face, relative to which the mask should be placed
xdoubleShift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position)
ydoubleShift by Y-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position)
zoomdoubleMask scaling coefficient. (For example, 2.0 means a doubled size)
+

Type

+

MaskCoords

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/message.html b/data/core.telegram.org/constructor/message.html new file mode 100644 index 0000000000..9c8cb01ddb --- /dev/null +++ b/data/core.telegram.org/constructor/message.html @@ -0,0 +1,297 @@ + + + + + message + + + + + + + + + + + + + +
+ +
+
+
+ +

message

+ +

A message

+

+
message#58ae39c9 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long restriction_reason:flags.22?Vector<RestrictionReason> = Message;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
outflags.1?trueIs this an outgoing message
mentionedflags.4?trueWhether we were mentioned in this message
media_unreadflags.5?trueWhether there are unread media attachments in this message
silentflags.13?trueWhether this is a silent message (no notification triggered)
postflags.14?trueWhether this is a channel post
from_scheduledflags.18?trueWhether this is a scheduled message
legacyflags.19?trueThis is a legacy message: it has to be refetched with the new layer
edit_hideflags.21?trueWhether the message should be shown as not modified to the user, even if an edit date is present
pinnedflags.24?trueWhether this message is pinned
idintID of the message
from_idflags.8?PeerID of the sender of the message
peer_idPeerPeer ID, the chat where this message was sent
fwd_fromflags.2?MessageFwdHeaderInfo about forwarded messages
via_bot_idflags.11?intID of the inline bot that generated the message
reply_toflags.3?MessageReplyHeaderReply information
dateintDate of the message
messagestringThe message
mediaflags.9?MessageMediaMedia attachment
reply_markupflags.6?ReplyMarkupReply markup (bot/inline keyboards)
entitiesflags.7?Vector<MessageEntity>Message entities for styled text
viewsflags.10?intView count for channel posts
forwardsflags.10?intForward counter
repliesflags.23?MessageRepliesInfo about post comments (for channels) or message replies (for groups)
edit_dateflags.15?intLast edit date of this message
post_authorflags.16?stringName of the author of this message for channel posts (with signatures enabled)
grouped_idflags.17?longMultiple media messages sent using messages.sendMultiMedia with the same grouped ID indicate an album or media group
restriction_reasonflags.22?Vector<RestrictionReason>Contains the reason why access to this message must be restricted.
+

Type

+

Message

+

Related pages

+

Mentions

+

Telegram allows mentioning other users in case of urgent duckling matters, and quickly navigating to those mentions in order to read them as swiftly as possible.

+

Scheduled messages

+

Telegram allows scheduling messages

+

Pinned messages

+

Telegram allows pinning multiple messages on top of a specific chat.

+

Styled text with message entities

+

How to create styled text with message entities

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+

messages.sendMultiMedia

+

Send an album or grouped media

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionBotAllowed.html b/data/core.telegram.org/constructor/messageActionBotAllowed.html new file mode 100644 index 0000000000..794d93cbeb --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionBotAllowed.html @@ -0,0 +1,149 @@ + + + + + messageActionBotAllowed + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionBotAllowed

+ +

The domain name of the website on which the user has logged in. More about Telegram Login »

+

+
messageActionBotAllowed#abe9affe domain:string = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
domainstringThe domain name of the website on which the user has logged in.
+

Type

+

MessageAction

+

Related pages

+

Telegram Login Widget

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionChannelCreate.html b/data/core.telegram.org/constructor/messageActionChannelCreate.html new file mode 100644 index 0000000000..77c5c1fde3 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionChannelCreate.html @@ -0,0 +1,147 @@ + + + + + messageActionChannelCreate + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChannelCreate

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionChannelMigrateFrom.html b/data/core.telegram.org/constructor/messageActionChannelMigrateFrom.html new file mode 100644 index 0000000000..cc2eaf3592 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionChannelMigrateFrom.html @@ -0,0 +1,155 @@ + + + + + messageActionChannelMigrateFrom + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChannelMigrateFrom

+ +

Indicates the channel was migrated from the specified chat

+

+
messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
titlestringThe old chat tite
chat_idintThe old chat ID
+

Type

+

MessageAction

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionChatAddUser.html b/data/core.telegram.org/constructor/messageActionChatAddUser.html new file mode 100644 index 0000000000..ec868e957e --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionChatAddUser.html @@ -0,0 +1,147 @@ + + + + + messageActionChatAddUser + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatAddUser

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionChatCreate.html b/data/core.telegram.org/constructor/messageActionChatCreate.html new file mode 100644 index 0000000000..414359ff0a --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionChatCreate.html @@ -0,0 +1,152 @@ + + + + + messageActionChatCreate + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatCreate

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionChatDeletePhoto.html b/data/core.telegram.org/constructor/messageActionChatDeletePhoto.html new file mode 100644 index 0000000000..f723e8a4d8 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionChatDeletePhoto.html @@ -0,0 +1,132 @@ + + + + + messageActionChatDeletePhoto + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionChatDeleteUser.html b/data/core.telegram.org/constructor/messageActionChatDeleteUser.html new file mode 100644 index 0000000000..3034993fd3 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionChatDeleteUser.html @@ -0,0 +1,147 @@ + + + + + messageActionChatDeleteUser + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatDeleteUser

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionChatEditPhoto.html b/data/core.telegram.org/constructor/messageActionChatEditPhoto.html new file mode 100644 index 0000000000..59cd241360 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionChatEditPhoto.html @@ -0,0 +1,147 @@ + + + + + messageActionChatEditPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatEditPhoto

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionChatEditTitle.html b/data/core.telegram.org/constructor/messageActionChatEditTitle.html new file mode 100644 index 0000000000..e53767f5a6 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionChatEditTitle.html @@ -0,0 +1,147 @@ + + + + + messageActionChatEditTitle + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatEditTitle

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionChatJoinedByLink.html b/data/core.telegram.org/constructor/messageActionChatJoinedByLink.html new file mode 100644 index 0000000000..bfd245d3e5 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionChatJoinedByLink.html @@ -0,0 +1,147 @@ + + + + + messageActionChatJoinedByLink + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatJoinedByLink

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionChatMigrateTo.html b/data/core.telegram.org/constructor/messageActionChatMigrateTo.html new file mode 100644 index 0000000000..3e6ef4bed5 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionChatMigrateTo.html @@ -0,0 +1,150 @@ + + + + + messageActionChatMigrateTo + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatMigrateTo

+ +

Indicates the chat was migrated to the specified supergroup

+

+
messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
channel_idintThe supergroup it was migrated to
+

Type

+

MessageAction

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionContactSignUp.html b/data/core.telegram.org/constructor/messageActionContactSignUp.html new file mode 100644 index 0000000000..d2e8d454ee --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionContactSignUp.html @@ -0,0 +1,132 @@ + + + + + messageActionContactSignUp + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionCustomAction.html b/data/core.telegram.org/constructor/messageActionCustomAction.html new file mode 100644 index 0000000000..8de910f277 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionCustomAction.html @@ -0,0 +1,147 @@ + + + + + messageActionCustomAction + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionCustomAction

+ +

Custom action (most likely not supported by the current layer, an upgrade might be needed)

+

+
messageActionCustomAction#fae69f56 message:string = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
messagestringAction message
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionEmpty.html b/data/core.telegram.org/constructor/messageActionEmpty.html new file mode 100644 index 0000000000..aeb7d971a8 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionEmpty.html @@ -0,0 +1,132 @@ + + + + + messageActionEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionGameScore.html b/data/core.telegram.org/constructor/messageActionGameScore.html new file mode 100644 index 0000000000..ce12250501 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionGameScore.html @@ -0,0 +1,152 @@ + + + + + messageActionGameScore + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionGameScore

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionGeoProximityReached.html b/data/core.telegram.org/constructor/messageActionGeoProximityReached.html new file mode 100644 index 0000000000..b29e7704fb --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionGeoProximityReached.html @@ -0,0 +1,160 @@ + + + + + messageActionGeoProximityReached + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionGeoProximityReached

+ +

A user of the chat is now in proximity of another user

+

+
messageActionGeoProximityReached#98e0d697 from_id:Peer to_id:Peer distance:int = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
from_idPeerThe user or chat that is now in proximity of to_id
to_idPeerThe user or chat that subscribed to live geolocation proximity alerts
distanceintDistance, in meters (0-100000)
+

Type

+

MessageAction

+

Related pages

+

Live geolocation

+

Telegram allows sending the live geolocation of a user in a chat, optionally setting a proximity alert.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionHistoryClear.html b/data/core.telegram.org/constructor/messageActionHistoryClear.html new file mode 100644 index 0000000000..1cb9ef60e0 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionHistoryClear.html @@ -0,0 +1,132 @@ + + + + + messageActionHistoryClear + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionPaymentSent.html b/data/core.telegram.org/constructor/messageActionPaymentSent.html new file mode 100644 index 0000000000..d3bc255bfb --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionPaymentSent.html @@ -0,0 +1,154 @@ + + + + + messageActionPaymentSent + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionPaymentSent

+ +

A payment was sent

+

+
messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
currencystringThree-letter ISO 4217 currency code
total_amountlongPrice of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
+

Type

+

MessageAction

+

Related pages

+

Bot Payments API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionPaymentSentMe.html b/data/core.telegram.org/constructor/messageActionPaymentSentMe.html new file mode 100644 index 0000000000..51576239dc --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionPaymentSentMe.html @@ -0,0 +1,179 @@ + + + + + messageActionPaymentSentMe + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionPaymentSentMe

+ +

A user just sent a payment to me (a bot)

+

+
messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
currencystringThree-letter ISO 4217 currency code
total_amountlongPrice of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
payloadbytesBot specified invoice payload
infoflags.0?PaymentRequestedInfoOrder info provided by the user
shipping_option_idflags.1?stringIdentifier of the shipping option chosen by the user
chargePaymentChargeProvider payment identifier
+

Type

+

MessageAction

+

Related pages

+

Bot Payments API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionPhoneCall.html b/data/core.telegram.org/constructor/messageActionPhoneCall.html new file mode 100644 index 0000000000..339d63d6e2 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionPhoneCall.html @@ -0,0 +1,167 @@ + + + + + messageActionPhoneCall + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionPhoneCall

+ +

A phone call

+

+
messageActionPhoneCall#80e11a7f flags:# video:flags.2?true call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
videoflags.2?trueIs this a video call?
call_idlongCall ID
reasonflags.0?PhoneCallDiscardReasonIf the call has ended, the reason why it ended
durationflags.1?intDuration of the call in seconds
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionPinMessage.html b/data/core.telegram.org/constructor/messageActionPinMessage.html new file mode 100644 index 0000000000..3025f23424 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionPinMessage.html @@ -0,0 +1,132 @@ + + + + + messageActionPinMessage + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionScreenshotTaken.html b/data/core.telegram.org/constructor/messageActionScreenshotTaken.html new file mode 100644 index 0000000000..8ae3fc3607 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionScreenshotTaken.html @@ -0,0 +1,132 @@ + + + + + messageActionScreenshotTaken + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionScreenshotTaken

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionSecureValuesSent.html b/data/core.telegram.org/constructor/messageActionSecureValuesSent.html new file mode 100644 index 0000000000..a48098c816 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionSecureValuesSent.html @@ -0,0 +1,149 @@ + + + + + messageActionSecureValuesSent + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionSecureValuesSent

+ +

Request for secure telegram passport values was sent

+

+
messageActionSecureValuesSent#d95c6154 types:Vector<SecureValueType> = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
typesVector<SecureValueType>Secure value types
+

Type

+

MessageAction

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageActionSecureValuesSentMe.html b/data/core.telegram.org/constructor/messageActionSecureValuesSentMe.html new file mode 100644 index 0000000000..62b7ac8b02 --- /dev/null +++ b/data/core.telegram.org/constructor/messageActionSecureValuesSentMe.html @@ -0,0 +1,154 @@ + + + + + messageActionSecureValuesSentMe + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionSecureValuesSentMe

+ +

Secure telegram passport values were received

+

+
messageActionSecureValuesSentMe#1b287353 values:Vector<SecureValue> credentials:SecureCredentialsEncrypted = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
valuesVector<SecureValue>Vector with information about documents and other Telegram Passport elements that were shared with the bot
credentialsSecureCredentialsEncryptedEncrypted credentials required to decrypt the data
+

Type

+

MessageAction

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEmpty.html b/data/core.telegram.org/constructor/messageEmpty.html new file mode 100644 index 0000000000..1ceb9dfc46 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEmpty.html @@ -0,0 +1,147 @@ + + + + + messageEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityBankCard.html b/data/core.telegram.org/constructor/messageEntityBankCard.html new file mode 100644 index 0000000000..2d8937b4e3 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityBankCard.html @@ -0,0 +1,152 @@ + + + + + messageEntityBankCard + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityBankCard

+ +

Indicates a credit card number

+

+
messageEntityBankCard#761e6af4 offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityBlockquote.html b/data/core.telegram.org/constructor/messageEntityBlockquote.html new file mode 100644 index 0000000000..113a7e8a08 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityBlockquote.html @@ -0,0 +1,152 @@ + + + + + messageEntityBlockquote + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityBlockquote

+ +

Message entity representing a block quote.

+

+
messageEntityBlockquote#20df5d0 offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityBold.html b/data/core.telegram.org/constructor/messageEntityBold.html new file mode 100644 index 0000000000..865abed448 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityBold.html @@ -0,0 +1,152 @@ + + + + + messageEntityBold + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityBold

+ +

Message entity representing bold text.

+

+
messageEntityBold#bd610bc9 offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityBotCommand.html b/data/core.telegram.org/constructor/messageEntityBotCommand.html new file mode 100644 index 0000000000..49459d3703 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityBotCommand.html @@ -0,0 +1,152 @@ + + + + + messageEntityBotCommand + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityBotCommand

+ +

Message entity representing a bot /command

+

+
messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityCashtag.html b/data/core.telegram.org/constructor/messageEntityCashtag.html new file mode 100644 index 0000000000..333aee1185 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityCashtag.html @@ -0,0 +1,152 @@ + + + + + messageEntityCashtag + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityCashtag

+ +

Message entity representing a $cashtag.

+

+
messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityCode.html b/data/core.telegram.org/constructor/messageEntityCode.html new file mode 100644 index 0000000000..61b3eddbdd --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityCode.html @@ -0,0 +1,152 @@ + + + + + messageEntityCode + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityCode

+ +

Message entity representing a codeblock.

+

+
messageEntityCode#28a20571 offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityEmail.html b/data/core.telegram.org/constructor/messageEntityEmail.html new file mode 100644 index 0000000000..ed06330f40 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityEmail.html @@ -0,0 +1,152 @@ + + + + + messageEntityEmail + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityEmail

+ +

Message entity representing an email@example.com.

+

+
messageEntityEmail#64e475c2 offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityHashtag.html b/data/core.telegram.org/constructor/messageEntityHashtag.html new file mode 100644 index 0000000000..7d453988df --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityHashtag.html @@ -0,0 +1,152 @@ + + + + + messageEntityHashtag + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityHashtag

+ +

#hashtag message entity

+

+
messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityItalic.html b/data/core.telegram.org/constructor/messageEntityItalic.html new file mode 100644 index 0000000000..20abf931eb --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityItalic.html @@ -0,0 +1,152 @@ + + + + + messageEntityItalic + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityItalic

+ +

Message entity representing italic text.

+

+
messageEntityItalic#826f8b60 offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityMention.html b/data/core.telegram.org/constructor/messageEntityMention.html new file mode 100644 index 0000000000..3939197791 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityMention.html @@ -0,0 +1,155 @@ + + + + + messageEntityMention + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityMention

+ +

Message entity mentioning the current user

+

+
messageEntityMention#fa04579d offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+

Related pages

+

Mentions

+

Telegram allows mentioning other users in case of urgent duckling matters, and quickly navigating to those mentions in order to read them as swiftly as possible.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityMentionName.html b/data/core.telegram.org/constructor/messageEntityMentionName.html new file mode 100644 index 0000000000..1bd0750a72 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityMentionName.html @@ -0,0 +1,162 @@ + + + + + messageEntityMentionName + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityMentionName

+ +

Message entity representing a user mention: for creating a mention use inputMessageEntityMentionName.

+

+
messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
user_idintIdentifier of the user that was mentioned
+

Type

+

MessageEntity

+

Related pages

+

Mentions

+

Telegram allows mentioning other users in case of urgent duckling matters, and quickly navigating to those mentions in order to read them as swiftly as possible.

+

inputMessageEntityMentionName

+

Message entity that can be used to create a user user mention: received mentions use the messageEntityMentionName constructor, instead.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityPhone.html b/data/core.telegram.org/constructor/messageEntityPhone.html new file mode 100644 index 0000000000..043b738752 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityPhone.html @@ -0,0 +1,152 @@ + + + + + messageEntityPhone + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityPhone

+ +

Message entity representing a phone number.

+

+
messageEntityPhone#9b69e34b offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityPre.html b/data/core.telegram.org/constructor/messageEntityPre.html new file mode 100644 index 0000000000..8739000e9a --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityPre.html @@ -0,0 +1,157 @@ + + + + + messageEntityPre + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityPre

+ +

Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock.

+

+
messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
languagestringProgramming language of the code
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityStrike.html b/data/core.telegram.org/constructor/messageEntityStrike.html new file mode 100644 index 0000000000..4b56146f08 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityStrike.html @@ -0,0 +1,152 @@ + + + + + messageEntityStrike + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityStrike

+ +

Message entity representing strikethrough text.

+

+
messageEntityStrike#bf0693d4 offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityTextUrl.html b/data/core.telegram.org/constructor/messageEntityTextUrl.html new file mode 100644 index 0000000000..8ba3440605 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityTextUrl.html @@ -0,0 +1,160 @@ + + + + + messageEntityTextUrl + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityTextUrl

+ +

Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.

+

+
messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
urlstringThe actual URL
+

Type

+

MessageEntity

+

Related pages

+

messageEntityUrl

+

Message entity representing an in-text url: https://google.com; for text urls, use messageEntityTextUrl.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityUnderline.html b/data/core.telegram.org/constructor/messageEntityUnderline.html new file mode 100644 index 0000000000..f186408270 --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityUnderline.html @@ -0,0 +1,152 @@ + + + + + messageEntityUnderline + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityUnderline

+ +

Message entity representing underlined text.

+

+
messageEntityUnderline#9c4e7e8b offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityUnknown.html b/data/core.telegram.org/constructor/messageEntityUnknown.html new file mode 100644 index 0000000000..1c3da0abeb --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityUnknown.html @@ -0,0 +1,152 @@ + + + + + messageEntityUnknown + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityUnknown

+ +

Unknown message entity

+

+
messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageEntityUrl.html b/data/core.telegram.org/constructor/messageEntityUrl.html new file mode 100644 index 0000000000..9f01f7a78d --- /dev/null +++ b/data/core.telegram.org/constructor/messageEntityUrl.html @@ -0,0 +1,155 @@ + + + + + messageEntityUrl + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityUrl

+ +

Message entity representing an in-text url: https://google.com; for text urls, use messageEntityTextUrl.

+

+
messageEntityUrl#6ed02538 offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
+

Type

+

MessageEntity

+

Related pages

+

messageEntityTextUrl

+

Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageFwdHeader.html b/data/core.telegram.org/constructor/messageFwdHeader.html new file mode 100644 index 0000000000..1f4d465d0c --- /dev/null +++ b/data/core.telegram.org/constructor/messageFwdHeader.html @@ -0,0 +1,187 @@ + + + + + messageFwdHeader + + + + + + + + + + + + + +
+ +
+
+
+ +

messageFwdHeader

+ +

Info about a forwarded message

+

+
messageFwdHeader#5f777dce flags:# imported:flags.7?true from_id:flags.0?Peer from_name:flags.5?string date:int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int psa_type:flags.6?string = MessageFwdHeader;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
from_idflags.0?PeerThe ID of the user that originally sent the message
from_nameflags.5?stringThe name of the user that originally sent the message
dateintWhen was the message originally sent
channel_postflags.2?intID of the channel message that was forwarded
post_authorflags.3?stringFor channels and if signatures are enabled, author of the channel message
saved_from_peerflags.4?PeerOnly for messages forwarded to the current user (inputPeerSelf), full info about the user/channel that originally sent the message
saved_from_msg_idflags.4?intOnly for messages forwarded to the current user (inputPeerSelf), ID of the message that was forwarded from the original user/channel
psa_typeflags.6?stringPSA type
+

Type

+

MessageFwdHeader

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageInteractionCounters.html b/data/core.telegram.org/constructor/messageInteractionCounters.html new file mode 100644 index 0000000000..66547e274e --- /dev/null +++ b/data/core.telegram.org/constructor/messageInteractionCounters.html @@ -0,0 +1,157 @@ + + + + + messageInteractionCounters + + + + + + + + + + + + + +
+ +
+
+
+ +

messageInteractionCounters

+ +

Message interaction counters

+

+
messageInteractionCounters#ad4fc9bd msg_id:int views:int forwards:int = MessageInteractionCounters;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
msg_idintMessage ID
viewsintViews
forwardsintNumber of times this message was forwarded
+

Type

+

MessageInteractionCounters

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaAudio.html b/data/core.telegram.org/constructor/messageMediaAudio.html new file mode 100644 index 0000000000..b95eaa4bff --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaAudio.html @@ -0,0 +1,147 @@ + + + + + messageMediaAudio + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaContact.html b/data/core.telegram.org/constructor/messageMediaContact.html new file mode 100644 index 0000000000..6fe19ca54e --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaContact.html @@ -0,0 +1,167 @@ + + + + + messageMediaContact + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaContact

+ +

Attached contact.

+

+
messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number
first_namestringContact's first name
last_namestringContact's last name
vcardstringVCARD of contact
user_idintUser identifier or 0, if the user with the given phone number is not registered
+

Type

+

MessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaDice.html b/data/core.telegram.org/constructor/messageMediaDice.html new file mode 100644 index 0000000000..6796b774c9 --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaDice.html @@ -0,0 +1,155 @@ + + + + + messageMediaDice + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaDice

+ +

Dice-based animated sticker

+

+
messageMediaDice#3f7ee58b value:int emoticon:string = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
valueintDice value
emoticonstringThe emoji, for now 🏀, 🎲 and 🎯 are supported
+

Type

+

MessageMedia

+

Related pages

+

Dice

+

Telegram supports sending animated dice emojis.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaDocument.html b/data/core.telegram.org/constructor/messageMediaDocument.html new file mode 100644 index 0000000000..5c3cc0db2f --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaDocument.html @@ -0,0 +1,157 @@ + + + + + messageMediaDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaDocument

+ +

Document (video, audio, voice, sticker, any media type except photo)

+

+
messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
documentflags.0?DocumentAttached document
ttl_secondsflags.2?intTime to live of self-destructing document
+

Type

+

MessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaEmpty.html b/data/core.telegram.org/constructor/messageMediaEmpty.html new file mode 100644 index 0000000000..8df0fa3999 --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaEmpty.html @@ -0,0 +1,132 @@ + + + + + messageMediaEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaGame.html b/data/core.telegram.org/constructor/messageMediaGame.html new file mode 100644 index 0000000000..0cbea0b69d --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaGame.html @@ -0,0 +1,147 @@ + + + + + messageMediaGame + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaGeo.html b/data/core.telegram.org/constructor/messageMediaGeo.html new file mode 100644 index 0000000000..f3061c607f --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaGeo.html @@ -0,0 +1,147 @@ + + + + + messageMediaGeo + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaGeoLive.html b/data/core.telegram.org/constructor/messageMediaGeoLive.html new file mode 100644 index 0000000000..55bfb60b92 --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaGeoLive.html @@ -0,0 +1,170 @@ + + + + + messageMediaGeoLive + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaGeoLive

+ +

Indicates a live geolocation

+

+
messageMediaGeoLive#b940c666 flags:# geo:GeoPoint heading:flags.0?int period:int proximity_notification_radius:flags.1?int = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
geoGeoPointGeolocation
headingflags.0?intFor live locations, a direction in which the location moves, in degrees; 1-360
periodintValidity period of provided geolocation
proximity_notification_radiusflags.1?intFor live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000).
+

Type

+

MessageMedia

+

Related pages

+

Live geolocation

+

Telegram allows sending the live geolocation of a user in a chat, optionally setting a proximity alert.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaInvoice.html b/data/core.telegram.org/constructor/messageMediaInvoice.html new file mode 100644 index 0000000000..e3c712941e --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaInvoice.html @@ -0,0 +1,198 @@ + + + + + messageMediaInvoice + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaInvoice

+ +

Invoice

+

+
messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
shipping_address_requestedflags.1?trueWhether the shipping address was requested
testflags.3?trueWhether this is an example invoice
titlestringProduct name, 1-32 characters
descriptionstringProduct description, 1-255 characters
photoflags.0?WebDocumentURL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.
receipt_msg_idflags.2?intMessage ID of receipt: if set, clients should change the text of the first keyboardButtonBuy button always attached to the message to a localized version of the word Receipt
currencystringThree-letter ISO 4217 currency code
total_amountlongTotal price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
start_paramstringUnique bot deep-linking parameter that can be used to generate this invoice
+

Type

+

MessageMedia

+

Related pages

+

keyboardButtonBuy

+

Button to buy a product

+

message

+

A message

+

Bot Payments API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaPhoto.html b/data/core.telegram.org/constructor/messageMediaPhoto.html new file mode 100644 index 0000000000..9e880c91bf --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaPhoto.html @@ -0,0 +1,157 @@ + + + + + messageMediaPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaPhoto

+ +

Attached photo.

+

+
messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
photoflags.0?PhotoPhoto
ttl_secondsflags.2?intTime to live in seconds of self-destructing photo
+

Type

+

MessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaPoll.html b/data/core.telegram.org/constructor/messageMediaPoll.html new file mode 100644 index 0000000000..ea5666ab6c --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaPoll.html @@ -0,0 +1,152 @@ + + + + + messageMediaPoll + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaPoll

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaUnsupported.html b/data/core.telegram.org/constructor/messageMediaUnsupported.html new file mode 100644 index 0000000000..a9b80acb7f --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaUnsupported.html @@ -0,0 +1,132 @@ + + + + + messageMediaUnsupported + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaUnsupported

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaVenue.html b/data/core.telegram.org/constructor/messageMediaVenue.html new file mode 100644 index 0000000000..7386fac385 --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaVenue.html @@ -0,0 +1,172 @@ + + + + + messageMediaVenue + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaVenue

+ +

Venue

+

+
messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
geoGeoPointGeolocation of venue
titlestringVenue name
addressstringAddress
providerstringVenue provider: currently only "foursquare" needs to be supported
venue_idstringVenue ID in the provider's database
venue_typestringVenue type in the provider's database
+

Type

+

MessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaVideo.html b/data/core.telegram.org/constructor/messageMediaVideo.html new file mode 100644 index 0000000000..29438e0667 --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaVideo.html @@ -0,0 +1,147 @@ + + + + + messageMediaVideo + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageMediaWebPage.html b/data/core.telegram.org/constructor/messageMediaWebPage.html new file mode 100644 index 0000000000..90f9c097a6 --- /dev/null +++ b/data/core.telegram.org/constructor/messageMediaWebPage.html @@ -0,0 +1,147 @@ + + + + + messageMediaWebPage + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaWebPage

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageRange.html b/data/core.telegram.org/constructor/messageRange.html new file mode 100644 index 0000000000..b0c4886bb6 --- /dev/null +++ b/data/core.telegram.org/constructor/messageRange.html @@ -0,0 +1,152 @@ + + + + + messageRange + + + + + + + + + + + + + +
+ +
+
+
+ +

messageRange

+ +

Indicates a range of chat messages

+

+
messageRange#ae30253 min_id:int max_id:int = MessageRange;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
min_idintStart of range (message ID)
max_idintEnd of range (message ID)
+

Type

+

MessageRange

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageReplies.html b/data/core.telegram.org/constructor/messageReplies.html new file mode 100644 index 0000000000..b7b161ffa1 --- /dev/null +++ b/data/core.telegram.org/constructor/messageReplies.html @@ -0,0 +1,189 @@ + + + + + messageReplies + + + + + + + + + + + + + +
+ +
+
+
+ +

messageReplies

+ +

Info about the comment section of a channel post, or a simple message thread

+

+
messageReplies#4128faac flags:# comments:flags.0?true replies:int replies_pts:int recent_repliers:flags.1?Vector<Peer> channel_id:flags.0?int max_id:flags.2?int read_max_id:flags.3?int = MessageReplies;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
commentsflags.0?trueWhether this constructor contains information about the comment section of a channel post, or a simple message thread
repliesintContains the total number of replies in this thread or comment section.
replies_ptsintPTS of the message that started this thread.
recent_repliersflags.1?Vector<Peer>For channel post comments, contains information about the last few comment posters for a specific thread, to show a small list of commenter profile pictures in client previews.
channel_idflags.0?intFor channel post comments, contains the ID of the associated discussion supergroup
max_idflags.2?intID of the latest message in this thread or comment section.
read_max_idflags.3?intContains the ID of the latest read message in this thread or comment section.
+

Type

+

MessageReplies

+

Related pages

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Discussion groups

+

Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageReplyHeader.html b/data/core.telegram.org/constructor/messageReplyHeader.html new file mode 100644 index 0000000000..d539711b68 --- /dev/null +++ b/data/core.telegram.org/constructor/messageReplyHeader.html @@ -0,0 +1,165 @@ + + + + + messageReplyHeader + + + + + + + + + + + + + +
+ +
+
+
+ +

messageReplyHeader

+ +

Message replies and thread information

+

+
messageReplyHeader#a6d57763 flags:# reply_to_msg_id:int reply_to_peer_id:flags.0?Peer reply_to_top_id:flags.1?int = MessageReplyHeader;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
reply_to_msg_idintID of message to which this message is replying
reply_to_peer_idflags.0?PeerFor replies sent in channel discussion threads of which the current user is not a member, the discussion group ID
reply_to_top_idflags.1?intID of the message that started this message thread
+

Type

+

MessageReplyHeader

+

Related pages

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageService.html b/data/core.telegram.org/constructor/messageService.html new file mode 100644 index 0000000000..c03299cd5c --- /dev/null +++ b/data/core.telegram.org/constructor/messageService.html @@ -0,0 +1,207 @@ + + + + + messageService + + + + + + + + + + + + + +
+ +
+
+
+ +

messageService

+ +

Indicates a service message

+

+
messageService#286fa604 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction = Message;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
outflags.1?trueWhether the message is outgoing
mentionedflags.4?trueWhether we were mentioned in the message
media_unreadflags.5?trueWhether the message contains unread media
silentflags.13?trueWhether the message is silent
postflags.14?trueWhether it's a channel post
legacyflags.19?trueThis is a legacy message: it has to be refetched with the new layer
idintMessage ID
from_idflags.8?PeerID of the sender of this message
peer_idPeerSender of service message
reply_toflags.3?MessageReplyHeaderReply (thread) information
dateintMessage date
actionMessageActionEvent connected with the service message
+

Type

+

Message

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageUserVote.html b/data/core.telegram.org/constructor/messageUserVote.html new file mode 100644 index 0000000000..ed517f127f --- /dev/null +++ b/data/core.telegram.org/constructor/messageUserVote.html @@ -0,0 +1,157 @@ + + + + + messageUserVote + + + + + + + + + + + + + +
+ +
+
+
+ +

messageUserVote

+ +

How a user voted in a poll

+

+
messageUserVote#a28e5559 user_id:int option:bytes date:int = MessageUserVote;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser ID
optionbytesThe option chosen by the user
dateintWhen did the user cast the vote
+

Type

+

MessageUserVote

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageUserVoteInputOption.html b/data/core.telegram.org/constructor/messageUserVoteInputOption.html new file mode 100644 index 0000000000..5e7f48772e --- /dev/null +++ b/data/core.telegram.org/constructor/messageUserVoteInputOption.html @@ -0,0 +1,155 @@ + + + + + messageUserVoteInputOption + + + + + + + + + + + + + +
+ +
+
+
+ +

messageUserVoteInputOption

+ +

How a user voted in a poll (reduced constructor, returned if an option was provided to messages.getPollVotes)

+

+
messageUserVoteInputOption#36377430 user_id:int date:int = MessageUserVote;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintThe user that voted for the queried option
dateintWhen did the user cast the vote
+

Type

+

MessageUserVote

+

Related pages

+

messages.getPollVotes

+

Get poll results for non-anonymous polls

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageUserVoteMultiple.html b/data/core.telegram.org/constructor/messageUserVoteMultiple.html new file mode 100644 index 0000000000..2695454e97 --- /dev/null +++ b/data/core.telegram.org/constructor/messageUserVoteMultiple.html @@ -0,0 +1,157 @@ + + + + + messageUserVoteMultiple + + + + + + + + + + + + + +
+ +
+
+
+ +

messageUserVoteMultiple

+ +

How a user voted in a multiple-choice poll

+

+
messageUserVoteMultiple#e8fe0de user_id:int options:Vector<bytes> date:int = MessageUserVote;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser ID
optionsVector<bytes>Options chosen by the user
dateintWhen did the user cast their votes
+

Type

+

MessageUserVote

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messageViews.html b/data/core.telegram.org/constructor/messageViews.html new file mode 100644 index 0000000000..c0a0f6f0a5 --- /dev/null +++ b/data/core.telegram.org/constructor/messageViews.html @@ -0,0 +1,165 @@ + + + + + messageViews + + + + + + + + + + + + + +
+ +
+
+
+ +

messageViews

+ +

View, forward counter + info about replies of a specific message

+

+
messageViews#455b853d flags:# views:flags.0?int forwards:flags.1?int replies:flags.2?MessageReplies = MessageViews;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
viewsflags.0?intViewcount of message
forwardsflags.1?intForward count of message
repliesflags.2?MessageRepliesReply and thread information of message
+

Type

+

MessageViews

+

Related pages

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.affectedHistory b/data/core.telegram.org/constructor/messages.affectedHistory new file mode 100644 index 0000000000..feb4b8e889 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.affectedHistory @@ -0,0 +1,157 @@ + + + + + messages.affectedHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.affectedHistory

+ +

Affected part of communication history with the user or in a chat.

+

+
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ptsintNumber of events occured in a text box
pts_countintNumber of affected events
offsetintIf a parameter contains positive value, it is necessary to repeat the method call using the given value; during the proceeding of all the history the value itself shall gradually decrease
+

Type

+

messages.AffectedHistory

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.affectedMessages b/data/core.telegram.org/constructor/messages.affectedMessages new file mode 100644 index 0000000000..6b37d48ced --- /dev/null +++ b/data/core.telegram.org/constructor/messages.affectedMessages @@ -0,0 +1,155 @@ + + + + + messages.affectedMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.affectedMessages

+ +

Events affected by operation

+

+
messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

messages.AffectedMessages

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.allStickers b/data/core.telegram.org/constructor/messages.allStickers new file mode 100644 index 0000000000..2f8ea7c527 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.allStickers @@ -0,0 +1,155 @@ + + + + + messages.allStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.allStickers

+ +

Info about all installed stickers

+

+
messages.allStickers#edfd405f hash:int sets:Vector<StickerSet> = messages.AllStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
setsVector<StickerSet>All stickersets
+

Type

+

messages.AllStickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.allStickersNotModified b/data/core.telegram.org/constructor/messages.allStickersNotModified new file mode 100644 index 0000000000..050ac36dcb --- /dev/null +++ b/data/core.telegram.org/constructor/messages.allStickersNotModified @@ -0,0 +1,132 @@ + + + + + messages.allStickersNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.allStickersNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.archivedStickers b/data/core.telegram.org/constructor/messages.archivedStickers new file mode 100644 index 0000000000..f375b92684 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.archivedStickers @@ -0,0 +1,152 @@ + + + + + messages.archivedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.archivedStickers

+ +

Archived stickersets

+

+
messages.archivedStickers#4fcba9c8 count:int sets:Vector<StickerSetCovered> = messages.ArchivedStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countintNumber of archived stickers
setsVector<StickerSetCovered>Archived stickersets
+

Type

+

messages.ArchivedStickers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.botCallbackAnswer b/data/core.telegram.org/constructor/messages.botCallbackAnswer new file mode 100644 index 0000000000..dc1a901223 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.botCallbackAnswer @@ -0,0 +1,177 @@ + + + + + messages.botCallbackAnswer + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.botCallbackAnswer

+ +

Callback answer sent by the bot in response to a button press

+

+
messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
alertflags.1?trueWhether an alert should be shown to the user instead of a toast notification
has_urlflags.3?trueWhether an URL is present
native_uiflags.4?trueWhether to show games in WebView or in native UI.
messageflags.0?stringAlert to show
urlflags.2?stringURL to open
cache_timeintFor how long should this answer be cached
+

Type

+

messages.BotCallbackAnswer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.botResults b/data/core.telegram.org/constructor/messages.botResults new file mode 100644 index 0000000000..1379173f8a --- /dev/null +++ b/data/core.telegram.org/constructor/messages.botResults @@ -0,0 +1,182 @@ + + + + + messages.botResults + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.botResults

+ +

Result of a query to an inline bot

+

+
messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector<BotInlineResult> cache_time:int users:Vector<User> = messages.BotResults;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
galleryflags.0?trueWhether the result is a picture gallery
query_idlongQuery ID
next_offsetflags.1?stringThe next offset to use when navigating through results
switch_pmflags.2?InlineBotSwitchPMWhether the bot requested the user to message him in private
resultsVector<BotInlineResult>The results
cache_timeintCaching validity of the results
usersVector<User>Users mentioned in the results
+

Type

+

messages.BotResults

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.channelMessages b/data/core.telegram.org/constructor/messages.channelMessages new file mode 100644 index 0000000000..588eaf134b --- /dev/null +++ b/data/core.telegram.org/constructor/messages.channelMessages @@ -0,0 +1,185 @@ + + + + + messages.channelMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.channelMessages

+ +

Channel messages

+

+
messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
inexactflags.1?trueIf set, returned results may be inexact
ptsintEvent count after generation
countintTotal number of results were found server-side (may not be all included here)
offset_id_offsetflags.2?intIndicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}.
messagesVector<Message>Found messages
chatsVector<Chat>Chats
usersVector<User>Users
+

Type

+

messages.Messages

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.chatFull b/data/core.telegram.org/constructor/messages.chatFull new file mode 100644 index 0000000000..cab43152c5 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.chatFull @@ -0,0 +1,157 @@ + + + + + messages.chatFull + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.chatFull

+ +

Extended info on chat and auxiliary data.

+

+
messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
full_chatChatFullExtended info on a chat
chatsVector<Chat>List containing basic info on chat
usersVector<User>List of users mentioned above
+

Type

+

messages.ChatFull

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.chats b/data/core.telegram.org/constructor/messages.chats new file mode 100644 index 0000000000..fc61513b39 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.chats @@ -0,0 +1,147 @@ + + + + + messages.chats + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.chats

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.chatsSlice b/data/core.telegram.org/constructor/messages.chatsSlice new file mode 100644 index 0000000000..e02e2c0166 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.chatsSlice @@ -0,0 +1,155 @@ + + + + + messages.chatsSlice + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.chatsSlice

+ +

Partial list of chats, more would have to be fetched with pagination

+

+
messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countintTotal number of results that were found server-side (not all are included in chats)
chatsVector<Chat>Chats
+

Type

+

messages.Chats

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.dhConfig b/data/core.telegram.org/constructor/messages.dhConfig new file mode 100644 index 0000000000..215b0532cd --- /dev/null +++ b/data/core.telegram.org/constructor/messages.dhConfig @@ -0,0 +1,162 @@ + + + + + messages.dhConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.dhConfig

+ +

New set of configuring parameters.

+

+
messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gintNew value prime, see Wikipedia
pbytesNew value primitive root, see Wikipedia
versionintVestion of set of parameters
randombytesRandom sequence of bytes of assigned length
+

Type

+

messages.DhConfig

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.dhConfigNotModified b/data/core.telegram.org/constructor/messages.dhConfigNotModified new file mode 100644 index 0000000000..9c86700137 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.dhConfigNotModified @@ -0,0 +1,147 @@ + + + + + messages.dhConfigNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.dhConfigNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.dialogs b/data/core.telegram.org/constructor/messages.dialogs new file mode 100644 index 0000000000..8d03ea693c --- /dev/null +++ b/data/core.telegram.org/constructor/messages.dialogs @@ -0,0 +1,162 @@ + + + + + messages.dialogs + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.dialogs

+ +

Full list of chats with messages and auxiliary data.

+

+
messages.dialogs#15ba6c40 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Dialogs;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dialogsVector<Dialog>List of chats
messagesVector<Message>List of last messages from each chat
chatsVector<Chat>List of groups mentioned in the chats
usersVector<User>List of users mentioned in messages and groups
+

Type

+

messages.Dialogs

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.dialogsNotModified b/data/core.telegram.org/constructor/messages.dialogsNotModified new file mode 100644 index 0000000000..a92be2f9b8 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.dialogsNotModified @@ -0,0 +1,147 @@ + + + + + messages.dialogsNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.dialogsNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.dialogsSlice b/data/core.telegram.org/constructor/messages.dialogsSlice new file mode 100644 index 0000000000..735a489a9d --- /dev/null +++ b/data/core.telegram.org/constructor/messages.dialogsSlice @@ -0,0 +1,167 @@ + + + + + messages.dialogsSlice + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.dialogsSlice

+ +

Incomplete list of dialogs with messages and auxiliary data.

+

+
messages.dialogsSlice#71e094f3 count:int dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Dialogs;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countintTotal number of dialogs
dialogsVector<Dialog>List of dialogs
messagesVector<Message>List of last messages from dialogs
chatsVector<Chat>List of chats mentioned in dialogs
usersVector<User>List of users mentioned in messages and chats
+

Type

+

messages.Dialogs

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.discussionMessage b/data/core.telegram.org/constructor/messages.discussionMessage new file mode 100644 index 0000000000..2b8b285857 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.discussionMessage @@ -0,0 +1,180 @@ + + + + + messages.discussionMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.discussionMessage

+ +

Information about a message thread

+

+
messages.discussionMessage#f5dd8f9d flags:# messages:Vector<Message> max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int chats:Vector<Chat> users:Vector<User> = messages.DiscussionMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
messagesVector<Message>Discussion messages
max_idflags.0?intMessage ID of latest reply in this thread
read_inbox_max_idflags.1?intMessage ID of latest read incoming message in this thread
read_outbox_max_idflags.2?intMessage ID of latest read outgoing message in this thread
chatsVector<Chat>Chats mentioned in constructor
usersVector<User>Users mentioned in constructor
+

Type

+

messages.DiscussionMessage

+

Related pages

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.favedStickers b/data/core.telegram.org/constructor/messages.favedStickers new file mode 100644 index 0000000000..30256acb84 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.favedStickers @@ -0,0 +1,160 @@ + + + + + messages.favedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.favedStickers

+ +

Favorited stickers

+

+
messages.favedStickers#f37f2f16 hash:int packs:Vector<StickerPack> stickers:Vector<Document> = messages.FavedStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
packsVector<StickerPack>Emojis associated to stickers
stickersVector<Document>Favorited stickers
+

Type

+

messages.FavedStickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.favedStickersNotModified b/data/core.telegram.org/constructor/messages.favedStickersNotModified new file mode 100644 index 0000000000..3be4785417 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.favedStickersNotModified @@ -0,0 +1,132 @@ + + + + + messages.favedStickersNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.favedStickersNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.featuredStickers b/data/core.telegram.org/constructor/messages.featuredStickers new file mode 100644 index 0000000000..5f8536e59c --- /dev/null +++ b/data/core.telegram.org/constructor/messages.featuredStickers @@ -0,0 +1,165 @@ + + + + + messages.featuredStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.featuredStickers

+ +

Featured stickersets

+

+
messages.featuredStickers#b6abc341 hash:int count:int sets:Vector<StickerSetCovered> unread:Vector<long> = messages.FeaturedStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
countintTotal number of featured stickers
setsVector<StickerSetCovered>Featured stickersets
unreadVector<long>IDs of new featured stickersets
+

Type

+

messages.FeaturedStickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.featuredStickersNotModified b/data/core.telegram.org/constructor/messages.featuredStickersNotModified new file mode 100644 index 0000000000..0d431e3c4d --- /dev/null +++ b/data/core.telegram.org/constructor/messages.featuredStickersNotModified @@ -0,0 +1,147 @@ + + + + + messages.featuredStickersNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.featuredStickersNotModified

+ +

Featured stickers haven't changed

+

+
messages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
countintTotal number of featured stickers
+

Type

+

messages.FeaturedStickers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.foundStickerSets b/data/core.telegram.org/constructor/messages.foundStickerSets new file mode 100644 index 0000000000..25d8a2cca1 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.foundStickerSets @@ -0,0 +1,155 @@ + + + + + messages.foundStickerSets + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.foundStickerSets

+ +

Found stickersets

+

+
messages.foundStickerSets#5108d648 hash:int sets:Vector<StickerSetCovered> = messages.FoundStickerSets;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
setsVector<StickerSetCovered>Found stickersets
+

Type

+

messages.FoundStickerSets

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.foundStickerSetsNotModified b/data/core.telegram.org/constructor/messages.foundStickerSetsNotModified new file mode 100644 index 0000000000..29d8f82771 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.foundStickerSetsNotModified @@ -0,0 +1,132 @@ + + + + + messages.foundStickerSetsNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.foundStickerSetsNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.highScores b/data/core.telegram.org/constructor/messages.highScores new file mode 100644 index 0000000000..1d72c57527 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.highScores @@ -0,0 +1,152 @@ + + + + + messages.highScores + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.highScores

+ +

Highscores in a game

+

+
messages.highScores#9a3bfd99 scores:Vector<HighScore> users:Vector<User> = messages.HighScores;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
scoresVector<HighScore>Highscores
usersVector<User>Users, associated to the highscores
+

Type

+

messages.HighScores

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.inactiveChats b/data/core.telegram.org/constructor/messages.inactiveChats new file mode 100644 index 0000000000..86e9be4d0b --- /dev/null +++ b/data/core.telegram.org/constructor/messages.inactiveChats @@ -0,0 +1,157 @@ + + + + + messages.inactiveChats + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.inactiveChats

+ +

Inactive chat list

+

+
messages.inactiveChats#a927fec5 dates:Vector<int> chats:Vector<Chat> users:Vector<User> = messages.InactiveChats;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
datesVector<int>When was the chat last active
chatsVector<Chat>Chat list
usersVector<User>Users mentioned in the chat list
+

Type

+

messages.InactiveChats

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.messageEditData b/data/core.telegram.org/constructor/messages.messageEditData new file mode 100644 index 0000000000..33528cd05e --- /dev/null +++ b/data/core.telegram.org/constructor/messages.messageEditData @@ -0,0 +1,152 @@ + + + + + messages.messageEditData + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.messageEditData

+ +

Message edit data for media

+

+
messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
captionflags.0?trueMedia caption, if the specified media's caption can be edited
+

Type

+

messages.MessageEditData

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.messageViews b/data/core.telegram.org/constructor/messages.messageViews new file mode 100644 index 0000000000..3113b43e43 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.messageViews @@ -0,0 +1,157 @@ + + + + + messages.messageViews + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.messageViews

+ +

View, forward counter + info about replies

+

+
messages.messageViews#b6c4f543 views:Vector<MessageViews> chats:Vector<Chat> users:Vector<User> = messages.MessageViews;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
viewsVector<MessageViews>View, forward counter + info about replies
chatsVector<Chat>Chats mentioned in constructor
usersVector<User>Users mentioned in constructor
+

Type

+

messages.MessageViews

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.messages b/data/core.telegram.org/constructor/messages.messages new file mode 100644 index 0000000000..8c732b0062 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.messages @@ -0,0 +1,157 @@ + + + + + messages.messages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.messages

+ +

Full list of messages with auxilary data.

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messagesVector<Message>List of messages
chatsVector<Chat>List of chats mentioned in dialogs
usersVector<User>List of users mentioned in messages and chats
+

Type

+

messages.Messages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.messagesNotModified b/data/core.telegram.org/constructor/messages.messagesNotModified new file mode 100644 index 0000000000..54bd265920 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.messagesNotModified @@ -0,0 +1,147 @@ + + + + + messages.messagesNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.messagesNotModified

+ +

No new messages matching the query were found

+

+
messages.messagesNotModified#74535f21 count:int = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
countintNumber of results found server-side by the given query
+

Type

+

messages.Messages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.messagesSlice b/data/core.telegram.org/constructor/messages.messagesSlice new file mode 100644 index 0000000000..f1c3b9969a --- /dev/null +++ b/data/core.telegram.org/constructor/messages.messagesSlice @@ -0,0 +1,185 @@ + + + + + messages.messagesSlice + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.messagesSlice

+ +

Incomplete list of messages and auxiliary data.

+

+
messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
inexactflags.1?trueIf set, indicates that the results may be inexact
countintTotal number of messages in the list
next_rateflags.0?intRate to use in the offset_rate parameter in the next call to messages.searchGlobal
offset_id_offsetflags.2?intIndicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}.
messagesVector<Message>List of messages
chatsVector<Chat>List of chats mentioned in messages
usersVector<User>List of users mentioned in messages and chats
+

Type

+

messages.Messages

+

Related pages

+

messages.searchGlobal

+

Search for messages and peers globally

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.peerDialogs b/data/core.telegram.org/constructor/messages.peerDialogs new file mode 100644 index 0000000000..0f1ac84a2e --- /dev/null +++ b/data/core.telegram.org/constructor/messages.peerDialogs @@ -0,0 +1,170 @@ + + + + + messages.peerDialogs + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.peerDialogs

+ +

Dialog info of multiple peers

+

+
messages.peerDialogs#3371c354 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> state:updates.State = messages.PeerDialogs;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dialogsVector<Dialog>Dialog info
messagesVector<Message>Messages mentioned in dialog info
chatsVector<Chat>Chats
usersVector<User>Users
stateupdates.StateCurrent update state of dialog
+

Type

+

messages.PeerDialogs

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.recentStickers b/data/core.telegram.org/constructor/messages.recentStickers new file mode 100644 index 0000000000..56afa717dc --- /dev/null +++ b/data/core.telegram.org/constructor/messages.recentStickers @@ -0,0 +1,165 @@ + + + + + messages.recentStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.recentStickers

+ +

Recently used stickers

+

+
messages.recentStickers#22f3afb3 hash:int packs:Vector<StickerPack> stickers:Vector<Document> dates:Vector<int> = messages.RecentStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
packsVector<StickerPack>Emojis associated to stickers
stickersVector<Document>Recent stickers
datesVector<int>When was each sticker last used
+

Type

+

messages.RecentStickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.recentStickersNotModified b/data/core.telegram.org/constructor/messages.recentStickersNotModified new file mode 100644 index 0000000000..da573e04ff --- /dev/null +++ b/data/core.telegram.org/constructor/messages.recentStickersNotModified @@ -0,0 +1,132 @@ + + + + + messages.recentStickersNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.recentStickersNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.savedGifs b/data/core.telegram.org/constructor/messages.savedGifs new file mode 100644 index 0000000000..da90baa97c --- /dev/null +++ b/data/core.telegram.org/constructor/messages.savedGifs @@ -0,0 +1,155 @@ + + + + + messages.savedGifs + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.savedGifs

+ +

Saved gifs

+

+
messages.savedGifs#2e0709a5 hash:int gifs:Vector<Document> = messages.SavedGifs;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
gifsVector<Document>List of saved gifs
+

Type

+

messages.SavedGifs

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.savedGifsNotModified b/data/core.telegram.org/constructor/messages.savedGifsNotModified new file mode 100644 index 0000000000..e4b836368c --- /dev/null +++ b/data/core.telegram.org/constructor/messages.savedGifsNotModified @@ -0,0 +1,132 @@ + + + + + messages.savedGifsNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.savedGifsNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.searchCounter b/data/core.telegram.org/constructor/messages.searchCounter new file mode 100644 index 0000000000..0b28a0f585 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.searchCounter @@ -0,0 +1,165 @@ + + + + + messages.searchCounter + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.searchCounter

+ +

Indicates how many results would be found by a messages.search call with the same parameters

+

+
messages.searchCounter#e844ebff flags:# inexact:flags.1?true filter:MessagesFilter count:int = messages.SearchCounter;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
inexactflags.1?trueIf set, the results may be inexact
filterMessagesFilterProvided message filter
countintNumber of results that were found server-side
+

Type

+

messages.SearchCounter

+

Related pages

+

messages.search

+

Gets back found messages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.sentEncryptedFile b/data/core.telegram.org/constructor/messages.sentEncryptedFile new file mode 100644 index 0000000000..114ab246c0 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.sentEncryptedFile @@ -0,0 +1,152 @@ + + + + + messages.sentEncryptedFile + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sentEncryptedFile

+ +

Message with a file enclosure sent to a protected chat

+

+
messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dateintSending date
fileEncryptedFileAttached file
+

Type

+

messages.SentEncryptedMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.sentEncryptedMessage b/data/core.telegram.org/constructor/messages.sentEncryptedMessage new file mode 100644 index 0000000000..86945a674c --- /dev/null +++ b/data/core.telegram.org/constructor/messages.sentEncryptedMessage @@ -0,0 +1,147 @@ + + + + + messages.sentEncryptedMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sentEncryptedMessage

+ +

Message without file attachemts sent to an encrypted file.

+

+
messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
dateintDate of sending
+

Type

+

messages.SentEncryptedMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.sentMessageLink b/data/core.telegram.org/constructor/messages.sentMessageLink new file mode 100644 index 0000000000..0b546e1d09 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.sentMessageLink @@ -0,0 +1,167 @@ + + + + + messages.sentMessageLink + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sentMessageLink

+ +

Info on successfully sent message and on changes links.

+

+
Constructor schema is available as of layer 24. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintMessage ID
dateintDate of sending
ptsintNew value of pts parameter of a current state
seqintNew value of seq parameter of a current state
linksVector<contacts.Link>List of changes links
+

Type

+

messages.SentMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.statedMessageLink b/data/core.telegram.org/constructor/messages.statedMessageLink new file mode 100644 index 0000000000..66b2ab9a74 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.statedMessageLink @@ -0,0 +1,172 @@ + + + + + messages.statedMessageLink + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.statedMessageLink

+ +

Message with auxiliary data, state data and the list of changed links.

+

+
Constructor schema is available as of layer 24. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messageMessageMessage
chatsVector<Chat>List of chats mentioned in message
usersVector<User>List of users mentioned in message and chats
linksVector<contacts.Link>List of changed links
ptsintNumber of events occurred in text box
seqintNumber of sent updates
+

Type

+

messages.StatedMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.statedMessagesLinks b/data/core.telegram.org/constructor/messages.statedMessagesLinks new file mode 100644 index 0000000000..355f29d8d4 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.statedMessagesLinks @@ -0,0 +1,172 @@ + + + + + messages.statedMessagesLinks + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.statedMessagesLinks

+ +

Message with auxiliary data, state data and the list of changed links.

+

+
Constructor schema is available as of layer 24. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messagesVector<Message>List of messages
chatsVector<Chat>List of cats mentioned in messages
usersVector<User>List of users mentioned in messages and cahts
linksVector<contacts.Link>List of changed links
ptsintNumber of event occurred in a text box
seqintNumber of sent updates
+

Type

+

messages.StatedMessages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.stickerSet b/data/core.telegram.org/constructor/messages.stickerSet new file mode 100644 index 0000000000..884407e3de --- /dev/null +++ b/data/core.telegram.org/constructor/messages.stickerSet @@ -0,0 +1,157 @@ + + + + + messages.stickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.stickerSet

+ +

Stickerset and stickers inside it

+

+
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
setStickerSetThe stickerset
packsVector<StickerPack>Emoji info for stickers
documentsVector<Document>Stickers in stickerset
+

Type

+

messages.StickerSet

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.stickerSetInstallResultArchive b/data/core.telegram.org/constructor/messages.stickerSetInstallResultArchive new file mode 100644 index 0000000000..5586c3d087 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.stickerSetInstallResultArchive @@ -0,0 +1,147 @@ + + + + + messages.stickerSetInstallResultArchive + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.stickerSetInstallResultArchive

+ +

The stickerset was installed, but since there are too many stickersets some were archived

+

+
messages.stickerSetInstallResultArchive#35e410a8 sets:Vector<StickerSetCovered> = messages.StickerSetInstallResult;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
setsVector<StickerSetCovered>Archived stickersets
+

Type

+

messages.StickerSetInstallResult

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.stickerSetInstallResultSuccess b/data/core.telegram.org/constructor/messages.stickerSetInstallResultSuccess new file mode 100644 index 0000000000..7e8be726b2 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.stickerSetInstallResultSuccess @@ -0,0 +1,132 @@ + + + + + messages.stickerSetInstallResultSuccess + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.stickerSetInstallResultSuccess

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.stickers b/data/core.telegram.org/constructor/messages.stickers new file mode 100644 index 0000000000..873f8c0ecd --- /dev/null +++ b/data/core.telegram.org/constructor/messages.stickers @@ -0,0 +1,155 @@ + + + + + messages.stickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.stickers

+ +

Found stickers

+

+
messages.stickers#e4599bbd hash:int stickers:Vector<Document> = messages.Stickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
stickersVector<Document>Stickers
+

Type

+

messages.Stickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.stickersNotModified b/data/core.telegram.org/constructor/messages.stickersNotModified new file mode 100644 index 0000000000..e615263628 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.stickersNotModified @@ -0,0 +1,132 @@ + + + + + messages.stickersNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.stickersNotModified

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/messages.votesList b/data/core.telegram.org/constructor/messages.votesList new file mode 100644 index 0000000000..05491ec304 --- /dev/null +++ b/data/core.telegram.org/constructor/messages.votesList @@ -0,0 +1,170 @@ + + + + + messages.votesList + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.votesList

+ +

How users voted in a poll

+

+
messages.votesList#823f649 flags:# count:int votes:Vector<MessageUserVote> users:Vector<User> next_offset:flags.0?string = messages.VotesList;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
countintTotal number of votes for all options (or only for the chosen option, if provided to messages.getPollVotes)
votesVector<MessageUserVote>Vote info for each user
usersVector<User>Info about users that voted in the poll
next_offsetflags.0?stringOffset to use with the next messages.getPollVotes request, empty string if no more results are available.
+

Type

+

messages.VotesList

+

Related pages

+

messages.getPollVotes

+

Get poll results for non-anonymous polls

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/nearestDc.html b/data/core.telegram.org/constructor/nearestDc.html new file mode 100644 index 0000000000..fe4cc3c48e --- /dev/null +++ b/data/core.telegram.org/constructor/nearestDc.html @@ -0,0 +1,157 @@ + + + + + nearestDc + + + + + + + + + + + + + +
+ +
+
+
+ +

nearestDc

+ +

Nearest data centre, according to geo-ip.

+

+
nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countrystringCountry code determined by geo-ip
this_dcintNumber of current data centre
nearest_dcintNumber of nearest data centre
+

Type

+

NearestDc

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/notifyBroadcasts.html b/data/core.telegram.org/constructor/notifyBroadcasts.html new file mode 100644 index 0000000000..96427b9891 --- /dev/null +++ b/data/core.telegram.org/constructor/notifyBroadcasts.html @@ -0,0 +1,132 @@ + + + + + notifyBroadcasts + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/notifyChats.html b/data/core.telegram.org/constructor/notifyChats.html new file mode 100644 index 0000000000..cbed4e3be6 --- /dev/null +++ b/data/core.telegram.org/constructor/notifyChats.html @@ -0,0 +1,132 @@ + + + + + notifyChats + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/notifyPeer.html b/data/core.telegram.org/constructor/notifyPeer.html new file mode 100644 index 0000000000..c82ca4a92d --- /dev/null +++ b/data/core.telegram.org/constructor/notifyPeer.html @@ -0,0 +1,147 @@ + + + + + notifyPeer + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/notifyUsers.html b/data/core.telegram.org/constructor/notifyUsers.html new file mode 100644 index 0000000000..1bcb66bda0 --- /dev/null +++ b/data/core.telegram.org/constructor/notifyUsers.html @@ -0,0 +1,132 @@ + + + + + notifyUsers + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/null.html b/data/core.telegram.org/constructor/null.html new file mode 100644 index 0000000000..78547af02e --- /dev/null +++ b/data/core.telegram.org/constructor/null.html @@ -0,0 +1,132 @@ + + + + + null + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/page.html b/data/core.telegram.org/constructor/page.html new file mode 100644 index 0000000000..fdae0c0394 --- /dev/null +++ b/data/core.telegram.org/constructor/page.html @@ -0,0 +1,190 @@ + + + + + page + + + + + + + + + + + + + +
+ +
+
+
+ +

page

+ +

Instant view page

+

+
page#98657f0d flags:# part:flags.0?true rtl:flags.1?true v2:flags.2?true url:string blocks:Vector<PageBlock> photos:Vector<Photo> documents:Vector<Document> views:flags.3?int = Page;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
partflags.0?trueIndicates that not full page preview is available to the client and it will need to fetch full Instant View from the server using messages.getWebPagePreview.
rtlflags.1?trueWhether the page contains RTL text
v2flags.2?trueWhether this is an IV v2 page
urlstringOriginal page HTTP URL
blocksVector<PageBlock>Page elements (like with HTML elements, only as TL constructors)
photosVector<Photo>Photos in page
documentsVector<Document>Media in page
viewsflags.3?intViewcount
+

Type

+

Page

+

Related pages

+

messages.getWebPagePreview

+

Get preview of webpage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockAnchor.html b/data/core.telegram.org/constructor/pageBlockAnchor.html new file mode 100644 index 0000000000..714b734bf1 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockAnchor.html @@ -0,0 +1,147 @@ + + + + + pageBlockAnchor + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockAnchor

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockAudio.html b/data/core.telegram.org/constructor/pageBlockAudio.html new file mode 100644 index 0000000000..2b17835ec4 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockAudio.html @@ -0,0 +1,155 @@ + + + + + pageBlockAudio + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockAudio

+ +

Audio

+

+
pageBlockAudio#804361ea audio_id:long caption:PageCaption = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
audio_idlongAudio ID (to be fetched from the container page constructor
captionPageCaptionAudio caption
+

Type

+

PageBlock

+

Related pages

+

page

+

Instant view page

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockAuthorDate.html b/data/core.telegram.org/constructor/pageBlockAuthorDate.html new file mode 100644 index 0000000000..1c256fb359 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockAuthorDate.html @@ -0,0 +1,152 @@ + + + + + pageBlockAuthorDate + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockAuthorDate

+ +

Author and date of creation of article

+

+
pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
authorRichTextAuthor name
published_dateintDate of pubblication
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockBlockquote.html b/data/core.telegram.org/constructor/pageBlockBlockquote.html new file mode 100644 index 0000000000..43858c9ddd --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockBlockquote.html @@ -0,0 +1,152 @@ + + + + + pageBlockBlockquote + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockBlockquote

+ +

Quote (equivalent to the HTML <blockquote>)

+

+
pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextQuote contents
captionRichTextCaption
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockChannel.html b/data/core.telegram.org/constructor/pageBlockChannel.html new file mode 100644 index 0000000000..8b22f7afe4 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockChannel.html @@ -0,0 +1,147 @@ + + + + + pageBlockChannel + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockChannel

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockCollage.html b/data/core.telegram.org/constructor/pageBlockCollage.html new file mode 100644 index 0000000000..e7e547b511 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockCollage.html @@ -0,0 +1,152 @@ + + + + + pageBlockCollage + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockCollage

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockCover.html b/data/core.telegram.org/constructor/pageBlockCover.html new file mode 100644 index 0000000000..a27f57d3e1 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockCover.html @@ -0,0 +1,147 @@ + + + + + pageBlockCover + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockDetails.html b/data/core.telegram.org/constructor/pageBlockDetails.html new file mode 100644 index 0000000000..bfd78b733b --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockDetails.html @@ -0,0 +1,162 @@ + + + + + pageBlockDetails + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockDetails

+ +

A collapsible details block

+

+
pageBlockDetails#76768bed flags:# open:flags.0?true blocks:Vector<PageBlock> title:RichText = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
openflags.0?trueWhether the block is open by default
blocksVector<PageBlock>Block contents
titleRichTextAlways visible heading for the block
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockDivider.html b/data/core.telegram.org/constructor/pageBlockDivider.html new file mode 100644 index 0000000000..4e65a05f5d --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockDivider.html @@ -0,0 +1,132 @@ + + + + + pageBlockDivider + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockEmbed.html b/data/core.telegram.org/constructor/pageBlockEmbed.html new file mode 100644 index 0000000000..27d2ce30ef --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockEmbed.html @@ -0,0 +1,187 @@ + + + + + pageBlockEmbed + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockEmbed

+ +

An embedded webpage

+

+
pageBlockEmbed#a8718dc5 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:flags.5?int h:flags.5?int caption:PageCaption = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
full_widthflags.0?trueWhether the block should be full width
allow_scrollingflags.3?trueWhether scrolling should be allowed
urlflags.1?stringWeb page URL, if available
htmlflags.2?stringHTML-markup of the embedded page
poster_photo_idflags.4?longPoster photo, if available
wflags.5?intBlock width, if known
hflags.5?intBlock height, if known
captionPageCaptionCaption
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockEmbedPost.html b/data/core.telegram.org/constructor/pageBlockEmbedPost.html new file mode 100644 index 0000000000..131ac1a738 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockEmbedPost.html @@ -0,0 +1,177 @@ + + + + + pageBlockEmbedPost + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockEmbedPost

+ +

An embedded post

+

+
pageBlockEmbedPost#f259a80b url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector<PageBlock> caption:PageCaption = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringWeb page URL
webpage_idlongID of generated webpage preview
author_photo_idlongID of the author's photo
authorstringAuthor name
dateintCreation date
blocksVector<PageBlock>Post contents
captionPageCaptionCaption
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockFooter.html b/data/core.telegram.org/constructor/pageBlockFooter.html new file mode 100644 index 0000000000..3c29d4542b --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockFooter.html @@ -0,0 +1,147 @@ + + + + + pageBlockFooter + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockHeader.html b/data/core.telegram.org/constructor/pageBlockHeader.html new file mode 100644 index 0000000000..8b4d2328df --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockHeader.html @@ -0,0 +1,147 @@ + + + + + pageBlockHeader + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockKicker.html b/data/core.telegram.org/constructor/pageBlockKicker.html new file mode 100644 index 0000000000..2f92d65deb --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockKicker.html @@ -0,0 +1,147 @@ + + + + + pageBlockKicker + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockList.html b/data/core.telegram.org/constructor/pageBlockList.html new file mode 100644 index 0000000000..c0b108b3f6 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockList.html @@ -0,0 +1,147 @@ + + + + + pageBlockList + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockList

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockMap.html b/data/core.telegram.org/constructor/pageBlockMap.html new file mode 100644 index 0000000000..e648254227 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockMap.html @@ -0,0 +1,167 @@ + + + + + pageBlockMap + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockMap

+ +

A map

+

+
pageBlockMap#a44f3ef6 geo:GeoPoint zoom:int w:int h:int caption:PageCaption = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
geoGeoPointLocation of the map center
zoomintMap zoom level; 13-20
wintMap width in pixels before applying scale; 16-102
hintMap height in pixels before applying scale; 16-1024
captionPageCaptionCaption
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockOrderedList.html b/data/core.telegram.org/constructor/pageBlockOrderedList.html new file mode 100644 index 0000000000..a0e4d2779b --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockOrderedList.html @@ -0,0 +1,147 @@ + + + + + pageBlockOrderedList + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockOrderedList

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockParagraph.html b/data/core.telegram.org/constructor/pageBlockParagraph.html new file mode 100644 index 0000000000..aa07fda5dd --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockParagraph.html @@ -0,0 +1,147 @@ + + + + + pageBlockParagraph + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockPhoto.html b/data/core.telegram.org/constructor/pageBlockPhoto.html new file mode 100644 index 0000000000..aca6ff96be --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockPhoto.html @@ -0,0 +1,167 @@ + + + + + pageBlockPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockPhoto

+ +

A photo

+

+
pageBlockPhoto#1759c560 flags:# photo_id:long caption:PageCaption url:flags.0?string webpage_id:flags.0?long = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
photo_idlongPhoto ID
captionPageCaptionCaption
urlflags.0?stringHTTP URL of page the photo leads to when clicked
webpage_idflags.0?longID of preview of the page the photo leads to when clicked
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockPreformatted.html b/data/core.telegram.org/constructor/pageBlockPreformatted.html new file mode 100644 index 0000000000..ab49cd38fe --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockPreformatted.html @@ -0,0 +1,152 @@ + + + + + pageBlockPreformatted + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockPreformatted

+ +

Preformatted (<pre> text)

+

+
pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
languagestringProgramming language of preformatted text
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockPullquote.html b/data/core.telegram.org/constructor/pageBlockPullquote.html new file mode 100644 index 0000000000..503b080e95 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockPullquote.html @@ -0,0 +1,152 @@ + + + + + pageBlockPullquote + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockPullquote

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockRelatedArticles.html b/data/core.telegram.org/constructor/pageBlockRelatedArticles.html new file mode 100644 index 0000000000..2787e08c28 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockRelatedArticles.html @@ -0,0 +1,152 @@ + + + + + pageBlockRelatedArticles + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockRelatedArticles

+ +

Related articles

+

+
pageBlockRelatedArticles#16115a96 title:RichText articles:Vector<PageRelatedArticle> = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
titleRichTextTitle
articlesVector<PageRelatedArticle>Related articles
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockSlideshow.html b/data/core.telegram.org/constructor/pageBlockSlideshow.html new file mode 100644 index 0000000000..79c2d2553f --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockSlideshow.html @@ -0,0 +1,152 @@ + + + + + pageBlockSlideshow + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockSlideshow

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockSubheader.html b/data/core.telegram.org/constructor/pageBlockSubheader.html new file mode 100644 index 0000000000..9af181c860 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockSubheader.html @@ -0,0 +1,147 @@ + + + + + pageBlockSubheader + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockSubtitle.html b/data/core.telegram.org/constructor/pageBlockSubtitle.html new file mode 100644 index 0000000000..df9029f424 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockSubtitle.html @@ -0,0 +1,147 @@ + + + + + pageBlockSubtitle + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockTable.html b/data/core.telegram.org/constructor/pageBlockTable.html new file mode 100644 index 0000000000..886d90c6dd --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockTable.html @@ -0,0 +1,167 @@ + + + + + pageBlockTable + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockTable

+ +

Table

+

+
pageBlockTable#bf4dea82 flags:# bordered:flags.0?true striped:flags.1?true title:RichText rows:Vector<PageTableRow> = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
borderedflags.0?trueDoes the table have a visible border?
stripedflags.1?trueIs the table striped?
titleRichTextTitle
rowsVector<PageTableRow>Table rows
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockTitle.html b/data/core.telegram.org/constructor/pageBlockTitle.html new file mode 100644 index 0000000000..5df5909986 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockTitle.html @@ -0,0 +1,147 @@ + + + + + pageBlockTitle + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockUnsupported.html b/data/core.telegram.org/constructor/pageBlockUnsupported.html new file mode 100644 index 0000000000..139e3ecf50 --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockUnsupported.html @@ -0,0 +1,132 @@ + + + + + pageBlockUnsupported + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageBlockVideo.html b/data/core.telegram.org/constructor/pageBlockVideo.html new file mode 100644 index 0000000000..c9952bc4cf --- /dev/null +++ b/data/core.telegram.org/constructor/pageBlockVideo.html @@ -0,0 +1,167 @@ + + + + + pageBlockVideo + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockVideo

+ +

Video

+

+
pageBlockVideo#7c8fe7b6 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:PageCaption = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
autoplayflags.0?trueWhether the video is set to autoplay
loopflags.1?trueWhether the video is set to loop
video_idlongVideo ID
captionPageCaptionCaption
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageCaption.html b/data/core.telegram.org/constructor/pageCaption.html new file mode 100644 index 0000000000..9542f829c4 --- /dev/null +++ b/data/core.telegram.org/constructor/pageCaption.html @@ -0,0 +1,152 @@ + + + + + pageCaption + + + + + + + + + + + + + +
+ +
+
+
+ +

pageCaption

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageListItemBlocks.html b/data/core.telegram.org/constructor/pageListItemBlocks.html new file mode 100644 index 0000000000..a427a33806 --- /dev/null +++ b/data/core.telegram.org/constructor/pageListItemBlocks.html @@ -0,0 +1,147 @@ + + + + + pageListItemBlocks + + + + + + + + + + + + + +
+ +
+
+
+ +

pageListItemBlocks

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageListItemText.html b/data/core.telegram.org/constructor/pageListItemText.html new file mode 100644 index 0000000000..cc5b0d4a3b --- /dev/null +++ b/data/core.telegram.org/constructor/pageListItemText.html @@ -0,0 +1,147 @@ + + + + + pageListItemText + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageListOrderedItemBlocks.html b/data/core.telegram.org/constructor/pageListOrderedItemBlocks.html new file mode 100644 index 0000000000..1858394e69 --- /dev/null +++ b/data/core.telegram.org/constructor/pageListOrderedItemBlocks.html @@ -0,0 +1,152 @@ + + + + + pageListOrderedItemBlocks + + + + + + + + + + + + + +
+ +
+
+
+ +

pageListOrderedItemBlocks

+ +

Ordered list of IV blocks

+

+
pageListOrderedItemBlocks#98dd8936 num:string blocks:Vector<PageBlock> = PageListOrderedItem;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
numstringNumber of element within ordered list
blocksVector<PageBlock>Item contents
+

Type

+

PageListOrderedItem

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageListOrderedItemText.html b/data/core.telegram.org/constructor/pageListOrderedItemText.html new file mode 100644 index 0000000000..46c8157088 --- /dev/null +++ b/data/core.telegram.org/constructor/pageListOrderedItemText.html @@ -0,0 +1,152 @@ + + + + + pageListOrderedItemText + + + + + + + + + + + + + +
+ +
+
+
+ +

pageListOrderedItemText

+ +

Ordered list of text items

+

+
pageListOrderedItemText#5e068047 num:string text:RichText = PageListOrderedItem;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
numstringNumber of element within ordered list
textRichTextText
+

Type

+

PageListOrderedItem

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageRelatedArticle.html b/data/core.telegram.org/constructor/pageRelatedArticle.html new file mode 100644 index 0000000000..3adc100ab7 --- /dev/null +++ b/data/core.telegram.org/constructor/pageRelatedArticle.html @@ -0,0 +1,182 @@ + + + + + pageRelatedArticle + + + + + + + + + + + + + +
+ +
+
+
+ +

pageRelatedArticle

+ +

Related article

+

+
pageRelatedArticle#b390dc08 flags:# url:string webpage_id:long title:flags.0?string description:flags.1?string photo_id:flags.2?long author:flags.3?string published_date:flags.4?int = PageRelatedArticle;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
urlstringURL of article
webpage_idlongWebpage ID of generated IV preview
titleflags.0?stringTitle
descriptionflags.1?stringDescription
photo_idflags.2?longID of preview photo
authorflags.3?stringAuthor name
published_dateflags.4?intDate of pubblication
+

Type

+

PageRelatedArticle

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageTableCell.html b/data/core.telegram.org/constructor/pageTableCell.html new file mode 100644 index 0000000000..5a892a0357 --- /dev/null +++ b/data/core.telegram.org/constructor/pageTableCell.html @@ -0,0 +1,187 @@ + + + + + pageTableCell + + + + + + + + + + + + + +
+ +
+
+
+ +

pageTableCell

+ +

Table cell

+

+
pageTableCell#34566b6a flags:# header:flags.0?true align_center:flags.3?true align_right:flags.4?true valign_middle:flags.5?true valign_bottom:flags.6?true text:flags.7?RichText colspan:flags.1?int rowspan:flags.2?int = PageTableCell;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
headerflags.0?trueIs this element part of the column header
align_centerflags.3?trueHorizontally centered block
align_rightflags.4?trueRight-aligned block
valign_middleflags.5?trueVertically centered block
valign_bottomflags.6?trueBlock vertically-alligned to the bottom
textflags.7?RichTextContent
colspanflags.1?intFor how many columns should this cell extend
rowspanflags.2?intFor how many rows should this cell extend
+

Type

+

PageTableCell

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pageTableRow.html b/data/core.telegram.org/constructor/pageTableRow.html new file mode 100644 index 0000000000..0b37f95a6c --- /dev/null +++ b/data/core.telegram.org/constructor/pageTableRow.html @@ -0,0 +1,147 @@ + + + + + pageTableRow + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.html b/data/core.telegram.org/constructor/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.html new file mode 100644 index 0000000000..452a9767b1 --- /dev/null +++ b/data/core.telegram.org/constructor/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.html @@ -0,0 +1,165 @@ + + + + + passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow + + + + + + + + + + + + + +
+ +
+
+
+ +

passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow

+ +

This key derivation algorithm defines that SRP 2FA login must be used

+

+
passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
salt1bytesOne of two salts used by the derivation function (see SRP 2FA login)
salt2bytesOne of two salts used by the derivation function (see SRP 2FA login)
gintBase (see SRP 2FA login)
pbytes2048-bit modulus (see SRP 2FA login)
+

Type

+

PasswordKdfAlgo

+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/passwordKdfAlgoUnknown.html b/data/core.telegram.org/constructor/passwordKdfAlgoUnknown.html new file mode 100644 index 0000000000..2563fb219a --- /dev/null +++ b/data/core.telegram.org/constructor/passwordKdfAlgoUnknown.html @@ -0,0 +1,132 @@ + + + + + passwordKdfAlgoUnknown + + + + + + + + + + + + + +
+ +
+
+
+ +

passwordKdfAlgoUnknown

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/paymentCharge.html b/data/core.telegram.org/constructor/paymentCharge.html new file mode 100644 index 0000000000..f58d011623 --- /dev/null +++ b/data/core.telegram.org/constructor/paymentCharge.html @@ -0,0 +1,152 @@ + + + + + paymentCharge + + + + + + + + + + + + + +
+ +
+
+
+ +

paymentCharge

+ +

Payment identifier

+

+
paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idstringTelegram payment identifier
provider_charge_idstringProvider payment identifier
+

Type

+

PaymentCharge

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/paymentRequestedInfo.html b/data/core.telegram.org/constructor/paymentRequestedInfo.html new file mode 100644 index 0000000000..23f7e9a566 --- /dev/null +++ b/data/core.telegram.org/constructor/paymentRequestedInfo.html @@ -0,0 +1,167 @@ + + + + + paymentRequestedInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

paymentRequestedInfo

+ +

Order info provided by the user

+

+
paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
nameflags.0?stringUser's full name
phoneflags.1?stringUser's phone number
emailflags.2?stringUser's email address
shipping_addressflags.3?PostAddressUser's shipping address
+

Type

+

PaymentRequestedInfo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/paymentSavedCredentialsCard.html b/data/core.telegram.org/constructor/paymentSavedCredentialsCard.html new file mode 100644 index 0000000000..e849ce7336 --- /dev/null +++ b/data/core.telegram.org/constructor/paymentSavedCredentialsCard.html @@ -0,0 +1,152 @@ + + + + + paymentSavedCredentialsCard + + + + + + + + + + + + + +
+ +
+
+
+ +

paymentSavedCredentialsCard

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/payments.bankCardData b/data/core.telegram.org/constructor/payments.bankCardData new file mode 100644 index 0000000000..ec70b5af75 --- /dev/null +++ b/data/core.telegram.org/constructor/payments.bankCardData @@ -0,0 +1,152 @@ + + + + + payments.bankCardData + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.bankCardData

+ +

Credit card info, provided by the card's bank(s)

+

+
payments.bankCardData#3e24e573 title:string open_urls:Vector<BankCardOpenUrl> = payments.BankCardData;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
titlestringCredit card title
open_urlsVector<BankCardOpenUrl>Info URL(s) provided by the card's bank(s)
+

Type

+

payments.BankCardData

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/payments.paymentForm b/data/core.telegram.org/constructor/payments.paymentForm new file mode 100644 index 0000000000..378a74faa5 --- /dev/null +++ b/data/core.telegram.org/constructor/payments.paymentForm @@ -0,0 +1,205 @@ + + + + + payments.paymentForm + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.paymentForm

+ +

Payment form

+

+
payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector<User> = payments.PaymentForm;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
can_save_credentialsflags.2?trueWhether the user can choose to save credentials.
password_missingflags.3?trueIndicates that the user can save payment credentials, but only after setting up a 2FA password (currently the account doesn't have a 2FA password)
bot_idintBot ID
invoiceInvoiceInvoice
provider_idintPayment provider ID.
urlstringPayment form URL
native_providerflags.4?stringPayment provider name.
One of the following:
- stripe
native_paramsflags.4?DataJSONContains information about the payment provider, if available, to support it natively without the need for opening the URL.
A JSON object that can contain the following fields:

- publishable_key: Stripe API publishable key
- apple_pay_merchant_id: Apple Pay merchant ID
- android_pay_public_key: Android Pay public key
- android_pay_bgcolor: Android Pay form background color
- android_pay_inverse: Whether to use the dark theme in the Android Pay form
- need_country: True, if the user country must be provided,
- need_zip: True, if the user ZIP/postal code must be provided,
- need_cardholder_name: True, if the cardholder name must be provided
saved_infoflags.0?PaymentRequestedInfoSaved server-side order information
saved_credentialsflags.1?PaymentSavedCredentialsContains information about saved card credentials
usersVector<User>Users
+

Type

+

payments.PaymentForm

+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/payments.paymentReceipt b/data/core.telegram.org/constructor/payments.paymentReceipt new file mode 100644 index 0000000000..7dd369cdc6 --- /dev/null +++ b/data/core.telegram.org/constructor/payments.paymentReceipt @@ -0,0 +1,199 @@ + + + + + payments.paymentReceipt + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.paymentReceipt

+ +

Receipt

+

+
payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector<User> = payments.PaymentReceipt;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
dateintDate of generation
bot_idintBot ID
invoiceInvoiceInvoice
provider_idintProvider ID
infoflags.0?PaymentRequestedInfoInfo
shippingflags.1?ShippingOptionSelected shipping option
currencystringThree-letter ISO 4217 currency code
total_amountlongTotal amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
credentials_titlestringPayment credential name
usersVector<User>Users
+

Type

+

payments.PaymentReceipt

+

Related pages

+

Bot Payments API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/payments.paymentResult b/data/core.telegram.org/constructor/payments.paymentResult new file mode 100644 index 0000000000..2c49955c23 --- /dev/null +++ b/data/core.telegram.org/constructor/payments.paymentResult @@ -0,0 +1,147 @@ + + + + + payments.paymentResult + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.paymentResult

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/payments.paymentVerificationNeeded b/data/core.telegram.org/constructor/payments.paymentVerificationNeeded new file mode 100644 index 0000000000..44e9e33978 --- /dev/null +++ b/data/core.telegram.org/constructor/payments.paymentVerificationNeeded @@ -0,0 +1,147 @@ + + + + + payments.paymentVerificationNeeded + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.paymentVerificationNeeded

+ +

Payment was not successful, additional verification is needed

+

+
payments.paymentVerificationNeeded#d8411139 url:string = payments.PaymentResult;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
urlstringURL for additional payment credentials verification
+

Type

+

payments.PaymentResult

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/payments.savedInfo b/data/core.telegram.org/constructor/payments.savedInfo new file mode 100644 index 0000000000..11d5847028 --- /dev/null +++ b/data/core.telegram.org/constructor/payments.savedInfo @@ -0,0 +1,157 @@ + + + + + payments.savedInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.savedInfo

+ +

Saved server-side order information

+

+
payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
has_saved_credentialsflags.1?trueWhether the user has some saved payment credentials
saved_infoflags.0?PaymentRequestedInfoSaved server-side order information
+

Type

+

payments.SavedInfo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/payments.validatedRequestedInfo b/data/core.telegram.org/constructor/payments.validatedRequestedInfo new file mode 100644 index 0000000000..44ad5e365c --- /dev/null +++ b/data/core.telegram.org/constructor/payments.validatedRequestedInfo @@ -0,0 +1,145 @@ + + + + + payments.ValidatedRequestedInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.ValidatedRequestedInfo

+ +

Validated user-provided info

+

{scheme}

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idflags.0?stringID
shipping_optionsflags.1?Vector<ShippingOption>Shipping options
+

Type

+

payments.ValidatedRequestedInfo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/peerBlocked.html b/data/core.telegram.org/constructor/peerBlocked.html new file mode 100644 index 0000000000..3bc1959efd --- /dev/null +++ b/data/core.telegram.org/constructor/peerBlocked.html @@ -0,0 +1,152 @@ + + + + + peerBlocked + + + + + + + + + + + + + +
+ +
+
+
+ +

peerBlocked

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/peerChannel.html b/data/core.telegram.org/constructor/peerChannel.html new file mode 100644 index 0000000000..f2adf42043 --- /dev/null +++ b/data/core.telegram.org/constructor/peerChannel.html @@ -0,0 +1,147 @@ + + + + + peerChannel + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/peerChat.html b/data/core.telegram.org/constructor/peerChat.html new file mode 100644 index 0000000000..08219e89e1 --- /dev/null +++ b/data/core.telegram.org/constructor/peerChat.html @@ -0,0 +1,147 @@ + + + + + peerChat + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/peerLocated.html b/data/core.telegram.org/constructor/peerLocated.html new file mode 100644 index 0000000000..3e5bf86cfe --- /dev/null +++ b/data/core.telegram.org/constructor/peerLocated.html @@ -0,0 +1,157 @@ + + + + + peerLocated + + + + + + + + + + + + + +
+ +
+
+
+ +

peerLocated

+ +

Peer geolocated nearby

+

+
peerLocated#ca461b5d peer:Peer expires:int distance:int = PeerLocated;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerPeer
expiresintValidity period of current data
distanceintDistance from the peer in meters
+

Type

+

PeerLocated

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/peerNotifySettings.html b/data/core.telegram.org/constructor/peerNotifySettings.html new file mode 100644 index 0000000000..52b2fcb8c0 --- /dev/null +++ b/data/core.telegram.org/constructor/peerNotifySettings.html @@ -0,0 +1,182 @@ + + + + + peerNotifySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

peerNotifySettings

+ +

Notification settings.

+

+
peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
show_previewsflags.0?BoolDisplay text in notifications
silentflags.1?BoolMute peer?
mute_untilflags.2?intMute all notifications until this date
soundflags.3?stringAudio file name for notifications
+

Type

+

PeerNotifySettings

+

Event flags (events_mask)

+ + + + + + + + + + + + + +
0x00000001Profile photo update notification
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/peerSelfLocated.html b/data/core.telegram.org/constructor/peerSelfLocated.html new file mode 100644 index 0000000000..7490606777 --- /dev/null +++ b/data/core.telegram.org/constructor/peerSelfLocated.html @@ -0,0 +1,147 @@ + + + + + peerSelfLocated + + + + + + + + + + + + + +
+ +
+
+
+ +

peerSelfLocated

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/peerSettings.html b/data/core.telegram.org/constructor/peerSettings.html new file mode 100644 index 0000000000..57e991b84e --- /dev/null +++ b/data/core.telegram.org/constructor/peerSettings.html @@ -0,0 +1,190 @@ + + + + + peerSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

peerSettings

+ +

Peer settings

+

+
peerSettings#733f2961 flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true geo_distance:flags.6?int = PeerSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
report_spamflags.0?trueWhether we can still report the user for spam
add_contactflags.1?trueWhether we can add the user as contact
block_contactflags.2?trueWhether we can block the user
share_contactflags.3?trueWhether we can share the user's contact
need_contacts_exceptionflags.4?trueWhether a special exception for contacts is needed
report_geoflags.5?trueWhether we can report a geogroup is irrelevant for this location
autoarchivedflags.7?trueWhether this peer was automatically archived according to privacy settings
geo_distanceflags.6?intDistance in meters between us and this peer
+

Type

+

PeerSettings

+

Related pages

+

globalPrivacySettings

+

Global privacy settings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/peerUser.html b/data/core.telegram.org/constructor/peerUser.html new file mode 100644 index 0000000000..318e2b3a30 --- /dev/null +++ b/data/core.telegram.org/constructor/peerUser.html @@ -0,0 +1,147 @@ + + + + + peerUser + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phone.phoneCall b/data/core.telegram.org/constructor/phone.phoneCall new file mode 100644 index 0000000000..2c4ffdc687 --- /dev/null +++ b/data/core.telegram.org/constructor/phone.phoneCall @@ -0,0 +1,152 @@ + + + + + phone.phoneCall + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.phoneCall

+ +

A VoIP phone call

+

+
phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector<User> = phone.PhoneCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_callPhoneCallThe VoIP phone call
usersVector<User>VoIP phone call participants
+

Type

+

phone.PhoneCall

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneCall.html b/data/core.telegram.org/constructor/phoneCall.html new file mode 100644 index 0000000000..7a951d936c --- /dev/null +++ b/data/core.telegram.org/constructor/phoneCall.html @@ -0,0 +1,209 @@ + + + + + phoneCall + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCall

+ +

Phone call

+

+
phoneCall#8742ae7f flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector<PhoneConnection> start_date:int = PhoneCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
p2p_allowedflags.5?trueWhether P2P connection to the other peer is allowed
videoflags.6?trueWhether this is a video call
idlongCall ID
access_hashlongAccess hash
dateintDate of creation of the call
admin_idintUser ID of the creator of the call
participant_idintUser ID of the other participant in the call
g_a_or_bbytesParameter for key exchange
key_fingerprintlongKey fingerprint
protocolPhoneCallProtocolCall protocol info to be passed to libtgvoip
connectionsVector<PhoneConnection>List of endpoints the user can connect to to exchange call data
start_dateintWhen was the call actually started
+

Type

+

PhoneCall

+

Related pages

+

End-to-End Encrypted Voice Calls

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneCallAccepted.html b/data/core.telegram.org/constructor/phoneCallAccepted.html new file mode 100644 index 0000000000..f2e4ccef2e --- /dev/null +++ b/data/core.telegram.org/constructor/phoneCallAccepted.html @@ -0,0 +1,189 @@ + + + + + phoneCallAccepted + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallAccepted

+ +

An accepted phone call

+

+
phoneCallAccepted#997c454a flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
videoflags.6?trueWhether this is a video call
idlongID of accepted phone call
access_hashlongAccess hash of phone call
dateintWhen was the call accepted
admin_idintID of the call creator
participant_idintID of the other user in the call
g_bbytesB parameter for secure E2E phone call key exchange
protocolPhoneCallProtocolProtocol to use for phone call
+

Type

+

PhoneCall

+

Related pages

+

End-to-End Encrypted Voice Calls

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneCallDiscardReasonBusy.html b/data/core.telegram.org/constructor/phoneCallDiscardReasonBusy.html new file mode 100644 index 0000000000..cbbda4fcbb --- /dev/null +++ b/data/core.telegram.org/constructor/phoneCallDiscardReasonBusy.html @@ -0,0 +1,132 @@ + + + + + phoneCallDiscardReasonBusy + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallDiscardReasonBusy

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneCallDiscardReasonDisconnect.html b/data/core.telegram.org/constructor/phoneCallDiscardReasonDisconnect.html new file mode 100644 index 0000000000..12aecd88f7 --- /dev/null +++ b/data/core.telegram.org/constructor/phoneCallDiscardReasonDisconnect.html @@ -0,0 +1,132 @@ + + + + + phoneCallDiscardReasonDisconnect + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallDiscardReasonDisconnect

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneCallDiscardReasonHangup.html b/data/core.telegram.org/constructor/phoneCallDiscardReasonHangup.html new file mode 100644 index 0000000000..c7cb9efb08 --- /dev/null +++ b/data/core.telegram.org/constructor/phoneCallDiscardReasonHangup.html @@ -0,0 +1,132 @@ + + + + + phoneCallDiscardReasonHangup + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallDiscardReasonHangup

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneCallDiscardReasonMissed.html b/data/core.telegram.org/constructor/phoneCallDiscardReasonMissed.html new file mode 100644 index 0000000000..46e60f23e5 --- /dev/null +++ b/data/core.telegram.org/constructor/phoneCallDiscardReasonMissed.html @@ -0,0 +1,132 @@ + + + + + phoneCallDiscardReasonMissed + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallDiscardReasonMissed

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneCallDiscarded.html b/data/core.telegram.org/constructor/phoneCallDiscarded.html new file mode 100644 index 0000000000..cb59da4f72 --- /dev/null +++ b/data/core.telegram.org/constructor/phoneCallDiscarded.html @@ -0,0 +1,182 @@ + + + + + phoneCallDiscarded + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallDiscarded

+ +

Indicates a discarded phone call

+

+
phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true video:flags.6?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
need_ratingflags.2?trueWhether the server required the user to rate the call
need_debugflags.3?trueWhether the server required the client to send the libtgvoip call debug data
videoflags.6?trueWhether the call was a video call
idlongCall ID
reasonflags.0?PhoneCallDiscardReasonWhy was the phone call discarded
durationflags.1?intDuration of the phone call in seconds
+

Type

+

PhoneCall

+

Related pages

+

phone.setCallRating

+

Rate a call

+

phone.saveCallDebug

+

Send phone call debug data to server

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneCallEmpty.html b/data/core.telegram.org/constructor/phoneCallEmpty.html new file mode 100644 index 0000000000..0427b8dd57 --- /dev/null +++ b/data/core.telegram.org/constructor/phoneCallEmpty.html @@ -0,0 +1,147 @@ + + + + + phoneCallEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneCallProtocol.html b/data/core.telegram.org/constructor/phoneCallProtocol.html new file mode 100644 index 0000000000..264d6d9a17 --- /dev/null +++ b/data/core.telegram.org/constructor/phoneCallProtocol.html @@ -0,0 +1,179 @@ + + + + + phoneCallProtocol + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallProtocol

+ +

Protocol info for libtgvoip

+

+
phoneCallProtocol#fc878fc8 flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int library_versions:Vector<string> = PhoneCallProtocol;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
udp_p2pflags.0?trueWhether to allow P2P connection to the other participant
udp_reflectorflags.1?trueWhether to allow connection to the other participants through the reflector servers
min_layerintMinimum layer for remote libtgvoip
max_layerintMaximum layer for remote libtgvoip
library_versionsVector<string>When using phone.requestCall and phone.acceptCall, specify all library versions supported by the client.
The server will merge and choose the best library version supported by both peers, returning only the best value in the result of the callee's phone.acceptCall and in the phoneCallAccepted update received by the caller.
+

Type

+

PhoneCallProtocol

+

Related pages

+

phone.requestCall

+

Start a telegram phone call

+

phone.acceptCall

+

Accept incoming call

+

phoneCallAccepted

+

An accepted phone call

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneCallRequested.html b/data/core.telegram.org/constructor/phoneCallRequested.html new file mode 100644 index 0000000000..9fe04d4505 --- /dev/null +++ b/data/core.telegram.org/constructor/phoneCallRequested.html @@ -0,0 +1,189 @@ + + + + + phoneCallRequested + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallRequested

+ +

Requested phone call

+

+
phoneCallRequested#87eabb53 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
videoflags.6?trueWhether this is a video call
idlongPhone call ID
access_hashlongAccess hash
dateintWhen was the phone call created
admin_idintID of the creator of the phone call
participant_idintID of the other participant of the phone call
g_a_hashbytesParameter for key exchange
protocolPhoneCallProtocolCall protocol info to be passed to libtgvoip
+

Type

+

PhoneCall

+

Related pages

+

End-to-End Encrypted Voice Calls

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneCallWaiting.html b/data/core.telegram.org/constructor/phoneCallWaiting.html new file mode 100644 index 0000000000..914d1259dd --- /dev/null +++ b/data/core.telegram.org/constructor/phoneCallWaiting.html @@ -0,0 +1,187 @@ + + + + + phoneCallWaiting + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallWaiting

+ +

Incoming phone call

+

+
phoneCallWaiting#1b8f4ad1 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
videoflags.6?trueIs this a video call
idlongCall ID
access_hashlongAccess hash
dateintDate
admin_idintAdmin ID
participant_idintParticipant ID
protocolPhoneCallProtocolPhone call protocol info
receive_dateflags.0?intWhen was the phone call received
+

Type

+

PhoneCall

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneConnection.html b/data/core.telegram.org/constructor/phoneConnection.html new file mode 100644 index 0000000000..abdc79a533 --- /dev/null +++ b/data/core.telegram.org/constructor/phoneConnection.html @@ -0,0 +1,167 @@ + + + + + phoneConnection + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneConnection

+ +

Identifies an endpoint that can be used to connect to the other user in a phone call

+

+
phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongEndpoint ID
ipstringIP address of endpoint
ipv6stringIPv6 address of endpoint
portintPort ID
peer_tagbytesOur peer tag
+

Type

+

PhoneConnection

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/phoneConnectionWebrtc.html b/data/core.telegram.org/constructor/phoneConnectionWebrtc.html new file mode 100644 index 0000000000..daf6f94546 --- /dev/null +++ b/data/core.telegram.org/constructor/phoneConnectionWebrtc.html @@ -0,0 +1,187 @@ + + + + + phoneConnectionWebrtc + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneConnectionWebrtc

+ +

WebRTC connection parameters

+

+
phoneConnectionWebrtc#635fe375 flags:# turn:flags.0?true stun:flags.1?true id:long ip:string ipv6:string port:int username:string password:string = PhoneConnection;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
turnflags.0?trueWhether this is a TURN endpoint
stunflags.1?trueWhether this is a STUN endpoint
idlongEndpoint ID
ipstringIP address
ipv6stringIPv6 address
portintPort
usernamestringUsername
passwordstringPassword
+

Type

+

PhoneConnection

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/photo.html b/data/core.telegram.org/constructor/photo.html new file mode 100644 index 0000000000..975cd46ee7 --- /dev/null +++ b/data/core.telegram.org/constructor/photo.html @@ -0,0 +1,192 @@ + + + + + photo + + + + + + + + + + + + + +
+ +
+
+
+ +

photo

+ +

Photo

+

+
photo#fb197a65 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector<PhotoSize> video_sizes:flags.1?Vector<VideoSize> dc_id:int = Photo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
has_stickersflags.0?trueWhether the photo has mask stickers attached to it
idlongID
access_hashlongAccess hash
file_referencebytesfile reference
dateintDate of upload
sizesVector<PhotoSize>Available sizes for download
video_sizesflags.1?Vector<VideoSize>For animated profiles, the MPEG4 videos
dc_idintDC ID to use for download
+

Type

+

Photo

+

Related pages

+

File references

+

How to handle file references.

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/photoCachedSize.html b/data/core.telegram.org/constructor/photoCachedSize.html new file mode 100644 index 0000000000..2f6efa019b --- /dev/null +++ b/data/core.telegram.org/constructor/photoCachedSize.html @@ -0,0 +1,172 @@ + + + + + photoCachedSize + + + + + + + + + + + + + +
+ +
+
+
+ +

photoCachedSize

+ +

Description of an image and its content.

+

+
photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typestringThumbnail type
locationFileLocationFile location
wintImage width
hintImage height
bytesbytesBinary data, file content
+

Type

+

PhotoSize

+

Thumbnail type and its sizes

+

See here.

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/photoEmpty.html b/data/core.telegram.org/constructor/photoEmpty.html new file mode 100644 index 0000000000..18ff534822 --- /dev/null +++ b/data/core.telegram.org/constructor/photoEmpty.html @@ -0,0 +1,147 @@ + + + + + photoEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/photoPathSize.html b/data/core.telegram.org/constructor/photoPathSize.html new file mode 100644 index 0000000000..516cf9463d --- /dev/null +++ b/data/core.telegram.org/constructor/photoPathSize.html @@ -0,0 +1,155 @@ + + + + + photoPathSize + + + + + + + + + + + + + +
+ +
+
+
+ +

photoPathSize

+ +

Messages with animated stickers can have a compressed svg (< 300 bytes) to show the outline of the sticker before fetching the actual lottie animation.

+

+
photoPathSize#d8214d41 type:string bytes:bytes = PhotoSize;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typestringAlways j
bytesbytesCompressed SVG path payload, see here for decompression instructions
+

Type

+

PhotoSize

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/photoSize.html b/data/core.telegram.org/constructor/photoSize.html new file mode 100644 index 0000000000..f0a581c810 --- /dev/null +++ b/data/core.telegram.org/constructor/photoSize.html @@ -0,0 +1,172 @@ + + + + + photoSize + + + + + + + + + + + + + +
+ +
+
+
+ +

photoSize

+ +

Image description.

+

+
photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typestringThumbnail type
locationFileLocationFile location
wintImage width
hintImage height
sizeintFile size
+

Type

+

PhotoSize

+

Thumbnail type and its sizes

+

See here.

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/photoSizeEmpty.html b/data/core.telegram.org/constructor/photoSizeEmpty.html new file mode 100644 index 0000000000..b5b911a269 --- /dev/null +++ b/data/core.telegram.org/constructor/photoSizeEmpty.html @@ -0,0 +1,150 @@ + + + + + photoSizeEmpty + + + + + + + + + + + + + +
+ +
+
+
+ +

photoSizeEmpty

+ +

Empty constructor. Image with this thumbnail is unavailable.

+

+
photoSizeEmpty#e17e23c type:string = PhotoSize;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
typestringThumbnail type (see. photoSize)
+

Type

+

PhotoSize

+

Related pages

+

photoSize

+

Image description.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/photoSizeProgressive.html b/data/core.telegram.org/constructor/photoSizeProgressive.html new file mode 100644 index 0000000000..6e4fefb363 --- /dev/null +++ b/data/core.telegram.org/constructor/photoSizeProgressive.html @@ -0,0 +1,172 @@ + + + + + photoSizeProgressive + + + + + + + + + + + + + +
+ +
+
+
+ +

photoSizeProgressive

+ +

Progressively encoded photosize

+

+
photoSizeProgressive#5aa86a51 type:string location:FileLocation w:int h:int sizes:Vector<int> = PhotoSize;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typestringPhotosize type
locationFileLocationFile location
wintPhoto width
hintPhoto height
sizesVector<int>Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image.
+

Type

+

PhotoSize

+

Thumbnail type and its sizes

+

See here.

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/photoStrippedSize.html b/data/core.telegram.org/constructor/photoStrippedSize.html new file mode 100644 index 0000000000..c9cdb2218c --- /dev/null +++ b/data/core.telegram.org/constructor/photoStrippedSize.html @@ -0,0 +1,159 @@ + + + + + photoStrippedSize + + + + + + + + + + + + + +
+ +
+
+
+ +

photoStrippedSize

+ +

A low-resolution compressed JPG payload

+

+
photoStrippedSize#e0b0bc2e type:string bytes:bytes = PhotoSize;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typestringThumbnail type
bytesbytesThumbnail data, see here for more info on decompression »
+

Type

+

PhotoSize

+

Thumbnail type and its sizes

+

See the photoSize constructor.

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+

photoSize

+

Image description.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/photos.photo b/data/core.telegram.org/constructor/photos.photo new file mode 100644 index 0000000000..1c58ff2f7b --- /dev/null +++ b/data/core.telegram.org/constructor/photos.photo @@ -0,0 +1,152 @@ + + + + + photos.photo + + + + + + + + + + + + + +
+ +
+
+
+ +

photos.photo

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/photos.photos b/data/core.telegram.org/constructor/photos.photos new file mode 100644 index 0000000000..4ae25160ba --- /dev/null +++ b/data/core.telegram.org/constructor/photos.photos @@ -0,0 +1,152 @@ + + + + + photos.photos + + + + + + + + + + + + + +
+ +
+
+
+ +

photos.photos

+ +

Full list of photos with auxiliary data.

+

+
photos.photos#8dca6aa5 photos:Vector<Photo> users:Vector<User> = photos.Photos;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
photosVector<Photo>List of photos
usersVector<User>List of mentioned users
+

Type

+

photos.Photos

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/photos.photosSlice b/data/core.telegram.org/constructor/photos.photosSlice new file mode 100644 index 0000000000..cab6b753b1 --- /dev/null +++ b/data/core.telegram.org/constructor/photos.photosSlice @@ -0,0 +1,157 @@ + + + + + photos.photosSlice + + + + + + + + + + + + + +
+ +
+
+
+ +

photos.photosSlice

+ +

Incomplete list of photos with auxiliary data.

+

+
photos.photosSlice#15051f54 count:int photos:Vector<Photo> users:Vector<User> = photos.Photos;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countintTotal number of photos
photosVector<Photo>List of photos
usersVector<User>List of mentioned users
+

Type

+

photos.Photos

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/poll.html b/data/core.telegram.org/constructor/poll.html new file mode 100644 index 0000000000..1ab2df6b22 --- /dev/null +++ b/data/core.telegram.org/constructor/poll.html @@ -0,0 +1,195 @@ + + + + + poll + + + + + + + + + + + + + +
+ +
+
+
+ +

poll

+ +

Poll

+

+
poll#86e18161 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:string answers:Vector<PollAnswer> close_period:flags.4?int close_date:flags.5?int = Poll;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongID of the poll
flags#Flags, see TL conditional fields
closedflags.0?trueWhether the poll is closed and doesn't accept any more answers
public_votersflags.1?trueWhether cast votes are publicly visible to all users (non-anonymous poll)
multiple_choiceflags.2?trueWhether multiple options can be chosen as answer
quizflags.3?trueWhether this is a quiz (with wrong and correct answers, results shown in the return type)
questionstringThe question of the poll
answersVector<PollAnswer>The possible answers, vote using messages.sendVote.
close_periodflags.4?intAmount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date.
close_dateflags.5?intPoint in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future; can't be used together with close_period.
+

Type

+

Poll

+

Related pages

+

messages.sendVote

+

Vote in a poll

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pollAnswer.html b/data/core.telegram.org/constructor/pollAnswer.html new file mode 100644 index 0000000000..4ecd48ca73 --- /dev/null +++ b/data/core.telegram.org/constructor/pollAnswer.html @@ -0,0 +1,155 @@ + + + + + pollAnswer + + + + + + + + + + + + + +
+ +
+
+
+ +

pollAnswer

+ +

A possible answer of a poll

+

+
pollAnswer#6ca9c2e9 text:string option:bytes = PollAnswer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textstringTextual representation of the answer
optionbytesThe param that has to be passed to messages.sendVote.
+

Type

+

PollAnswer

+

Related pages

+

messages.sendVote

+

Vote in a poll

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pollAnswerVoters.html b/data/core.telegram.org/constructor/pollAnswerVoters.html new file mode 100644 index 0000000000..403fe8f686 --- /dev/null +++ b/data/core.telegram.org/constructor/pollAnswerVoters.html @@ -0,0 +1,170 @@ + + + + + pollAnswerVoters + + + + + + + + + + + + + +
+ +
+
+
+ +

pollAnswerVoters

+ +

A poll answer, and how users voted on it

+

+
pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
chosenflags.0?trueWhether we have chosen this answer
correctflags.1?trueFor quizes, whether the option we have chosen is correct
optionbytesThe param that has to be passed to messages.sendVote.
votersintHow many users voted for this option
+

Type

+

PollAnswerVoters

+

Related pages

+

messages.sendVote

+

Vote in a poll

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/pollResults.html b/data/core.telegram.org/constructor/pollResults.html new file mode 100644 index 0000000000..f65e55a4f3 --- /dev/null +++ b/data/core.telegram.org/constructor/pollResults.html @@ -0,0 +1,184 @@ + + + + + pollResults + + + + + + + + + + + + + +
+ +
+
+
+ +

pollResults

+ +

Results of poll

+

+
pollResults#badcc1a3 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<int> solution:flags.4?string solution_entities:flags.4?Vector<MessageEntity> = PollResults;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
minflags.0?trueSimilar to min objects, used for poll constructors that are the same for all users so they don't have option chosen by the current user (you can use messages.getPollResults to get the full poll results).
resultsflags.1?Vector<PollAnswerVoters>Poll results
total_votersflags.2?intTotal number of people that voted in the poll
recent_votersflags.3?Vector<int>IDs of the last users that recently voted in the poll
solutionflags.4?stringExplanation of quiz solution
solution_entitiesflags.4?Vector<MessageEntity>Message entities for styled text in quiz solution
+

Type

+

PollResults

+

Related pages

+

Min constructors

+

In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.

+

messages.getPollResults

+

Get poll results

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/popularContact.html b/data/core.telegram.org/constructor/popularContact.html new file mode 100644 index 0000000000..2b11ac1af4 --- /dev/null +++ b/data/core.telegram.org/constructor/popularContact.html @@ -0,0 +1,152 @@ + + + + + popularContact + + + + + + + + + + + + + +
+ +
+
+
+ +

popularContact

+ +

Popular contact

+

+
popularContact#5ce14175 client_id:long importers:int = PopularContact;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
client_idlongContact identifier
importersintHow many people imported this contact
+

Type

+

PopularContact

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/postAddress.html b/data/core.telegram.org/constructor/postAddress.html new file mode 100644 index 0000000000..ef865ba13d --- /dev/null +++ b/data/core.telegram.org/constructor/postAddress.html @@ -0,0 +1,172 @@ + + + + + postAddress + + + + + + + + + + + + + +
+ +
+
+
+ +

postAddress

+ +

Shipping address

+

+
postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
street_line1stringFirst line for the address
street_line2stringSecond line for the address
citystringCity
statestringState, if applicable (empty otherwise)
country_iso2stringISO 3166-1 alpha-2 country code
post_codestringAddress post code
+

Type

+

PostAddress

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyKeyAddedByPhone.html b/data/core.telegram.org/constructor/privacyKeyAddedByPhone.html new file mode 100644 index 0000000000..a856fb6740 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyKeyAddedByPhone.html @@ -0,0 +1,132 @@ + + + + + privacyKeyAddedByPhone + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyKeyAddedByPhone

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyKeyChatInvite.html b/data/core.telegram.org/constructor/privacyKeyChatInvite.html new file mode 100644 index 0000000000..c727e9bb63 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyKeyChatInvite.html @@ -0,0 +1,132 @@ + + + + + privacyKeyChatInvite + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyKeyForwards.html b/data/core.telegram.org/constructor/privacyKeyForwards.html new file mode 100644 index 0000000000..be8641d55f --- /dev/null +++ b/data/core.telegram.org/constructor/privacyKeyForwards.html @@ -0,0 +1,132 @@ + + + + + privacyKeyForwards + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyKeyForwards

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyKeyPhoneCall.html b/data/core.telegram.org/constructor/privacyKeyPhoneCall.html new file mode 100644 index 0000000000..9400641de5 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyKeyPhoneCall.html @@ -0,0 +1,132 @@ + + + + + privacyKeyPhoneCall + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyKeyPhoneNumber.html b/data/core.telegram.org/constructor/privacyKeyPhoneNumber.html new file mode 100644 index 0000000000..45df27cc77 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyKeyPhoneNumber.html @@ -0,0 +1,132 @@ + + + + + privacyKeyPhoneNumber + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyKeyPhoneP2P.html b/data/core.telegram.org/constructor/privacyKeyPhoneP2P.html new file mode 100644 index 0000000000..2c5c7c671c --- /dev/null +++ b/data/core.telegram.org/constructor/privacyKeyPhoneP2P.html @@ -0,0 +1,132 @@ + + + + + privacyKeyPhoneP2P + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyKeyProfilePhoto.html b/data/core.telegram.org/constructor/privacyKeyProfilePhoto.html new file mode 100644 index 0000000000..55b3ad5e75 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyKeyProfilePhoto.html @@ -0,0 +1,132 @@ + + + + + privacyKeyProfilePhoto + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyKeyStatusTimestamp.html b/data/core.telegram.org/constructor/privacyKeyStatusTimestamp.html new file mode 100644 index 0000000000..5acf4034b1 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyKeyStatusTimestamp.html @@ -0,0 +1,132 @@ + + + + + privacyKeyStatusTimestamp + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyValueAllowAll.html b/data/core.telegram.org/constructor/privacyValueAllowAll.html new file mode 100644 index 0000000000..2519224637 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyValueAllowAll.html @@ -0,0 +1,132 @@ + + + + + privacyValueAllowAll + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyValueAllowChatParticipants.html b/data/core.telegram.org/constructor/privacyValueAllowChatParticipants.html new file mode 100644 index 0000000000..4445ec5a04 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyValueAllowChatParticipants.html @@ -0,0 +1,147 @@ + + + + + privacyValueAllowChatParticipants + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueAllowChatParticipants

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyValueAllowContacts.html b/data/core.telegram.org/constructor/privacyValueAllowContacts.html new file mode 100644 index 0000000000..f8f9d65754 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyValueAllowContacts.html @@ -0,0 +1,132 @@ + + + + + privacyValueAllowContacts + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyValueAllowUsers.html b/data/core.telegram.org/constructor/privacyValueAllowUsers.html new file mode 100644 index 0000000000..1693133a03 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyValueAllowUsers.html @@ -0,0 +1,147 @@ + + + + + privacyValueAllowUsers + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueAllowUsers

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyValueDisallowAll.html b/data/core.telegram.org/constructor/privacyValueDisallowAll.html new file mode 100644 index 0000000000..34c612d7a8 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyValueDisallowAll.html @@ -0,0 +1,132 @@ + + + + + privacyValueDisallowAll + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyValueDisallowChatParticipants.html b/data/core.telegram.org/constructor/privacyValueDisallowChatParticipants.html new file mode 100644 index 0000000000..b9275a1a74 --- /dev/null +++ b/data/core.telegram.org/constructor/privacyValueDisallowChatParticipants.html @@ -0,0 +1,147 @@ + + + + + privacyValueDisallowChatParticipants + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueDisallowChatParticipants

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyValueDisallowContacts.html b/data/core.telegram.org/constructor/privacyValueDisallowContacts.html new file mode 100644 index 0000000000..4413899dff --- /dev/null +++ b/data/core.telegram.org/constructor/privacyValueDisallowContacts.html @@ -0,0 +1,132 @@ + + + + + privacyValueDisallowContacts + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/privacyValueDisallowUsers.html b/data/core.telegram.org/constructor/privacyValueDisallowUsers.html new file mode 100644 index 0000000000..99d3910cac --- /dev/null +++ b/data/core.telegram.org/constructor/privacyValueDisallowUsers.html @@ -0,0 +1,147 @@ + + + + + privacyValueDisallowUsers + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueDisallowUsers

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/receivedNotifyMessage.html b/data/core.telegram.org/constructor/receivedNotifyMessage.html new file mode 100644 index 0000000000..5de11fa8f5 --- /dev/null +++ b/data/core.telegram.org/constructor/receivedNotifyMessage.html @@ -0,0 +1,152 @@ + + + + + receivedNotifyMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

receivedNotifyMessage

+ +

Message ID, for which PUSH-notifications were cancelled.

+

+
receivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintMessage ID, for which PUSH-notifications were canceled
flagsintReserved for future use
+

Type

+

ReceivedNotifyMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/recentMeUrlChat.html b/data/core.telegram.org/constructor/recentMeUrlChat.html new file mode 100644 index 0000000000..e49954a84c --- /dev/null +++ b/data/core.telegram.org/constructor/recentMeUrlChat.html @@ -0,0 +1,152 @@ + + + + + recentMeUrlChat + + + + + + + + + + + + + +
+ +
+
+
+ +

recentMeUrlChat

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/recentMeUrlChatInvite.html b/data/core.telegram.org/constructor/recentMeUrlChatInvite.html new file mode 100644 index 0000000000..5be8115fb8 --- /dev/null +++ b/data/core.telegram.org/constructor/recentMeUrlChatInvite.html @@ -0,0 +1,152 @@ + + + + + recentMeUrlChatInvite + + + + + + + + + + + + + +
+ +
+
+
+ +

recentMeUrlChatInvite

+ +

Recent t.me invite link to a chat

+

+
recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringt.me URL
chat_inviteChatInviteChat invitation
+

Type

+

RecentMeUrl

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/recentMeUrlStickerSet.html b/data/core.telegram.org/constructor/recentMeUrlStickerSet.html new file mode 100644 index 0000000000..c99cc11f0c --- /dev/null +++ b/data/core.telegram.org/constructor/recentMeUrlStickerSet.html @@ -0,0 +1,152 @@ + + + + + recentMeUrlStickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

recentMeUrlStickerSet

+ +

Recent t.me stickerset installation URL

+

+
recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringt.me URL
setStickerSetCoveredStickerset
+

Type

+

RecentMeUrl

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/recentMeUrlUnknown.html b/data/core.telegram.org/constructor/recentMeUrlUnknown.html new file mode 100644 index 0000000000..858df884b4 --- /dev/null +++ b/data/core.telegram.org/constructor/recentMeUrlUnknown.html @@ -0,0 +1,147 @@ + + + + + recentMeUrlUnknown + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/recentMeUrlUser.html b/data/core.telegram.org/constructor/recentMeUrlUser.html new file mode 100644 index 0000000000..2a956e9e92 --- /dev/null +++ b/data/core.telegram.org/constructor/recentMeUrlUser.html @@ -0,0 +1,152 @@ + + + + + recentMeUrlUser + + + + + + + + + + + + + +
+ +
+
+
+ +

recentMeUrlUser

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/replyInlineMarkup.html b/data/core.telegram.org/constructor/replyInlineMarkup.html new file mode 100644 index 0000000000..8d3491bfd2 --- /dev/null +++ b/data/core.telegram.org/constructor/replyInlineMarkup.html @@ -0,0 +1,147 @@ + + + + + replyInlineMarkup + + + + + + + + + + + + + +
+ +
+
+
+ +

replyInlineMarkup

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/replyKeyboardForceReply.html b/data/core.telegram.org/constructor/replyKeyboardForceReply.html new file mode 100644 index 0000000000..e56a81b0d7 --- /dev/null +++ b/data/core.telegram.org/constructor/replyKeyboardForceReply.html @@ -0,0 +1,157 @@ + + + + + replyKeyboardForceReply + + + + + + + + + + + + + +
+ +
+
+
+ +

replyKeyboardForceReply

+ +

Force the user to send a reply

+

+
replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
single_useflags.1?trueRequests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again.
selectiveflags.2?trueUse this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
Example: A user requests to change the bot‘s language, bot replies to the request with a keyboard to select the new language. Other users in the group don’t see the keyboard.
+

Type

+

ReplyMarkup

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/replyKeyboardHide.html b/data/core.telegram.org/constructor/replyKeyboardHide.html new file mode 100644 index 0000000000..d9d8fae180 --- /dev/null +++ b/data/core.telegram.org/constructor/replyKeyboardHide.html @@ -0,0 +1,152 @@ + + + + + replyKeyboardHide + + + + + + + + + + + + + +
+ +
+
+
+ +

replyKeyboardHide

+ +

Hide sent bot keyboard

+

+
replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
selectiveflags.2?trueUse this flag if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.

Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet
+

Type

+

ReplyMarkup

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/replyKeyboardMarkup.html b/data/core.telegram.org/constructor/replyKeyboardMarkup.html new file mode 100644 index 0000000000..0a54061141 --- /dev/null +++ b/data/core.telegram.org/constructor/replyKeyboardMarkup.html @@ -0,0 +1,167 @@ + + + + + replyKeyboardMarkup + + + + + + + + + + + + + +
+ +
+
+
+ +

replyKeyboardMarkup

+ +

Bot keyboard

+

+
replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector<KeyboardButtonRow> = ReplyMarkup;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
resizeflags.0?trueRequests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). If not set, the custom keyboard is always of the same height as the app's standard keyboard.
single_useflags.1?trueRequests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again.
selectiveflags.2?trueUse this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.

Example: A user requests to change the bot‘s language, bot replies to the request with a keyboard to select the new language. Other users in the group don’t see the keyboard.
rowsVector<KeyboardButtonRow>Button row
+

Type

+

ReplyMarkup

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/restrictionReason.html b/data/core.telegram.org/constructor/restrictionReason.html new file mode 100644 index 0000000000..f10a81ba73 --- /dev/null +++ b/data/core.telegram.org/constructor/restrictionReason.html @@ -0,0 +1,158 @@ + + + + + restrictionReason + + + + + + + + + + + + + +
+ +
+
+
+ +

restrictionReason

+ +

Restriction reason.

+

Contains the reason why access to a certain object must be restricted. Clients are supposed to deny access to the channel if the platform field is equal to all or to the current platform (ios, android, wp, etc.). Platforms can be concatenated (ios-android, ios-wp), unknown platforms are to be ignored. The text is the error message that should be shown to the user.

+

+
restrictionReason#d072acb4 platform:string reason:string text:string = RestrictionReason;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
platformstringPlatform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc)
reasonstringRestriction reason (porno, terms, etc.)
textstringError message to be shown to the user
+

Type

+

RestrictionReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/savedPhoneContact.html b/data/core.telegram.org/constructor/savedPhoneContact.html new file mode 100644 index 0000000000..24432b64aa --- /dev/null +++ b/data/core.telegram.org/constructor/savedPhoneContact.html @@ -0,0 +1,162 @@ + + + + + savedPhoneContact + + + + + + + + + + + + + +
+ +
+
+
+ +

savedPhoneContact

+ +

Saved contact

+

+
savedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phonestringPhone number
first_namestringFirst name
last_namestringLast name
dateintDate added
+

Type

+

SavedContact

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureCredentialsEncrypted.html b/data/core.telegram.org/constructor/secureCredentialsEncrypted.html new file mode 100644 index 0000000000..9b264835d3 --- /dev/null +++ b/data/core.telegram.org/constructor/secureCredentialsEncrypted.html @@ -0,0 +1,159 @@ + + + + + secureCredentialsEncrypted + + + + + + + + + + + + + +
+ +
+
+
+ +

secureCredentialsEncrypted

+ +

Encrypted credentials required to decrypt telegram passport data.

+

+
secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
databytesEncrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication, as described in decrypting data »
hashbytesData hash for data authentication as described in decrypting data »
secretbytesSecret, encrypted with the bot's public RSA key, required for data decryption as described in decrypting data »
+

Type

+

SecureCredentialsEncrypted

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureData.html b/data/core.telegram.org/constructor/secureData.html new file mode 100644 index 0000000000..b6348caf11 --- /dev/null +++ b/data/core.telegram.org/constructor/secureData.html @@ -0,0 +1,160 @@ + + + + + secureData + + + + + + + + + + + + + +
+ +
+
+
+ +

secureData

+ +

Secure passport data, for more info see the passport docs »

+

+
secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
databytesData
data_hashbytesData hash
secretbytesSecret
+

Type

+

SecureData

+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureFile.html b/data/core.telegram.org/constructor/secureFile.html new file mode 100644 index 0000000000..e4fe25fde3 --- /dev/null +++ b/data/core.telegram.org/constructor/secureFile.html @@ -0,0 +1,180 @@ + + + + + secureFile + + + + + + + + + + + + + +
+ +
+
+
+ +

secureFile

+ +

Secure passport file, for more info see the passport docs »

+

+
secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongID
access_hashlongAccess hash
sizeintFile size
dc_idintDC ID
dateintDate of upload
file_hashbytesFile hash
secretbytesSecret
+

Type

+

SecureFile

+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureFileEmpty.html b/data/core.telegram.org/constructor/secureFileEmpty.html new file mode 100644 index 0000000000..f4bd72ea3f --- /dev/null +++ b/data/core.telegram.org/constructor/secureFileEmpty.html @@ -0,0 +1,132 @@ + + + + + secureFileEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.html b/data/core.telegram.org/constructor/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.html new file mode 100644 index 0000000000..3f84cb75e7 --- /dev/null +++ b/data/core.telegram.org/constructor/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.html @@ -0,0 +1,147 @@ + + + + + securePasswordKdfAlgoPBKDF2HMACSHA512iter100000 + + + + + + + + + + + + + +
+ +
+
+
+ +

securePasswordKdfAlgoPBKDF2HMACSHA512iter100000

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/securePasswordKdfAlgoSHA512.html b/data/core.telegram.org/constructor/securePasswordKdfAlgoSHA512.html new file mode 100644 index 0000000000..1f006522f3 --- /dev/null +++ b/data/core.telegram.org/constructor/securePasswordKdfAlgoSHA512.html @@ -0,0 +1,147 @@ + + + + + securePasswordKdfAlgoSHA512 + + + + + + + + + + + + + +
+ +
+
+
+ +

securePasswordKdfAlgoSHA512

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/securePasswordKdfAlgoUnknown.html b/data/core.telegram.org/constructor/securePasswordKdfAlgoUnknown.html new file mode 100644 index 0000000000..8dec999284 --- /dev/null +++ b/data/core.telegram.org/constructor/securePasswordKdfAlgoUnknown.html @@ -0,0 +1,132 @@ + + + + + securePasswordKdfAlgoUnknown + + + + + + + + + + + + + +
+ +
+
+
+ +

securePasswordKdfAlgoUnknown

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/securePlainEmail.html b/data/core.telegram.org/constructor/securePlainEmail.html new file mode 100644 index 0000000000..d90616c39a --- /dev/null +++ b/data/core.telegram.org/constructor/securePlainEmail.html @@ -0,0 +1,150 @@ + + + + + securePlainEmail + + + + + + + + + + + + + +
+ +
+
+
+ +

securePlainEmail

+ +

Email address to use in telegram passport: it must be verified, first ».

+

+
securePlainEmail#21ec5a5f email:string = SecurePlainData;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
emailstringEmail address
+

Type

+

SecurePlainData

+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/securePlainPhone.html b/data/core.telegram.org/constructor/securePlainPhone.html new file mode 100644 index 0000000000..e050daa6fd --- /dev/null +++ b/data/core.telegram.org/constructor/securePlainPhone.html @@ -0,0 +1,150 @@ + + + + + securePlainPhone + + + + + + + + + + + + + +
+ +
+
+
+ +

securePlainPhone

+ +

Phone number to use in telegram passport: it must be verified, first ».

+

+
securePlainPhone#7d6099dd phone:string = SecurePlainData;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
phonestringPhone number
+

Type

+

SecurePlainData

+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureRequiredType.html b/data/core.telegram.org/constructor/secureRequiredType.html new file mode 100644 index 0000000000..80bdb04db2 --- /dev/null +++ b/data/core.telegram.org/constructor/secureRequiredType.html @@ -0,0 +1,167 @@ + + + + + secureRequiredType + + + + + + + + + + + + + +
+ +
+
+
+ +

secureRequiredType

+ +

Required type

+

+
secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
native_namesflags.0?trueNative names
selfie_requiredflags.1?trueIs a selfie required
translation_requiredflags.2?trueIs a translation required
typeSecureValueTypeSecure value type
+

Type

+

SecureRequiredType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureRequiredTypeOneOf.html b/data/core.telegram.org/constructor/secureRequiredTypeOneOf.html new file mode 100644 index 0000000000..6a511b31a0 --- /dev/null +++ b/data/core.telegram.org/constructor/secureRequiredTypeOneOf.html @@ -0,0 +1,147 @@ + + + + + secureRequiredTypeOneOf + + + + + + + + + + + + + +
+ +
+
+
+ +

secureRequiredTypeOneOf

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureSecretSettings.html b/data/core.telegram.org/constructor/secureSecretSettings.html new file mode 100644 index 0000000000..078823b72f --- /dev/null +++ b/data/core.telegram.org/constructor/secureSecretSettings.html @@ -0,0 +1,157 @@ + + + + + secureSecretSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

secureSecretSettings

+ +

Secure settings

+

+
secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
secure_algoSecurePasswordKdfAlgoSecure KDF algo
secure_secretbytesSecure secret
secure_secret_idlongSecret ID
+

Type

+

SecureSecretSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValue.html b/data/core.telegram.org/constructor/secureValue.html new file mode 100644 index 0000000000..6f4d4eaf4d --- /dev/null +++ b/data/core.telegram.org/constructor/secureValue.html @@ -0,0 +1,194 @@ + + + + + secureValue + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValue

+ +

Secure value

+

+
secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector<SecureFile> files:flags.4?Vector<SecureFile> plain_data:flags.5?SecurePlainData hash:bytes = SecureValue;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
typeSecureValueTypeSecure passport value type
dataflags.0?SecureDataEncrypted Telegram Passport element data
front_sideflags.1?SecureFileEncrypted passport file with the front side of the document
reverse_sideflags.2?SecureFileEncrypted passport file with the reverse side of the document
selfieflags.3?SecureFileEncrypted passport file with a selfie of the user holding the document
translationflags.6?Vector<SecureFile>Array of encrypted passport files with translated versions of the provided documents
filesflags.4?Vector<SecureFile>Array of encrypted passport files with photos the of the documents
plain_dataflags.5?SecurePlainDataPlaintext verified passport data
hashbytesData hash
+

Type

+

SecureValue

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueError.html b/data/core.telegram.org/constructor/secureValueError.html new file mode 100644 index 0000000000..06b2d4e891 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueError.html @@ -0,0 +1,157 @@ + + + + + secureValueError + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueError

+ +

Secure value error

+

+
secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typeSecureValueTypeType of element which has the issue
hashbytesHash
textstringError message
+

Type

+

SecureValueError

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueErrorData.html b/data/core.telegram.org/constructor/secureValueErrorData.html new file mode 100644 index 0000000000..3ca6cd4601 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueErrorData.html @@ -0,0 +1,175 @@ + + + + + secureValueErrorData + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueErrorData

+ +

Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.

+

+
secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typeSecureValueTypeThe section of the user's Telegram Passport which has the error, one of secureValueTypePersonalDetails, secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport, secureValueTypeAddress
data_hashbytesData hash
fieldstringName of the data field which has the error
textstringError message
+

Type

+

SecureValueError

+

Related pages

+

secureValueTypePersonalDetails

+

Personal details

+

secureValueTypePassport

+

Passport

+

secureValueTypeDriverLicense

+

Driver's license

+

secureValueTypeIdentityCard

+

Identity card

+

secureValueTypeInternalPassport

+

Internal passport

+

secureValueTypeAddress

+

Address

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueErrorFile.html b/data/core.telegram.org/constructor/secureValueErrorFile.html new file mode 100644 index 0000000000..84a251349c --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueErrorFile.html @@ -0,0 +1,168 @@ + + + + + secureValueErrorFile + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueErrorFile

+ +

Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.

+

+
secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typeSecureValueTypeOne of secureValueTypeUtilityBill, secureValueTypeBankStatement, secureValueTypeRentalAgreement, secureValueTypePassportRegistration, secureValueTypeTemporaryRegistration
file_hashbytesFile hash
textstringError message
+

Type

+

SecureValueError

+

Related pages

+

secureValueTypeUtilityBill

+

Utility bill

+

secureValueTypeBankStatement

+

Bank statement

+

secureValueTypeRentalAgreement

+

Rental agreement

+

secureValueTypePassportRegistration

+

Internal registration passport

+

secureValueTypeTemporaryRegistration

+

Temporary registration

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueErrorFiles.html b/data/core.telegram.org/constructor/secureValueErrorFiles.html new file mode 100644 index 0000000000..6f7bf63ab4 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueErrorFiles.html @@ -0,0 +1,168 @@ + + + + + secureValueErrorFiles + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueErrorFiles

+ +

Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.

+

+
secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector<bytes> text:string = SecureValueError;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typeSecureValueTypeOne of secureValueTypeUtilityBill, secureValueTypeBankStatement, secureValueTypeRentalAgreement, secureValueTypePassportRegistration, secureValueTypeTemporaryRegistration
file_hashVector<bytes>File hash
textstringError message
+

Type

+

SecureValueError

+

Related pages

+

secureValueTypeUtilityBill

+

Utility bill

+

secureValueTypeBankStatement

+

Bank statement

+

secureValueTypeRentalAgreement

+

Rental agreement

+

secureValueTypePassportRegistration

+

Internal registration passport

+

secureValueTypeTemporaryRegistration

+

Temporary registration

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueErrorFrontSide.html b/data/core.telegram.org/constructor/secureValueErrorFrontSide.html new file mode 100644 index 0000000000..f7b2dd7889 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueErrorFrontSide.html @@ -0,0 +1,166 @@ + + + + + secureValueErrorFrontSide + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueErrorFrontSide

+ +

Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.

+

+
secureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typeSecureValueTypeOne of secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport
file_hashbytesFile hash
textstringError message
+

Type

+

SecureValueError

+

Related pages

+

secureValueTypePassport

+

Passport

+

secureValueTypeDriverLicense

+

Driver's license

+

secureValueTypeIdentityCard

+

Identity card

+

secureValueTypeInternalPassport

+

Internal passport

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueErrorReverseSide.html b/data/core.telegram.org/constructor/secureValueErrorReverseSide.html new file mode 100644 index 0000000000..4c1c149eae --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueErrorReverseSide.html @@ -0,0 +1,162 @@ + + + + + secureValueErrorReverseSide + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueErrorReverseSide

+ +

Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.

+

+
secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typeSecureValueTypeOne of secureValueTypeDriverLicense, secureValueTypeIdentityCard
file_hashbytesFile hash
textstringError message
+

Type

+

SecureValueError

+

Related pages

+

secureValueTypeDriverLicense

+

Driver's license

+

secureValueTypeIdentityCard

+

Identity card

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueErrorSelfie.html b/data/core.telegram.org/constructor/secureValueErrorSelfie.html new file mode 100644 index 0000000000..7d359d5a0d --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueErrorSelfie.html @@ -0,0 +1,166 @@ + + + + + secureValueErrorSelfie + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueErrorSelfie

+ +

Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.

+

+
secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typeSecureValueTypeOne of secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport
file_hashbytesFile hash
textstringError message
+

Type

+

SecureValueError

+

Related pages

+

secureValueTypePassport

+

Passport

+

secureValueTypeDriverLicense

+

Driver's license

+

secureValueTypeIdentityCard

+

Identity card

+

secureValueTypeInternalPassport

+

Internal passport

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueErrorTranslationFile.html b/data/core.telegram.org/constructor/secureValueErrorTranslationFile.html new file mode 100644 index 0000000000..c022023ad2 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueErrorTranslationFile.html @@ -0,0 +1,178 @@ + + + + + secureValueErrorTranslationFile + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueErrorTranslationFile

+ +

Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.

+

+
secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typeSecureValueTypeOne of secureValueTypePersonalDetails, secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport, secureValueTypeUtilityBill, secureValueTypeBankStatement, secureValueTypeRentalAgreement, secureValueTypePassportRegistration, secureValueTypeTemporaryRegistration
file_hashbytesFile hash
textstringError message
+

Type

+

SecureValueError

+

Related pages

+

secureValueTypePersonalDetails

+

Personal details

+

secureValueTypePassport

+

Passport

+

secureValueTypeDriverLicense

+

Driver's license

+

secureValueTypeIdentityCard

+

Identity card

+

secureValueTypeInternalPassport

+

Internal passport

+

secureValueTypeUtilityBill

+

Utility bill

+

secureValueTypeBankStatement

+

Bank statement

+

secureValueTypeRentalAgreement

+

Rental agreement

+

secureValueTypePassportRegistration

+

Internal registration passport

+

secureValueTypeTemporaryRegistration

+

Temporary registration

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueErrorTranslationFiles.html b/data/core.telegram.org/constructor/secureValueErrorTranslationFiles.html new file mode 100644 index 0000000000..1c817d5ebd --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueErrorTranslationFiles.html @@ -0,0 +1,178 @@ + + + + + secureValueErrorTranslationFiles + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueErrorTranslationFiles

+ +

Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation changes.

+

+
secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector<bytes> text:string = SecureValueError;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typeSecureValueTypeOne of secureValueTypePersonalDetails, secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport, secureValueTypeUtilityBill, secureValueTypeBankStatement, secureValueTypeRentalAgreement, secureValueTypePassportRegistration, secureValueTypeTemporaryRegistration
file_hashVector<bytes>Hash
textstringError message
+

Type

+

SecureValueError

+

Related pages

+

secureValueTypePersonalDetails

+

Personal details

+

secureValueTypePassport

+

Passport

+

secureValueTypeDriverLicense

+

Driver's license

+

secureValueTypeIdentityCard

+

Identity card

+

secureValueTypeInternalPassport

+

Internal passport

+

secureValueTypeUtilityBill

+

Utility bill

+

secureValueTypeBankStatement

+

Bank statement

+

secureValueTypeRentalAgreement

+

Rental agreement

+

secureValueTypePassportRegistration

+

Internal registration passport

+

secureValueTypeTemporaryRegistration

+

Temporary registration

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueHash.html b/data/core.telegram.org/constructor/secureValueHash.html new file mode 100644 index 0000000000..0aac3cbd15 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueHash.html @@ -0,0 +1,152 @@ + + + + + secureValueHash + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueHash

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypeAddress.html b/data/core.telegram.org/constructor/secureValueTypeAddress.html new file mode 100644 index 0000000000..b31a85db46 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypeAddress.html @@ -0,0 +1,132 @@ + + + + + secureValueTypeAddress + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypeBankStatement.html b/data/core.telegram.org/constructor/secureValueTypeBankStatement.html new file mode 100644 index 0000000000..69f1e69fe4 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypeBankStatement.html @@ -0,0 +1,132 @@ + + + + + secureValueTypeBankStatement + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypeDriverLicense.html b/data/core.telegram.org/constructor/secureValueTypeDriverLicense.html new file mode 100644 index 0000000000..4bacb3a060 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypeDriverLicense.html @@ -0,0 +1,132 @@ + + + + + secureValueTypeDriverLicense + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypeEmail.html b/data/core.telegram.org/constructor/secureValueTypeEmail.html new file mode 100644 index 0000000000..c191a46878 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypeEmail.html @@ -0,0 +1,132 @@ + + + + + secureValueTypeEmail + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypeIdentityCard.html b/data/core.telegram.org/constructor/secureValueTypeIdentityCard.html new file mode 100644 index 0000000000..551e975046 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypeIdentityCard.html @@ -0,0 +1,132 @@ + + + + + secureValueTypeIdentityCard + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypeInternalPassport.html b/data/core.telegram.org/constructor/secureValueTypeInternalPassport.html new file mode 100644 index 0000000000..60b6e0706e --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypeInternalPassport.html @@ -0,0 +1,134 @@ + + + + + secureValueTypeInternalPassport + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypeInternalPassport

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypePassport.html b/data/core.telegram.org/constructor/secureValueTypePassport.html new file mode 100644 index 0000000000..5b81ca1af1 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypePassport.html @@ -0,0 +1,132 @@ + + + + + secureValueTypePassport + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypePassportRegistration.html b/data/core.telegram.org/constructor/secureValueTypePassportRegistration.html new file mode 100644 index 0000000000..ce79aafd3b --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypePassportRegistration.html @@ -0,0 +1,134 @@ + + + + + secureValueTypePassportRegistration + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypePassportRegistration

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypePersonalDetails.html b/data/core.telegram.org/constructor/secureValueTypePersonalDetails.html new file mode 100644 index 0000000000..5992af1e29 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypePersonalDetails.html @@ -0,0 +1,132 @@ + + + + + secureValueTypePersonalDetails + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypePhone.html b/data/core.telegram.org/constructor/secureValueTypePhone.html new file mode 100644 index 0000000000..8592b4e0d9 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypePhone.html @@ -0,0 +1,132 @@ + + + + + secureValueTypePhone + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypeRentalAgreement.html b/data/core.telegram.org/constructor/secureValueTypeRentalAgreement.html new file mode 100644 index 0000000000..e3bf002518 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypeRentalAgreement.html @@ -0,0 +1,132 @@ + + + + + secureValueTypeRentalAgreement + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypeTemporaryRegistration.html b/data/core.telegram.org/constructor/secureValueTypeTemporaryRegistration.html new file mode 100644 index 0000000000..1cbaf54183 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypeTemporaryRegistration.html @@ -0,0 +1,132 @@ + + + + + secureValueTypeTemporaryRegistration + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypeTemporaryRegistration

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/secureValueTypeUtilityBill.html b/data/core.telegram.org/constructor/secureValueTypeUtilityBill.html new file mode 100644 index 0000000000..b67f552164 --- /dev/null +++ b/data/core.telegram.org/constructor/secureValueTypeUtilityBill.html @@ -0,0 +1,132 @@ + + + + + secureValueTypeUtilityBill + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageCancelAction.html b/data/core.telegram.org/constructor/sendMessageCancelAction.html new file mode 100644 index 0000000000..a894626046 --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageCancelAction.html @@ -0,0 +1,132 @@ + + + + + sendMessageCancelAction + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageCancelAction

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageChooseContactAction.html b/data/core.telegram.org/constructor/sendMessageChooseContactAction.html new file mode 100644 index 0000000000..99d4547b01 --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageChooseContactAction.html @@ -0,0 +1,132 @@ + + + + + sendMessageChooseContactAction + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageChooseContactAction

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageGamePlayAction.html b/data/core.telegram.org/constructor/sendMessageGamePlayAction.html new file mode 100644 index 0000000000..fe4d61e011 --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageGamePlayAction.html @@ -0,0 +1,132 @@ + + + + + sendMessageGamePlayAction + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageGeoLocationAction.html b/data/core.telegram.org/constructor/sendMessageGeoLocationAction.html new file mode 100644 index 0000000000..6d7f77e83e --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageGeoLocationAction.html @@ -0,0 +1,132 @@ + + + + + sendMessageGeoLocationAction + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageGeoLocationAction

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageRecordAudioAction.html b/data/core.telegram.org/constructor/sendMessageRecordAudioAction.html new file mode 100644 index 0000000000..0686f70693 --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageRecordAudioAction.html @@ -0,0 +1,132 @@ + + + + + sendMessageRecordAudioAction + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageRecordAudioAction

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageRecordRoundAction.html b/data/core.telegram.org/constructor/sendMessageRecordRoundAction.html new file mode 100644 index 0000000000..cc113b171e --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageRecordRoundAction.html @@ -0,0 +1,132 @@ + + + + + sendMessageRecordRoundAction + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageRecordRoundAction

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageRecordVideoAction.html b/data/core.telegram.org/constructor/sendMessageRecordVideoAction.html new file mode 100644 index 0000000000..ca8bfc0983 --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageRecordVideoAction.html @@ -0,0 +1,132 @@ + + + + + sendMessageRecordVideoAction + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageRecordVideoAction

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageTypingAction.html b/data/core.telegram.org/constructor/sendMessageTypingAction.html new file mode 100644 index 0000000000..e9c652edcf --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageTypingAction.html @@ -0,0 +1,132 @@ + + + + + sendMessageTypingAction + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageUploadAudioAction.html b/data/core.telegram.org/constructor/sendMessageUploadAudioAction.html new file mode 100644 index 0000000000..935694469c --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageUploadAudioAction.html @@ -0,0 +1,147 @@ + + + + + sendMessageUploadAudioAction + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageUploadAudioAction

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageUploadDocumentAction.html b/data/core.telegram.org/constructor/sendMessageUploadDocumentAction.html new file mode 100644 index 0000000000..0ed8dbad29 --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageUploadDocumentAction.html @@ -0,0 +1,147 @@ + + + + + sendMessageUploadDocumentAction + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageUploadDocumentAction

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageUploadPhotoAction.html b/data/core.telegram.org/constructor/sendMessageUploadPhotoAction.html new file mode 100644 index 0000000000..d0e071d26d --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageUploadPhotoAction.html @@ -0,0 +1,147 @@ + + + + + sendMessageUploadPhotoAction + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageUploadPhotoAction

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageUploadRoundAction.html b/data/core.telegram.org/constructor/sendMessageUploadRoundAction.html new file mode 100644 index 0000000000..cb00b21b6f --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageUploadRoundAction.html @@ -0,0 +1,147 @@ + + + + + sendMessageUploadRoundAction + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageUploadRoundAction

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/sendMessageUploadVideoAction.html b/data/core.telegram.org/constructor/sendMessageUploadVideoAction.html new file mode 100644 index 0000000000..0ad378d458 --- /dev/null +++ b/data/core.telegram.org/constructor/sendMessageUploadVideoAction.html @@ -0,0 +1,147 @@ + + + + + sendMessageUploadVideoAction + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageUploadVideoAction

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/shippingOption.html b/data/core.telegram.org/constructor/shippingOption.html new file mode 100644 index 0000000000..1a410cd4db --- /dev/null +++ b/data/core.telegram.org/constructor/shippingOption.html @@ -0,0 +1,157 @@ + + + + + shippingOption + + + + + + + + + + + + + +
+ +
+
+
+ +

shippingOption

+ +

Shipping option

+

+
shippingOption#b6213cdf id:string title:string prices:Vector<LabeledPrice> = ShippingOption;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idstringOption ID
titlestringTitle
pricesVector<LabeledPrice>List of price portions
+

Type

+

ShippingOption

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/stats.broadcastStats b/data/core.telegram.org/constructor/stats.broadcastStats new file mode 100644 index 0000000000..f62c321618 --- /dev/null +++ b/data/core.telegram.org/constructor/stats.broadcastStats @@ -0,0 +1,220 @@ + + + + + stats.broadcastStats + + + + + + + + + + + + + +
+ +
+
+
+ +

stats.broadcastStats

+ +

Channel statistics.

+

+
stats.broadcastStats#bdf78394 period:StatsDateRangeDays followers:StatsAbsValueAndPrev views_per_post:StatsAbsValueAndPrev shares_per_post:StatsAbsValueAndPrev enabled_notifications:StatsPercentValue growth_graph:StatsGraph followers_graph:StatsGraph mute_graph:StatsGraph top_hours_graph:StatsGraph interactions_graph:StatsGraph iv_interactions_graph:StatsGraph views_by_source_graph:StatsGraph new_followers_by_source_graph:StatsGraph languages_graph:StatsGraph recent_message_interactions:Vector<MessageInteractionCounters> = stats.BroadcastStats;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
periodStatsDateRangeDaysPeriod in consideration
followersStatsAbsValueAndPrevFollower count change for period in consideration
views_per_postStatsAbsValueAndPrevtotal_viewcount/postcount, for posts posted during the period in consideration (views_per_post).
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date).
shares_per_postStatsAbsValueAndPrevtotal_viewcount/postcount, for posts posted during the period in consideration (views_per_post).
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)
enabled_notificationsStatsPercentValuePercentage of subscribers with enabled notifications
growth_graphStatsGraphChannel growth graph (absolute subscriber count)
followers_graphStatsGraphFollowers growth graph (relative subscriber count)
mute_graphStatsGraphMuted users graph (relative)
top_hours_graphStatsGraphViews per hour graph (absolute)
interactions_graphStatsGraphInteractions graph (absolute)
iv_interactions_graphStatsGraphIV interactions graph (absolute)
views_by_source_graphStatsGraphViews by source graph (absolute)
new_followers_by_source_graphStatsGraphNew followers by source graph (absolute)
languages_graphStatsGraphSubscriber language graph (piechart)
recent_message_interactionsVector<MessageInteractionCounters>Recent message interactions
+

Type

+

stats.BroadcastStats

+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/stats.megagroupStats b/data/core.telegram.org/constructor/stats.megagroupStats new file mode 100644 index 0000000000..edfb000450 --- /dev/null +++ b/data/core.telegram.org/constructor/stats.megagroupStats @@ -0,0 +1,230 @@ + + + + + stats.megagroupStats + + + + + + + + + + + + + +
+ +
+
+
+ +

stats.megagroupStats

+ +

Supergroup statistics

+

+
stats.megagroupStats#ef7ff916 period:StatsDateRangeDays members:StatsAbsValueAndPrev messages:StatsAbsValueAndPrev viewers:StatsAbsValueAndPrev posters:StatsAbsValueAndPrev growth_graph:StatsGraph members_graph:StatsGraph new_members_by_source_graph:StatsGraph languages_graph:StatsGraph messages_graph:StatsGraph actions_graph:StatsGraph top_hours_graph:StatsGraph weekdays_graph:StatsGraph top_posters:Vector<StatsGroupTopPoster> top_admins:Vector<StatsGroupTopAdmin> top_inviters:Vector<StatsGroupTopInviter> users:Vector<User> = stats.MegagroupStats;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
periodStatsDateRangeDaysPeriod in consideration
membersStatsAbsValueAndPrevMember count change for period in consideration
messagesStatsAbsValueAndPrevMessage number change for period in consideration
viewersStatsAbsValueAndPrevNumber of users that viewed messages, for range in consideration
postersStatsAbsValueAndPrevNumber of users that posted messages, for range in consideration
growth_graphStatsGraphSupergroup growth graph (absolute subscriber count)
members_graphStatsGraphMembers growth (relative subscriber count)
new_members_by_source_graphStatsGraphNew members by source graph
languages_graphStatsGraphSubscriber language graph (piechart)
messages_graphStatsGraphMessage activity graph (stacked bar graph, message type)
actions_graphStatsGraphGroup activity graph (deleted, modified messages, blocked users)
top_hours_graphStatsGraphActivity per hour graph (absolute)
weekdays_graphStatsGraphActivity per day of week graph (absolute)
top_postersVector<StatsGroupTopPoster>Info about most active group members
top_adminsVector<StatsGroupTopAdmin>Info about most active group admins
top_invitersVector<StatsGroupTopInviter>Info about most active group inviters
usersVector<User>Info about users mentioned in statistics
+

Type

+

stats.MegagroupStats

+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/stats.messageStats b/data/core.telegram.org/constructor/stats.messageStats new file mode 100644 index 0000000000..d3e4ad5c5e --- /dev/null +++ b/data/core.telegram.org/constructor/stats.messageStats @@ -0,0 +1,147 @@ + + + + + stats.messageStats + + + + + + + + + + + + + +
+ +
+
+
+ +

stats.messageStats

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/statsAbsValueAndPrev.html b/data/core.telegram.org/constructor/statsAbsValueAndPrev.html new file mode 100644 index 0000000000..2b695fa832 --- /dev/null +++ b/data/core.telegram.org/constructor/statsAbsValueAndPrev.html @@ -0,0 +1,152 @@ + + + + + statsAbsValueAndPrev + + + + + + + + + + + + + +
+ +
+
+
+ +

statsAbsValueAndPrev

+ +

Statistics value couple; intial and final value for period of time currently in consideration

+

+
statsAbsValueAndPrev#cb43acde current:double previous:double = StatsAbsValueAndPrev;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
currentdoubleCurrent value
previousdoublePrevious value
+

Type

+

StatsAbsValueAndPrev

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/statsDateRangeDays.html b/data/core.telegram.org/constructor/statsDateRangeDays.html new file mode 100644 index 0000000000..ba8179edad --- /dev/null +++ b/data/core.telegram.org/constructor/statsDateRangeDays.html @@ -0,0 +1,155 @@ + + + + + statsDateRangeDays + + + + + + + + + + + + + +
+ +
+
+
+ +

statsDateRangeDays

+ +

Channel statistics date range

+

+
statsDateRangeDays#b637edaf min_date:int max_date:int = StatsDateRangeDays;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
min_dateintInitial date
max_dateintFinal date
+

Type

+

StatsDateRangeDays

+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/statsGraph.html b/data/core.telegram.org/constructor/statsGraph.html new file mode 100644 index 0000000000..d3ff8af24a --- /dev/null +++ b/data/core.telegram.org/constructor/statsGraph.html @@ -0,0 +1,160 @@ + + + + + statsGraph + + + + + + + + + + + + + +
+ +
+
+
+ +

statsGraph

+ +

Channel statistics graph

+

+
statsGraph#8ea464b6 flags:# json:DataJSON zoom_token:flags.0?string = StatsGraph;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
jsonDataJSONStatistics data
zoom_tokenflags.0?stringZoom token
+

Type

+

StatsGraph

+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/statsGraphAsync.html b/data/core.telegram.org/constructor/statsGraphAsync.html new file mode 100644 index 0000000000..170c52637f --- /dev/null +++ b/data/core.telegram.org/constructor/statsGraphAsync.html @@ -0,0 +1,152 @@ + + + + + statsGraphAsync + + + + + + + + + + + + + +
+ +
+
+
+ +

statsGraphAsync

+ +

This channel statistics graph must be generated asynchronously using stats.loadAsyncGraph to reduce server load

+

+
statsGraphAsync#4a27eb2d token:string = StatsGraph;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
tokenstringToken to use for fetching the async graph
+

Type

+

StatsGraph

+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+

stats.loadAsyncGraph

+

Load channel statistics graph asynchronously

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/statsGraphError.html b/data/core.telegram.org/constructor/statsGraphError.html new file mode 100644 index 0000000000..7933b666b8 --- /dev/null +++ b/data/core.telegram.org/constructor/statsGraphError.html @@ -0,0 +1,150 @@ + + + + + statsGraphError + + + + + + + + + + + + + +
+ +
+
+
+ +

statsGraphError

+ +

An error occurred while generating the statistics graph

+

+
statsGraphError#bedc9822 error:string = StatsGraph;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
errorstringThe error
+

Type

+

StatsGraph

+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/statsGroupTopAdmin.html b/data/core.telegram.org/constructor/statsGroupTopAdmin.html new file mode 100644 index 0000000000..ec8bbd4a29 --- /dev/null +++ b/data/core.telegram.org/constructor/statsGroupTopAdmin.html @@ -0,0 +1,165 @@ + + + + + statsGroupTopAdmin + + + + + + + + + + + + + +
+ +
+
+
+ +

statsGroupTopAdmin

+ +

Information about an active admin in a supergroup

+

+
statsGroupTopAdmin#6014f412 user_id:int deleted:int kicked:int banned:int = StatsGroupTopAdmin;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser ID
deletedintNumber of deleted messages for statistics period in consideration
kickedintNumber of kicked users for statistics period in consideration
bannedintNumber of banned users for statistics period in consideration
+

Type

+

StatsGroupTopAdmin

+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/statsGroupTopInviter.html b/data/core.telegram.org/constructor/statsGroupTopInviter.html new file mode 100644 index 0000000000..d6205370e2 --- /dev/null +++ b/data/core.telegram.org/constructor/statsGroupTopInviter.html @@ -0,0 +1,155 @@ + + + + + statsGroupTopInviter + + + + + + + + + + + + + +
+ +
+
+
+ +

statsGroupTopInviter

+ +

Information about an active supergroup inviter

+

+
statsGroupTopInviter#31962a4c user_id:int invitations:int = StatsGroupTopInviter;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser ID
invitationsintNumber of invitations for statistics period in consideration
+

Type

+

StatsGroupTopInviter

+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/statsGroupTopPoster.html b/data/core.telegram.org/constructor/statsGroupTopPoster.html new file mode 100644 index 0000000000..392a88b38b --- /dev/null +++ b/data/core.telegram.org/constructor/statsGroupTopPoster.html @@ -0,0 +1,160 @@ + + + + + statsGroupTopPoster + + + + + + + + + + + + + +
+ +
+
+
+ +

statsGroupTopPoster

+ +

Information about an active user in a supergroup

+

+
statsGroupTopPoster#18f3d0f7 user_id:int messages:int avg_chars:int = StatsGroupTopPoster;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser ID
messagesintNumber of messages for statistics period in consideration
avg_charsintAverage number of characters per message
+

Type

+

StatsGroupTopPoster

+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/statsPercentValue.html b/data/core.telegram.org/constructor/statsPercentValue.html new file mode 100644 index 0000000000..c28edcfca4 --- /dev/null +++ b/data/core.telegram.org/constructor/statsPercentValue.html @@ -0,0 +1,156 @@ + + + + + statsPercentValue + + + + + + + + + + + + + +
+ +
+
+
+ +

statsPercentValue

+ +

Channel statistics percentage.
+Compute the percentage simply by doing part * total / 100

+

+
statsPercentValue#cbce2fe0 part:double total:double = StatsPercentValue;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
partdoublePartial value
totaldoubleTotal value
+

Type

+

StatsPercentValue

+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/statsURL.html b/data/core.telegram.org/constructor/statsURL.html new file mode 100644 index 0000000000..dda45aac13 --- /dev/null +++ b/data/core.telegram.org/constructor/statsURL.html @@ -0,0 +1,147 @@ + + + + + statsURL + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/stickerPack.html b/data/core.telegram.org/constructor/stickerPack.html new file mode 100644 index 0000000000..1996882fbd --- /dev/null +++ b/data/core.telegram.org/constructor/stickerPack.html @@ -0,0 +1,156 @@ + + + + + stickerPack + + + + + + + + + + + + + +
+ +
+
+
+ +

stickerPack

+ +

A stickerpack is a group of stickers associated to the same emoji.
+It is not a sticker pack the way it is usually intended, you may be looking for a StickerSet.

+

+
stickerPack#12b299d4 emoticon:string documents:Vector<long> = StickerPack;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
emoticonstringEmoji
documentsVector<long>Stickers
+

Type

+

StickerPack

+

Related pages

+

StickerSet

+

Represents a stickerset (stickerpack)

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/stickerSet.html b/data/core.telegram.org/constructor/stickerSet.html new file mode 100644 index 0000000000..5f56397125 --- /dev/null +++ b/data/core.telegram.org/constructor/stickerSet.html @@ -0,0 +1,212 @@ + + + + + stickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

stickerSet

+ +

Represents a stickerset (stickerpack)

+

+
stickerSet#eeb46f27 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumb:flags.4?PhotoSize thumb_dc_id:flags.4?int count:int hash:int = StickerSet;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
archivedflags.1?trueWhether this stickerset was archived (due to too many saved stickers in the current account)
officialflags.2?trueIs this stickerset official
masksflags.3?trueIs this a mask stickerset
animatedflags.5?trueIs this an animated stickerpack
installed_dateflags.0?intWhen was this stickerset installed
idlongID of the stickerset
access_hashlongAccess hash of stickerset
titlestringTitle of stickerset
short_namestringShort name of stickerset to use in tg://addstickers?set=short_name
thumbflags.4?PhotoSizeThumbnail for stickerset
thumb_dc_idflags.4?intDC ID of thumbnail
countintNumber of stickers in pack
hashintHash
+

Type

+

StickerSet

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/stickerSetCovered.html b/data/core.telegram.org/constructor/stickerSetCovered.html new file mode 100644 index 0000000000..4a4aec53aa --- /dev/null +++ b/data/core.telegram.org/constructor/stickerSetCovered.html @@ -0,0 +1,152 @@ + + + + + stickerSetCovered + + + + + + + + + + + + + +
+ +
+
+
+ +

stickerSetCovered

+ +

Stickerset, with a specific sticker as preview

+

+
stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
setStickerSetStickerset
coverDocumentPreview
+

Type

+

StickerSetCovered

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/stickerSetMultiCovered.html b/data/core.telegram.org/constructor/stickerSetMultiCovered.html new file mode 100644 index 0000000000..52f44c9859 --- /dev/null +++ b/data/core.telegram.org/constructor/stickerSetMultiCovered.html @@ -0,0 +1,152 @@ + + + + + stickerSetMultiCovered + + + + + + + + + + + + + +
+ +
+
+
+ +

stickerSetMultiCovered

+ +

Stickerset, with a specific stickers as preview

+

+
stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector<Document> = StickerSetCovered;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
setStickerSetStickerset
coversVector<Document>Preview stickers
+

Type

+

StickerSetCovered

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/storage.fileGif b/data/core.telegram.org/constructor/storage.fileGif new file mode 100644 index 0000000000..1e7b1f19c0 --- /dev/null +++ b/data/core.telegram.org/constructor/storage.fileGif @@ -0,0 +1,132 @@ + + + + + storage.fileGif + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/storage.fileJpeg b/data/core.telegram.org/constructor/storage.fileJpeg new file mode 100644 index 0000000000..04291dbf0a --- /dev/null +++ b/data/core.telegram.org/constructor/storage.fileJpeg @@ -0,0 +1,132 @@ + + + + + storage.fileJpeg + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/storage.fileMov b/data/core.telegram.org/constructor/storage.fileMov new file mode 100644 index 0000000000..bcd077e67b --- /dev/null +++ b/data/core.telegram.org/constructor/storage.fileMov @@ -0,0 +1,132 @@ + + + + + storage.fileMov + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/storage.fileMp3 b/data/core.telegram.org/constructor/storage.fileMp3 new file mode 100644 index 0000000000..2dd19d2a6b --- /dev/null +++ b/data/core.telegram.org/constructor/storage.fileMp3 @@ -0,0 +1,132 @@ + + + + + storage.fileMp3 + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/storage.fileMp4 b/data/core.telegram.org/constructor/storage.fileMp4 new file mode 100644 index 0000000000..e961a35ec9 --- /dev/null +++ b/data/core.telegram.org/constructor/storage.fileMp4 @@ -0,0 +1,132 @@ + + + + + storage.fileMp4 + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/storage.filePartial b/data/core.telegram.org/constructor/storage.filePartial new file mode 100644 index 0000000000..b84c92b9c8 --- /dev/null +++ b/data/core.telegram.org/constructor/storage.filePartial @@ -0,0 +1,132 @@ + + + + + storage.filePartial + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/storage.filePdf b/data/core.telegram.org/constructor/storage.filePdf new file mode 100644 index 0000000000..8eaa480571 --- /dev/null +++ b/data/core.telegram.org/constructor/storage.filePdf @@ -0,0 +1,132 @@ + + + + + storage.filePdf + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/storage.filePng b/data/core.telegram.org/constructor/storage.filePng new file mode 100644 index 0000000000..3013c52b14 --- /dev/null +++ b/data/core.telegram.org/constructor/storage.filePng @@ -0,0 +1,132 @@ + + + + + storage.filePng + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/storage.fileUnknown b/data/core.telegram.org/constructor/storage.fileUnknown new file mode 100644 index 0000000000..d5f13c82a4 --- /dev/null +++ b/data/core.telegram.org/constructor/storage.fileUnknown @@ -0,0 +1,132 @@ + + + + + storage.fileUnknown + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/storage.fileWebp b/data/core.telegram.org/constructor/storage.fileWebp new file mode 100644 index 0000000000..3f82f6bf46 --- /dev/null +++ b/data/core.telegram.org/constructor/storage.fileWebp @@ -0,0 +1,132 @@ + + + + + storage.fileWebp + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textAnchor.html b/data/core.telegram.org/constructor/textAnchor.html new file mode 100644 index 0000000000..16e030b560 --- /dev/null +++ b/data/core.telegram.org/constructor/textAnchor.html @@ -0,0 +1,152 @@ + + + + + textAnchor + + + + + + + + + + + + + +
+ +
+
+
+ +

textAnchor

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textBold.html b/data/core.telegram.org/constructor/textBold.html new file mode 100644 index 0000000000..35b8e69fe5 --- /dev/null +++ b/data/core.telegram.org/constructor/textBold.html @@ -0,0 +1,147 @@ + + + + + textBold + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textConcat.html b/data/core.telegram.org/constructor/textConcat.html new file mode 100644 index 0000000000..6e747cc8bf --- /dev/null +++ b/data/core.telegram.org/constructor/textConcat.html @@ -0,0 +1,147 @@ + + + + + textConcat + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textEmail.html b/data/core.telegram.org/constructor/textEmail.html new file mode 100644 index 0000000000..540f9b17db --- /dev/null +++ b/data/core.telegram.org/constructor/textEmail.html @@ -0,0 +1,152 @@ + + + + + textEmail + + + + + + + + + + + + + +
+ +
+
+
+ +

textEmail

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textEmpty.html b/data/core.telegram.org/constructor/textEmpty.html new file mode 100644 index 0000000000..7267395f2e --- /dev/null +++ b/data/core.telegram.org/constructor/textEmpty.html @@ -0,0 +1,132 @@ + + + + + textEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textFixed.html b/data/core.telegram.org/constructor/textFixed.html new file mode 100644 index 0000000000..28ccd9ee1b --- /dev/null +++ b/data/core.telegram.org/constructor/textFixed.html @@ -0,0 +1,147 @@ + + + + + textFixed + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textImage.html b/data/core.telegram.org/constructor/textImage.html new file mode 100644 index 0000000000..f9c882a39d --- /dev/null +++ b/data/core.telegram.org/constructor/textImage.html @@ -0,0 +1,157 @@ + + + + + textImage + + + + + + + + + + + + + +
+ +
+
+
+ +

textImage

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textItalic.html b/data/core.telegram.org/constructor/textItalic.html new file mode 100644 index 0000000000..8051d54b4f --- /dev/null +++ b/data/core.telegram.org/constructor/textItalic.html @@ -0,0 +1,147 @@ + + + + + textItalic + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textMarked.html b/data/core.telegram.org/constructor/textMarked.html new file mode 100644 index 0000000000..0a9ecef831 --- /dev/null +++ b/data/core.telegram.org/constructor/textMarked.html @@ -0,0 +1,147 @@ + + + + + textMarked + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textPhone.html b/data/core.telegram.org/constructor/textPhone.html new file mode 100644 index 0000000000..b96db3a232 --- /dev/null +++ b/data/core.telegram.org/constructor/textPhone.html @@ -0,0 +1,152 @@ + + + + + textPhone + + + + + + + + + + + + + +
+ +
+
+
+ +

textPhone

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textPlain.html b/data/core.telegram.org/constructor/textPlain.html new file mode 100644 index 0000000000..0a4826a82d --- /dev/null +++ b/data/core.telegram.org/constructor/textPlain.html @@ -0,0 +1,147 @@ + + + + + textPlain + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textStrike.html b/data/core.telegram.org/constructor/textStrike.html new file mode 100644 index 0000000000..a383d359d4 --- /dev/null +++ b/data/core.telegram.org/constructor/textStrike.html @@ -0,0 +1,147 @@ + + + + + textStrike + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textSubscript.html b/data/core.telegram.org/constructor/textSubscript.html new file mode 100644 index 0000000000..6f56aa43c9 --- /dev/null +++ b/data/core.telegram.org/constructor/textSubscript.html @@ -0,0 +1,147 @@ + + + + + textSubscript + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textSuperscript.html b/data/core.telegram.org/constructor/textSuperscript.html new file mode 100644 index 0000000000..0cbff4e876 --- /dev/null +++ b/data/core.telegram.org/constructor/textSuperscript.html @@ -0,0 +1,147 @@ + + + + + textSuperscript + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textUnderline.html b/data/core.telegram.org/constructor/textUnderline.html new file mode 100644 index 0000000000..f7b0395686 --- /dev/null +++ b/data/core.telegram.org/constructor/textUnderline.html @@ -0,0 +1,147 @@ + + + + + textUnderline + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/textUrl.html b/data/core.telegram.org/constructor/textUrl.html new file mode 100644 index 0000000000..2abe1b0c17 --- /dev/null +++ b/data/core.telegram.org/constructor/textUrl.html @@ -0,0 +1,157 @@ + + + + + textUrl + + + + + + + + + + + + + +
+ +
+
+
+ +

textUrl

+ +

Link

+

+
textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText of link
urlstringWebpage HTTP URL
webpage_idlongIf a preview was already generated for the page, the page ID
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/theme.html b/data/core.telegram.org/constructor/theme.html new file mode 100644 index 0000000000..141e9fee81 --- /dev/null +++ b/data/core.telegram.org/constructor/theme.html @@ -0,0 +1,192 @@ + + + + + theme + + + + + + + + + + + + + +
+ +
+
+
+ +

theme

+ +

Theme

+

+
theme#28f1114 flags:# creator:flags.0?true default:flags.1?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?ThemeSettings installs_count:int = Theme;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
creatorflags.0?trueWhether the current user is the creator of this theme
defaultflags.1?trueWhether this is the default theme
idlongTheme ID
access_hashlongTheme access hash
slugstringUnique theme ID
titlestringTheme name
documentflags.2?DocumentTheme
settingsflags.3?ThemeSettingsTheme settings
installs_countintInstallation count
+

Type

+

Theme

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/themeSettings.html b/data/core.telegram.org/constructor/themeSettings.html new file mode 100644 index 0000000000..f2c84291ca --- /dev/null +++ b/data/core.telegram.org/constructor/themeSettings.html @@ -0,0 +1,172 @@ + + + + + themeSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

themeSettings

+ +

Theme settings

+

+
themeSettings#9c14984a flags:# base_theme:BaseTheme accent_color:int message_top_color:flags.0?int message_bottom_color:flags.0?int wallpaper:flags.1?WallPaper = ThemeSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
base_themeBaseThemeBase theme
accent_colorintAccent color, RGB24 format
message_top_colorflags.0?intMessage gradient color (top), RGB24 format
message_bottom_colorflags.0?intMessage gradient color (bottom), RGB24 format
wallpaperflags.1?WallPaperWallpaper
+

Type

+

ThemeSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/topPeer.html b/data/core.telegram.org/constructor/topPeer.html new file mode 100644 index 0000000000..721fd6fb32 --- /dev/null +++ b/data/core.telegram.org/constructor/topPeer.html @@ -0,0 +1,155 @@ + + + + + topPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeer

+ +

Top peer

+

+
topPeer#edcdc05b peer:Peer rating:double = TopPeer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerPeer
ratingdoubleRating as computed in top peer rating »
+

Type

+

TopPeer

+

Related pages

+

Top peer rating

+

If enabled, the rating of top peers indicates the relevance of a frequently used peer in a certain category (frequently messaged users, frequently used bots, inline bots, frequently visited channels and so on).

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/topPeerCategoryBotsInline.html b/data/core.telegram.org/constructor/topPeerCategoryBotsInline.html new file mode 100644 index 0000000000..0893720813 --- /dev/null +++ b/data/core.telegram.org/constructor/topPeerCategoryBotsInline.html @@ -0,0 +1,132 @@ + + + + + topPeerCategoryBotsInline + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/topPeerCategoryBotsPM.html b/data/core.telegram.org/constructor/topPeerCategoryBotsPM.html new file mode 100644 index 0000000000..86cfabcdce --- /dev/null +++ b/data/core.telegram.org/constructor/topPeerCategoryBotsPM.html @@ -0,0 +1,132 @@ + + + + + topPeerCategoryBotsPM + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/topPeerCategoryChannels.html b/data/core.telegram.org/constructor/topPeerCategoryChannels.html new file mode 100644 index 0000000000..5325a9a510 --- /dev/null +++ b/data/core.telegram.org/constructor/topPeerCategoryChannels.html @@ -0,0 +1,132 @@ + + + + + topPeerCategoryChannels + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/topPeerCategoryCorrespondents.html b/data/core.telegram.org/constructor/topPeerCategoryCorrespondents.html new file mode 100644 index 0000000000..3bfaf3c834 --- /dev/null +++ b/data/core.telegram.org/constructor/topPeerCategoryCorrespondents.html @@ -0,0 +1,132 @@ + + + + + topPeerCategoryCorrespondents + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryCorrespondents

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/topPeerCategoryForwardChats.html b/data/core.telegram.org/constructor/topPeerCategoryForwardChats.html new file mode 100644 index 0000000000..d8bfa3f13a --- /dev/null +++ b/data/core.telegram.org/constructor/topPeerCategoryForwardChats.html @@ -0,0 +1,132 @@ + + + + + topPeerCategoryForwardChats + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryForwardChats

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/topPeerCategoryForwardUsers.html b/data/core.telegram.org/constructor/topPeerCategoryForwardUsers.html new file mode 100644 index 0000000000..75581c3657 --- /dev/null +++ b/data/core.telegram.org/constructor/topPeerCategoryForwardUsers.html @@ -0,0 +1,132 @@ + + + + + topPeerCategoryForwardUsers + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryForwardUsers

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/topPeerCategoryGroups.html b/data/core.telegram.org/constructor/topPeerCategoryGroups.html new file mode 100644 index 0000000000..d646f86aeb --- /dev/null +++ b/data/core.telegram.org/constructor/topPeerCategoryGroups.html @@ -0,0 +1,132 @@ + + + + + topPeerCategoryGroups + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/topPeerCategoryPeers.html b/data/core.telegram.org/constructor/topPeerCategoryPeers.html new file mode 100644 index 0000000000..f745725ed4 --- /dev/null +++ b/data/core.telegram.org/constructor/topPeerCategoryPeers.html @@ -0,0 +1,157 @@ + + + + + topPeerCategoryPeers + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryPeers

+ +

Top peer category

+

+
topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector<TopPeer> = TopPeerCategoryPeers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
categoryTopPeerCategoryTop peer category of peers
countintCount of peers
peersVector<TopPeer>Peers
+

Type

+

TopPeerCategoryPeers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/topPeerCategoryPhoneCalls.html b/data/core.telegram.org/constructor/topPeerCategoryPhoneCalls.html new file mode 100644 index 0000000000..02940b1063 --- /dev/null +++ b/data/core.telegram.org/constructor/topPeerCategoryPhoneCalls.html @@ -0,0 +1,132 @@ + + + + + topPeerCategoryPhoneCalls + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/true.html b/data/core.telegram.org/constructor/true.html new file mode 100644 index 0000000000..bdf4783d00 --- /dev/null +++ b/data/core.telegram.org/constructor/true.html @@ -0,0 +1,134 @@ + + + + + true + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateBotCallbackQuery.html b/data/core.telegram.org/constructor/updateBotCallbackQuery.html new file mode 100644 index 0000000000..6e130b6659 --- /dev/null +++ b/data/core.telegram.org/constructor/updateBotCallbackQuery.html @@ -0,0 +1,182 @@ + + + + + updateBotCallbackQuery + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotCallbackQuery

+ +

A callback button was pressed, and the button data was sent to the bot that created the button

+

+
updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
query_idlongQuery ID
user_idintID of the user that pressed the button
peerPeerChat where the inline keyboard was sent
msg_idintMessage ID
chat_instancelongGlobal identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
dataflags.0?bytesCallback data
game_short_nameflags.1?stringShort name of a Game to be returned, serves as the unique identifier for the game
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateBotInlineQuery.html b/data/core.telegram.org/constructor/updateBotInlineQuery.html new file mode 100644 index 0000000000..eb964d7b5f --- /dev/null +++ b/data/core.telegram.org/constructor/updateBotInlineQuery.html @@ -0,0 +1,172 @@ + + + + + updateBotInlineQuery + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotInlineQuery

+ +

An incoming inline query

+

+
updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
query_idlongQuery ID
user_idintUser that sent the query
querystringText of query
geoflags.0?GeoPointAttached geolocation
offsetstringOffset to navigate through results
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateBotInlineSend.html b/data/core.telegram.org/constructor/updateBotInlineSend.html new file mode 100644 index 0000000000..1b4e031266 --- /dev/null +++ b/data/core.telegram.org/constructor/updateBotInlineSend.html @@ -0,0 +1,172 @@ + + + + + updateBotInlineSend + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotInlineSend

+ +

The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.

+

+
updateBotInlineSend#e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
user_idintThe user that chose the result
querystringThe query that was used to obtain the result
geoflags.0?GeoPointOptional. Sender location, only for bots that require user location
idstringThe unique identifier for the result that was chosen
msg_idflags.1?InputBotInlineMessageIDIdentifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateBotPrecheckoutQuery.html b/data/core.telegram.org/constructor/updateBotPrecheckoutQuery.html new file mode 100644 index 0000000000..65e7cc8f88 --- /dev/null +++ b/data/core.telegram.org/constructor/updateBotPrecheckoutQuery.html @@ -0,0 +1,184 @@ + + + + + updateBotPrecheckoutQuery + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotPrecheckoutQuery

+ +

This object contains information about an incoming pre-checkout query.

+

+
updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
query_idlongUnique query identifier
user_idintUser who sent the query
payloadbytesBot specified invoice payload
infoflags.0?PaymentRequestedInfoOrder info provided by the user
shipping_option_idflags.1?stringIdentifier of the shipping option chosen by the user
currencystringThree-letter ISO 4217 currency code
total_amountlongTotal amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
+

Type

+

Update

+

Related pages

+

Bot Payments API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateBotShippingQuery.html b/data/core.telegram.org/constructor/updateBotShippingQuery.html new file mode 100644 index 0000000000..ca0f567cca --- /dev/null +++ b/data/core.telegram.org/constructor/updateBotShippingQuery.html @@ -0,0 +1,162 @@ + + + + + updateBotShippingQuery + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotShippingQuery

+ +

This object contains information about an incoming shipping query.

+

+
updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
query_idlongUnique query identifier
user_idintUser who sent the query
payloadbytesBot specified invoice payload
shipping_addressPostAddressUser specified shipping address
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateBotWebhookJSON.html b/data/core.telegram.org/constructor/updateBotWebhookJSON.html new file mode 100644 index 0000000000..1cd2ae6f25 --- /dev/null +++ b/data/core.telegram.org/constructor/updateBotWebhookJSON.html @@ -0,0 +1,147 @@ + + + + + updateBotWebhookJSON + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotWebhookJSON

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateBotWebhookJSONQuery.html b/data/core.telegram.org/constructor/updateBotWebhookJSONQuery.html new file mode 100644 index 0000000000..a8cfc8eb4c --- /dev/null +++ b/data/core.telegram.org/constructor/updateBotWebhookJSONQuery.html @@ -0,0 +1,157 @@ + + + + + updateBotWebhookJSONQuery + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotWebhookJSONQuery

+ +

A new incoming query; for bots only

+

+
updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
query_idlongQuery identifier
dataDataJSONQuery data
timeoutintQuery timeout
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChannel.html b/data/core.telegram.org/constructor/updateChannel.html new file mode 100644 index 0000000000..a479ea7ebc --- /dev/null +++ b/data/core.telegram.org/constructor/updateChannel.html @@ -0,0 +1,147 @@ + + + + + updateChannel + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChannelAvailableMessages.html b/data/core.telegram.org/constructor/updateChannelAvailableMessages.html new file mode 100644 index 0000000000..7980ade874 --- /dev/null +++ b/data/core.telegram.org/constructor/updateChannelAvailableMessages.html @@ -0,0 +1,155 @@ + + + + + updateChannelAvailableMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelAvailableMessages

+ +

The history of a channel/supergroup was hidden.

+

+
updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idintChannel/supergroup ID
available_min_idintIdentifier of a maximum unavailable message in a channel due to hidden history.
+

Type

+

Update

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChannelMessageForwards.html b/data/core.telegram.org/constructor/updateChannelMessageForwards.html new file mode 100644 index 0000000000..55f38e333a --- /dev/null +++ b/data/core.telegram.org/constructor/updateChannelMessageForwards.html @@ -0,0 +1,157 @@ + + + + + updateChannelMessageForwards + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelMessageForwards

+ +

The forward counter of a message in a channel has changed

+

+
updateChannelMessageForwards#6e8a84df channel_id:int id:int forwards:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idintChannel ID
idintID of the message
forwardsintNew forward counter
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChannelMessageViews.html b/data/core.telegram.org/constructor/updateChannelMessageViews.html new file mode 100644 index 0000000000..84ad52ffc9 --- /dev/null +++ b/data/core.telegram.org/constructor/updateChannelMessageViews.html @@ -0,0 +1,157 @@ + + + + + updateChannelMessageViews + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelMessageViews

+ +

The view counter of a message in a channel has changed

+

+
updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idintChannel ID
idintID of the message
viewsintNew view counter
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChannelParticipant.html b/data/core.telegram.org/constructor/updateChannelParticipant.html new file mode 100644 index 0000000000..7b0a3bd8b2 --- /dev/null +++ b/data/core.telegram.org/constructor/updateChannelParticipant.html @@ -0,0 +1,182 @@ + + + + + updateChannelParticipant + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelParticipant

+ +

A participant has left, joined, was banned or admined in a channel or supergroup.

+

+
Constructor schema is available as of layer 124. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
channel_idintChannel ID
dateintDate of the event
user_idintUser in question
prev_participantflags.0?ChannelParticipantPrevious participant status
new_participantflags.1?ChannelParticipantNew participant status
qtsintPTS
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChannelReadMessagesContents.html b/data/core.telegram.org/constructor/updateChannelReadMessagesContents.html new file mode 100644 index 0000000000..64ac1d7c5a --- /dev/null +++ b/data/core.telegram.org/constructor/updateChannelReadMessagesContents.html @@ -0,0 +1,155 @@ + + + + + updateChannelReadMessagesContents + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelReadMessagesContents

+ +

The specified channel/supergroup messages were read

+

+
updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector<int> = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idintChannel/supergroup ID
messagesVector<int>IDs of messages that were read
+

Type

+

Update

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChannelTooLong.html b/data/core.telegram.org/constructor/updateChannelTooLong.html new file mode 100644 index 0000000000..398633de3f --- /dev/null +++ b/data/core.telegram.org/constructor/updateChannelTooLong.html @@ -0,0 +1,161 @@ + + + + + updateChannelTooLong + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelTooLong

+ +

There are new updates in the specified channel, the client must fetch them.
+If the difference is too long or if the channel isn't currently in the states, start fetching from the specified pts.

+

+
updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
channel_idintThe channel
ptsflags.0?intThe PTS.
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChannelUserTyping.html b/data/core.telegram.org/constructor/updateChannelUserTyping.html new file mode 100644 index 0000000000..82f1b1a9b0 --- /dev/null +++ b/data/core.telegram.org/constructor/updateChannelUserTyping.html @@ -0,0 +1,172 @@ + + + + + updateChannelUserTyping + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelUserTyping

+ +

A user is typing in a supergroup, channel or message thread

+

+
updateChannelUserTyping#ff2abe9f flags:# channel_id:int top_msg_id:flags.0?int user_id:int action:SendMessageAction = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
channel_idintChannel ID
top_msg_idflags.0?intThread ID
user_idintUser ID
actionSendMessageActionWhether the user is typing, sending a media or doing something else
+

Type

+

Update

+

Related pages

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChannelWebPage.html b/data/core.telegram.org/constructor/updateChannelWebPage.html new file mode 100644 index 0000000000..4e8b1a9755 --- /dev/null +++ b/data/core.telegram.org/constructor/updateChannelWebPage.html @@ -0,0 +1,167 @@ + + + + + updateChannelWebPage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelWebPage

+ +

A webpage preview of a link in a channel/supergroup message was generated

+

+
updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idintChannel/supergroup ID
webpageWebPageGenerated webpage preview
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChatDefaultBannedRights.html b/data/core.telegram.org/constructor/updateChatDefaultBannedRights.html new file mode 100644 index 0000000000..b05a114b22 --- /dev/null +++ b/data/core.telegram.org/constructor/updateChatDefaultBannedRights.html @@ -0,0 +1,160 @@ + + + + + updateChatDefaultBannedRights + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatDefaultBannedRights

+ +

Default banned rights in a normal chat were updated

+

+
updateChatDefaultBannedRights#54c01850 peer:Peer default_banned_rights:ChatBannedRights version:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerThe chat
default_banned_rightsChatBannedRightsNew default banned rights
versionintVersion
+

Type

+

Update

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChatParticipantAdd.html b/data/core.telegram.org/constructor/updateChatParticipantAdd.html new file mode 100644 index 0000000000..3e8dc3e60c --- /dev/null +++ b/data/core.telegram.org/constructor/updateChatParticipantAdd.html @@ -0,0 +1,167 @@ + + + + + updateChatParticipantAdd + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatParticipantAdd

+ +

New group member.

+

+
updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintGroup ID
user_idintID of the new member
inviter_idintID of the user, who added member to the group
dateintWhen was the participant added
versionintChat version number
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChatParticipantAdmin.html b/data/core.telegram.org/constructor/updateChatParticipantAdmin.html new file mode 100644 index 0000000000..375df3277b --- /dev/null +++ b/data/core.telegram.org/constructor/updateChatParticipantAdmin.html @@ -0,0 +1,165 @@ + + + + + updateChatParticipantAdmin + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatParticipantAdmin

+ +

Admin permissions of a user in a legacy group were changed

+

+
updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintChat ID
user_idintID of the (de)admined user
is_adminBoolWhether the user was rendered admin
versionintUsed in basic groups to reorder updates and make sure that all of them was received.
+

Type

+

Update

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChatParticipantDelete.html b/data/core.telegram.org/constructor/updateChatParticipantDelete.html new file mode 100644 index 0000000000..fabe33a983 --- /dev/null +++ b/data/core.telegram.org/constructor/updateChatParticipantDelete.html @@ -0,0 +1,157 @@ + + + + + updateChatParticipantDelete + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatParticipantDelete

+ +

A member has left the group.

+

+
updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintGroup ID
user_idintID of the user
versionintUsed in basic groups to reorder updates and make sure that all of them was received.
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChatParticipants.html b/data/core.telegram.org/constructor/updateChatParticipants.html new file mode 100644 index 0000000000..77d6eedd99 --- /dev/null +++ b/data/core.telegram.org/constructor/updateChatParticipants.html @@ -0,0 +1,147 @@ + + + + + updateChatParticipants + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatParticipants

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateChatUserTyping.html b/data/core.telegram.org/constructor/updateChatUserTyping.html new file mode 100644 index 0000000000..9a87b9f494 --- /dev/null +++ b/data/core.telegram.org/constructor/updateChatUserTyping.html @@ -0,0 +1,160 @@ + + + + + updateChatUserTyping + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatUserTyping

+ +

The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he's been doing.

+

+
updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintGroup id
user_idintUser id
actionSendMessageActionType of action
Parameter added in Layer 17.
+

Type

+

Update

+

Related pages

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateConfig.html b/data/core.telegram.org/constructor/updateConfig.html new file mode 100644 index 0000000000..bdf12c40d5 --- /dev/null +++ b/data/core.telegram.org/constructor/updateConfig.html @@ -0,0 +1,135 @@ + + + + + updateConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

updateConfig

+ +

The server-side configuration has changed; the client should re-fetch the config using help.getConfig

+

+
updateConfig#a229dd06 = Update;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Update

+

Related pages

+

help.getConfig

+

Returns current configuration, including data center configuration.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateContactsReset.html b/data/core.telegram.org/constructor/updateContactsReset.html new file mode 100644 index 0000000000..f6e145b9c7 --- /dev/null +++ b/data/core.telegram.org/constructor/updateContactsReset.html @@ -0,0 +1,132 @@ + + + + + updateContactsReset + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateDcOptions.html b/data/core.telegram.org/constructor/updateDcOptions.html new file mode 100644 index 0000000000..d294406053 --- /dev/null +++ b/data/core.telegram.org/constructor/updateDcOptions.html @@ -0,0 +1,147 @@ + + + + + updateDcOptions + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDcOptions

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateDeleteChannelMessages.html b/data/core.telegram.org/constructor/updateDeleteChannelMessages.html new file mode 100644 index 0000000000..9959ef2b5d --- /dev/null +++ b/data/core.telegram.org/constructor/updateDeleteChannelMessages.html @@ -0,0 +1,167 @@ + + + + + updateDeleteChannelMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDeleteChannelMessages

+ +

Some messages in a supergroup/channel were deleted

+

+
updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector<int> pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idintChannel ID
messagesVector<int>IDs of messages that were deleted
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateDeleteMessages.html b/data/core.telegram.org/constructor/updateDeleteMessages.html new file mode 100644 index 0000000000..36246f8e99 --- /dev/null +++ b/data/core.telegram.org/constructor/updateDeleteMessages.html @@ -0,0 +1,160 @@ + + + + + updateDeleteMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDeleteMessages

+ +

Messages were deleted.

+

+
updateDeleteMessages#a20db0e5 messages:Vector<int> pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messagesVector<int>List of identifiers of deleted messages
ptsintNew quality of actions in a message box
pts_countintNumber of generated events
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateDeleteScheduledMessages.html b/data/core.telegram.org/constructor/updateDeleteScheduledMessages.html new file mode 100644 index 0000000000..f91e7157b3 --- /dev/null +++ b/data/core.telegram.org/constructor/updateDeleteScheduledMessages.html @@ -0,0 +1,155 @@ + + + + + updateDeleteScheduledMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDeleteScheduledMessages

+ +

Some scheduled messages were deleted from the schedule queue of a chat

+

+
updateDeleteScheduledMessages#90866cee peer:Peer messages:Vector<int> = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerPeer
messagesVector<int>Deleted scheduled messages
+

Type

+

Update

+

Related pages

+

Scheduled messages

+

Telegram allows scheduling messages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateDialogFilter.html b/data/core.telegram.org/constructor/updateDialogFilter.html new file mode 100644 index 0000000000..3c2e9bcfb6 --- /dev/null +++ b/data/core.telegram.org/constructor/updateDialogFilter.html @@ -0,0 +1,160 @@ + + + + + updateDialogFilter + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDialogFilter

+ +

A new folder was added

+

+
updateDialogFilter#26ffde7d flags:# id:int filter:flags.0?DialogFilter = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idintFolder ID
filterflags.0?DialogFilterFolder info
+

Type

+

Update

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateDialogFilterOrder.html b/data/core.telegram.org/constructor/updateDialogFilterOrder.html new file mode 100644 index 0000000000..32521a95af --- /dev/null +++ b/data/core.telegram.org/constructor/updateDialogFilterOrder.html @@ -0,0 +1,150 @@ + + + + + updateDialogFilterOrder + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDialogFilterOrder

+ +

New folder order

+

+
updateDialogFilterOrder#a5d72105 order:Vector<int> = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
orderVector<int>Ordered folder IDs
+

Type

+

Update

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateDialogFilters.html b/data/core.telegram.org/constructor/updateDialogFilters.html new file mode 100644 index 0000000000..03615594ba --- /dev/null +++ b/data/core.telegram.org/constructor/updateDialogFilters.html @@ -0,0 +1,135 @@ + + + + + updateDialogFilters + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDialogFilters

+ +

Clients should update folder info

+

+
updateDialogFilters#3504914f = Update;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Update

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateDialogPinned.html b/data/core.telegram.org/constructor/updateDialogPinned.html new file mode 100644 index 0000000000..54788087a1 --- /dev/null +++ b/data/core.telegram.org/constructor/updateDialogPinned.html @@ -0,0 +1,165 @@ + + + + + updateDialogPinned + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDialogPinned

+ +

A dialog was pinned/unpinned

+

+
updateDialogPinned#6e6fe51c flags:# pinned:flags.0?true folder_id:flags.1?int peer:DialogPeer = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
pinnedflags.0?trueWhether the dialog was pinned
folder_idflags.1?intPeer folder ID, for more info click here
peerDialogPeerThe dialog
+

Type

+

Update

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateDialogUnreadMark.html b/data/core.telegram.org/constructor/updateDialogUnreadMark.html new file mode 100644 index 0000000000..1cc9ff3629 --- /dev/null +++ b/data/core.telegram.org/constructor/updateDialogUnreadMark.html @@ -0,0 +1,157 @@ + + + + + updateDialogUnreadMark + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDialogUnreadMark

+ +

The manual unread mark of a chat was changed

+

+
updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
unreadflags.0?trueWas the chat marked or unmarked as read
peerDialogPeerThe dialog
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateDraftMessage.html b/data/core.telegram.org/constructor/updateDraftMessage.html new file mode 100644 index 0000000000..417a66e1be --- /dev/null +++ b/data/core.telegram.org/constructor/updateDraftMessage.html @@ -0,0 +1,155 @@ + + + + + updateDraftMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDraftMessage

+ +

Notifies a change of a message draft.

+

+
updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerThe peer to which the draft is associated
draftDraftMessageThe draft
+

Type

+

Update

+

Related pages

+

Message drafts

+

How to handle message drafts

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateEditChannelMessage.html b/data/core.telegram.org/constructor/updateEditChannelMessage.html new file mode 100644 index 0000000000..c682b0d65d --- /dev/null +++ b/data/core.telegram.org/constructor/updateEditChannelMessage.html @@ -0,0 +1,162 @@ + + + + + updateEditChannelMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateEditChannelMessage

+ +

A message was edited in a channel/supergroup

+

+
updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messageMessageThe new message
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateEditMessage.html b/data/core.telegram.org/constructor/updateEditMessage.html new file mode 100644 index 0000000000..39e4021718 --- /dev/null +++ b/data/core.telegram.org/constructor/updateEditMessage.html @@ -0,0 +1,160 @@ + + + + + updateEditMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateEditMessage

+ +

A message was edited

+

+
updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messageMessageThe new edited message
ptsintPTS
pts_countintPTS count
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateEncryptedChatTyping.html b/data/core.telegram.org/constructor/updateEncryptedChatTyping.html new file mode 100644 index 0000000000..ad3c6546c7 --- /dev/null +++ b/data/core.telegram.org/constructor/updateEncryptedChatTyping.html @@ -0,0 +1,147 @@ + + + + + updateEncryptedChatTyping + + + + + + + + + + + + + +
+ +
+
+
+ +

updateEncryptedChatTyping

+ +

Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time there is no repeated update, it shall be considered that the interlocutor stopped typing.

+

+
updateEncryptedChatTyping#1710f156 chat_id:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintChat ID
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateEncryptedMessagesRead.html b/data/core.telegram.org/constructor/updateEncryptedMessagesRead.html new file mode 100644 index 0000000000..4668a5faa9 --- /dev/null +++ b/data/core.telegram.org/constructor/updateEncryptedMessagesRead.html @@ -0,0 +1,157 @@ + + + + + updateEncryptedMessagesRead + + + + + + + + + + + + + +
+ +
+
+
+ +

updateEncryptedMessagesRead

+ +

Communication history in an encrypted chat was marked as read.

+

+
updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintChat ID
max_dateintMaximum value of data for read messages
dateintTime when messages were read
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateEncryption.html b/data/core.telegram.org/constructor/updateEncryption.html new file mode 100644 index 0000000000..7578f9e34e --- /dev/null +++ b/data/core.telegram.org/constructor/updateEncryption.html @@ -0,0 +1,152 @@ + + + + + updateEncryption + + + + + + + + + + + + + +
+ +
+
+
+ +

updateEncryption

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateFavedStickers.html b/data/core.telegram.org/constructor/updateFavedStickers.html new file mode 100644 index 0000000000..cd6ddc4e83 --- /dev/null +++ b/data/core.telegram.org/constructor/updateFavedStickers.html @@ -0,0 +1,135 @@ + + + + + updateFavedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

updateFavedStickers

+ +

The list of favorited stickers was changed, the client should call messages.getFavedStickers to refetch the new list

+

+
updateFavedStickers#e511996d = Update;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Update

+

Related pages

+

messages.getFavedStickers

+

Get faved stickers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateFolderPeers.html b/data/core.telegram.org/constructor/updateFolderPeers.html new file mode 100644 index 0000000000..fdfc71a6ac --- /dev/null +++ b/data/core.telegram.org/constructor/updateFolderPeers.html @@ -0,0 +1,162 @@ + + + + + updateFolderPeers + + + + + + + + + + + + + +
+ +
+
+
+ +

updateFolderPeers

+ +

The peer list of a peer folder was updated

+

+
updateFolderPeers#19360dc0 folder_peers:Vector<FolderPeer> pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
folder_peersVector<FolderPeer>New peer list
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateGeoLiveViewed.html b/data/core.telegram.org/constructor/updateGeoLiveViewed.html new file mode 100644 index 0000000000..88bd32b821 --- /dev/null +++ b/data/core.telegram.org/constructor/updateGeoLiveViewed.html @@ -0,0 +1,152 @@ + + + + + updateGeoLiveViewed + + + + + + + + + + + + + +
+ +
+
+
+ +

updateGeoLiveViewed

+ +

Live geoposition message was viewed

+

+
updateGeoLiveViewed#871fb939 peer:Peer msg_id:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerThe user that viewed the live geoposition
msg_idintMessage ID of geoposition message
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateInlineBotCallbackQuery.html b/data/core.telegram.org/constructor/updateInlineBotCallbackQuery.html new file mode 100644 index 0000000000..7417324d1e --- /dev/null +++ b/data/core.telegram.org/constructor/updateInlineBotCallbackQuery.html @@ -0,0 +1,177 @@ + + + + + updateInlineBotCallbackQuery + + + + + + + + + + + + + +
+ +
+
+
+ +

updateInlineBotCallbackQuery

+ +

This notification is received by bots when a button is pressed

+

+
updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
query_idlongQuery ID
user_idintID of the user that pressed the button
msg_idInputBotInlineMessageIDID of the inline message with the button
chat_instancelongGlobal identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
dataflags.0?bytesData associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
game_short_nameflags.1?stringShort name of a Game to be returned, serves as the unique identifier for the game
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateLangPack.html b/data/core.telegram.org/constructor/updateLangPack.html new file mode 100644 index 0000000000..ca276e2597 --- /dev/null +++ b/data/core.telegram.org/constructor/updateLangPack.html @@ -0,0 +1,147 @@ + + + + + updateLangPack + + + + + + + + + + + + + +
+ +
+
+
+ +

updateLangPack

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateLangPackTooLong.html b/data/core.telegram.org/constructor/updateLangPackTooLong.html new file mode 100644 index 0000000000..eb405caf47 --- /dev/null +++ b/data/core.telegram.org/constructor/updateLangPackTooLong.html @@ -0,0 +1,150 @@ + + + + + updateLangPackTooLong + + + + + + + + + + + + + +
+ +
+
+
+ +

updateLangPackTooLong

+ +

A language pack has changed, the client should manually fetch the changed strings using langpack.getDifference

+

+
updateLangPackTooLong#46560264 lang_code:string = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
lang_codestringLanguage code
+

Type

+

Update

+

Related pages

+

langpack.getDifference

+

Get new strings in languagepack

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateLoginToken.html b/data/core.telegram.org/constructor/updateLoginToken.html new file mode 100644 index 0000000000..2cc8d90250 --- /dev/null +++ b/data/core.telegram.org/constructor/updateLoginToken.html @@ -0,0 +1,132 @@ + + + + + updateLoginToken + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateMessageID.html b/data/core.telegram.org/constructor/updateMessageID.html new file mode 100644 index 0000000000..1d8905c90c --- /dev/null +++ b/data/core.telegram.org/constructor/updateMessageID.html @@ -0,0 +1,155 @@ + + + + + updateMessageID + + + + + + + + + + + + + +
+ +
+
+
+ +

updateMessageID

+ +

Sent message with random_id client identifier was assigned an identifier.

+

+
updateMessageID#4e90bfd6 id:int random_id:long = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintid identifier of a respective Message
random_idlongPreviuosly transferred client random_id identifier
+

Type

+

Update

+

Related pages

+

Message

+

Object describing a message.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateMessagePoll.html b/data/core.telegram.org/constructor/updateMessagePoll.html new file mode 100644 index 0000000000..f331bb269a --- /dev/null +++ b/data/core.telegram.org/constructor/updateMessagePoll.html @@ -0,0 +1,162 @@ + + + + + updateMessagePoll + + + + + + + + + + + + + +
+ +
+
+
+ +

updateMessagePoll

+ +

The results of a poll have changed

+

+
updateMessagePoll#aca1657b flags:# poll_id:long poll:flags.0?Poll results:PollResults = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
poll_idlongPoll ID
pollflags.0?PollIf the server knows the client hasn't cached this poll yet, the poll itself
resultsPollResultsNew poll results
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateMessagePollVote.html b/data/core.telegram.org/constructor/updateMessagePollVote.html new file mode 100644 index 0000000000..90ba44ee1d --- /dev/null +++ b/data/core.telegram.org/constructor/updateMessagePollVote.html @@ -0,0 +1,157 @@ + + + + + updateMessagePollVote + + + + + + + + + + + + + +
+ +
+
+
+ +

updateMessagePollVote

+ +

A specific user has voted in a poll

+

+
updateMessagePollVote#42f88f2c poll_id:long user_id:int options:Vector<bytes> = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
poll_idlongPoll ID
user_idintUser ID
optionsVector<bytes>Chosen option(s)
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateNewChannelMessage.html b/data/core.telegram.org/constructor/updateNewChannelMessage.html new file mode 100644 index 0000000000..f5b83f8a4a --- /dev/null +++ b/data/core.telegram.org/constructor/updateNewChannelMessage.html @@ -0,0 +1,162 @@ + + + + + updateNewChannelMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateNewChannelMessage

+ +

A new message was sent in a channel/supergroup

+

+
updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messageMessageNew message
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateNewEncryptedMessage.html b/data/core.telegram.org/constructor/updateNewEncryptedMessage.html new file mode 100644 index 0000000000..24e8f49755 --- /dev/null +++ b/data/core.telegram.org/constructor/updateNewEncryptedMessage.html @@ -0,0 +1,152 @@ + + + + + updateNewEncryptedMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateNewEncryptedMessage

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateNewMessage.html b/data/core.telegram.org/constructor/updateNewMessage.html new file mode 100644 index 0000000000..bd469c4450 --- /dev/null +++ b/data/core.telegram.org/constructor/updateNewMessage.html @@ -0,0 +1,157 @@ + + + + + updateNewMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateNewMessage

+ +

New message in a private chat or in a legacy group.

+

+
updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messageMessageMessage
ptsintNew quantity of actions in a message box
pts_countintNumber of generated events
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateNewScheduledMessage.html b/data/core.telegram.org/constructor/updateNewScheduledMessage.html new file mode 100644 index 0000000000..b84b55f6ad --- /dev/null +++ b/data/core.telegram.org/constructor/updateNewScheduledMessage.html @@ -0,0 +1,150 @@ + + + + + updateNewScheduledMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateNewScheduledMessage

+ +

A message was added to the schedule queue of a chat

+

+
updateNewScheduledMessage#39a51dfb message:Message = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
messageMessageMessage
+

Type

+

Update

+

Related pages

+

Scheduled messages

+

Telegram allows scheduling messages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateNewStickerSet.html b/data/core.telegram.org/constructor/updateNewStickerSet.html new file mode 100644 index 0000000000..93db78b719 --- /dev/null +++ b/data/core.telegram.org/constructor/updateNewStickerSet.html @@ -0,0 +1,147 @@ + + + + + updateNewStickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

updateNewStickerSet

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateNotifySettings.html b/data/core.telegram.org/constructor/updateNotifySettings.html new file mode 100644 index 0000000000..de60ff1319 --- /dev/null +++ b/data/core.telegram.org/constructor/updateNotifySettings.html @@ -0,0 +1,152 @@ + + + + + updateNotifySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

updateNotifySettings

+ +

Changes in notification settings.

+

+
updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerNotifyPeerNofication source
notify_settingsPeerNotifySettingsNew notification settings
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatePeerBlocked.html b/data/core.telegram.org/constructor/updatePeerBlocked.html new file mode 100644 index 0000000000..51f9aa65cb --- /dev/null +++ b/data/core.telegram.org/constructor/updatePeerBlocked.html @@ -0,0 +1,152 @@ + + + + + updatePeerBlocked + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePeerBlocked

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatePeerLocated.html b/data/core.telegram.org/constructor/updatePeerLocated.html new file mode 100644 index 0000000000..854cf6bbcf --- /dev/null +++ b/data/core.telegram.org/constructor/updatePeerLocated.html @@ -0,0 +1,147 @@ + + + + + updatePeerLocated + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePeerLocated

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatePeerSettings.html b/data/core.telegram.org/constructor/updatePeerSettings.html new file mode 100644 index 0000000000..8c058b2fa9 --- /dev/null +++ b/data/core.telegram.org/constructor/updatePeerSettings.html @@ -0,0 +1,152 @@ + + + + + updatePeerSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePeerSettings

+ +

Settings of a certain peer have changed

+

+
updatePeerSettings#6a7e7366 peer:Peer settings:PeerSettings = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerThe peer
settingsPeerSettingsAssociated peer settings
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatePhoneCall.html b/data/core.telegram.org/constructor/updatePhoneCall.html new file mode 100644 index 0000000000..31d3306a52 --- /dev/null +++ b/data/core.telegram.org/constructor/updatePhoneCall.html @@ -0,0 +1,147 @@ + + + + + updatePhoneCall + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatePhoneCallSignalingData.html b/data/core.telegram.org/constructor/updatePhoneCallSignalingData.html new file mode 100644 index 0000000000..2116bd99ba --- /dev/null +++ b/data/core.telegram.org/constructor/updatePhoneCallSignalingData.html @@ -0,0 +1,152 @@ + + + + + updatePhoneCallSignalingData + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePhoneCallSignalingData

+ +

Incoming phone call signaling payload

+

+
updatePhoneCallSignalingData#2661bf09 phone_call_id:long data:bytes = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_call_idlongPhone call ID
databytesSignaling payload
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatePinnedChannelMessages.html b/data/core.telegram.org/constructor/updatePinnedChannelMessages.html new file mode 100644 index 0000000000..3f3e5d5e86 --- /dev/null +++ b/data/core.telegram.org/constructor/updatePinnedChannelMessages.html @@ -0,0 +1,177 @@ + + + + + updatePinnedChannelMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePinnedChannelMessages

+ +

Messages were pinned/unpinned in a channel/supergroup

+

+
updatePinnedChannelMessages#8588878b flags:# pinned:flags.0?true channel_id:int messages:Vector<int> pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
pinnedflags.0?trueWhether the messages were pinned or unpinned
channel_idintChannel ID
messagesVector<int>Messages
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatePinnedDialogs.html b/data/core.telegram.org/constructor/updatePinnedDialogs.html new file mode 100644 index 0000000000..2ac7b6d762 --- /dev/null +++ b/data/core.telegram.org/constructor/updatePinnedDialogs.html @@ -0,0 +1,160 @@ + + + + + updatePinnedDialogs + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePinnedDialogs

+ +

Pinned dialogs were updated

+

+
updatePinnedDialogs#fa0f3ca2 flags:# folder_id:flags.1?int order:flags.0?Vector<DialogPeer> = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
folder_idflags.1?intPeer folder ID, for more info click here
orderflags.0?Vector<DialogPeer>New order of pinned dialogs
+

Type

+

Update

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatePinnedMessages.html b/data/core.telegram.org/constructor/updatePinnedMessages.html new file mode 100644 index 0000000000..224bcc0dc2 --- /dev/null +++ b/data/core.telegram.org/constructor/updatePinnedMessages.html @@ -0,0 +1,175 @@ + + + + + updatePinnedMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePinnedMessages

+ +

Some messages were pinned in a chat

+

+
updatePinnedMessages#ed85eab5 flags:# pinned:flags.0?true peer:Peer messages:Vector<int> pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
pinnedflags.0?trueWhether the messages were pinned or unpinned
peerPeerPeer
messagesVector<int>Message IDs
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatePrivacy.html b/data/core.telegram.org/constructor/updatePrivacy.html new file mode 100644 index 0000000000..fcc9a832c8 --- /dev/null +++ b/data/core.telegram.org/constructor/updatePrivacy.html @@ -0,0 +1,152 @@ + + + + + updatePrivacy + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePrivacy

+ +

Privacy rules were changed

+

+
updatePrivacy#ee3b272a key:PrivacyKey rules:Vector<PrivacyRule> = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
keyPrivacyKeyPeers to which the privacy rules apply
rulesVector<PrivacyRule>New privacy rules
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatePtsChanged.html b/data/core.telegram.org/constructor/updatePtsChanged.html new file mode 100644 index 0000000000..fca86f17dd --- /dev/null +++ b/data/core.telegram.org/constructor/updatePtsChanged.html @@ -0,0 +1,135 @@ + + + + + updatePtsChanged + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePtsChanged

+ +

Common message box sequence PTS has changed, state has to be refetched using updates.getState

+

+
updatePtsChanged#3354678f = Update;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateReadChannelDiscussionInbox.html b/data/core.telegram.org/constructor/updateReadChannelDiscussionInbox.html new file mode 100644 index 0000000000..89bed32f07 --- /dev/null +++ b/data/core.telegram.org/constructor/updateReadChannelDiscussionInbox.html @@ -0,0 +1,177 @@ + + + + + updateReadChannelDiscussionInbox + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadChannelDiscussionInbox

+ +

Incoming comments in a discussion thread were marked as read

+

+
updateReadChannelDiscussionInbox#1cc7de54 flags:# channel_id:int top_msg_id:int read_max_id:int broadcast_id:flags.0?int broadcast_post:flags.0?int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
channel_idintDiscussion group ID
top_msg_idintID of the group message that started the thread (message in linked discussion group)
read_max_idintMessage ID of latest read incoming message for this thread
broadcast_idflags.0?intIf set, contains the ID of the channel that contains the post that started the comment thread in the discussion group (channel_id)
broadcast_postflags.0?intIf set, contains the ID of the channel post that started the the comment thread
+

Type

+

Update

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateReadChannelDiscussionOutbox.html b/data/core.telegram.org/constructor/updateReadChannelDiscussionOutbox.html new file mode 100644 index 0000000000..428ba34767 --- /dev/null +++ b/data/core.telegram.org/constructor/updateReadChannelDiscussionOutbox.html @@ -0,0 +1,162 @@ + + + + + updateReadChannelDiscussionOutbox + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadChannelDiscussionOutbox

+ +

Outgoing comments in a discussion thread were marked as read

+

+
updateReadChannelDiscussionOutbox#4638a26c channel_id:int top_msg_id:int read_max_id:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idintSupergroup ID
top_msg_idintID of the group message that started the thread
read_max_idintMessage ID of latest read outgoing message for this thread
+

Type

+

Update

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateReadChannelInbox.html b/data/core.telegram.org/constructor/updateReadChannelInbox.html new file mode 100644 index 0000000000..7055ffb333 --- /dev/null +++ b/data/core.telegram.org/constructor/updateReadChannelInbox.html @@ -0,0 +1,179 @@ + + + + + updateReadChannelInbox + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadChannelInbox

+ +

Incoming messages in a channel/supergroup were read

+

+
updateReadChannelInbox#330b5424 flags:# folder_id:flags.0?int channel_id:int max_id:int still_unread_count:int pts:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
folder_idflags.0?intPeer folder ID, for more info click here
channel_idintChannel/supergroup ID
max_idintPosition up to which all incoming messages are read.
still_unread_countintCount of messages weren't read yet
ptsintEvent count after generation
+

Type

+

Update

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateReadChannelOutbox.html b/data/core.telegram.org/constructor/updateReadChannelOutbox.html new file mode 100644 index 0000000000..c56483f6c2 --- /dev/null +++ b/data/core.telegram.org/constructor/updateReadChannelOutbox.html @@ -0,0 +1,155 @@ + + + + + updateReadChannelOutbox + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadChannelOutbox

+ +

Outgoing messages in a channel/supergroup were read

+

+
updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idintChannel/supergroup ID
max_idintPosition up to which all outgoing messages are read.
+

Type

+

Update

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateReadFeaturedStickers.html b/data/core.telegram.org/constructor/updateReadFeaturedStickers.html new file mode 100644 index 0000000000..8ea8b73c49 --- /dev/null +++ b/data/core.telegram.org/constructor/updateReadFeaturedStickers.html @@ -0,0 +1,132 @@ + + + + + updateReadFeaturedStickers + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateReadHistoryInbox.html b/data/core.telegram.org/constructor/updateReadHistoryInbox.html new file mode 100644 index 0000000000..662e49d6d0 --- /dev/null +++ b/data/core.telegram.org/constructor/updateReadHistoryInbox.html @@ -0,0 +1,182 @@ + + + + + updateReadHistoryInbox + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadHistoryInbox

+ +

Incoming messages were read

+

+
updateReadHistoryInbox#9c974fdf flags:# folder_id:flags.0?int peer:Peer max_id:int still_unread_count:int pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
folder_idflags.0?intPeer folder ID, for more info click here
peerPeerPeer
max_idintMaximum ID of messages read
still_unread_countintNumber of messages that are still unread
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateReadHistoryOutbox.html b/data/core.telegram.org/constructor/updateReadHistoryOutbox.html new file mode 100644 index 0000000000..be1b2578b0 --- /dev/null +++ b/data/core.telegram.org/constructor/updateReadHistoryOutbox.html @@ -0,0 +1,165 @@ + + + + + updateReadHistoryOutbox + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadHistoryOutbox

+ +

Outgoing messages were read

+

+
updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerPeer
max_idintMaximum ID of read outgoing messages
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateReadMessagesContents.html b/data/core.telegram.org/constructor/updateReadMessagesContents.html new file mode 100644 index 0000000000..4a9e8929ad --- /dev/null +++ b/data/core.telegram.org/constructor/updateReadMessagesContents.html @@ -0,0 +1,160 @@ + + + + + updateReadMessagesContents + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadMessagesContents

+ +

Contents of messages in the common message box were read

+

+
updateReadMessagesContents#68c13933 messages:Vector<int> pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messagesVector<int>IDs of read messages
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateRecentStickers.html b/data/core.telegram.org/constructor/updateRecentStickers.html new file mode 100644 index 0000000000..a1e448e3db --- /dev/null +++ b/data/core.telegram.org/constructor/updateRecentStickers.html @@ -0,0 +1,132 @@ + + + + + updateRecentStickers + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateSavedGifs.html b/data/core.telegram.org/constructor/updateSavedGifs.html new file mode 100644 index 0000000000..3983a3680c --- /dev/null +++ b/data/core.telegram.org/constructor/updateSavedGifs.html @@ -0,0 +1,132 @@ + + + + + updateSavedGifs + + + + + + + + + + + + + +
+ +
+
+
+ +

updateSavedGifs

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateServiceNotification.html b/data/core.telegram.org/constructor/updateServiceNotification.html new file mode 100644 index 0000000000..d36a5d76b6 --- /dev/null +++ b/data/core.telegram.org/constructor/updateServiceNotification.html @@ -0,0 +1,183 @@ + + + + + updateServiceNotification + + + + + + + + + + + + + +
+ +
+
+
+ +

updateServiceNotification

+ +

A service message for the user.

+

The app must show the message to the user upon receiving this update. In case the popup parameter was passed, the text message must be displayed in a popup alert immediately upon receipt. It is recommended to handle the text as you would an ordinary message in terms of highlighting links, etc. The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications).

+

+
updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector<MessageEntity> = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
popupflags.0?true(boolTrue) if the message must be displayed in a popup.
inbox_dateflags.1?intWhen was the notification received
The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications).
typestringString, identical in format and contents to the type field in API errors. Describes type of service message. It is acceptable to ignore repeated messages of the same type within a short period of time (15 minutes).
messagestringMessage text
mediaMessageMediaMedia content (optional)
entitiesVector<MessageEntity>Message entities for styled text
+

Type

+

Update

+

Related pages

+

Error handling

+

How to handle API return errors correctly.

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateShort.html b/data/core.telegram.org/constructor/updateShort.html new file mode 100644 index 0000000000..1aca702b6e --- /dev/null +++ b/data/core.telegram.org/constructor/updateShort.html @@ -0,0 +1,152 @@ + + + + + updateShort + + + + + + + + + + + + + +
+ +
+
+
+ +

updateShort

+ +

Shortened constructor containing info on one update not requiring auxiliary data

+

+
updateShort#78d4dec1 update:Update date:int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
updateUpdateUpdate
dateintDate of event
+

Type

+

Updates

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateShortChatMessage.html b/data/core.telegram.org/constructor/updateShortChatMessage.html new file mode 100644 index 0000000000..84eab81b33 --- /dev/null +++ b/data/core.telegram.org/constructor/updateShortChatMessage.html @@ -0,0 +1,227 @@ + + + + + updateShortChatMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateShortChatMessage

+ +

Shortened constructor containing info on one new incoming text message from a chat

+

+
updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
outflags.1?trueWhether the message is outgoing
mentionedflags.4?trueWhether we were mentioned in this message
media_unreadflags.5?trueWhether the message contains some unread mentions
silentflags.13?trueIf true, the message is a silent message, no notifications should be triggered
idintID of the message
from_idintID of the sender of the message
chat_idintID of the chat where the message was sent
messagestringMessage
ptsintPTS
pts_countintPTS count
dateintdate
fwd_fromflags.2?MessageFwdHeaderInfo about a forwarded message
via_bot_idflags.11?intInfo about the inline bot used to generate this message
reply_toflags.3?MessageReplyHeaderReply (thread) information
entitiesflags.7?Vector<MessageEntity>Entities for styled text
+

Type

+

Updates

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateShortMessage.html b/data/core.telegram.org/constructor/updateShortMessage.html new file mode 100644 index 0000000000..164fe4d615 --- /dev/null +++ b/data/core.telegram.org/constructor/updateShortMessage.html @@ -0,0 +1,224 @@ + + + + + updateShortMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateShortMessage

+ +

Info about a message sent to (received from) another user

+

+
updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
outflags.1?trueWhether the message is outgoing
mentionedflags.4?trueWhether we were mentioned in the message
media_unreadflags.5?trueWhether there are some unread mentions in this message
silentflags.13?trueIf true, the message is a silent message, no notifications should be triggered
idintThe message ID
user_idintThe ID of the sender (if outgoing will be the ID of the destination) of the message
messagestringThe message
ptsintPTS
pts_countintPTS count
dateintdate
fwd_fromflags.2?MessageFwdHeaderInfo about a forwarded message
via_bot_idflags.11?intInfo about the inline bot used to generate this message
reply_toflags.3?MessageReplyHeaderReply and thread information
entitiesflags.7?Vector<MessageEntity>Entities for styled text
+

Type

+

Updates

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateShortSentMessage.html b/data/core.telegram.org/constructor/updateShortSentMessage.html new file mode 100644 index 0000000000..47341bb123 --- /dev/null +++ b/data/core.telegram.org/constructor/updateShortSentMessage.html @@ -0,0 +1,187 @@ + + + + + updateShortSentMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateShortSentMessage

+ +

Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object).

+

+
updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
outflags.1?trueWhether the message is outgoing
idintID of the sent message
ptsintPTS
pts_countintPTS count
dateintdate
mediaflags.9?MessageMediaAttached media
entitiesflags.7?Vector<MessageEntity>Entities for styled text
+

Type

+

Updates

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateStickerSets.html b/data/core.telegram.org/constructor/updateStickerSets.html new file mode 100644 index 0000000000..9127b1715c --- /dev/null +++ b/data/core.telegram.org/constructor/updateStickerSets.html @@ -0,0 +1,132 @@ + + + + + updateStickerSets + + + + + + + + + + + + + +
+ +
+
+
+ +

updateStickerSets

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateStickerSetsOrder.html b/data/core.telegram.org/constructor/updateStickerSetsOrder.html new file mode 100644 index 0000000000..4ddc059f0f --- /dev/null +++ b/data/core.telegram.org/constructor/updateStickerSetsOrder.html @@ -0,0 +1,157 @@ + + + + + updateStickerSetsOrder + + + + + + + + + + + + + +
+ +
+
+
+ +

updateStickerSetsOrder

+ +

The order of stickersets was changed

+

+
updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector<long> = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
masksflags.0?trueWhether the updated stickers are mask stickers
orderVector<long>New sticker order by sticker ID
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateTheme.html b/data/core.telegram.org/constructor/updateTheme.html new file mode 100644 index 0000000000..f677cc66aa --- /dev/null +++ b/data/core.telegram.org/constructor/updateTheme.html @@ -0,0 +1,147 @@ + + + + + updateTheme + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateUserBlocked.html b/data/core.telegram.org/constructor/updateUserBlocked.html new file mode 100644 index 0000000000..613249be7d --- /dev/null +++ b/data/core.telegram.org/constructor/updateUserBlocked.html @@ -0,0 +1,159 @@ + + + + + updateUserBlocked + + + + + + + + + + + + + +
+ +
+
+
+ +

updateUserBlocked

+ +

User was added to the blacklist (method contacts.block) or removed from the blacklist (method contacts.unblock).

+

+
Constructor schema is available as of layer 119. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser id
blockedBool(boolTrue) if the the user is blocked
+

Type

+

Update

+

Related pages

+

boolTrue

+

The constructor can be interpreted as a booleantrue value.

+

contacts.block

+

Adds the user to the blacklist.

+

contacts.unblock

+

Deletes the user from the blacklist.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateUserName.html b/data/core.telegram.org/constructor/updateUserName.html new file mode 100644 index 0000000000..9de000404d --- /dev/null +++ b/data/core.telegram.org/constructor/updateUserName.html @@ -0,0 +1,167 @@ + + + + + updateUserName + + + + + + + + + + + + + +
+ +
+
+
+ +

updateUserName

+ +

Changes the user's first name, last name and username.

+

+
updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser identifier
first_namestringNew first name. Corresponds to the new value of real_first_name field of the userFull constructor.
last_namestringNew last name. Corresponds to the new value of real_last_name field of the userFull constructor.
usernamestringNew username.
Parameter added in Layer 18.
+

Type

+

Update

+

Related pages

+

userFull

+

Extended user info

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateUserPhone.html b/data/core.telegram.org/constructor/updateUserPhone.html new file mode 100644 index 0000000000..47d5929e8d --- /dev/null +++ b/data/core.telegram.org/constructor/updateUserPhone.html @@ -0,0 +1,152 @@ + + + + + updateUserPhone + + + + + + + + + + + + + +
+ +
+
+
+ +

updateUserPhone

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateUserPhoto.html b/data/core.telegram.org/constructor/updateUserPhoto.html new file mode 100644 index 0000000000..1e4769d32e --- /dev/null +++ b/data/core.telegram.org/constructor/updateUserPhoto.html @@ -0,0 +1,165 @@ + + + + + updateUserPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

updateUserPhoto

+ +

Change of contact's profile photo.

+

+
updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser identifier
dateintDate of photo update.
photoUserProfilePhotoNew profile photo
previousBool(boolTrue), if one of the previously used photos is set a profile photo.
+

Type

+

Update

+

Related pages

+

boolTrue

+

The constructor can be interpreted as a booleantrue value.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateUserStatus.html b/data/core.telegram.org/constructor/updateUserStatus.html new file mode 100644 index 0000000000..820d1d06fa --- /dev/null +++ b/data/core.telegram.org/constructor/updateUserStatus.html @@ -0,0 +1,152 @@ + + + + + updateUserStatus + + + + + + + + + + + + + +
+ +
+
+
+ +

updateUserStatus

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateUserTyping.html b/data/core.telegram.org/constructor/updateUserTyping.html new file mode 100644 index 0000000000..da41e6e52f --- /dev/null +++ b/data/core.telegram.org/constructor/updateUserTyping.html @@ -0,0 +1,155 @@ + + + + + updateUserTyping + + + + + + + + + + + + + +
+ +
+
+
+ +

updateUserTyping

+ +

The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he's been doing.

+

+
updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintUser id
actionSendMessageActionAction type
Param added in Layer 17.
+

Type

+

Update

+

Related pages

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updateWebPage.html b/data/core.telegram.org/constructor/updateWebPage.html new file mode 100644 index 0000000000..209527cc75 --- /dev/null +++ b/data/core.telegram.org/constructor/updateWebPage.html @@ -0,0 +1,160 @@ + + + + + updateWebPage + + + + + + + + + + + + + +
+ +
+
+
+ +

updateWebPage

+ +

An instant view webpage preview was generated

+

+
updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
webpageWebPageWebpage preview
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updates.channelDifference b/data/core.telegram.org/constructor/updates.channelDifference new file mode 100644 index 0000000000..11c96aa924 --- /dev/null +++ b/data/core.telegram.org/constructor/updates.channelDifference @@ -0,0 +1,185 @@ + + + + + updates.channelDifference + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.channelDifference

+ +

The new updates

+

+
updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector<Message> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
finalflags.0?trueWhether there are more updates to be fetched using getDifference, starting from the provided pts
ptsintThe PTS from which to start getting updates the next time
timeoutflags.1?intClients are supposed to refetch the channel difference after timeout seconds have elapsed
new_messagesVector<Message>New messages
other_updatesVector<Update>Other updates
chatsVector<Chat>Chats
usersVector<User>Users
+

Type

+

updates.ChannelDifference

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updates.channelDifferenceEmpty b/data/core.telegram.org/constructor/updates.channelDifferenceEmpty new file mode 100644 index 0000000000..6b04602f2d --- /dev/null +++ b/data/core.telegram.org/constructor/updates.channelDifferenceEmpty @@ -0,0 +1,165 @@ + + + + + updates.channelDifferenceEmpty + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.channelDifferenceEmpty

+ +

There are no new updates

+

+
updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
finalflags.0?trueWhether there are more updates that must be fetched (always false)
ptsintThe latest PTS
timeoutflags.1?intClients are supposed to refetch the channel difference after timeout seconds have elapsed
+

Type

+

updates.ChannelDifference

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updates.channelDifferenceTooLong b/data/core.telegram.org/constructor/updates.channelDifferenceTooLong new file mode 100644 index 0000000000..b17c4991ea --- /dev/null +++ b/data/core.telegram.org/constructor/updates.channelDifferenceTooLong @@ -0,0 +1,190 @@ + + + + + updates.channelDifferenceTooLong + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.channelDifferenceTooLong

+ +

The provided pts + limit < remote pts. Simply, there are too many updates to be fetched (more than limit), the client has to resolve the update gap in one of the following ways:

+
    +
  1. Delete all known messages in the chat, begin from scratch by refetching all messages manually with getHistory. It is easy to implement, but suddenly disappearing messages looks awful for the user.
  2. +
  3. Save all messages loaded in the memory until application restart, but delete all messages from database. Messages left in the memory must be lazily updated using calls to getHistory. It looks much smoothly for the user, they will need to redownload messages only after client restart. Unsynchronized messages left in the memory shouldn't be saved to database, results of getHistory and getMessages must be used to update state of deleted and edited messages left in the memory.
  4. +
  5. Save all messages loaded in the memory and stored in the database without saving that some messages form continuous ranges. Messages in the database will be excluded from results of getChatHistory and searchChatMessages after application restart and will be available only through getMessage. Every message should still be checked using getHistory. It has more disadvantages over 2) than advantages.
  6. +
  7. Save all messages with saving all data about continuous message ranges. Messages from the database may be used as results of getChatHistory and (if implemented continuous ranges support for searching shared media) searchChatMessages. The messages should still be lazily checked using getHistory, but they are still available offline. It is the best way for gaps support, but it is pretty hard to implement correctly. It should be also noted that some messages like live location messages shouldn't be deleted.
  8. +
+

+
updates.channelDifferenceTooLong#a4bcc6fe flags:# final:flags.0?true timeout:flags.1?int dialog:Dialog messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
finalflags.0?trueWhether there are more updates that must be fetched (always false)
timeoutflags.1?intClients are supposed to refetch the channel difference after timeout seconds have elapsed
dialogDialogDialog containing the latest PTS that can be used to reset the channel state
messagesVector<Message>The latest messages
chatsVector<Chat>Chats from messages
usersVector<User>Users from messages
+

Type

+

updates.ChannelDifference

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

messages.getHistory

+

Gets back the conversation history with one interlocutor / within a chat

+

messages.getMessages

+

Returns the list of messages by their IDs.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updates.difference b/data/core.telegram.org/constructor/updates.difference new file mode 100644 index 0000000000..7621c66d72 --- /dev/null +++ b/data/core.telegram.org/constructor/updates.difference @@ -0,0 +1,172 @@ + + + + + updates.difference + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.difference

+ +

Full list of occurred events.

+

+
updates.difference#f49ca0 new_messages:Vector<Message> new_encrypted_messages:Vector<EncryptedMessage> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> state:updates.State = updates.Difference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
new_messagesVector<Message>List of new messages
new_encrypted_messagesVector<EncryptedMessage>List of new encrypted secret chat messages
other_updatesVector<Update>List of updates
chatsVector<Chat>List of chats mentioned in events
usersVector<User>List of users mentioned in events
stateupdates.StateCurrent state
+

Type

+

updates.Difference

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updates.differenceEmpty b/data/core.telegram.org/constructor/updates.differenceEmpty new file mode 100644 index 0000000000..8e9ebdc63e --- /dev/null +++ b/data/core.telegram.org/constructor/updates.differenceEmpty @@ -0,0 +1,152 @@ + + + + + updates.differenceEmpty + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.differenceEmpty

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updates.differenceSlice b/data/core.telegram.org/constructor/updates.differenceSlice new file mode 100644 index 0000000000..860cc86a6a --- /dev/null +++ b/data/core.telegram.org/constructor/updates.differenceSlice @@ -0,0 +1,175 @@ + + + + + updates.differenceSlice + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.differenceSlice

+ +

Incomplete list of occurred events.

+

+
updates.differenceSlice#a8fb1981 new_messages:Vector<Message> new_encrypted_messages:Vector<EncryptedMessage> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> intermediate_state:updates.State = updates.Difference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
new_messagesVector<Message>List of new messgaes
new_encrypted_messagesVector<EncryptedMessage>New messages from the encrypted event sequence
other_updatesVector<Update>List of updates
chatsVector<Chat>List of chats mentioned in events
usersVector<User>List of users mentioned in events
intermediate_stateupdates.StateIntermediary state
+

Type

+

updates.Difference

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updates.differenceTooLong b/data/core.telegram.org/constructor/updates.differenceTooLong new file mode 100644 index 0000000000..fa90eee145 --- /dev/null +++ b/data/core.telegram.org/constructor/updates.differenceTooLong @@ -0,0 +1,150 @@ + + + + + updates.differenceTooLong + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.differenceTooLong

+ +

The difference is too long, and the specified state must be used to refetch updates.

+

+
updates.differenceTooLong#4afe8f6d pts:int = updates.Difference;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
ptsintThe new state to use.
+

Type

+

updates.Difference

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updates.html b/data/core.telegram.org/constructor/updates.html new file mode 100644 index 0000000000..1be0825140 --- /dev/null +++ b/data/core.telegram.org/constructor/updates.html @@ -0,0 +1,167 @@ + + + + + Updates + + + + + + + + + + + + + +
+ +
+
+
+ +

Updates

+ +

Full constructor of updates

+

+
updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
updatesVector<Update>List of updates
usersVector<User>List of users mentioned in updates
chatsVector<Chat>List of chats mentioned in updates
dateintCurrent date
seqintTotal number of sent updates
+

Type

+

Updates

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updates.state b/data/core.telegram.org/constructor/updates.state new file mode 100644 index 0000000000..74569e17e9 --- /dev/null +++ b/data/core.telegram.org/constructor/updates.state @@ -0,0 +1,172 @@ + + + + + updates.state + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.state

+ +

Updates state.

+

+
updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ptsintNumber of events occured in a text box
qtsintPosition in a sequence of updates in secret chats. For further detailes refer to article secret chats
Parameter was added in eigth layer.
dateintDate of condition
seqintNumber of sent updates
unread_countintNumber of unread messages
+

Type

+

updates.State

+

Related pages

+

End-to-End Encryption, Secret Chats

+

New feature for end-to-end-encrypted messaging.

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatesCombined.html b/data/core.telegram.org/constructor/updatesCombined.html new file mode 100644 index 0000000000..d37063f429 --- /dev/null +++ b/data/core.telegram.org/constructor/updatesCombined.html @@ -0,0 +1,172 @@ + + + + + updatesCombined + + + + + + + + + + + + + +
+ +
+
+
+ +

updatesCombined

+ +

Constructor for a group of updates.

+

+
updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
updatesVector<Update>List of updates
usersVector<User>List of users mentioned in updates
chatsVector<Chat>List of chats mentioned in updates
dateintCurrent date
seq_startintValue seq for the earliest update in a group
seqintValue seq for the latest update in a group
+

Type

+

Updates

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/updatesTooLong.html b/data/core.telegram.org/constructor/updatesTooLong.html new file mode 100644 index 0000000000..66da3e8a78 --- /dev/null +++ b/data/core.telegram.org/constructor/updatesTooLong.html @@ -0,0 +1,135 @@ + + + + + updatesTooLong + + + + + + + + + + + + + +
+ +
+
+
+ +

updatesTooLong

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/upload.cdnFile b/data/core.telegram.org/constructor/upload.cdnFile new file mode 100644 index 0000000000..38a06924a8 --- /dev/null +++ b/data/core.telegram.org/constructor/upload.cdnFile @@ -0,0 +1,149 @@ + + + + + upload.cdnFile + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.cdnFile

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/upload.cdnFileReuploadNeeded b/data/core.telegram.org/constructor/upload.cdnFileReuploadNeeded new file mode 100644 index 0000000000..85bfcb1f10 --- /dev/null +++ b/data/core.telegram.org/constructor/upload.cdnFileReuploadNeeded @@ -0,0 +1,149 @@ + + + + + upload.cdnFileReuploadNeeded + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.cdnFileReuploadNeeded

+ +

The file was cleared from the temporary RAM cache of the CDN and has to be reuploaded.

+

+
upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
request_tokenbytesRequest token (see CDN)
+

Type

+

upload.CdnFile

+

Related pages

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/upload.file b/data/core.telegram.org/constructor/upload.file new file mode 100644 index 0000000000..8aee3c656e --- /dev/null +++ b/data/core.telegram.org/constructor/upload.file @@ -0,0 +1,157 @@ + + + + + upload.file + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.file

+ +

File content.

+

+
upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typestorage.FileTypeFile type
mtimeintModification type
bytesbytesBinary data, file content
+

Type

+

upload.File

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/upload.fileCdnRedirect b/data/core.telegram.org/constructor/upload.fileCdnRedirect new file mode 100644 index 0000000000..1ac3c8853c --- /dev/null +++ b/data/core.telegram.org/constructor/upload.fileCdnRedirect @@ -0,0 +1,169 @@ + + + + + upload.fileCdnRedirect + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.fileCdnRedirect

+ +

The file must be downloaded from a CDN DC.

+

+
upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector<FileHash> = upload.File;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dc_idintCDN DC ID
file_tokenbytesFile token (see CDN files)
encryption_keybytesEncryption key (see CDN files)
encryption_ivbytesEncryption IV (see CDN files)
file_hashesVector<FileHash>File hashes (see CDN files)
+

Type

+

upload.File

+

Related pages

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/upload.webFile b/data/core.telegram.org/constructor/upload.webFile new file mode 100644 index 0000000000..e81229b507 --- /dev/null +++ b/data/core.telegram.org/constructor/upload.webFile @@ -0,0 +1,170 @@ + + + + + upload.webFile + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.webFile

+ +

Represents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers

+

+
upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
sizeintFile size
mime_typestringMime type
file_typestorage.FileTypeFile type
mtimeintModified time
bytesbytesData
+

Type

+

upload.WebFile

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/urlAuthResultAccepted.html b/data/core.telegram.org/constructor/urlAuthResultAccepted.html new file mode 100644 index 0000000000..3c088929e0 --- /dev/null +++ b/data/core.telegram.org/constructor/urlAuthResultAccepted.html @@ -0,0 +1,150 @@ + + + + + urlAuthResultAccepted + + + + + + + + + + + + + +
+ +
+
+
+ +

urlAuthResultAccepted

+ +

Details about an accepted authorization request, for more info click here »

+

+
urlAuthResultAccepted#8f8c0e4e url:string = UrlAuthResult;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
urlstringThe URL name of the website on which the user has logged in.
+

Type

+

UrlAuthResult

+

Related pages

+

Seamless Telegram Login

+

Handle Seamless Telegram Login URL authorization requests.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/urlAuthResultDefault.html b/data/core.telegram.org/constructor/urlAuthResultDefault.html new file mode 100644 index 0000000000..84e580963d --- /dev/null +++ b/data/core.telegram.org/constructor/urlAuthResultDefault.html @@ -0,0 +1,135 @@ + + + + + urlAuthResultDefault + + + + + + + + + + + + + +
+ +
+
+
+ +

urlAuthResultDefault

+ +

Details about an accepted authorization request, for more info click here »

+

+
urlAuthResultDefault#a9d6db1f = UrlAuthResult;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

UrlAuthResult

+

Related pages

+

Seamless Telegram Login

+

Handle Seamless Telegram Login URL authorization requests.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/urlAuthResultRequest.html b/data/core.telegram.org/constructor/urlAuthResultRequest.html new file mode 100644 index 0000000000..fc9eb7bda5 --- /dev/null +++ b/data/core.telegram.org/constructor/urlAuthResultRequest.html @@ -0,0 +1,165 @@ + + + + + urlAuthResultRequest + + + + + + + + + + + + + +
+ +
+
+
+ +

urlAuthResultRequest

+ +

Details about the authorization request, for more info click here »

+

+
urlAuthResultRequest#92d33a0e flags:# request_write_access:flags.0?true bot:User domain:string = UrlAuthResult;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
request_write_accessflags.0?trueWhether the bot would like to send messages to the user
botUserUsername of a bot, which will be used for user authorization. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details.
domainstringThe domain name of the website on which the user will log in.
+

Type

+

UrlAuthResult

+

Related pages

+

Seamless Telegram Login

+

Handle Seamless Telegram Login URL authorization requests.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/user.html b/data/core.telegram.org/constructor/user.html new file mode 100644 index 0000000000..1ec5965d9b --- /dev/null +++ b/data/core.telegram.org/constructor/user.html @@ -0,0 +1,282 @@ + + + + + user + + + + + + + + + + + + + +
+ +
+
+
+ +

user

+ +

Indicates info about a certain user

+

+
user#938458c1 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
selfflags.10?trueWhether this user indicates the currently logged in user
contactflags.11?trueWhether this user is a contact
mutual_contactflags.12?trueWhether this user is a mutual contact
deletedflags.13?trueWhether the account of this user was deleted
botflags.14?trueIs this user a bot?
bot_chat_historyflags.15?trueCan the bot see all messages in groups?
bot_nochatsflags.16?trueCan the bot be added to groups?
verifiedflags.17?trueWhether this user is verified
restrictedflags.18?trueAccess to this user must be restricted for the reason specified in restriction_reason
minflags.20?trueSee min
bot_inline_geoflags.21?trueWhether the bot can request our geolocation in inline mode
supportflags.23?trueWhether this is an official support user
scamflags.24?trueThis may be a scam user
apply_min_photoflags.25?trueIf set, the profile picture for this user should be refetched
idintID of the user
access_hashflags.0?longAccess hash of the user
first_nameflags.1?stringFirst name
last_nameflags.2?stringLast name
usernameflags.3?stringUsername
phoneflags.4?stringPhone number
photoflags.5?UserProfilePhotoProfile picture of user
statusflags.6?UserStatusOnline status of user
bot_info_versionflags.14?intVersion of the bot_info field in userFull, incremented every time it changes
restriction_reasonflags.18?Vector<RestrictionReason>Contains the reason why access to this user must be restricted.
bot_inline_placeholderflags.19?stringInline placeholder for this inline bot
lang_codeflags.22?stringLanguage code of the user
+

Type

+

User

+

Related pages

+

Min constructors

+

In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.

+

userFull

+

Extended user info

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userEmpty.html b/data/core.telegram.org/constructor/userEmpty.html new file mode 100644 index 0000000000..8a75a41760 --- /dev/null +++ b/data/core.telegram.org/constructor/userEmpty.html @@ -0,0 +1,147 @@ + + + + + userEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userForeign.html b/data/core.telegram.org/constructor/userForeign.html new file mode 100644 index 0000000000..e080eac64b --- /dev/null +++ b/data/core.telegram.org/constructor/userForeign.html @@ -0,0 +1,177 @@ + + + + + userForeign + + + + + + + + + + + + + +
+ +
+
+
+ +

userForeign

+ +

A user that is not a contact of the current user.

+

+
Constructor schema is available as of layer 18. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintUser identifier
first_namestringFirst name as supplied by the user
last_namestringLast name as supplied by the user
access_hashlongChecksum dependent on the user identifier
photoUserProfilePhotoProfile photo
statusUserStatusCurrent status
usernamestringUsername
Parameter added in Layer 18.
+

Type

+

User

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userFull.html b/data/core.telegram.org/constructor/userFull.html new file mode 100644 index 0000000000..4d10ad3abd --- /dev/null +++ b/data/core.telegram.org/constructor/userFull.html @@ -0,0 +1,229 @@ + + + + + userFull + + + + + + + + + + + + + +
+ +
+
+
+ +

userFull

+ +

Extended user info

+

+
userFull#edf17c12 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true user:User about:flags.1?string settings:PeerSettings profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int = UserFull;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
blockedflags.0?trueWhether you have blocked this user
phone_calls_availableflags.4?trueWhether this user can make VoIP calls
phone_calls_privateflags.5?trueWhether this user's privacy settings allow you to call him
can_pin_messageflags.7?trueWhether you can pin messages in the chat with this user, you can do this only for a chat with yourself
has_scheduledflags.12?trueWhether scheduled messages are available
video_calls_availableflags.13?trueWhether the user can receive video calls
userUserRemaining user info
aboutflags.1?stringBio of the user
settingsPeerSettingsPeer settings
profile_photoflags.2?PhotoProfile photo
notify_settingsPeerNotifySettingsNotification settings
bot_infoflags.3?BotInfoFor bots, info about the bot (bot commands, etc)
pinned_msg_idflags.6?intMessage ID of the last pinned message
common_chats_countintChats in common with this user
folder_idflags.11?intPeer folder ID, for more info click here
+

Type

+

UserFull

+

Related pages

+

Scheduled messages

+

Telegram allows scheduling messages

+

Pinned messages

+

Telegram allows pinning multiple messages on top of a specific chat.

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userProfilePhoto.html b/data/core.telegram.org/constructor/userProfilePhoto.html new file mode 100644 index 0000000000..e3b72bd986 --- /dev/null +++ b/data/core.telegram.org/constructor/userProfilePhoto.html @@ -0,0 +1,177 @@ + + + + + userProfilePhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

userProfilePhoto

+ +

User profile photo.

+

+
userProfilePhoto#69d3ab26 flags:# has_video:flags.0?true photo_id:long photo_small:FileLocation photo_big:FileLocation dc_id:int = UserProfilePhoto;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
has_videoflags.0?trueWhether an animated profile picture is available for this user
photo_idlongIdentifier of the respective photo
Parameter added in Layer 2
photo_smallFileLocationLocation of the file, corresponding to the small profile photo thumbnail
photo_bigFileLocationLocation of the file, corresponding to the big profile photo thumbnail
dc_idintDC ID where the photo is stored
+

Type

+

UserProfilePhoto

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userProfilePhotoEmpty.html b/data/core.telegram.org/constructor/userProfilePhotoEmpty.html new file mode 100644 index 0000000000..884b419182 --- /dev/null +++ b/data/core.telegram.org/constructor/userProfilePhotoEmpty.html @@ -0,0 +1,132 @@ + + + + + userProfilePhotoEmpty + + + + + + + + + + + + + +
+ +
+
+
+ +

userProfilePhotoEmpty

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userRequest.html b/data/core.telegram.org/constructor/userRequest.html new file mode 100644 index 0000000000..970414f6c4 --- /dev/null +++ b/data/core.telegram.org/constructor/userRequest.html @@ -0,0 +1,182 @@ + + + + + userRequest + + + + + + + + + + + + + +
+ +
+
+
+ +

userRequest

+ +

A user that is not a contact of the current user, but whose phone number is available.

+

+
Constructor schema is available as of layer 18. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintUser identifier
first_namestringFirst name the user supplied
last_namestringLast name the user supplied
access_hashlongChecksum dependent on the user identifier
phonestringPhone number
photoUserProfilePhotoProfile photo
statusUserStatusCurrent status
usernamestringUsername
Parameter added in Layer 18.
+

Type

+

User

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userStatusEmpty.html b/data/core.telegram.org/constructor/userStatusEmpty.html new file mode 100644 index 0000000000..a277a06165 --- /dev/null +++ b/data/core.telegram.org/constructor/userStatusEmpty.html @@ -0,0 +1,132 @@ + + + + + userStatusEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userStatusLastMonth.html b/data/core.telegram.org/constructor/userStatusLastMonth.html new file mode 100644 index 0000000000..4a3ee5f5b6 --- /dev/null +++ b/data/core.telegram.org/constructor/userStatusLastMonth.html @@ -0,0 +1,132 @@ + + + + + userStatusLastMonth + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userStatusLastWeek.html b/data/core.telegram.org/constructor/userStatusLastWeek.html new file mode 100644 index 0000000000..375e0ee11f --- /dev/null +++ b/data/core.telegram.org/constructor/userStatusLastWeek.html @@ -0,0 +1,132 @@ + + + + + userStatusLastWeek + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userStatusOffline.html b/data/core.telegram.org/constructor/userStatusOffline.html new file mode 100644 index 0000000000..008dc4c0fa --- /dev/null +++ b/data/core.telegram.org/constructor/userStatusOffline.html @@ -0,0 +1,147 @@ + + + + + userStatusOffline + + + + + + + + + + + + + +
+ +
+
+
+ +

userStatusOffline

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userStatusOnline.html b/data/core.telegram.org/constructor/userStatusOnline.html new file mode 100644 index 0000000000..633cc8a802 --- /dev/null +++ b/data/core.telegram.org/constructor/userStatusOnline.html @@ -0,0 +1,147 @@ + + + + + userStatusOnline + + + + + + + + + + + + + +
+ +
+
+
+ +

userStatusOnline

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/userStatusRecently.html b/data/core.telegram.org/constructor/userStatusRecently.html new file mode 100644 index 0000000000..32c3612607 --- /dev/null +++ b/data/core.telegram.org/constructor/userStatusRecently.html @@ -0,0 +1,132 @@ + + + + + userStatusRecently + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/vector.html b/data/core.telegram.org/constructor/vector.html new file mode 100644 index 0000000000..28f3c03fad --- /dev/null +++ b/data/core.telegram.org/constructor/vector.html @@ -0,0 +1,134 @@ + + + + + vector + + + + + + + + + + + + + +
+ +
+
+
+ +

vector

+ +

A universal vector constructor.

+

+
vector#1cb5c415 {t:Type} # [ t ] = Vector t;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Vector t

+

Params additional

+

For serialization write the constructor id 0x1cb5c415:int, then the number of vector elements - #:int, then, one after another, the # of the elements of the type t, that was implicitly passed to the constructor.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/videoSize.html b/data/core.telegram.org/constructor/videoSize.html new file mode 100644 index 0000000000..12931646d0 --- /dev/null +++ b/data/core.telegram.org/constructor/videoSize.html @@ -0,0 +1,180 @@ + + + + + videoSize + + + + + + + + + + + + + +
+ +
+
+
+ +

videoSize

+ +

Animated profile picture in MPEG4 format

+

+
videoSize#e831c556 flags:# type:string location:FileLocation w:int h:int size:int video_start_ts:flags.0?double = VideoSize;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
typestringu for animated profile pictures, and v for trimmed and downscaled video previews
locationFileLocationFile location
wintVideo width
hintVideo height
sizeintFile size
video_start_tsflags.0?doubleTimestamp that should be shown as static preview to the user (seconds)
+

Type

+

VideoSize

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/wallPaper.html b/data/core.telegram.org/constructor/wallPaper.html new file mode 100644 index 0000000000..5565f05212 --- /dev/null +++ b/data/core.telegram.org/constructor/wallPaper.html @@ -0,0 +1,192 @@ + + + + + wallPaper + + + + + + + + + + + + + +
+ +
+
+
+ +

wallPaper

+ +

Wallpaper settings.

+

+
wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongIdentifier
flags#Flags, see TL conditional fields
creatorflags.0?trueCreator of the wallpaper
defaultflags.1?trueWhether this is the default wallpaper
patternflags.3?truePattern
darkflags.4?trueDark mode
access_hashlongAccess hash
slugstringUnique wallpaper ID
documentDocumentThe actual wallpaper
settingsflags.2?WallPaperSettingsWallpaper settings
+

Type

+

WallPaper

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/wallPaperNoFile.html b/data/core.telegram.org/constructor/wallPaperNoFile.html new file mode 100644 index 0000000000..a4f77bb5ce --- /dev/null +++ b/data/core.telegram.org/constructor/wallPaperNoFile.html @@ -0,0 +1,162 @@ + + + + + wallPaperNoFile + + + + + + + + + + + + + +
+ +
+
+
+ +

wallPaperNoFile

+ +

No file wallpaper

+

+
wallPaperNoFile#8af40b25 flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
defaultflags.1?trueWhether this is the default wallpaper
darkflags.4?trueDark mode
settingsflags.2?WallPaperSettingsWallpaper settings
+

Type

+

WallPaper

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/wallPaperSettings.html b/data/core.telegram.org/constructor/wallPaperSettings.html new file mode 100644 index 0000000000..81f3390763 --- /dev/null +++ b/data/core.telegram.org/constructor/wallPaperSettings.html @@ -0,0 +1,177 @@ + + + + + wallPaperSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

wallPaperSettings

+ +

Wallpaper settings

+

+
wallPaperSettings#5086cf8 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int intensity:flags.3?int rotation:flags.4?int = WallPaperSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
blurflags.1?trueIf set, the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12
motionflags.2?trueIf set, the background needs to be slightly moved when device is rotated
background_colorflags.0?intIf set, a PNG pattern is to be combined with the color chosen by the user: the main color of the background in RGB24 format
second_background_colorflags.4?intIf set, a PNG pattern is to be combined with the first and second background colors (RGB24 format) in a top-bottom gradient
intensityflags.3?intIntensity of the pattern when it is shown above the main background color, 0-100
rotationflags.4?intClockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45
+

Type

+

WallPaperSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/wallPaperSolid.html b/data/core.telegram.org/constructor/wallPaperSolid.html new file mode 100644 index 0000000000..e7f3679044 --- /dev/null +++ b/data/core.telegram.org/constructor/wallPaperSolid.html @@ -0,0 +1,162 @@ + + + + + wallPaperSolid + + + + + + + + + + + + + +
+ +
+
+
+ +

wallPaperSolid

+ +

One-color background wallpaper (no image).

+

+
Constructor schema is available as of layer 93. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintIdentifier
titlestringName
bg_colorintBackground color (RGB)
colorintBasic background color (RGB)
+

Type

+

WallPaper

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/webAuthorization.html b/data/core.telegram.org/constructor/webAuthorization.html new file mode 100644 index 0000000000..c8ad67c4cd --- /dev/null +++ b/data/core.telegram.org/constructor/webAuthorization.html @@ -0,0 +1,189 @@ + + + + + webAuthorization + + + + + + + + + + + + + +
+ +
+
+
+ +

webAuthorization

+ +

Represents a bot logged in using the Telegram login widget

+

+
webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashlongAuthorization hash
bot_idintBot ID
domainstringThe domain name of the website on which the user has logged in.
browserstringBrowser user-agent
platformstringPlatform
date_createdintWhen was the web session created
date_activeintWhen was the web session last active
ipstringIP address
regionstringRegion, determined from IP address
+

Type

+

WebAuthorization

+

Related pages

+

Telegram Login Widget

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/webDocument.html b/data/core.telegram.org/constructor/webDocument.html new file mode 100644 index 0000000000..e9d6e39446 --- /dev/null +++ b/data/core.telegram.org/constructor/webDocument.html @@ -0,0 +1,167 @@ + + + + + webDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

webDocument

+ +

Remote document

+

+
webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector<DocumentAttribute> = WebDocument;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringDocument URL
access_hashlongAccess hash
sizeintFile size
mime_typestringMIME type
attributesVector<DocumentAttribute>Attributes for media types
+

Type

+

WebDocument

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/webDocumentNoProxy.html b/data/core.telegram.org/constructor/webDocumentNoProxy.html new file mode 100644 index 0000000000..95f656d424 --- /dev/null +++ b/data/core.telegram.org/constructor/webDocumentNoProxy.html @@ -0,0 +1,165 @@ + + + + + webDocumentNoProxy + + + + + + + + + + + + + +
+ +
+
+
+ +

webDocumentNoProxy

+ +

Remote document that can be downloaded without proxying through telegram

+

+
webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector<DocumentAttribute> = WebDocument;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringDocument URL
sizeintFile size
mime_typestringMIME type
attributesVector<DocumentAttribute>Attributes for media types
+

Type

+

WebDocument

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/webPage.html b/data/core.telegram.org/constructor/webPage.html new file mode 100644 index 0000000000..7501af065f --- /dev/null +++ b/data/core.telegram.org/constructor/webPage.html @@ -0,0 +1,240 @@ + + + + + webPage + + + + + + + + + + + + + +
+ +
+
+
+ +

webPage

+ +

Webpage preview

+

+
webPage#e89c45b2 flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page attributes:flags.12?Vector<WebPageAttribute> = WebPage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idlongPreview ID
urlstringURL of previewed webpage
display_urlstringWebpage URL to be displayed to the user
hashintHash for pagination, for more info click here
typeflags.0?stringType of the web page. Can be: article, photo, audio, video, document, profile, app, or something else
site_nameflags.1?stringShort name of the site (e.g., Google Docs, App Store)
titleflags.2?stringTitle of the content
descriptionflags.3?stringContent description
photoflags.4?PhotoImage representing the content
embed_urlflags.5?stringURL to show in the embedded preview
embed_typeflags.5?stringMIME type of the embedded preview, (e.g., text/html or video/mp4)
embed_widthflags.6?intWidth of the embedded preview
embed_heightflags.6?intHeight of the embedded preview
durationflags.7?intDuration of the content, in seconds
authorflags.8?stringAuthor of the content
documentflags.9?DocumentPreview of the content as a media file
cached_pageflags.10?PagePage contents in instant view format
attributesflags.12?Vector<WebPageAttribute>Webpage attributes
+

Type

+

WebPage

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/webPageAttributeTheme.html b/data/core.telegram.org/constructor/webPageAttributeTheme.html new file mode 100644 index 0000000000..03ffe97771 --- /dev/null +++ b/data/core.telegram.org/constructor/webPageAttributeTheme.html @@ -0,0 +1,157 @@ + + + + + webPageAttributeTheme + + + + + + + + + + + + + +
+ +
+
+
+ +

webPageAttributeTheme

+ +

Page theme

+

+
webPageAttributeTheme#54b56617 flags:# documents:flags.0?Vector<Document> settings:flags.1?ThemeSettings = WebPageAttribute;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
documentsflags.0?Vector<Document>Theme files
settingsflags.1?ThemeSettingsTheme settings
+

Type

+

WebPageAttribute

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/webPageEmpty.html b/data/core.telegram.org/constructor/webPageEmpty.html new file mode 100644 index 0000000000..1a19eab897 --- /dev/null +++ b/data/core.telegram.org/constructor/webPageEmpty.html @@ -0,0 +1,147 @@ + + + + + webPageEmpty + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/constructor/webPageNotModified.html b/data/core.telegram.org/constructor/webPageNotModified.html new file mode 100644 index 0000000000..e7a1c86498 --- /dev/null +++ b/data/core.telegram.org/constructor/webPageNotModified.html @@ -0,0 +1,152 @@ + + + + + webPageNotModified + + + + + + + + + + + + + +
+ +
+
+
+ +

webPageNotModified

+ +

The preview of the webpage hasn't changed

+

+
webPageNotModified#7311ca11 flags:# cached_page_views:flags.0?int = WebPage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
cached_page_viewsflags.0?intPage view count
+

Type

+

WebPage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/constructor/webPagePending.html b/data/core.telegram.org/constructor/webPagePending.html new file mode 100644 index 0000000000..682abad338 --- /dev/null +++ b/data/core.telegram.org/constructor/webPagePending.html @@ -0,0 +1,152 @@ + + + + + webPagePending + + + + + + + + + + + + + +
+ +
+
+
+ +

webPagePending

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.acceptAuthorization b/data/core.telegram.org/method/account.acceptAuthorization new file mode 100644 index 0000000000..382aa06ad2 --- /dev/null +++ b/data/core.telegram.org/method/account.acceptAuthorization @@ -0,0 +1,170 @@ + + + + + account.acceptAuthorization + + + + + + + + + + + + + +
+ +
+
+
+ +

account.acceptAuthorization

+ +

Sends a Telegram Passport authorization form, effectively sharing data with the service

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.acceptAuthorization#e7027c94 bot_id:int scope:string public_key:string value_hashes:Vector<SecureValueHash> credentials:SecureCredentialsEncrypted = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
bot_idintBot ID
scopestringTelegram Passport element types requested by the service
public_keystringService's public key
value_hashesVector<SecureValueHash>Types of values sent and their hashes
credentialsSecureCredentialsEncryptedEncrypted values
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.cancelPasswordEmail b/data/core.telegram.org/method/account.cancelPasswordEmail new file mode 100644 index 0000000000..e1e56ce23c --- /dev/null +++ b/data/core.telegram.org/method/account.cancelPasswordEmail @@ -0,0 +1,138 @@ + + + + + account.cancelPasswordEmail + + + + + + + + + + + + + +
+ +
+
+
+ +

account.cancelPasswordEmail

+ +

Cancel the code that was sent to verify an email to use as 2FA recovery method.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.cancelPasswordEmail#c1cbd5b6 = Bool;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Bool

+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.changePhone b/data/core.telegram.org/method/account.changePhone new file mode 100644 index 0000000000..9dfdf9d5d5 --- /dev/null +++ b/data/core.telegram.org/method/account.changePhone @@ -0,0 +1,185 @@ + + + + + account.changePhone + + + + + + + + + + + + + +
+ +
+
+
+ +

account.changePhone

+ +

Change the phone number of the current account

+

+
userEmpty#200250ba id:int = User;
+user#938458c1 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User;
+---functions---
+account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringNew phone number
phone_code_hashstringPhone code hash received when calling account.sendChangePhoneCode
phone_codestringPhone code received when calling account.sendChangePhoneCode
+

Result

+

User

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400PHONE_CODE_EMPTYphone_code is missing
400PHONE_NUMBER_INVALIDThe phone number is invalid
+

Related pages

+

account.sendChangePhoneCode

+

Verify a new phone number to associate to the current account

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.checkUsername b/data/core.telegram.org/method/account.checkUsername new file mode 100644 index 0000000000..d02c969ec7 --- /dev/null +++ b/data/core.telegram.org/method/account.checkUsername @@ -0,0 +1,167 @@ + + + + + account.checkUsername + + + + + + + + + + + + + +
+ +
+
+
+ +

account.checkUsername

+ +

Validates a username and checks availability.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.checkUsername#2714d86c username:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
usernamestringusername
Accepted characters: A-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters.
+

Result

+

Return Bool result on whether the passed username can be used.

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400USERNAME_INVALIDUnacceptable username
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.confirmPasswordEmail b/data/core.telegram.org/method/account.confirmPasswordEmail new file mode 100644 index 0000000000..d39c58211c --- /dev/null +++ b/data/core.telegram.org/method/account.confirmPasswordEmail @@ -0,0 +1,175 @@ + + + + + account.confirmPasswordEmail + + + + + + + + + + + + + +
+ +
+
+
+ +

account.confirmPasswordEmail

+ +

Verify an email to use as 2FA recovery method.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.confirmPasswordEmail#8fdf1920 code:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
codestringThe phone code that was received after setting a recovery email
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CODE_INVALIDCode invalid
400EMAIL_HASH_EXPIREDEmail hash expired
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.confirmPhone b/data/core.telegram.org/method/account.confirmPhone new file mode 100644 index 0000000000..18692ccca9 --- /dev/null +++ b/data/core.telegram.org/method/account.confirmPhone @@ -0,0 +1,180 @@ + + + + + account.confirmPhone + + + + + + + + + + + + + +
+ +
+
+
+ +

account.confirmPhone

+ +

Confirm a phone number to cancel account deletion, for more info click here »

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_code_hashstringPhone code hash, for more info click here »
phone_codestringSMS code, for more info click here »
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CODE_HASH_INVALIDCode hash invalid
400PHONE_CODE_EMPTYphone_code is missing
+

Related pages

+

Account deletion

+

How to reset an account if the 2FA password was forgotten.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.createTheme b/data/core.telegram.org/method/account.createTheme new file mode 100644 index 0000000000..35e2364c6d --- /dev/null +++ b/data/core.telegram.org/method/account.createTheme @@ -0,0 +1,169 @@ + + + + + account.createTheme + + + + + + + + + + + + + +
+ +
+
+
+ +

account.createTheme

+ +

Create a theme

+

+
theme#28f1114 flags:# creator:flags.0?true default:flags.1?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?ThemeSettings installs_count:int = Theme;
+---functions---
+account.createTheme#8432c21f flags:# slug:string title:string document:flags.2?InputDocument settings:flags.3?InputThemeSettings = Theme;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
slugstringUnique theme ID
titlestringTheme name
documentflags.2?InputDocumentTheme file
settingsflags.3?InputThemeSettingsTheme settings
+

Result

+

Theme

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.deleteAccount b/data/core.telegram.org/method/account.deleteAccount new file mode 100644 index 0000000000..8bb258a806 --- /dev/null +++ b/data/core.telegram.org/method/account.deleteAccount @@ -0,0 +1,170 @@ + + + + + account.deleteAccount + + + + + + + + + + + + + +
+ +
+
+
+ +

account.deleteAccount

+ +

Delete the user's account from the telegram servers. Can be used, for example, to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.deleteAccount#418d4e0b reason:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
reasonstringWhy is the account being deleted, can be empty
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
4202FA_CONFIRM_WAIT_XSince this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in X seconds.
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.deleteSecureValue b/data/core.telegram.org/method/account.deleteSecureValue new file mode 100644 index 0000000000..78db756959 --- /dev/null +++ b/data/core.telegram.org/method/account.deleteSecureValue @@ -0,0 +1,153 @@ + + + + + account.deleteSecureValue + + + + + + + + + + + + + +
+ +
+
+
+ +

account.deleteSecureValue

+ +

Delete stored Telegram Passport documents, for more info see the passport docs »

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.deleteSecureValue#b880bc4b types:Vector<SecureValueType> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
typesVector<SecureValueType>Document types to delete
+

Result

+

Bool

+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.finishTakeoutSession b/data/core.telegram.org/method/account.finishTakeoutSession new file mode 100644 index 0000000000..dd95b40035 --- /dev/null +++ b/data/core.telegram.org/method/account.finishTakeoutSession @@ -0,0 +1,172 @@ + + + + + account.finishTakeoutSession + + + + + + + + + + + + + +
+ +
+
+
+ +

account.finishTakeoutSession

+ +

Finish account takeout session

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.finishTakeoutSession#1d2652ee flags:# success:flags.0?true = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
successflags.0?trueData exported successfully
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
403TAKEOUT_REQUIREDA takeout session has to be initialized, first
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getAccountTTL b/data/core.telegram.org/method/account.getAccountTTL new file mode 100644 index 0000000000..3dbae6ebf3 --- /dev/null +++ b/data/core.telegram.org/method/account.getAccountTTL @@ -0,0 +1,134 @@ + + + + + account.getAccountTTL + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getAccountTTL

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getAllSecureValues b/data/core.telegram.org/method/account.getAllSecureValues new file mode 100644 index 0000000000..f0bd9a82dc --- /dev/null +++ b/data/core.telegram.org/method/account.getAllSecureValues @@ -0,0 +1,136 @@ + + + + + account.getAllSecureValues + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getAllSecureValues

+ +

Get all saved Telegram Passport documents, for more info see the passport docs »

+

+
---functions---
+account.getAllSecureValues#b288bc7d = Vector<SecureValue>;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Vector<SecureValue>

+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getAuthorizationForm b/data/core.telegram.org/method/account.getAuthorizationForm new file mode 100644 index 0000000000..2e4b4aea1b --- /dev/null +++ b/data/core.telegram.org/method/account.getAuthorizationForm @@ -0,0 +1,159 @@ + + + + + account.getAuthorizationForm + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getAuthorizationForm

+ +

Returns a Telegram Passport authorization form for sharing data with a service

+

+
account.authorizationForm#ad2e1cd8 flags:# required_types:Vector<SecureRequiredType> values:Vector<SecureValue> errors:Vector<SecureValueError> users:Vector<User> privacy_policy_url:flags.0?string = account.AuthorizationForm;
+---functions---
+account.getAuthorizationForm#b86ba8e1 bot_id:int scope:string public_key:string = account.AuthorizationForm;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
bot_idintUser identifier of the service's bot
scopestringTelegram Passport element types requested by the service
public_keystringService's public key
+

Result

+

account.AuthorizationForm

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getAuthorizations b/data/core.telegram.org/method/account.getAuthorizations new file mode 100644 index 0000000000..0bcf83f31b --- /dev/null +++ b/data/core.telegram.org/method/account.getAuthorizations @@ -0,0 +1,134 @@ + + + + + account.getAuthorizations + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getAuthorizations

+ +

Get logged-in sessions

+

+
account.authorizations#1250abde authorizations:Vector<Authorization> = account.Authorizations;
+---functions---
+account.getAuthorizations#e320c158 = account.Authorizations;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

account.Authorizations

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getAutoDownloadSettings b/data/core.telegram.org/method/account.getAutoDownloadSettings new file mode 100644 index 0000000000..b226603117 --- /dev/null +++ b/data/core.telegram.org/method/account.getAutoDownloadSettings @@ -0,0 +1,134 @@ + + + + + account.getAutoDownloadSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getAutoDownloadSettings

+ +

Get media autodownload settings

+

+
account.autoDownloadSettings#63cacf26 low:AutoDownloadSettings medium:AutoDownloadSettings high:AutoDownloadSettings = account.AutoDownloadSettings;
+---functions---
+account.getAutoDownloadSettings#56da0b3f = account.AutoDownloadSettings;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

account.AutoDownloadSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getContactSignUpNotification b/data/core.telegram.org/method/account.getContactSignUpNotification new file mode 100644 index 0000000000..6851875389 --- /dev/null +++ b/data/core.telegram.org/method/account.getContactSignUpNotification @@ -0,0 +1,135 @@ + + + + + account.getContactSignUpNotification + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getContactSignUpNotification

+ +

Whether the user will receive notifications when contacts sign up

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.getContactSignUpNotification#9f07c728 = Bool;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getContentSettings b/data/core.telegram.org/method/account.getContentSettings new file mode 100644 index 0000000000..92674973a4 --- /dev/null +++ b/data/core.telegram.org/method/account.getContentSettings @@ -0,0 +1,134 @@ + + + + + account.getContentSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getContentSettings

+ +

Get sensitive content settings

+

+
account.contentSettings#57e28221 flags:# sensitive_enabled:flags.0?true sensitive_can_change:flags.1?true = account.ContentSettings;
+---functions---
+account.getContentSettings#8b9b4dae = account.ContentSettings;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

account.ContentSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getGlobalPrivacySettings b/data/core.telegram.org/method/account.getGlobalPrivacySettings new file mode 100644 index 0000000000..f1748f0801 --- /dev/null +++ b/data/core.telegram.org/method/account.getGlobalPrivacySettings @@ -0,0 +1,135 @@ + + + + + account.getGlobalPrivacySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getGlobalPrivacySettings

+ +

Get global privacy settings

+

+
globalPrivacySettings#bea2f424 flags:# archive_and_mute_new_noncontact_peers:flags.0?Bool = GlobalPrivacySettings;
+---functions---
+account.getGlobalPrivacySettings#eb2b4cf6 = GlobalPrivacySettings;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

GlobalPrivacySettings

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getMultiWallPapers b/data/core.telegram.org/method/account.getMultiWallPapers new file mode 100644 index 0000000000..b1d53ad328 --- /dev/null +++ b/data/core.telegram.org/method/account.getMultiWallPapers @@ -0,0 +1,148 @@ + + + + + account.getMultiWallPapers + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getMultiWallPapers

+ +

Get info about multiple wallpapers

+

+
---functions---
+account.getMultiWallPapers#65ad71dc wallpapers:Vector<InputWallPaper> = Vector<WallPaper>;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
wallpapersVector<InputWallPaper>Wallpapers to fetch info about
+

Result

+

Vector<WallPaper>

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getNotifyExceptions b/data/core.telegram.org/method/account.getNotifyExceptions new file mode 100644 index 0000000000..1b5096f959 --- /dev/null +++ b/data/core.telegram.org/method/account.getNotifyExceptions @@ -0,0 +1,165 @@ + + + + + account.getNotifyExceptions + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getNotifyExceptions

+ +

Returns list of chats with non-default notification settings

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+account.getNotifyExceptions#53577479 flags:# compare_sound:flags.1?true peer:flags.0?InputNotifyPeer = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
compare_soundflags.1?trueIf true, chats with non-default sound will also be returned
peerflags.0?InputNotifyPeerIf specified, only chats of the specified category will be returned
+

Result

+

Updates

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getNotifySettings b/data/core.telegram.org/method/account.getNotifySettings new file mode 100644 index 0000000000..96dae23deb --- /dev/null +++ b/data/core.telegram.org/method/account.getNotifySettings @@ -0,0 +1,166 @@ + + + + + account.getNotifySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getNotifySettings

+ +

Gets current notification settings for a given user/group, from all users/all groups.

+

+
peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings;
+---functions---
+account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputNotifyPeerNotification source
+

Result

+

Returns a PeerNotifySettings object containing current notification settings.

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getPassword b/data/core.telegram.org/method/account.getPassword new file mode 100644 index 0000000000..a5314b84e3 --- /dev/null +++ b/data/core.telegram.org/method/account.getPassword @@ -0,0 +1,134 @@ + + + + + account.getPassword + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getPassword

+ +

Obtain configuration for two-factor authorization with password

+

+
account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password;
+---functions---
+account.getPassword#548a30f5 = account.Password;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

account.Password

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getPasswordSettings b/data/core.telegram.org/method/account.getPasswordSettings new file mode 100644 index 0000000000..19bddbf03e --- /dev/null +++ b/data/core.telegram.org/method/account.getPasswordSettings @@ -0,0 +1,170 @@ + + + + + account.getPasswordSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getPasswordSettings

+ +

Get private info associated to the password info (recovery email, telegram passport info & so on)

+

+
account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings;
+---functions---
+account.getPasswordSettings#9cd4eaf9 password:InputCheckPasswordSRP = account.PasswordSettings;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
passwordInputCheckPasswordSRPThe password (see SRP)
+

Result

+

account.PasswordSettings

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PASSWORD_HASH_INVALIDThe provided password hash is invalid
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getPrivacy b/data/core.telegram.org/method/account.getPrivacy new file mode 100644 index 0000000000..81ea66e818 --- /dev/null +++ b/data/core.telegram.org/method/account.getPrivacy @@ -0,0 +1,166 @@ + + + + + account.getPrivacy + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getPrivacy

+ +

Get privacy settings of current account

+

+
account.privacyRules#50a04e45 rules:Vector<PrivacyRule> chats:Vector<Chat> users:Vector<User> = account.PrivacyRules;
+---functions---
+account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
keyInputPrivacyKeyPeer category whose privacy settings should be fetched
+

Result

+

account.PrivacyRules

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PRIVACY_KEY_INVALIDThe privacy key is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getSecureValue b/data/core.telegram.org/method/account.getSecureValue new file mode 100644 index 0000000000..781f13b3a3 --- /dev/null +++ b/data/core.telegram.org/method/account.getSecureValue @@ -0,0 +1,151 @@ + + + + + account.getSecureValue + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getSecureValue

+ +

Get saved Telegram Passport document, for more info see the passport docs »

+

+
---functions---
+account.getSecureValue#73665bc2 types:Vector<SecureValueType> = Vector<SecureValue>;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
typesVector<SecureValueType>Requested value types
+

Result

+

Vector<SecureValue>

+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getTheme b/data/core.telegram.org/method/account.getTheme new file mode 100644 index 0000000000..89f9c6651d --- /dev/null +++ b/data/core.telegram.org/method/account.getTheme @@ -0,0 +1,181 @@ + + + + + account.getTheme + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getTheme

+ +

Get theme information

+

+
theme#28f1114 flags:# creator:flags.0?true default:flags.1?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?ThemeSettings installs_count:int = Theme;
+---functions---
+account.getTheme#8d9d742b format:string theme:InputTheme document_id:long = Theme;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
formatstringTheme format, a string that identifies the theming engines supported by the client
themeInputThemeTheme
document_idlongDocument ID
+

Result

+

Theme

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400THEME_FORMAT_INVALIDInvalid theme format provided
400THEME_INVALIDInvalid theme provided
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getThemes b/data/core.telegram.org/method/account.getThemes new file mode 100644 index 0000000000..6b4215590d --- /dev/null +++ b/data/core.telegram.org/method/account.getThemes @@ -0,0 +1,158 @@ + + + + + account.getThemes + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getThemes

+ +

Get installed themes

+

+
account.themesNotModified#f41eb622 = account.Themes;
+account.themes#7f676421 hash:int themes:Vector<Theme> = account.Themes;
+---functions---
+account.getThemes#285946f8 format:string hash:int = account.Themes;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
formatstringTheme format, a string that identifies the theming engines supported by the client
hashintHash for pagination, for more info click here
+

Result

+

account.Themes

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getTmpPassword b/data/core.telegram.org/method/account.getTmpPassword new file mode 100644 index 0000000000..206b6fdb90 --- /dev/null +++ b/data/core.telegram.org/method/account.getTmpPassword @@ -0,0 +1,176 @@ + + + + + account.getTmpPassword + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getTmpPassword

+ +

Get temporary payment password

+

+
account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword;
+---functions---
+account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
passwordInputCheckPasswordSRPSRP password parameters
periodintTime during which the temporary password will be valid, in seconds; should be between 60 and 86400
+

Result

+

account.TmpPassword

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400PASSWORD_HASH_INVALIDThe provided password hash is invalid
400TMP_PASSWORD_DISABLEDThe temporary password is disabled
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getWallPaper b/data/core.telegram.org/method/account.getWallPaper new file mode 100644 index 0000000000..4c39ee2367 --- /dev/null +++ b/data/core.telegram.org/method/account.getWallPaper @@ -0,0 +1,150 @@ + + + + + account.getWallPaper + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getWallPaper

+ +

Get info about a certain wallpaper

+

+
wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper;
+wallPaperNoFile#8af40b25 flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper;
+---functions---
+account.getWallPaper#fc8ddbea wallpaper:InputWallPaper = WallPaper;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
wallpaperInputWallPaperThe wallpaper to get info about
+

Result

+

WallPaper

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getWallPapers b/data/core.telegram.org/method/account.getWallPapers new file mode 100644 index 0000000000..e2cb6ae1bd --- /dev/null +++ b/data/core.telegram.org/method/account.getWallPapers @@ -0,0 +1,153 @@ + + + + + account.getWallPapers + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getWallPapers

+ +

Returns a list of available wallpapers.

+

+
account.wallPapersNotModified#1c199183 = account.WallPapers;
+account.wallPapers#702b65a9 hash:int wallpapers:Vector<WallPaper> = account.WallPapers;
+---functions---
+account.getWallPapers#aabb1763 hash:int = account.WallPapers;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
+

Result

+

Vector<WallPaper>

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.getWebAuthorizations b/data/core.telegram.org/method/account.getWebAuthorizations new file mode 100644 index 0000000000..80b1d27344 --- /dev/null +++ b/data/core.telegram.org/method/account.getWebAuthorizations @@ -0,0 +1,136 @@ + + + + + account.getWebAuthorizations + + + + + + + + + + + + + +
+ +
+
+
+ +

account.getWebAuthorizations

+ +

Get web login widget authorizations

+

+
account.webAuthorizations#ed56c9fc authorizations:Vector<WebAuthorization> users:Vector<User> = account.WebAuthorizations;
+---functions---
+account.getWebAuthorizations#182e6d6f = account.WebAuthorizations;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

account.WebAuthorizations

+

Related pages

+

Telegram Login Widget

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.initTakeoutSession b/data/core.telegram.org/method/account.initTakeoutSession new file mode 100644 index 0000000000..714e784ed0 --- /dev/null +++ b/data/core.telegram.org/method/account.initTakeoutSession @@ -0,0 +1,204 @@ + + + + + account.initTakeoutSession + + + + + + + + + + + + + +
+ +
+
+
+ +

account.initTakeoutSession

+ +

Intialize account takeout session

+

+
account.takeout#4dba4501 id:long = account.Takeout;
+---functions---
+account.initTakeoutSession#f05b4804 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?int = account.Takeout;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
contactsflags.0?trueWhether to export contacts
message_usersflags.1?trueWhether to export messages in private chats
message_chatsflags.2?trueWhether to export messages in legacy groups
message_megagroupsflags.3?trueWhether to export messages in supergroups
message_channelsflags.4?trueWhether to export messages in channels
filesflags.5?trueWhether to export files
file_max_sizeflags.5?intMaximum size of files to export
+

Result

+

account.Takeout

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
420TAKEOUT_INIT_DELAY_XWait X seconds before initing takeout
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.installTheme b/data/core.telegram.org/method/account.installTheme new file mode 100644 index 0000000000..63b43678b5 --- /dev/null +++ b/data/core.telegram.org/method/account.installTheme @@ -0,0 +1,165 @@ + + + + + account.installTheme + + + + + + + + + + + + + +
+ +
+
+
+ +

account.installTheme

+ +

Install a theme

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.installTheme#7ae43737 flags:# dark:flags.0?true format:flags.1?string theme:flags.1?InputTheme = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
darkflags.0?trueWhether to install the dark version
formatflags.1?stringTheme format, a string that identifies the theming engines supported by the client
themeflags.1?InputThemeTheme to install
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.installWallPaper b/data/core.telegram.org/method/account.installWallPaper new file mode 100644 index 0000000000..981c28ad5f --- /dev/null +++ b/data/core.telegram.org/method/account.installWallPaper @@ -0,0 +1,155 @@ + + + + + account.installWallPaper + + + + + + + + + + + + + +
+ +
+
+
+ +

account.installWallPaper

+ +

Install wallpaper

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.installWallPaper#feed5769 wallpaper:InputWallPaper settings:WallPaperSettings = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
wallpaperInputWallPaperWallpaper to install
settingsWallPaperSettingsWallpaper settings
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.registerDevice b/data/core.telegram.org/method/account.registerDevice new file mode 100644 index 0000000000..124eb55777 --- /dev/null +++ b/data/core.telegram.org/method/account.registerDevice @@ -0,0 +1,202 @@ + + + + + account.registerDevice + + + + + + + + + + + + + +
+ +
+
+
+ +

account.registerDevice

+ +

Register device to receive PUSH notifications

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.registerDevice#68976c6f flags:# no_muted:flags.0?true token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector<int> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
no_mutedflags.0?trueAvoid receiving (silent and invisible background) notifications. Useful to save battery.
token_typeintDevice token type.
Possible values:
1 - APNS (device token for apple push)
2 - FCM (firebase token for google firebase)
3 - MPNS (channel URI for microsoft push)
4 - Simple push (endpoint for firefox's simple push API)
5 - Ubuntu phone (token for ubuntu push)
6 - Blackberry (token for blackberry push)
7 - Unused
8 - WNS (windows push)
9 - APNS VoIP (token for apple push VoIP)
10 - Web push (web push, see below)
11 - MPNS VoIP (token for microsoft push VoIP)
12 - Tizen (token for tizen push)

For 10 web push, the token must be a JSON-encoded object containing the keys described in PUSH updates
tokenstringDevice token
app_sandboxBoolIf (boolTrue) is transmitted, a sandbox-certificate will be used during transmission.
secretbytesFor FCM and APNS VoIP, optional encryption key used to encrypt push notifications
other_uidsVector<int>List of user identifiers of other users currently using the client
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400TOKEN_INVALIDThe provided token is invalid
+

Related pages

+

Handling PUSH-notifications

+

How to subscribe to and handle PUSH notifications

+

boolTrue

+

The constructor can be interpreted as a booleantrue value.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.reportPeer b/data/core.telegram.org/method/account.reportPeer new file mode 100644 index 0000000000..4be422be5b --- /dev/null +++ b/data/core.telegram.org/method/account.reportPeer @@ -0,0 +1,177 @@ + + + + + account.reportPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

account.reportPeer

+ +

Report a peer for violation of telegram's Terms of Service

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe peer to report
reasonReportReasonThe reason why this peer is being reported
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.resendPasswordEmail b/data/core.telegram.org/method/account.resendPasswordEmail new file mode 100644 index 0000000000..1c5c6fdea2 --- /dev/null +++ b/data/core.telegram.org/method/account.resendPasswordEmail @@ -0,0 +1,138 @@ + + + + + account.resendPasswordEmail + + + + + + + + + + + + + +
+ +
+
+
+ +

account.resendPasswordEmail

+ +

Resend the code to verify an email to use as 2FA recovery method.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.resendPasswordEmail#7a7f2a15 = Bool;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Bool

+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.resetAuthorization b/data/core.telegram.org/method/account.resetAuthorization new file mode 100644 index 0000000000..adea46e638 --- /dev/null +++ b/data/core.telegram.org/method/account.resetAuthorization @@ -0,0 +1,175 @@ + + + + + account.resetAuthorization + + + + + + + + + + + + + +
+ +
+
+
+ +

account.resetAuthorization

+ +

Log out an active authorized session by its hash

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.resetAuthorization#df77f3bc hash:long = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashlongSession hash
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
406FRESH_RESET_AUTHORISATION_FORBIDDENYou can't logout other sessions if less than 24 hours have passed since you logged on the current session
400HASH_INVALIDThe provided hash is invalid
+

Related pages

+

User Authorization

+

How to register a user's phone to start using the API.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.resetNotifySettings b/data/core.telegram.org/method/account.resetNotifySettings new file mode 100644 index 0000000000..d73be3f0e0 --- /dev/null +++ b/data/core.telegram.org/method/account.resetNotifySettings @@ -0,0 +1,135 @@ + + + + + account.resetNotifySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.resetNotifySettings

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.resetWallPapers b/data/core.telegram.org/method/account.resetWallPapers new file mode 100644 index 0000000000..7e0ab8e915 --- /dev/null +++ b/data/core.telegram.org/method/account.resetWallPapers @@ -0,0 +1,135 @@ + + + + + account.resetWallPapers + + + + + + + + + + + + + +
+ +
+
+
+ +

account.resetWallPapers

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.resetWebAuthorization b/data/core.telegram.org/method/account.resetWebAuthorization new file mode 100644 index 0000000000..5a3fca0334 --- /dev/null +++ b/data/core.telegram.org/method/account.resetWebAuthorization @@ -0,0 +1,154 @@ + + + + + account.resetWebAuthorization + + + + + + + + + + + + + +
+ +
+
+
+ +

account.resetWebAuthorization

+ +

Log out an active web telegram login session

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.resetWebAuthorization#2d01b9ef hash:long = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashlongSession hash
+

Result

+

Bool

+

Related pages

+

webAuthorization

+

Represents a bot logged in using the Telegram login widget

+

Telegram Login Widget

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.resetWebAuthorizations b/data/core.telegram.org/method/account.resetWebAuthorizations new file mode 100644 index 0000000000..23546b11e3 --- /dev/null +++ b/data/core.telegram.org/method/account.resetWebAuthorizations @@ -0,0 +1,137 @@ + + + + + account.resetWebAuthorizations + + + + + + + + + + + + + +
+ +
+
+
+ +

account.resetWebAuthorizations

+ +

Reset all active web telegram login sessions

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.resetWebAuthorizations#682d2594 = Bool;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Bool

+

Related pages

+

Telegram Login Widget

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.saveAutoDownloadSettings b/data/core.telegram.org/method/account.saveAutoDownloadSettings new file mode 100644 index 0000000000..02b7ae12c7 --- /dev/null +++ b/data/core.telegram.org/method/account.saveAutoDownloadSettings @@ -0,0 +1,165 @@ + + + + + account.saveAutoDownloadSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.saveAutoDownloadSettings

+ +

Change media autodownload settings

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.saveAutoDownloadSettings#76f36233 flags:# low:flags.0?true high:flags.1?true settings:AutoDownloadSettings = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
lowflags.0?trueWhether to save settings in the low data usage preset
highflags.1?trueWhether to save settings in the high data usage preset
settingsAutoDownloadSettingsMedia autodownload settings
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.saveSecureValue b/data/core.telegram.org/method/account.saveSecureValue new file mode 100644 index 0000000000..5242f12ab8 --- /dev/null +++ b/data/core.telegram.org/method/account.saveSecureValue @@ -0,0 +1,157 @@ + + + + + account.saveSecureValue + + + + + + + + + + + + + +
+ +
+
+
+ +

account.saveSecureValue

+ +

Securely save Telegram Passport document, for more info see the passport docs »

+

+
secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector<SecureFile> files:flags.4?Vector<SecureFile> plain_data:flags.5?SecurePlainData hash:bytes = SecureValue;
+---functions---
+account.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
valueInputSecureValueSecure value, for more info see the passport docs »
secure_secret_idlongPassport secret hash, for more info see the passport docs »
+

Result

+

SecureValue

+

Related pages

+

Telegram Passport Encryption Details

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.saveTheme b/data/core.telegram.org/method/account.saveTheme new file mode 100644 index 0000000000..7c3ddb6b44 --- /dev/null +++ b/data/core.telegram.org/method/account.saveTheme @@ -0,0 +1,155 @@ + + + + + account.saveTheme + + + + + + + + + + + + + +
+ +
+
+
+ +

account.saveTheme

+ +

Save a theme

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.saveTheme#f257106c theme:InputTheme unsave:Bool = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
themeInputThemeTheme to save
unsaveBoolUnsave
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.saveWallPaper b/data/core.telegram.org/method/account.saveWallPaper new file mode 100644 index 0000000000..36ca49e21a --- /dev/null +++ b/data/core.telegram.org/method/account.saveWallPaper @@ -0,0 +1,160 @@ + + + + + account.saveWallPaper + + + + + + + + + + + + + +
+ +
+
+
+ +

account.saveWallPaper

+ +

Install/uninstall wallpaper

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.saveWallPaper#6c5a5b37 wallpaper:InputWallPaper unsave:Bool settings:WallPaperSettings = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
wallpaperInputWallPaperWallpaper to save
unsaveBoolUninstall wallpaper?
settingsWallPaperSettingsWallpaper settings
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.sendChangePhoneCode b/data/core.telegram.org/method/account.sendChangePhoneCode new file mode 100644 index 0000000000..f6a376cf60 --- /dev/null +++ b/data/core.telegram.org/method/account.sendChangePhoneCode @@ -0,0 +1,171 @@ + + + + + account.sendChangePhoneCode + + + + + + + + + + + + + +
+ +
+
+
+ +

account.sendChangePhoneCode

+ +

Verify a new phone number to associate to the current account

+

+
auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;
+---functions---
+account.sendChangePhoneCode#82574ae5 phone_number:string settings:CodeSettings = auth.SentCode;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringNew phone number
settingsCodeSettingsPhone code settings
+

Result

+

auth.SentCode

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PHONE_NUMBER_INVALIDThe phone number is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.sendConfirmPhoneCode b/data/core.telegram.org/method/account.sendConfirmPhoneCode new file mode 100644 index 0000000000..e448ca5830 --- /dev/null +++ b/data/core.telegram.org/method/account.sendConfirmPhoneCode @@ -0,0 +1,174 @@ + + + + + account.sendConfirmPhoneCode + + + + + + + + + + + + + +
+ +
+
+
+ +

account.sendConfirmPhoneCode

+ +

Send confirmation code to cancel account deletion, for more info click here »

+

+
auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;
+---functions---
+account.sendConfirmPhoneCode#1b3faa88 hash:string settings:CodeSettings = auth.SentCode;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashstringThe hash from the service notification, for more info click here »
settingsCodeSettingsPhone code settings
+

Result

+

auth.SentCode

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400HASH_INVALIDThe provided hash is invalid
+

Related pages

+

Account deletion

+

How to reset an account if the 2FA password was forgotten.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.sendVerifyEmailCode b/data/core.telegram.org/method/account.sendVerifyEmailCode new file mode 100644 index 0000000000..48743a29ff --- /dev/null +++ b/data/core.telegram.org/method/account.sendVerifyEmailCode @@ -0,0 +1,151 @@ + + + + + account.sendVerifyEmailCode + + + + + + + + + + + + + +
+ +
+
+
+ +

account.sendVerifyEmailCode

+ +

Send the verification email code for telegram passport.

+

+
account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode;
+---functions---
+account.sendVerifyEmailCode#7011509f email:string = account.SentEmailCode;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
emailstringThe email where to send the code
+

Result

+

account.SentEmailCode

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.sendVerifyPhoneCode b/data/core.telegram.org/method/account.sendVerifyPhoneCode new file mode 100644 index 0000000000..78846859eb --- /dev/null +++ b/data/core.telegram.org/method/account.sendVerifyPhoneCode @@ -0,0 +1,156 @@ + + + + + account.sendVerifyPhoneCode + + + + + + + + + + + + + +
+ +
+
+
+ +

account.sendVerifyPhoneCode

+ +

Send the verification phone code for telegram passport.

+

+
auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;
+---functions---
+account.sendVerifyPhoneCode#a5a356f9 phone_number:string settings:CodeSettings = auth.SentCode;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringThe phone number to verify
settingsCodeSettingsPhone code settings
+

Result

+

auth.SentCode

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.setAccountTTL b/data/core.telegram.org/method/account.setAccountTTL new file mode 100644 index 0000000000..4f856ff79a --- /dev/null +++ b/data/core.telegram.org/method/account.setAccountTTL @@ -0,0 +1,167 @@ + + + + + account.setAccountTTL + + + + + + + + + + + + + +
+ +
+
+
+ +

account.setAccountTTL

+ +

Set account self-destruction period

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
ttlAccountDaysTTLTime to live in days
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400TTL_DAYS_INVALIDThe provided TTL is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.setContactSignUpNotification b/data/core.telegram.org/method/account.setContactSignUpNotification new file mode 100644 index 0000000000..3e397ede6a --- /dev/null +++ b/data/core.telegram.org/method/account.setContactSignUpNotification @@ -0,0 +1,150 @@ + + + + + account.setContactSignUpNotification + + + + + + + + + + + + + +
+ +
+
+
+ +

account.setContactSignUpNotification

+ +

Toggle contact sign up notifications

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.setContactSignUpNotification#cff43f61 silent:Bool = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
silentBoolWhether to disable contact sign up notifications
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.setContentSettings b/data/core.telegram.org/method/account.setContentSettings new file mode 100644 index 0000000000..b5123a984c --- /dev/null +++ b/data/core.telegram.org/method/account.setContentSettings @@ -0,0 +1,155 @@ + + + + + account.setContentSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.setContentSettings

+ +

Set sensitive content settings (for viewing or hiding NSFW content)

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.setContentSettings#b574b16b flags:# sensitive_enabled:flags.0?true = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
sensitive_enabledflags.0?trueEnable NSFW content
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.setGlobalPrivacySettings b/data/core.telegram.org/method/account.setGlobalPrivacySettings new file mode 100644 index 0000000000..366fe19f27 --- /dev/null +++ b/data/core.telegram.org/method/account.setGlobalPrivacySettings @@ -0,0 +1,150 @@ + + + + + account.setGlobalPrivacySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.setGlobalPrivacySettings

+ +

Set global privacy settings

+

+
globalPrivacySettings#bea2f424 flags:# archive_and_mute_new_noncontact_peers:flags.0?Bool = GlobalPrivacySettings;
+---functions---
+account.setGlobalPrivacySettings#1edaaac2 settings:GlobalPrivacySettings = GlobalPrivacySettings;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
settingsGlobalPrivacySettingsGlobal privacy settings
+

Result

+

GlobalPrivacySettings

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.setPrivacy b/data/core.telegram.org/method/account.setPrivacy new file mode 100644 index 0000000000..a5e2a910e1 --- /dev/null +++ b/data/core.telegram.org/method/account.setPrivacy @@ -0,0 +1,176 @@ + + + + + account.setPrivacy + + + + + + + + + + + + + +
+ +
+
+
+ +

account.setPrivacy

+ +

Change privacy settings of current account

+

+
account.privacyRules#50a04e45 rules:Vector<PrivacyRule> chats:Vector<Chat> users:Vector<User> = account.PrivacyRules;
+---functions---
+account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector<InputPrivacyRule> = account.PrivacyRules;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
keyInputPrivacyKeyPeers to which the privacy rules apply
rulesVector<InputPrivacyRule>New privacy rules
+

Result

+

account.PrivacyRules

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400PRIVACY_KEY_INVALIDThe privacy key is invalid
400PRIVACY_VALUE_INVALIDThe specified privacy rule combination is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.unregisterDevice b/data/core.telegram.org/method/account.unregisterDevice new file mode 100644 index 0000000000..c8076e1655 --- /dev/null +++ b/data/core.telegram.org/method/account.unregisterDevice @@ -0,0 +1,180 @@ + + + + + account.unregisterDevice + + + + + + + + + + + + + +
+ +
+
+
+ +

account.unregisterDevice

+ +

Deletes a device by its token, stops sending PUSH-notifications to it.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector<int> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
token_typeintDevice token type.
Possible values:
1 - APNS (device token for apple push)
2 - FCM (firebase token for google firebase)
3 - MPNS (channel URI for microsoft push)
4 - Simple push (endpoint for firefox's simple push API)
5 - Ubuntu phone (token for ubuntu push)
6 - Blackberry (token for blackberry push)
7 - Unused
8 - WNS (windows push)
9 - APNS VoIP (token for apple push VoIP)
10 - Web push (web push, see below)
11 - MPNS VoIP (token for microsoft push VoIP)
12 - Tizen (token for tizen push)

For 10 web push, the token must be a JSON-encoded object containing the keys described in PUSH updates
tokenstringDevice token
other_uidsVector<int>List of user identifiers of other users currently using the client
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400TOKEN_INVALIDThe provided token is invalid
+

Related pages

+

Handling PUSH-notifications

+

How to subscribe to and handle PUSH notifications

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.updateDeviceLocked b/data/core.telegram.org/method/account.updateDeviceLocked new file mode 100644 index 0000000000..8ab93205a0 --- /dev/null +++ b/data/core.telegram.org/method/account.updateDeviceLocked @@ -0,0 +1,153 @@ + + + + + account.updateDeviceLocked + + + + + + + + + + + + + +
+ +
+
+
+ +

account.updateDeviceLocked

+ +

When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.updateDeviceLocked#38df3532 period:int = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
periodintInactivity period after which to start hiding message texts in PUSH notifications.
+

Result

+

Bool

+

Related pages

+

Handling PUSH-notifications

+

How to subscribe to and handle PUSH notifications

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.updateNotifySettings b/data/core.telegram.org/method/account.updateNotifySettings new file mode 100644 index 0000000000..3f1f326de2 --- /dev/null +++ b/data/core.telegram.org/method/account.updateNotifySettings @@ -0,0 +1,187 @@ + + + + + account.updateNotifySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.updateNotifySettings

+ +

Edits notification settings from a given user/group, from all users/all groups.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputNotifyPeerNotification source
settingsInputPeerNotifySettingsNotification settings
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
400SETTINGS_INVALIDInvalid settings were provided
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.updatePasswordSettings b/data/core.telegram.org/method/account.updatePasswordSettings new file mode 100644 index 0000000000..15a14c1f6a --- /dev/null +++ b/data/core.telegram.org/method/account.updatePasswordSettings @@ -0,0 +1,202 @@ + + + + + account.updatePasswordSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.updatePasswordSettings

+ +

Set a new 2FA password

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.updatePasswordSettings#a59b102f password:InputCheckPasswordSRP new_settings:account.PasswordInputSettings = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
passwordInputCheckPasswordSRPThe old password (see SRP)
new_settingsaccount.PasswordInputSettingsThe new password (see SRP)
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400EMAIL_UNCONFIRMEDEmail unconfirmed
400EMAIL_UNCONFIRMED_XThe provided email isn't confirmed, X is the length of the verification code that was just sent to the email: use account.verifyEmail to enter the received verification code and enable the recovery email.
400NEW_SALT_INVALIDThe new salt is invalid
400NEW_SETTINGS_INVALIDThe new password settings are invalid
400PASSWORD_HASH_INVALIDThe old password hash is invalid
400SRP_ID_INVALIDInvalid SRP ID provided
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+

account.verifyEmail

+

Verify an email address for telegram passport.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.updateProfile b/data/core.telegram.org/method/account.updateProfile new file mode 100644 index 0000000000..7d10d064c0 --- /dev/null +++ b/data/core.telegram.org/method/account.updateProfile @@ -0,0 +1,187 @@ + + + + + account.updateProfile + + + + + + + + + + + + + +
+ +
+
+
+ +

account.updateProfile

+ +

Updates user profile.

+

+
userEmpty#200250ba id:int = User;
+user#938458c1 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User;
+---functions---
+account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
first_nameflags.0?stringNew user first name
last_nameflags.1?stringNew user last name
aboutflags.2?stringNew bio
+

Result

+

Returns User object containing the updated current user profile.

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400ABOUT_TOO_LONGAbout string too long
400FIRSTNAME_INVALIDThe first name is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.updateStatus b/data/core.telegram.org/method/account.updateStatus new file mode 100644 index 0000000000..c503ab4c5c --- /dev/null +++ b/data/core.telegram.org/method/account.updateStatus @@ -0,0 +1,155 @@ + + + + + account.updateStatus + + + + + + + + + + + + + +
+ +
+
+
+ +

account.updateStatus

+ +

Updates online user status.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.updateStatus#6628562c offline:Bool = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
offlineBoolIf (boolTrue) is transmitted, user status will change to (userStatusOffline).
+

Result

+

Bool

+

Related pages

+

boolTrue

+

The constructor can be interpreted as a booleantrue value.

+

userStatusOffline

+

The user's offline status.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.updateTheme b/data/core.telegram.org/method/account.updateTheme new file mode 100644 index 0000000000..20ad509395 --- /dev/null +++ b/data/core.telegram.org/method/account.updateTheme @@ -0,0 +1,179 @@ + + + + + account.updateTheme + + + + + + + + + + + + + +
+ +
+
+
+ +

account.updateTheme

+ +

Update theme

+

+
theme#28f1114 flags:# creator:flags.0?true default:flags.1?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?ThemeSettings installs_count:int = Theme;
+---functions---
+account.updateTheme#5cb367d5 flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument settings:flags.3?InputThemeSettings = Theme;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
formatstringTheme format, a string that identifies the theming engines supported by the client
themeInputThemeTheme to update
slugflags.0?stringUnique theme ID
titleflags.1?stringTheme name
documentflags.2?InputDocumentTheme file
settingsflags.3?InputThemeSettingsTheme settings
+

Result

+

Theme

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.updateUsername b/data/core.telegram.org/method/account.updateUsername new file mode 100644 index 0000000000..b9610d71bf --- /dev/null +++ b/data/core.telegram.org/method/account.updateUsername @@ -0,0 +1,182 @@ + + + + + account.updateUsername + + + + + + + + + + + + + +
+ +
+
+
+ +

account.updateUsername

+ +

Changes username for the current user.

+

+
userEmpty#200250ba id:int = User;
+user#938458c1 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User;
+---functions---
+account.updateUsername#3e0bdd7c username:string = User;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
usernamestringusername or empty string if username is to be removed
Accepted characters: a-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters.
+

Result

+

Returns updated information on the user in a User type object.

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
401AUTH_KEY_PERM_EMPTYThe temporary auth key must be binded to the permanent auth key to use these methods.
400USERNAME_INVALIDUnacceptable username
400USERNAME_NOT_MODIFIEDUsername is not different from the current username
400USERNAME_OCCUPIEDUsername is taken
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.uploadTheme b/data/core.telegram.org/method/account.uploadTheme new file mode 100644 index 0000000000..c7d3601e24 --- /dev/null +++ b/data/core.telegram.org/method/account.uploadTheme @@ -0,0 +1,190 @@ + + + + + account.uploadTheme + + + + + + + + + + + + + +
+ +
+
+
+ +

account.uploadTheme

+ +

Upload theme

+

+
documentEmpty#36f8c871 id:long = Document;
+document#1e87342b flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumbs:flags.0?Vector<PhotoSize> video_thumbs:flags.1?Vector<VideoSize> dc_id:int attributes:Vector<DocumentAttribute> = Document;
+---functions---
+account.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = Document;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
fileInputFileTheme file uploaded as described in files »
thumbflags.0?InputFileThumbnail
file_namestringFile name
mime_typestringMIME type, must be application/x-tgtheme-{format}, where format depends on the client
+

Result

+

Document

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400THEME_FILE_INVALIDInvalid theme file provided
+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.uploadWallPaper b/data/core.telegram.org/method/account.uploadWallPaper new file mode 100644 index 0000000000..dc21790ac0 --- /dev/null +++ b/data/core.telegram.org/method/account.uploadWallPaper @@ -0,0 +1,160 @@ + + + + + account.uploadWallPaper + + + + + + + + + + + + + +
+ +
+
+
+ +

account.uploadWallPaper

+ +

Create and upload a new wallpaper

+

+
wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper;
+wallPaperNoFile#8af40b25 flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper;
+---functions---
+account.uploadWallPaper#dd853661 file:InputFile mime_type:string settings:WallPaperSettings = WallPaper;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fileInputFileThe JPG/PNG wallpaper
mime_typestringMIME type of uploaded wallpaper
settingsWallPaperSettingsWallpaper settings
+

Result

+

WallPaper

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.verifyEmail b/data/core.telegram.org/method/account.verifyEmail new file mode 100644 index 0000000000..17ca2c93b4 --- /dev/null +++ b/data/core.telegram.org/method/account.verifyEmail @@ -0,0 +1,174 @@ + + + + + account.verifyEmail + + + + + + + + + + + + + +
+ +
+
+
+ +

account.verifyEmail

+ +

Verify an email address for telegram passport.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.verifyEmail#ecba39db email:string code:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
emailstringThe email to verify
codestringThe verification code that was received
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400EMAIL_VERIFY_EXPIREDThe verification email has expired
+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/account.verifyPhone b/data/core.telegram.org/method/account.verifyPhone new file mode 100644 index 0000000000..62534d886f --- /dev/null +++ b/data/core.telegram.org/method/account.verifyPhone @@ -0,0 +1,181 @@ + + + + + account.verifyPhone + + + + + + + + + + + + + +
+ +
+
+
+ +

account.verifyPhone

+ +

Verify a phone number for telegram passport.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number
phone_code_hashstringPhone code hash received from the call to account.sendVerifyPhoneCode
phone_codestringCode received after the call to account.sendVerifyPhoneCode
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PHONE_CODE_EXPIREDThe phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)
+

Related pages

+

account.sendVerifyPhoneCode

+

Send the verification phone code for telegram passport.

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.acceptLoginToken b/data/core.telegram.org/method/auth.acceptLoginToken new file mode 100644 index 0000000000..350afcd6f3 --- /dev/null +++ b/data/core.telegram.org/method/auth.acceptLoginToken @@ -0,0 +1,171 @@ + + + + + auth.acceptLoginToken + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.acceptLoginToken

+ +

Accept QR code login token, logging in the app that generated it.

+

Returns info about the new session.

+

For more info, see login via QR code.

+

+
authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization;
+---functions---
+auth.acceptLoginToken#e894ad4d token:bytes = Authorization;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
tokenbytesLogin token embedded in QR code, for more info, see login via QR code.
+

Result

+

Authorization

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400AUTH_TOKEN_INVALIDXThe specified auth token is invalid
+

Related pages

+

Login via QR code

+

QR code login flow

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.bindTempAuthKey b/data/core.telegram.org/method/auth.bindTempAuthKey new file mode 100644 index 0000000000..e42c95be56 --- /dev/null +++ b/data/core.telegram.org/method/auth.bindTempAuthKey @@ -0,0 +1,257 @@ + + + + + auth.bindTempAuthKey + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.bindTempAuthKey

+ +

Binds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one.

+

For more information, see Perfect Forward Secrecy.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
perm_auth_key_idlongPermanent auth_key_id to bind to
noncelongRandom long from Binding message contents
expires_atintUnix timestamp to invalidate temporary key, see Binding message contents
encrypted_messagebytesSee Generating encrypted_message
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400ENCRYPTED_MESSAGE_INVALIDEncrypted message is incorrect
400INPUT_REQUEST_TOO_LONGThe request is too big
400TEMP_AUTH_KEY_ALREADY_BOUNDThe passed temporary key is already bound to another perm_auth_key_id
400TEMP_AUTH_KEY_EMPTYThe request was not performed with a temporary authorization key
+

Generating encrypted_message

+

The client begins by creating a special binding message:

+

Binding message contents

+
bind_auth_key_inner#75a3f765 nonce:long temp_auth_key_id:long perm_auth_key_id:long temp_session_id:long expires_at:int = BindAuthKeyInner;
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
noncelongRandom long
temp_auth_key_idlongTemporary auth_key_id
perm_auth_key_idlongPermanent auth_key_id to bind to
temp_session_idlongSession id, which will be used to invoke auth.bindTempAuthKey method
expires_atintUnix timestamp to invalidate temporary key
+

Encrypting the binding message

+

This binding message is encrypted in the usual way, but with MTProto v1 using the perm_auth_key. In other words, one has to prepend random:int128 (it replaces the customary session_id:long and salt:long that are irrelevant in this case), then append the same msg_id that will be used for the request, a seqno equal to zero, and the correct msg_len (40 bytes in this case); after that, one computes the msg_key:int128 as SHA1 of the resulting string, appends padding necessary for a 16-byte alignment, encrypts the resulting string using the key derived from perm_auth_key and msg_key, and prepends perm_auth_key_id and msg_key to the encrypted data as usual.

+

Binding

+

Once encrypted_message is ready, an auth.bindTempAuthKey request is sent to the server using temp_auth_key and temp_session_id. Don't forget to rewrite client info using initConnection when the binding is completed.

+

Bots can use this method

+

Related pages

+

Perfect Forward Secrecy

+

Binding temporary authorization key to permanent ones.

+

long

+

A basic bare type, elements of which correspond to two-element sequences, representing 64-bit signed numbers (little-endian).

+

More on basic types »

+

int

+

A basic bare type, the values of which correspond to single-element sequences, i.e. numbers from -2^31 to 2^31-1 which in this case represent themselves.

+

More on basic types »

+

Mobile Protocol: Detailed Description

+

Calling API Methods

+

Additional options for calling methods.

+

initConnection

+

Initialize connection

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.cancelCode b/data/core.telegram.org/method/auth.cancelCode new file mode 100644 index 0000000000..dc90016e20 --- /dev/null +++ b/data/core.telegram.org/method/auth.cancelCode @@ -0,0 +1,180 @@ + + + + + auth.cancelCode + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.cancelCode

+ +

Cancel the login verification code

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number
phone_code_hashstringPhone code hash from auth.sendCode
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400PHONE_CODE_EXPIREDThe phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)
400PHONE_NUMBER_INVALIDThe phone number is invalid
+

Related pages

+

auth.sendCode

+

Send the verification code for login

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.checkPassword b/data/core.telegram.org/method/auth.checkPassword new file mode 100644 index 0000000000..edfb0d6c3e --- /dev/null +++ b/data/core.telegram.org/method/auth.checkPassword @@ -0,0 +1,180 @@ + + + + + auth.checkPassword + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.checkPassword

+ +

Try logging to an account protected by a 2FA password.

+

+
auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization;
+auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization;
+---functions---
+auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
passwordInputCheckPasswordSRPThe account's password (see SRP)
+

Result

+

auth.Authorization

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400PASSWORD_HASH_INVALIDThe provided password isn't valid
400SRP_ID_INVALIDInvalid SRP ID provided
400SRP_PASSWORD_CHANGEDPassword has changed
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.checkPhone b/data/core.telegram.org/method/auth.checkPhone new file mode 100644 index 0000000000..491df9a75e --- /dev/null +++ b/data/core.telegram.org/method/auth.checkPhone @@ -0,0 +1,176 @@ + + + + + auth.checkPhone + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.checkPhone

+ +

Returns information on whether the passed phone number was registered.

+

+
 Method schema is available as of layer 78. Switch »

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number in the international format
+

Result

+

The method returns an auth.CheckedPhone type object with information on whether an account with such a phone number has already been registered, as well as whether invitations were sent to this number (using the auth.sendInvites method).

+

Query example

+
(auth.checkPhone "79123413132")
+=
+(auth.checkedPhone
+  phone_registered:(boolFalse)
+  phone_invited:(boolFalse)
+)
+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400PHONE_NUMBER_BANNEDThe provided phone number is banned from telegram
400PHONE_NUMBER_INVALIDInvalid phone number
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.dropTempAuthKeys b/data/core.telegram.org/method/auth.dropTempAuthKeys new file mode 100644 index 0000000000..3bc89a3ca0 --- /dev/null +++ b/data/core.telegram.org/method/auth.dropTempAuthKeys @@ -0,0 +1,151 @@ + + + + + auth.dropTempAuthKeys + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.dropTempAuthKeys

+ +

Delete all temporary authorization keys except for the ones specified

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector<long> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
except_auth_keysVector<long>The auth keys that shouldn't be dropped.
+

Result

+

Bool

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.exportAuthorization b/data/core.telegram.org/method/auth.exportAuthorization new file mode 100644 index 0000000000..49ed68e4df --- /dev/null +++ b/data/core.telegram.org/method/auth.exportAuthorization @@ -0,0 +1,167 @@ + + + + + auth.exportAuthorization + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.exportAuthorization

+ +

Returns data for copying authorization to another data-centre.

+

+
auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization;
+---functions---
+auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
dc_idintNumber of a target data-centre
+

Result

+

auth.ExportedAuthorization

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400DC_ID_INVALIDThe provided DC ID is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.exportLoginToken b/data/core.telegram.org/method/auth.exportLoginToken new file mode 100644 index 0000000000..4be2957cd8 --- /dev/null +++ b/data/core.telegram.org/method/auth.exportLoginToken @@ -0,0 +1,166 @@ + + + + + auth.exportLoginToken + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.exportLoginToken

+ +

Generate a login token, for login via QR code.
+The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken URL in the QR code.

+

For more info, see login via QR code.

+

+
auth.loginToken#629f1980 expires:int token:bytes = auth.LoginToken;
+auth.loginTokenMigrateTo#68e9916 dc_id:int token:bytes = auth.LoginToken;
+auth.loginTokenSuccess#390d5c5e authorization:auth.Authorization = auth.LoginToken;
+---functions---
+auth.exportLoginToken#b1b41517 api_id:int api_hash:string except_ids:Vector<int> = auth.LoginToken;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
api_idintApplication identifier (see. App configuration)
api_hashstringApplication identifier hash (see. App configuration)
except_idsVector<int>List of already logged-in user IDs, to prevent logging in twice with the same user
+

Result

+

auth.LoginToken

+

Related pages

+

Login via QR code

+

QR code login flow

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.importAuthorization b/data/core.telegram.org/method/auth.importAuthorization new file mode 100644 index 0000000000..14cb385b8a --- /dev/null +++ b/data/core.telegram.org/method/auth.importAuthorization @@ -0,0 +1,178 @@ + + + + + auth.importAuthorization + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.importAuthorization

+ +

Logs in a user using a key transmitted from his native data-centre.

+

+
auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization;
+auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization;
+---functions---
+auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintUser ID
bytesbytesAuthorization key
+

Result

+

auth.Authorization

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400AUTH_BYTES_INVALIDThe provided authorization is invalid
400USER_ID_INVALIDThe provided user ID is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.importBotAuthorization b/data/core.telegram.org/method/auth.importBotAuthorization new file mode 100644 index 0000000000..939a13b058 --- /dev/null +++ b/data/core.telegram.org/method/auth.importBotAuthorization @@ -0,0 +1,200 @@ + + + + + auth.importBotAuthorization + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.importBotAuthorization

+ +

Login as a bot

+

+
auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization;
+auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization;
+---functions---
+auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flagsintReserved for future use
api_idintApplication identifier (see. App configuration)
api_hashstringApplication identifier hash (see. App configuration)
bot_auth_tokenstringBot token (see bots)
+

Result

+

Returns an auth.Authorization object with information on the new authorization.

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400ACCESS_TOKEN_EXPIREDBot token expired
400ACCESS_TOKEN_INVALIDThe provided token is not valid
400API_ID_INVALIDThe api_id/api_hash combination is invalid
401AUTH_KEY_INVALIDAuth key invalid
+

Bots can use this method

+

Related pages

+

Bots: An introduction for developers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.importLoginToken b/data/core.telegram.org/method/auth.importLoginToken new file mode 100644 index 0000000000..01250ed9df --- /dev/null +++ b/data/core.telegram.org/method/auth.importLoginToken @@ -0,0 +1,172 @@ + + + + + auth.importLoginToken + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.importLoginToken

+ +

Login using a redirected login token, generated in case of DC mismatch during QR code login.

+

For more info, see login via QR code.

+

+
auth.loginToken#629f1980 expires:int token:bytes = auth.LoginToken;
+auth.loginTokenMigrateTo#68e9916 dc_id:int token:bytes = auth.LoginToken;
+auth.loginTokenSuccess#390d5c5e authorization:auth.Authorization = auth.LoginToken;
+---functions---
+auth.importLoginToken#95ac5ce4 token:bytes = auth.LoginToken;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
tokenbytesLogin token
+

Result

+

auth.LoginToken

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400AUTH_TOKEN_EXPIREDThe authorization token has expired
+

Related pages

+

Login via QR code

+

QR code login flow

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.logOut b/data/core.telegram.org/method/auth.logOut new file mode 100644 index 0000000000..5a1b11a57c --- /dev/null +++ b/data/core.telegram.org/method/auth.logOut @@ -0,0 +1,140 @@ + + + + + auth.logOut + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.logOut

+ +

Logs out the user.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+auth.logOut#5717da40 = Bool;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Bool

+

Query example

+
(auth.logOut )
+=
+(boolTrue)
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.recoverPassword b/data/core.telegram.org/method/auth.recoverPassword new file mode 100644 index 0000000000..6bde77d2c3 --- /dev/null +++ b/data/core.telegram.org/method/auth.recoverPassword @@ -0,0 +1,172 @@ + + + + + auth.recoverPassword + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.recoverPassword

+ +

Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.

+

+
auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization;
+auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization;
+---functions---
+auth.recoverPassword#4ea56e92 code:string = auth.Authorization;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
codestringCode received via email
+

Result

+

auth.Authorization

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400CODE_EMPTYThe provided code is empty
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+

auth.requestPasswordRecovery

+

Request recovery code of a 2FA password, only for accounts with a recovery email configured.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.requestPasswordRecovery b/data/core.telegram.org/method/auth.requestPasswordRecovery new file mode 100644 index 0000000000..92f3980627 --- /dev/null +++ b/data/core.telegram.org/method/auth.requestPasswordRecovery @@ -0,0 +1,154 @@ + + + + + auth.requestPasswordRecovery + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.requestPasswordRecovery

+ +

Request recovery code of a 2FA password, only for accounts with a recovery email configured.

+

+
auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery;
+---functions---
+auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

auth.PasswordRecovery

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PASSWORD_EMPTYThe provided password is empty
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.resendCode b/data/core.telegram.org/method/auth.resendCode new file mode 100644 index 0000000000..d656bafeba --- /dev/null +++ b/data/core.telegram.org/method/auth.resendCode @@ -0,0 +1,186 @@ + + + + + auth.resendCode + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.resendCode

+ +

Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.

+

+
auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;
+---functions---
+auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringThe phone number
phone_code_hashstringThe phone code hash obtained from auth.sendCode
+

Result

+

auth.SentCode

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400PHONE_CODE_EXPIREDThe phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)
400PHONE_CODE_HASH_EMPTYphone_code_hash is missing
400PHONE_NUMBER_INVALIDThe phone number is invalid
+

Related pages

+

auth.sendCode

+

Send the verification code for login

+

User Authorization

+

How to register a user's phone to start using the API.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.resetAuthorizations b/data/core.telegram.org/method/auth.resetAuthorizations new file mode 100644 index 0000000000..875f0a5925 --- /dev/null +++ b/data/core.telegram.org/method/auth.resetAuthorizations @@ -0,0 +1,156 @@ + + + + + auth.resetAuthorizations + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.resetAuthorizations

+ +

Terminates all user's authorized sessions except for the current one.

+

After calling this method it is necessary to reregister the current device using the method account.registerDevice

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+auth.resetAuthorizations#9fab0d1a = Bool;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
406FRESH_RESET_AUTHORISATION_FORBIDDENYou can't logout other sessions if less than 24 hours have passed since you logged on the current session
+

Related pages

+

account.registerDevice

+

Register device to receive PUSH notifications

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.sendCall b/data/core.telegram.org/method/auth.sendCall new file mode 100644 index 0000000000..0a83c00648 --- /dev/null +++ b/data/core.telegram.org/method/auth.sendCall @@ -0,0 +1,187 @@ + + + + + auth.sendCall + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sendCall

+ +

Makes a voice call to the passed phone number. A robot will repeat the confirmation code from a previously sent SMS message.

+

+
 Method schema is available as of layer 50. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number in the international format
phone_code_hashstringSMS-message ID
+

Result

+

Bool

+

Query example

+
(auth.sendCall "79991234567" "2dc02d2cda9e615c84")
+=
+(boolTrue)
+
+03c51564 3939370b 33323139 37363534 63643212 32643230 39616463 35313665 00343863 64e1a61b
+=
+997275b5
+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400PHONE_NUMBER_INVALIDInvalid phone number
400PHONE_CODE_HASH_EMPTYphone_code_hash was not sent
400PHONE_CODE_EXPIREDSMS expired
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.sendCode b/data/core.telegram.org/method/auth.sendCode new file mode 100644 index 0000000000..360cb6cab6 --- /dev/null +++ b/data/core.telegram.org/method/auth.sendCode @@ -0,0 +1,241 @@ + + + + + auth.sendCode + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sendCode

+ +

Send the verification code for login

+

+
auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;
+---functions---
+auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number in international format
api_idintApplication identifier (see App configuration)
api_hashstringApplication secret hash (see App configuration)
settingsCodeSettingsSettings for the code type to send
+

Result

+

The method returns an auth.SentCode object with information on the message sent.

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400API_ID_INVALIDAPI ID invalid
400API_ID_PUBLISHED_FLOODThis API id was published somewhere, you can't use it now
401AUTH_KEY_PERM_EMPTYThe temporary auth key must be binded to the permanent auth key to use these methods.
400INPUT_REQUEST_TOO_LONGThe request is too big
303NETWORK_MIGRATE_XRepeat the query to data-center X
303PHONE_MIGRATE_XRepeat the query to data-center X
400PHONE_NUMBER_APP_SIGNUP_FORBIDDENYou can't sign up using this app
400PHONE_NUMBER_BANNEDThe provided phone number is banned from telegram
400PHONE_NUMBER_FLOODYou asked for the code too many times.
400PHONE_NUMBER_INVALIDInvalid phone number
406PHONE_PASSWORD_FLOODYou have tried logging in too many times
400PHONE_PASSWORD_PROTECTEDThis phone is password protected
400SMS_CODE_CREATE_FAILEDAn error occurred while creating the SMS code
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.sendInvites b/data/core.telegram.org/method/auth.sendInvites new file mode 100644 index 0000000000..cc47046287 --- /dev/null +++ b/data/core.telegram.org/method/auth.sendInvites @@ -0,0 +1,157 @@ + + + + + auth.sendInvites + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sendInvites

+ +

Saves information that the current user sent SMS-messages with invitations to its unregistered contacts.

+

{scheme}

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numbersVector<string>List of phone numbers of message recipients in the international format
messagestringMessage text
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_EMPTYThe provided message is empty
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.sendSms b/data/core.telegram.org/method/auth.sendSms new file mode 100644 index 0000000000..1a995a8130 --- /dev/null +++ b/data/core.telegram.org/method/auth.sendSms @@ -0,0 +1,179 @@ + + + + + auth.sendSms + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sendSms

+ +

Forces sending an SMS message to the specified phone number. Use this method if auth.sentAppCode was returned as a response to auth.sendCode, but the user can't reach the device with Telegram.

+

+
 Method schema is available as of layer 50. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number in international format
phone_code_hashstringSMS-message ID
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400PHONE_NUMBER_INVALIDInvalid phone number
400PHONE_CODE_HASH_EMPTYphone_code_hash was not sent
400PHONE_CODE_EXPIREDSMS expired
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.signIn b/data/core.telegram.org/method/auth.signIn new file mode 100644 index 0000000000..8889183aca --- /dev/null +++ b/data/core.telegram.org/method/auth.signIn @@ -0,0 +1,219 @@ + + + + + auth.signIn + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.signIn

+ +

Signs in a user with a validated phone number.

+

+
auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization;
+auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization;
+---functions---
+auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number in the international format
phone_code_hashstringSMS-message ID, obtained from auth.sendCode
phone_codestringValid numerical code from the SMS-message
+

Result

+

Returns an auth.Authorization object with information on the new authorization.

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400PHONE_CODE_EMPTYphone_code from the SMS is empty
400PHONE_CODE_EXPIREDSMS expired
400PHONE_CODE_INVALIDInvalid SMS code was sent
400PHONE_NUMBER_INVALIDInvalid phone number
400PHONE_NUMBER_UNOCCUPIEDThe code is valid but no user with the given number is registered
+

Query example

+
(auth.signIn "79991234567" "2dc02d2cda9e615c84" "44444")
+=
+(auth.authorization
+  expires:1403938438
+  user:(userSelf
+    id:603177
+    first_name:"John"
+    last_name:"Doe"
+    phone:"79991234567"
+    photo:(userProfilePhotoEmpty)
+    status:(userStatusEmpty)
+    inactive:(boolTrue)
+  )
+)
+
+bcd51581 3939370b 33323139 37363534 63643212 32643230 39616463 35313665 00343863 34343405 00003434 45ca2b3b
+=
+f6b673a4 53ae6686 720535ec 00093429 686f4a04 0000006e 656f4403 3939370b 33323139 37363534 4f11bae1 09d05049 997275b5 d8487410
+

Related pages

+

auth.sendCode

+

Send the verification code for login

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.signUp b/data/core.telegram.org/method/auth.signUp new file mode 100644 index 0000000000..876ca3fd68 --- /dev/null +++ b/data/core.telegram.org/method/auth.signUp @@ -0,0 +1,241 @@ + + + + + auth.signUp + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.signUp

+ +

Registers a validated phone number in the system.

+

+
auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization;
+auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization;
+---functions---
+auth.signUp#80eee427 phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number in the international format
phone_code_hashstringSMS-message ID
first_namestringNew user first name
last_namestringNew user last name
+

Result

+

Returns an auth.Authorization object with information about the new authorization.

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400FIRSTNAME_INVALIDInvalid first name
400INPUT_REQUEST_TOO_LONGThe request is too big
400LASTNAME_INVALIDInvalid last name
400PHONE_CODE_EMPTYphone_code from a SMS is empty
400PHONE_CODE_EXPIREDSMS expired
400PHONE_CODE_INVALIDInvalid SMS code was sent
400PHONE_NUMBER_FLOODYou asked for the code too many times.
400PHONE_NUMBER_INVALIDInvalid phone number
400PHONE_NUMBER_OCCUPIEDThe phone number is already in use
+

Query example

+
(auth.signUp "79991234567" "2dc02d2cda9e615c84" "44444" "John" "Doe")
+=
+(auth.authorization
+  expires:1403938438
+  user:(userSelf
+    id:603177
+    first_name:"John"
+    last_name:"Doe"
+    phone:"79991234567"
+    photo:(userProfilePhotoEmpty)
+    status:(userStatusEmpty)
+    inactive:(boolTrue)
+  )
+)
+
+1b067634 3939370b 33323139 37363534 63643212 32643230 39616463 35313665 00343863 34343405 00003434 686f4a04 0000006e 656f4403 c18027ca
+=
+f6b673a4 53ae6686 720535ec 00093429 686f4a04 0000006e 656f4403 3939370b 33323139 37363534 4f11bae1 09d05049 997275b5 d8487410
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/bots.answerWebhookJSONQuery b/data/core.telegram.org/method/bots.answerWebhookJSONQuery new file mode 100644 index 0000000000..ce7a7265cb --- /dev/null +++ b/data/core.telegram.org/method/bots.answerWebhookJSONQuery @@ -0,0 +1,178 @@ + + + + + bots.answerWebhookJSONQuery + + + + + + + + + + + + + +
+ +
+
+
+ +

bots.answerWebhookJSONQuery

+ +

Answers a custom query; for bots only

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
query_idlongIdentifier of a custom query
dataDataJSONJSON-serialized answer to the query
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400QUERY_ID_INVALIDThe query ID is invalid
400USER_BOT_INVALIDThis method can only be called by a bot
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/bots.sendCustomRequest b/data/core.telegram.org/method/bots.sendCustomRequest new file mode 100644 index 0000000000..d2cba4d76a --- /dev/null +++ b/data/core.telegram.org/method/bots.sendCustomRequest @@ -0,0 +1,177 @@ + + + + + bots.sendCustomRequest + + + + + + + + + + + + + +
+ +
+
+
+ +

bots.sendCustomRequest

+ +

Sends a custom request; for bots only

+

+
dataJSON#7d748d04 data:string = DataJSON;
+---functions---
+bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
custom_methodstringThe method name
paramsDataJSONJSON-serialized method parameters
+

Result

+

DataJSON

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400METHOD_INVALIDThe specified method is invalid
400USER_BOT_INVALIDThis method can only be called by a bot
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/bots.setBotCommands b/data/core.telegram.org/method/bots.setBotCommands new file mode 100644 index 0000000000..a45fd4420f --- /dev/null +++ b/data/core.telegram.org/method/bots.setBotCommands @@ -0,0 +1,151 @@ + + + + + bots.setBotCommands + + + + + + + + + + + + + +
+ +
+
+
+ +

bots.setBotCommands

+ +

Set bot command list

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+bots.setBotCommands#805d46f6 commands:Vector<BotCommand> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
commandsVector<BotCommand>Bot commands
+

Result

+

Bool

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.checkUsername b/data/core.telegram.org/method/channels.checkUsername new file mode 100644 index 0000000000..2bf6c66e78 --- /dev/null +++ b/data/core.telegram.org/method/channels.checkUsername @@ -0,0 +1,190 @@ + + + + + channels.checkUsername + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.checkUsername

+ +

Check if a username is free and can be assigned to a channel/supergroup

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelThe channel/supergroup that will assigned the specified username
usernamestringThe username to check
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNELS_ADMIN_PUBLIC_TOO_MUCHYou're admin of too many public channels, make some channels private to change the username of this channel
400CHANNEL_INVALIDThe provided channel is invalid
400CHAT_ID_INVALIDThe provided chat id is invalid
400USERNAME_INVALIDThe provided username is not valid
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.createChannel b/data/core.telegram.org/method/channels.createChannel new file mode 100644 index 0000000000..d85f9bc48c --- /dev/null +++ b/data/core.telegram.org/method/channels.createChannel @@ -0,0 +1,220 @@ + + + + + channels.createChannel + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.createChannel

+ +

Create a supergroup/channel.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.createChannel#3d5fb10f flags:# broadcast:flags.0?true megagroup:flags.1?true for_import:flags.3?true title:string about:string geo_point:flags.2?InputGeoPoint address:flags.2?string = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
broadcastflags.0?trueWhether to create a channel
megagroupflags.1?trueWhether to create a supergroup
titlestringChannel title
aboutstringChannel description
geo_pointflags.2?InputGeoPointGeogroup location
addressflags.2?stringGeogroup address
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNELS_TOO_MUCHYou have joined too many channels/supergroups
400CHAT_ABOUT_TOO_LONGChat about too long
400CHAT_TITLE_EMPTYNo chat title provided
403USER_RESTRICTEDYou're spamreported, you can't create channels or chats.
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.deleteChannel b/data/core.telegram.org/method/channels.deleteChannel new file mode 100644 index 0000000000..e0dd8c5f9d --- /dev/null +++ b/data/core.telegram.org/method/channels.deleteChannel @@ -0,0 +1,195 @@ + + + + + channels.deleteChannel + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.deleteChannel

+ +

Delete a channel/supergroup

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.deleteChannel#c0111fe3 channel:InputChannel = Updates;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup to delete
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHANNEL_TOO_LARGEChannel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change)
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
403CHAT_WRITE_FORBIDDENYou can't write in this chat
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.deleteHistory b/data/core.telegram.org/method/channels.deleteHistory new file mode 100644 index 0000000000..9279bd3d0f --- /dev/null +++ b/data/core.telegram.org/method/channels.deleteHistory @@ -0,0 +1,180 @@ + + + + + channels.deleteHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.deleteHistory

+ +

Delete the history of a supergroup

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+channels.deleteHistory#af369d42 channel:InputChannel max_id:int = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelSupergroup whose history must be deleted
max_idintID of message up to which the history must be deleted
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.deleteMessages b/data/core.telegram.org/method/channels.deleteMessages new file mode 100644 index 0000000000..7256f3b63b --- /dev/null +++ b/data/core.telegram.org/method/channels.deleteMessages @@ -0,0 +1,190 @@ + + + + + channels.deleteMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.deleteMessages

+ +

Delete messages in a channel/supergroup

+

+
messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages;
+---functions---
+channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector<int> = messages.AffectedMessages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup
idVector<int>IDs of messages to delete
+

Result

+

messages.AffectedMessages

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
403MESSAGE_DELETE_FORBIDDENYou can't delete one of the messages you tried to delete, most likely because it is a service message.
400MSG_ID_INVALIDInvalid message ID provided
+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.deleteUserHistory b/data/core.telegram.org/method/channels.deleteUserHistory new file mode 100644 index 0000000000..23b70143eb --- /dev/null +++ b/data/core.telegram.org/method/channels.deleteUserHistory @@ -0,0 +1,199 @@ + + + + + channels.deleteUserHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.deleteUserHistory

+ +

Delete all messages sent by a certain user in a supergroup

+

+
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
+---functions---
+channels.deleteUserHistory#d10dd71b channel:InputChannel user_id:InputUser = messages.AffectedHistory;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelSupergroup
user_idInputUserUser whose messages should be deleted
+

Result

+

messages.AffectedHistory

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400MSG_ID_INVALIDInvalid message ID provided
400USER_ID_INVALIDThe provided user ID is invalid
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.editAdmin b/data/core.telegram.org/method/channels.editAdmin new file mode 100644 index 0000000000..52c22a7d04 --- /dev/null +++ b/data/core.telegram.org/method/channels.editAdmin @@ -0,0 +1,291 @@ + + + + + channels.editAdmin + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.editAdmin

+ +

Modify the admin rights of a user in a supergroup/channel.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.editAdmin#d33c8902 channel:InputChannel user_id:InputUser admin_rights:ChatAdminRights rank:string = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelThe supergroup/channel.
user_idInputUserThe ID of the user whose admin rights should be modified
admin_rightsChatAdminRightsThe admin rights
rankstringIndicates the role (rank) of the admin in the group: just an arbitrary string
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400ADMINS_TOO_MUCHThere are too many admins
400BOTS_TOO_MUCHThere are too many bots in this chat/channel
400BOT_CHANNELS_NABots can't edit admin privileges
400BOT_GROUPS_BLOCKEDThis bot can't be added to groups
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
403CHAT_ADMIN_INVITE_REQUIREDYou do not have the rights to do this
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
403CHAT_WRITE_FORBIDDENYou can't write in this chat
406FRESH_CHANGE_ADMINS_FORBIDDENYou were just elected admin, you can't add or modify other admins yet
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400PEER_ID_INVALIDThe provided peer id is invalid
403RIGHT_FORBIDDENYour admin rights do not allow you to do this
400USERS_TOO_MUCHThe maximum number of users has been exceeded (to create a chat, for example)
400USER_BLOCKEDUser blocked
403USER_CHANNELS_TOO_MUCHOne of the users you tried to add is already in too many channels/supergroups
400USER_CREATORYou can't leave this channel, because you're its creator
400USER_ID_INVALIDThe provided user ID is invalid
400USER_NOT_MUTUAL_CONTACTThe provided user is not a mutual contact
403USER_PRIVACY_RESTRICTEDThe user's privacy settings do not allow you to do this
403USER_RESTRICTEDYou're spamreported, you can't create channels or chats.
+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.editBanned b/data/core.telegram.org/method/channels.editBanned new file mode 100644 index 0000000000..c85cac0113 --- /dev/null +++ b/data/core.telegram.org/method/channels.editBanned @@ -0,0 +1,221 @@ + + + + + channels.editBanned + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.editBanned

+ +

Ban/unban/kick a user in a supergroup/channel.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.editBanned#72796912 channel:InputChannel user_id:InputUser banned_rights:ChatBannedRights = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelThe supergroup/channel.
user_idInputUserThe ID of the user whose banned rights should be modified
banned_rightsChatBannedRightsThe banned rights
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400MSG_ID_INVALIDInvalid message ID provided
400PINNED_DIALOGS_TOO_MUCHToo many pinned dialogs
400USER_ADMIN_INVALIDYou're not an admin
400USER_ID_INVALIDThe provided user ID is invalid
+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.editCreator b/data/core.telegram.org/method/channels.editCreator new file mode 100644 index 0000000000..783fc784d4 --- /dev/null +++ b/data/core.telegram.org/method/channels.editCreator @@ -0,0 +1,215 @@ + + + + + channels.editCreator + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.editCreator

+ +

Transfer channel ownership

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.editCreator#8f38cd1f channel:InputChannel user_id:InputUser password:InputCheckPasswordSRP = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel
user_idInputUserNew channel owner
passwordInputCheckPasswordSRP2FA password of account
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400PASSWORD_HASH_INVALIDThe provided password hash is invalid
400PASSWORD_MISSINGYou must enable 2FA in order to transfer ownership of a channel
400PASSWORD_TOO_FRESH_XThe password was modified less than 24 hours ago, try again in X seconds
400SESSION_TOO_FRESH_XThis session was created less than 24 hours ago, try again in X seconds
400USER_ID_INVALIDThe provided user ID is invalid
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.editLocation b/data/core.telegram.org/method/channels.editLocation new file mode 100644 index 0000000000..d9cc82bbbe --- /dev/null +++ b/data/core.telegram.org/method/channels.editLocation @@ -0,0 +1,180 @@ + + + + + channels.editLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.editLocation

+ +

Edit location of geogroup

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+channels.editLocation#58e63f6d channel:InputChannel geo_point:InputGeoPoint address:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelGeogroup
geo_pointInputGeoPointNew geolocation
addressstringAddress string
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400MEGAGROUP_REQUIREDYou can only use this method on a supergroup
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.editPhoto b/data/core.telegram.org/method/channels.editPhoto new file mode 100644 index 0000000000..d4bf3526cf --- /dev/null +++ b/data/core.telegram.org/method/channels.editPhoto @@ -0,0 +1,211 @@ + + + + + channels.editPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.editPhoto

+ +

Change the photo of a channel/supergroup

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup whose photo should be edited
photoInputChatPhotoNew photo
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_NOT_MODIFIEDThe pinned message wasn't modified
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400PHOTO_CROP_SIZE_SMALLPhoto is too small
400PHOTO_EXT_INVALIDThe extension of the photo is invalid
400PHOTO_INVALIDPhoto invalid
+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.editTitle b/data/core.telegram.org/method/channels.editTitle new file mode 100644 index 0000000000..8d6b1fa250 --- /dev/null +++ b/data/core.telegram.org/method/channels.editTitle @@ -0,0 +1,201 @@ + + + + + channels.editTitle + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.editTitle

+ +

Edit the name of a channel/supergroup

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.editTitle#566decd0 channel:InputChannel title:string = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup
titlestringNew name
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_NOT_MODIFIEDThe pinned message wasn't modified
400CHAT_TITLE_EMPTYNo chat title provided
403CHAT_WRITE_FORBIDDENYou can't write in this chat
+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.exportMessageLink b/data/core.telegram.org/method/channels.exportMessageLink new file mode 100644 index 0000000000..f5f9913021 --- /dev/null +++ b/data/core.telegram.org/method/channels.exportMessageLink @@ -0,0 +1,204 @@ + + + + + channels.exportMessageLink + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.exportMessageLink

+ +

Get link and embed info of a message in a channel/supergroup

+

+
exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink;
+---functions---
+channels.exportMessageLink#e63fadeb flags:# grouped:flags.0?true thread:flags.1?true channel:InputChannel id:int = ExportedMessageLink;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
groupedflags.0?trueWhether to include other grouped media (for albums)
threadflags.1?trueWhether to also include a thread ID, if available, inside of the link
channelInputChannelChannel
idintMessage ID
+

Result

+

ExportedMessageLink

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400MESSAGE_ID_INVALIDThe provided message id is invalid
400MSG_ID_INVALIDInvalid message ID provided
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.getAdminLog b/data/core.telegram.org/method/channels.getAdminLog new file mode 100644 index 0000000000..bfb670110b --- /dev/null +++ b/data/core.telegram.org/method/channels.getAdminLog @@ -0,0 +1,226 @@ + + + + + channels.getAdminLog + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.getAdminLog

+ +

Get the admin log of a channel/supergroup

+

+
channels.adminLogResults#ed8af74d events:Vector<ChannelAdminLogEvent> chats:Vector<Chat> users:Vector<User> = channels.AdminLogResults;
+---functions---
+channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector<InputUser> max_id:long min_id:long limit:int = channels.AdminLogResults;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
channelInputChannelChannel
qstringSearch query, can be empty
events_filterflags.0?ChannelAdminLogEventsFilterEvent filter
adminsflags.1?Vector<InputUser>Only show events from these admins
max_idlongMaximum ID of message to return (see pagination)
min_idlongMinimum ID of message to return (see pagination)
limitintMaximum number of results to return, see pagination
+

Result

+

channels.AdminLogResults

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400MSG_ID_INVALIDInvalid message ID provided
+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.getAdminedPublicChannels b/data/core.telegram.org/method/channels.getAdminedPublicChannels new file mode 100644 index 0000000000..f68587e6dc --- /dev/null +++ b/data/core.telegram.org/method/channels.getAdminedPublicChannels @@ -0,0 +1,191 @@ + + + + + channels.getAdminedPublicChannels + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.getAdminedPublicChannels

+ +

Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the limit for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups.

+

+
messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
+messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;
+---functions---
+channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true = messages.Chats;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
by_locationflags.0?trueGet geogroups
check_limitflags.1?trueIf set and the user has reached the limit of owned public channels/supergroups/geogroups, instead of returning the channel list one of the specified errors will be returned.
Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in channels.checkUsername/channels.updateUsername.
+

Result

+

messages.Chats

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNELS_ADMIN_LOCATED_TOO_MUCHReturned if both the check_limit and the by_location flags are set and the user has reached the limit of public geogroups
400CHANNELS_ADMIN_PUBLIC_TOO_MUCHReturned if the check_limit flag is set and the user has reached the limit of public channels/supergroups
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+

channels.checkUsername

+

Check if a username is free and can be assigned to a channel/supergroup

+

channels.updateUsername

+

Change the username of a supergroup/channel

+

config

+

Current configuration

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.getChannels b/data/core.telegram.org/method/channels.getChannels new file mode 100644 index 0000000000..12cffbcce8 --- /dev/null +++ b/data/core.telegram.org/method/channels.getChannels @@ -0,0 +1,181 @@ + + + + + channels.getChannels + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.getChannels

+ +

Get info about channels/supergroups

+

+
messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
+messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;
+---functions---
+channels.getChannels#a7f6bbb id:Vector<InputChannel> = messages.Chats;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idVector<InputChannel>IDs of channels/supergroups to get info about
+

Result

+

messages.Chats

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400MSG_ID_INVALIDInvalid message ID provided
+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.getFullChannel b/data/core.telegram.org/method/channels.getFullChannel new file mode 100644 index 0000000000..8cb5ea1a4c --- /dev/null +++ b/data/core.telegram.org/method/channels.getFullChannel @@ -0,0 +1,182 @@ + + + + + channels.getFullChannel + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.getFullChannel

+ +

Get full info about a channel

+

+
messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;
+---functions---
+channels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelThe channel to get info about
+

Result

+

messages.ChatFull

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
403CHANNEL_PUBLIC_GROUP_NAchannel/supergroup not available
400MSG_ID_INVALIDInvalid message ID provided
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.getGroupsForDiscussion b/data/core.telegram.org/method/channels.getGroupsForDiscussion new file mode 100644 index 0000000000..d285b885d6 --- /dev/null +++ b/data/core.telegram.org/method/channels.getGroupsForDiscussion @@ -0,0 +1,144 @@ + + + + + channels.getGroupsForDiscussion + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.getGroupsForDiscussion

+ +

Get all groups that can be used as discussion groups.

+

Returned legacy group chats must be first upgraded to supergroups before they can be set as a discussion group.
+To set a returned supergroup as a discussion group, access to its old messages must be enabled using channels.togglePreHistoryHidden, first.

+

+
messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
+messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;
+---functions---
+channels.getGroupsForDiscussion#f5dad378 = messages.Chats;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

messages.Chats

+

Related pages

+

Discussion groups

+

Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+

channels.togglePreHistoryHidden

+

Hide/unhide message history for new channel/supergroup users

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.getInactiveChannels b/data/core.telegram.org/method/channels.getInactiveChannels new file mode 100644 index 0000000000..7ab021d1fe --- /dev/null +++ b/data/core.telegram.org/method/channels.getInactiveChannels @@ -0,0 +1,134 @@ + + + + + channels.getInactiveChannels + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.getInactiveChannels

+ +

Get inactive channels and supergroups

+

+
messages.inactiveChats#a927fec5 dates:Vector<int> chats:Vector<Chat> users:Vector<User> = messages.InactiveChats;
+---functions---
+channels.getInactiveChannels#11e831ee = messages.InactiveChats;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

messages.InactiveChats

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.getLeftChannels b/data/core.telegram.org/method/channels.getLeftChannels new file mode 100644 index 0000000000..80a06091d8 --- /dev/null +++ b/data/core.telegram.org/method/channels.getLeftChannels @@ -0,0 +1,172 @@ + + + + + channels.getLeftChannels + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.getLeftChannels

+ +

Get a list of channels/supergroups we left

+

+
messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
+messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;
+---functions---
+channels.getLeftChannels#8341ecc0 offset:int = messages.Chats;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset for pagination
+

Result

+

messages.Chats

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
403TAKEOUT_REQUIREDA takeout session has to be initialized, first
+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.getMessages b/data/core.telegram.org/method/channels.getMessages new file mode 100644 index 0000000000..45821f23a4 --- /dev/null +++ b/data/core.telegram.org/method/channels.getMessages @@ -0,0 +1,193 @@ + + + + + channels.getMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.getMessages

+ +

Get channel/supergroup messages

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+channels.getMessages#ad8c9a23 channel:InputChannel id:Vector<InputMessage> = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup
idVector<InputMessage>IDs of messages to get
+

Result

+

messages.Messages

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400MESSAGE_IDS_EMPTYNo message ids were provided
400MSG_ID_INVALIDInvalid message ID provided
+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.getParticipant b/data/core.telegram.org/method/channels.getParticipant new file mode 100644 index 0000000000..00b4b73f0f --- /dev/null +++ b/data/core.telegram.org/method/channels.getParticipant @@ -0,0 +1,200 @@ + + + + + channels.getParticipant + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.getParticipant

+ +

Get info about a channel/supergroup participant

+

+
channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector<User> = channels.ChannelParticipant;
+---functions---
+channels.getParticipant#546dd7a6 channel:InputChannel user_id:InputUser = channels.ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup
user_idInputUserID of participant to get info about
+

Result

+

channels.ChannelParticipant

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400MSG_ID_INVALIDInvalid message ID provided
400USER_ID_INVALIDThe provided user ID is invalid
400USER_NOT_PARTICIPANTYou're not a member of this supergroup/channel
+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.getParticipants b/data/core.telegram.org/method/channels.getParticipants new file mode 100644 index 0000000000..9678faa62f --- /dev/null +++ b/data/core.telegram.org/method/channels.getParticipants @@ -0,0 +1,208 @@ + + + + + channels.getParticipants + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.getParticipants

+ +

Get the participants of a supergroup/channel

+

+
channels.channelParticipants#f56ee2a8 count:int participants:Vector<ChannelParticipant> users:Vector<User> = channels.ChannelParticipants;
+channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants;
+---functions---
+channels.getParticipants#123e05e9 channel:InputChannel filter:ChannelParticipantsFilter offset:int limit:int hash:int = channels.ChannelParticipants;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel
filterChannelParticipantsFilterWhich participant types to fetch
offsetintOffset
limitintLimit
hashintHash
+

Result

+

channels.ChannelParticipants

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400INPUT_CONSTRUCTOR_INVALIDThe provided constructor is invalid
+

Bots can use this method

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.inviteToChannel b/data/core.telegram.org/method/channels.inviteToChannel new file mode 100644 index 0000000000..1f8dbe0351 --- /dev/null +++ b/data/core.telegram.org/method/channels.inviteToChannel @@ -0,0 +1,262 @@ + + + + + channels.inviteToChannel + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.inviteToChannel

+ +

Invite users to a channel/supergroup

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector<InputUser> = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup
usersVector<InputUser>Users to invite
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BOTS_TOO_MUCHThere are too many bots in this chat/channel
400BOT_GROUPS_BLOCKEDThis bot can't be added to groups
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_INVALIDInvalid chat
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MSG_ID_INVALIDInvalid message ID provided
400USERS_TOO_MUCHThe maximum number of users has been exceeded (to create a chat, for example)
400USER_BANNED_IN_CHANNELYou're banned from sending messages in supergroups/channels
400USER_BLOCKEDUser blocked
400USER_BOTBots can only be admins in channels.
403USER_CHANNELS_TOO_MUCHOne of the users you tried to add is already in too many channels/supergroups
400USER_ID_INVALIDThe provided user ID is invalid
400USER_KICKEDThis user was kicked from this supergroup/channel
400USER_NOT_MUTUAL_CONTACTThe provided user is not a mutual contact
403USER_PRIVACY_RESTRICTEDThe user's privacy settings do not allow you to do this
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.joinChannel b/data/core.telegram.org/method/channels.joinChannel new file mode 100644 index 0000000000..3c5fdc005f --- /dev/null +++ b/data/core.telegram.org/method/channels.joinChannel @@ -0,0 +1,222 @@ + + + + + channels.joinChannel + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.joinChannel

+ +

Join a channel/supergroup

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.joinChannel#24b524c5 channel:InputChannel = Updates;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup to join
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNELS_TOO_MUCHYou have joined too many channels/supergroups
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400INVITE_HASH_EMPTYThe invite hash is empty
400INVITE_HASH_EXPIREDThe invite link has expired
400INVITE_HASH_INVALIDThe invite hash is invalid
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
400USERS_TOO_MUCHThe maximum number of users has been exceeded (to create a chat, for example)
400USER_ALREADY_PARTICIPANTThe user is already in the group
400USER_CHANNELS_TOO_MUCHOne of the users you tried to add is already in too many channels/supergroups
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.leaveChannel b/data/core.telegram.org/method/channels.leaveChannel new file mode 100644 index 0000000000..cb93342b50 --- /dev/null +++ b/data/core.telegram.org/method/channels.leaveChannel @@ -0,0 +1,201 @@ + + + + + channels.leaveChannel + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.leaveChannel

+ +

Leave a channel/supergroup

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.leaveChannel#f836aa95 channel:InputChannel = Updates;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup to leave
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
403CHANNEL_PUBLIC_GROUP_NAchannel/supergroup not available
400MSG_ID_INVALIDInvalid message ID provided
400USER_CREATORYou can't leave this channel, because you're its creator
400USER_NOT_PARTICIPANTYou're not a member of this supergroup/channel
+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.readHistory b/data/core.telegram.org/method/channels.readHistory new file mode 100644 index 0000000000..7853936581 --- /dev/null +++ b/data/core.telegram.org/method/channels.readHistory @@ -0,0 +1,185 @@ + + + + + channels.readHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.readHistory

+ +

Mark channel/supergroup history as read

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup
max_idintID of message up to which messages should be marked as read
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400MSG_ID_INVALIDInvalid message ID provided
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.readMessageContents b/data/core.telegram.org/method/channels.readMessageContents new file mode 100644 index 0000000000..4bfd6f2036 --- /dev/null +++ b/data/core.telegram.org/method/channels.readMessageContents @@ -0,0 +1,185 @@ + + + + + channels.readMessageContents + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.readMessageContents

+ +

Mark channel/supergroup message contents as read

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+channels.readMessageContents#eab5dc38 channel:InputChannel id:Vector<int> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup
idVector<int>IDs of messages whose contents should be marked as read
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400MSG_ID_INVALIDInvalid message ID provided
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.reportSpam b/data/core.telegram.org/method/channels.reportSpam new file mode 100644 index 0000000000..9d14c5dcef --- /dev/null +++ b/data/core.telegram.org/method/channels.reportSpam @@ -0,0 +1,192 @@ + + + + + channels.reportSpam + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.reportSpam

+ +

Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+channels.reportSpam#fe087810 channel:InputChannel user_id:InputUser id:Vector<int> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelSupergroup
user_idInputUserID of the user that sent the spam messages
idVector<int>IDs of spam messages
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400USER_ID_INVALIDThe provided user ID is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.setDiscussionGroup b/data/core.telegram.org/method/channels.setDiscussionGroup new file mode 100644 index 0000000000..212b634809 --- /dev/null +++ b/data/core.telegram.org/method/channels.setDiscussionGroup @@ -0,0 +1,185 @@ + + + + + channels.setDiscussionGroup + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.setDiscussionGroup

+ +

Associate a group to a channel as discussion group for that channel

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+channels.setDiscussionGroup#40582bb2 broadcast:InputChannel group:InputChannel = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
broadcastInputChannelChannel
groupInputChannelDiscussion group to associate to the channel
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BROADCAST_ID_INVALIDBroadcast ID invalid
400LINK_NOT_MODIFIEDDiscussion link not modified
400MEGAGROUP_ID_INVALIDInvalid supergroup ID
+

Related pages

+

Discussion groups

+

Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.setStickers b/data/core.telegram.org/method/channels.setStickers new file mode 100644 index 0000000000..44309f1d87 --- /dev/null +++ b/data/core.telegram.org/method/channels.setStickers @@ -0,0 +1,178 @@ + + + + + channels.setStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.setStickers

+ +

Associate a stickerset to the supergroup

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelSupergroup
stickersetInputStickerSetThe stickerset to associate
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400PARTICIPANTS_TOO_FEWNot enough participants
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.togglePreHistoryHidden b/data/core.telegram.org/method/channels.togglePreHistoryHidden new file mode 100644 index 0000000000..76348d4ba8 --- /dev/null +++ b/data/core.telegram.org/method/channels.togglePreHistoryHidden @@ -0,0 +1,202 @@ + + + + + channels.togglePreHistoryHidden + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.togglePreHistoryHidden

+ +

Hide/unhide message history for new channel/supergroup users

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.togglePreHistoryHidden#eabbb94c channel:InputChannel enabled:Bool = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel/supergroup
enabledBoolHide/unhide
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_ID_INVALIDThe provided chat id is invalid
400CHAT_LINK_EXISTSThe chat is public, you can't hide the history to new users
400CHAT_NOT_MODIFIEDThe pinned message wasn't modified
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.toggleSignatures b/data/core.telegram.org/method/channels.toggleSignatures new file mode 100644 index 0000000000..7883a81ef6 --- /dev/null +++ b/data/core.telegram.org/method/channels.toggleSignatures @@ -0,0 +1,182 @@ + + + + + channels.toggleSignatures + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.toggleSignatures

+ +

Enable/disable message signatures in channels

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel
enabledBoolValue
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHAT_ID_INVALIDThe provided chat id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.toggleSlowMode b/data/core.telegram.org/method/channels.toggleSlowMode new file mode 100644 index 0000000000..6e87887d06 --- /dev/null +++ b/data/core.telegram.org/method/channels.toggleSlowMode @@ -0,0 +1,200 @@ + + + + + channels.toggleSlowMode + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.toggleSlowMode

+ +

Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+channels.toggleSlowMode#edd49ef0 channel:InputChannel seconds:int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelThe supergroup
secondsintUsers will only be able to send one message every seconds seconds, 0 to disable the limitation
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_NOT_MODIFIEDThe pinned message wasn't modified
400INPUT_METHOD_INVALID_1192227_XInvalid method
400INPUT_METHOD_INVALID_1604042050_XInvalid method
400SECONDS_INVALIDInvalid duration provided
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/channels.updateUsername b/data/core.telegram.org/method/channels.updateUsername new file mode 100644 index 0000000000..d8839a28e1 --- /dev/null +++ b/data/core.telegram.org/method/channels.updateUsername @@ -0,0 +1,212 @@ + + + + + channels.updateUsername + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.updateUsername

+ +

Change the username of a supergroup/channel

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+channels.updateUsername#3514b3de channel:InputChannel username:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelChannel
usernamestringNew username
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNELS_ADMIN_PUBLIC_TOO_MUCHYou're admin of too many public channels, make some channels private to change the username of this channel
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_NOT_MODIFIEDThe pinned message wasn't modified
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400USERNAME_INVALIDThe provided username is not valid
400USERNAME_NOT_MODIFIEDThe username was not modified
400USERNAME_OCCUPIEDThe provided username is already occupied
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.acceptContact b/data/core.telegram.org/method/contacts.acceptContact new file mode 100644 index 0000000000..ce269ce290 --- /dev/null +++ b/data/core.telegram.org/method/contacts.acceptContact @@ -0,0 +1,185 @@ + + + + + contacts.acceptContact + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.acceptContact

+ +

If the peer settings of a new user allow us to add him as contact, add that user as contact

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+contacts.acceptContact#f831a20f id:InputUser = Updates;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idInputUserThe user to add as contact
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CONTACT_ADD_MISSINGContact to add is missing
400CONTACT_ID_INVALIDThe provided contact ID is invalid
400CONTACT_REQ_MISSINGMissing contact request
+

Related pages

+

peerSettings

+

Peer settings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.addContact b/data/core.telegram.org/method/contacts.addContact new file mode 100644 index 0000000000..da0c7fc6e0 --- /dev/null +++ b/data/core.telegram.org/method/contacts.addContact @@ -0,0 +1,212 @@ + + + + + contacts.addContact + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.addContact

+ +

Add an existing telegram user as contact.

+

Use contacts.importContacts to add contacts by phone number, without knowing their Telegram ID.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+contacts.addContact#e8f463d0 flags:# add_phone_privacy_exception:flags.0?true id:InputUser first_name:string last_name:string phone:string = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
add_phone_privacy_exceptionflags.0?trueAllow the other user to see our phone number?
idInputUserTelegram ID of the other user
first_namestringFirst name
last_namestringLast name
phonestringUser's phone number
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CONTACT_ID_INVALIDThe provided contact ID is invalid
400CONTACT_NAME_EMPTYContact name empty
400MSG_ID_INVALIDInvalid message ID provided
+

Related pages

+

contacts.importContacts

+

Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.

+

Use contacts.addContact to add Telegram contacts without actually using their phone number.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.block b/data/core.telegram.org/method/contacts.block new file mode 100644 index 0000000000..88742acaeb --- /dev/null +++ b/data/core.telegram.org/method/contacts.block @@ -0,0 +1,182 @@ + + + + + contacts.block + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.block

+ +

Adds the user to the blacklist.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+contacts.block#68cc1411 id:InputPeer = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idInputPeerUser ID
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CONTACT_ID_INVALIDThe provided contact ID is invalid
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.blockFromReplies b/data/core.telegram.org/method/contacts.blockFromReplies new file mode 100644 index 0000000000..78318c23b1 --- /dev/null +++ b/data/core.telegram.org/method/contacts.blockFromReplies @@ -0,0 +1,179 @@ + + + + + contacts.blockFromReplies + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.blockFromReplies

+ +

Stop getting notifications about thread replies of a certain user in @replies

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+contacts.blockFromReplies#29a8962c flags:# delete_message:flags.0?true delete_history:flags.1?true report_spam:flags.2?true msg_id:int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
delete_messageflags.0?trueWhether to delete the specified message as well
delete_historyflags.1?trueWhether to delete all @replies messages from this user as well
report_spamflags.2?trueWhether to also report this user for spam
msg_idintID of the message in the @replies chat
+

Result

+

Updates

+

Bots can use this method

+

Related pages

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.deleteByPhones b/data/core.telegram.org/method/contacts.deleteByPhones new file mode 100644 index 0000000000..3a638b9b5a --- /dev/null +++ b/data/core.telegram.org/method/contacts.deleteByPhones @@ -0,0 +1,150 @@ + + + + + contacts.deleteByPhones + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.deleteByPhones

+ +

Delete contacts by phone number

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+contacts.deleteByPhones#1013fd9e phones:Vector<string> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
phonesVector<string>Phone numbers
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.deleteContacts b/data/core.telegram.org/method/contacts.deleteContacts new file mode 100644 index 0000000000..d4e814cc39 --- /dev/null +++ b/data/core.telegram.org/method/contacts.deleteContacts @@ -0,0 +1,155 @@ + + + + + contacts.deleteContacts + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.deleteContacts

+ +

Deletes several contacts from the list.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+contacts.deleteContacts#96a0e00 id:Vector<InputUser> = Updates;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idVector<InputUser>User ID list
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.getBlocked b/data/core.telegram.org/method/contacts.getBlocked new file mode 100644 index 0000000000..62eb9dbb2b --- /dev/null +++ b/data/core.telegram.org/method/contacts.getBlocked @@ -0,0 +1,155 @@ + + + + + contacts.getBlocked + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.getBlocked

+ +

Returns the list of blocked users.

+

+
contacts.blocked#ade1591 blocked:Vector<PeerBlocked> chats:Vector<Chat> users:Vector<User> = contacts.Blocked;
+contacts.blockedSlice#e1664194 count:int blocked:Vector<PeerBlocked> chats:Vector<Chat> users:Vector<User> = contacts.Blocked;
+---functions---
+contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintThe number of list elements to be skipped
limitintThe number of list elements to be returned
+

Result

+

contacts.Blocked

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.getContactIDs b/data/core.telegram.org/method/contacts.getContactIDs new file mode 100644 index 0000000000..457d8932f3 --- /dev/null +++ b/data/core.telegram.org/method/contacts.getContactIDs @@ -0,0 +1,151 @@ + + + + + contacts.getContactIDs + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.getContactIDs

+ +

Get contact by telegram IDs

+

+
---functions---
+contacts.getContactIDs#2caa4a42 hash:int = Vector<int>;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
+

Result

+

Vector<int>

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.getContacts b/data/core.telegram.org/method/contacts.getContacts new file mode 100644 index 0000000000..b3d8c4aac9 --- /dev/null +++ b/data/core.telegram.org/method/contacts.getContacts @@ -0,0 +1,155 @@ + + + + + contacts.getContacts + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.getContacts

+ +

Returns the current user's contact list.

+

+
contacts.contactsNotModified#b74ba9d2 = contacts.Contacts;
+contacts.contacts#eae87e42 contacts:Vector<Contact> saved_count:int users:Vector<User> = contacts.Contacts;
+---functions---
+contacts.getContacts#c023849f hash:int = contacts.Contacts;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashintIf there already is a full contact list on the client, a hash of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, (contacts.contactsNotModified) will be returned.
+

Result

+

contacts.Contacts

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+

contacts.contactsNotModified

+

Contact list on the server is the same as the list on the client.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.getLocated b/data/core.telegram.org/method/contacts.getLocated new file mode 100644 index 0000000000..19f92d0d16 --- /dev/null +++ b/data/core.telegram.org/method/contacts.getLocated @@ -0,0 +1,192 @@ + + + + + contacts.getLocated + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.getLocated

+ +

Get contacts near you

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+contacts.getLocated#d348bc44 flags:# background:flags.1?true geo_point:InputGeoPoint self_expires:flags.0?int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
backgroundflags.1?trueWhile the geolocation of the current user is public, clients should update it in the background every half-an-hour or so, while setting this flag.
Do this only if the new location is more than 1 KM away from the previous one, or if the previous location is unknown.
geo_pointInputGeoPointGeolocation
self_expiresflags.0?intIf set, the geolocation of the current user will be public for the specified number of seconds; pass 0x7fffffff to disable expiry, 0 to make the current geolocation private; if the flag isn't set, no changes will be applied.
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400GEO_POINT_INVALIDInvalid geoposition provided
406USERPIC_UPLOAD_REQUIREDYou must have a profile picture to publish your geolocation
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.getSaved b/data/core.telegram.org/method/contacts.getSaved new file mode 100644 index 0000000000..38dcebb414 --- /dev/null +++ b/data/core.telegram.org/method/contacts.getSaved @@ -0,0 +1,150 @@ + + + + + contacts.getSaved + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.getSaved

+ +

Get all contacts

+

+
---functions---
+contacts.getSaved#82f1e39f = Vector<SavedContact>;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Vector<SavedContact>

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
403TAKEOUT_REQUIREDA takeout session has to be initialized, first
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.getStatuses b/data/core.telegram.org/method/contacts.getStatuses new file mode 100644 index 0000000000..2f30f8624f --- /dev/null +++ b/data/core.telegram.org/method/contacts.getStatuses @@ -0,0 +1,133 @@ + + + + + contacts.getStatuses + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.getStatuses

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.getTopPeers b/data/core.telegram.org/method/contacts.getTopPeers new file mode 100644 index 0000000000..57c8920785 --- /dev/null +++ b/data/core.telegram.org/method/contacts.getTopPeers @@ -0,0 +1,226 @@ + + + + + contacts.getTopPeers + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.getTopPeers

+ +

Get most used peers

+

+
contacts.topPeersNotModified#de266ef5 = contacts.TopPeers;
+contacts.topPeers#70b772a8 categories:Vector<TopPeerCategoryPeers> chats:Vector<Chat> users:Vector<User> = contacts.TopPeers;
+contacts.topPeersDisabled#b52c939d = contacts.TopPeers;
+---functions---
+contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true forward_users:flags.4?true forward_chats:flags.5?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
correspondentsflags.0?trueUsers we've chatted most frequently with
bots_pmflags.1?trueMost used bots
bots_inlineflags.2?trueMost used inline bots
phone_callsflags.3?trueMost frequently called users
forward_usersflags.4?trueUsers to which the users often forwards messages to
forward_chatsflags.5?trueChats to which the users often forwards messages to
groupsflags.10?trueOften-opened groups and supergroups
channelsflags.15?trueMost frequently visited channels
offsetintOffset for pagination
limitintMaximum number of results to return, see pagination
hashintHash for pagination, for more info click here
+

Result

+

contacts.TopPeers

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400TYPES_EMPTYNo top peer type was provided
+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.importContacts b/data/core.telegram.org/method/contacts.importContacts new file mode 100644 index 0000000000..f8f484b095 --- /dev/null +++ b/data/core.telegram.org/method/contacts.importContacts @@ -0,0 +1,154 @@ + + + + + contacts.importContacts + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.importContacts

+ +

Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.

+

Use contacts.addContact to add Telegram contacts without actually using their phone number.

+

+
contacts.importedContacts#77d01c3b imported:Vector<ImportedContact> popular_invites:Vector<PopularContact> retry_contacts:Vector<long> users:Vector<User> = contacts.ImportedContacts;
+---functions---
+contacts.importContacts#2c800be5 contacts:Vector<InputContact> = contacts.ImportedContacts;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
contactsVector<InputContact>List of contacts to import
+

Result

+

contacts.ImportedContacts

+

Related pages

+

contacts.addContact

+

Add an existing telegram user as contact.

+

Use contacts.importContacts to add contacts by phone number, without knowing their Telegram ID.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.resetSaved b/data/core.telegram.org/method/contacts.resetSaved new file mode 100644 index 0000000000..3ea9b71fe9 --- /dev/null +++ b/data/core.telegram.org/method/contacts.resetSaved @@ -0,0 +1,135 @@ + + + + + contacts.resetSaved + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.resetSaved

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.resetTopPeerRating b/data/core.telegram.org/method/contacts.resetTopPeerRating new file mode 100644 index 0000000000..21814e6f58 --- /dev/null +++ b/data/core.telegram.org/method/contacts.resetTopPeerRating @@ -0,0 +1,175 @@ + + + + + contacts.resetTopPeerRating + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.resetTopPeerRating

+ +

Reset rating of top peer

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
categoryTopPeerCategoryTop peer category
peerInputPeerPeer whose rating should be reset
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid
+

Related pages

+

Top peer rating

+

If enabled, the rating of top peers indicates the relevance of a frequently used peer in a certain category (frequently messaged users, frequently used bots, inline bots, frequently visited channels and so on).

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.resolveUsername b/data/core.telegram.org/method/contacts.resolveUsername new file mode 100644 index 0000000000..49a12fe0a7 --- /dev/null +++ b/data/core.telegram.org/method/contacts.resolveUsername @@ -0,0 +1,187 @@ + + + + + contacts.resolveUsername + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.resolveUsername

+ +

Resolve a @username to get peer info

+

+
contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector<Chat> users:Vector<User> = contacts.ResolvedPeer;
+---functions---
+contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
usernamestring@username to resolve
+

Result

+

contacts.ResolvedPeer

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
401AUTH_KEY_PERM_EMPTYThe temporary auth key must be binded to the permanent auth key to use these methods.
400CONNECTION_DEVICE_MODEL_EMPTYDevice model empty
400CONNECTION_LAYER_INVALIDLayer invalid
400USERNAME_INVALIDThe provided username is not valid
400USERNAME_NOT_OCCUPIEDThe provided username is not occupied
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.search b/data/core.telegram.org/method/contacts.search new file mode 100644 index 0000000000..26a494dcfa --- /dev/null +++ b/data/core.telegram.org/method/contacts.search @@ -0,0 +1,178 @@ + + + + + contacts.search + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.search

+ +

Returns users found by username substring.

+

+
contacts.found#b3134d9d my_results:Vector<Peer> results:Vector<Peer> chats:Vector<Chat> users:Vector<User> = contacts.Found;
+---functions---
+contacts.search#11f812d8 q:string limit:int = contacts.Found;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
qstringTarget substring
limitintMaximum number of users to be returned
+

Result

+

contacts.Found

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400QUERY_TOO_SHORTThe query string is too short
400SEARCH_QUERY_EMPTYThe search query is empty
+

Notes

+

This method will exclude the current user's contacts from the search results. It is assumed that searches among the user's contacts can be handled locally by the client.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.toggleTopPeers b/data/core.telegram.org/method/contacts.toggleTopPeers new file mode 100644 index 0000000000..3341323dd8 --- /dev/null +++ b/data/core.telegram.org/method/contacts.toggleTopPeers @@ -0,0 +1,153 @@ + + + + + contacts.toggleTopPeers + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.toggleTopPeers

+ +

Enable/disable top peers

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+contacts.toggleTopPeers#8514bdda enabled:Bool = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
enabledBoolEnable/disable
+

Result

+

Bool

+

Related pages

+

Top peer rating

+

If enabled, the rating of top peers indicates the relevance of a frequently used peer in a certain category (frequently messaged users, frequently used bots, inline bots, frequently visited channels and so on).

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/contacts.unblock b/data/core.telegram.org/method/contacts.unblock new file mode 100644 index 0000000000..67afc1162a --- /dev/null +++ b/data/core.telegram.org/method/contacts.unblock @@ -0,0 +1,167 @@ + + + + + contacts.unblock + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.unblock

+ +

Deletes the user from the blacklist.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+contacts.unblock#bea65d50 id:InputPeer = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idInputPeerUser ID
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400CONTACT_ID_INVALIDThe provided contact ID is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/folders.deleteFolder b/data/core.telegram.org/method/folders.deleteFolder new file mode 100644 index 0000000000..3c6780e30c --- /dev/null +++ b/data/core.telegram.org/method/folders.deleteFolder @@ -0,0 +1,158 @@ + + + + + folders.deleteFolder + + + + + + + + + + + + + +
+ +
+
+
+ +

folders.deleteFolder

+ +

Delete a peer folder

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+folders.deleteFolder#1c295881 folder_id:int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
folder_idintPeer folder ID, for more info click here
+

Result

+

Updates

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/folders.editPeerFolders b/data/core.telegram.org/method/folders.editPeerFolders new file mode 100644 index 0000000000..e7cd734a50 --- /dev/null +++ b/data/core.telegram.org/method/folders.editPeerFolders @@ -0,0 +1,175 @@ + + + + + folders.editPeerFolders + + + + + + + + + + + + + +
+ +
+
+
+ +

folders.editPeerFolders

+ +

Edit peers in peer folder

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+folders.editPeerFolders#6847d0ab folder_peers:Vector<InputFolderPeer> = Updates;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
folder_peersVector<InputFolderPeer>New peer list
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400FOLDER_ID_INVALIDInvalid folder ID
+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.acceptTermsOfService b/data/core.telegram.org/method/help.acceptTermsOfService new file mode 100644 index 0000000000..78d7bd4a11 --- /dev/null +++ b/data/core.telegram.org/method/help.acceptTermsOfService @@ -0,0 +1,150 @@ + + + + + help.acceptTermsOfService + + + + + + + + + + + + + +
+ +
+
+
+ +

help.acceptTermsOfService

+ +

Accept the new terms of service

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+help.acceptTermsOfService#ee72f79a id:DataJSON = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idDataJSONID of terms of service
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.dismissSuggestion b/data/core.telegram.org/method/help.dismissSuggestion new file mode 100644 index 0000000000..5b0f7774a0 --- /dev/null +++ b/data/core.telegram.org/method/help.dismissSuggestion @@ -0,0 +1,151 @@ + + + + + help.dismissSuggestion + + + + + + + + + + + + + +
+ +
+
+
+ +

help.dismissSuggestion

+ +

Dismiss a suggestion

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+help.dismissSuggestion#77fa99f suggestion:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
suggestionstringSuggestion
+

Result

+

Bool

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.editUserInfo b/data/core.telegram.org/method/help.editUserInfo new file mode 100644 index 0000000000..6ced463b81 --- /dev/null +++ b/data/core.telegram.org/method/help.editUserInfo @@ -0,0 +1,163 @@ + + + + + help.editUserInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

help.editUserInfo

+ +

Internal use

+

+
help.userInfoEmpty#f3ae2eed = help.UserInfo;
+help.userInfo#1eb3758 message:string entities:Vector<MessageEntity> author:string date:int = help.UserInfo;
+---functions---
+help.editUserInfo#66b91b70 user_id:InputUser message:string entities:Vector<MessageEntity> = help.UserInfo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idInputUserUser
messagestringMessage
entitiesVector<MessageEntity>Message entities for styled text
+

Result

+

help.UserInfo

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getAppChangelog b/data/core.telegram.org/method/help.getAppChangelog new file mode 100644 index 0000000000..28e5a97863 --- /dev/null +++ b/data/core.telegram.org/method/help.getAppChangelog @@ -0,0 +1,162 @@ + + + + + help.getAppChangelog + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getAppChangelog

+ +

Get changelog of current app.
+Typically, an updates constructor will be returned, containing one or more updateServiceNotification updates with app-specific changelogs.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+help.getAppChangelog#9010ef6f prev_app_version:string = Updates;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
prev_app_versionstringPrevious app version
+

Result

+

Updates

+

Related pages

+

Updates

+

Full constructor of updates

+

updateServiceNotification

+

A service message for the user.

+

The app must show the message to the user upon receiving this update. In case the popup parameter was passed, the text message must be displayed in a popup alert immediately upon receipt. It is recommended to handle the text as you would an ordinary message in terms of highlighting links, etc. The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications).

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getAppConfig b/data/core.telegram.org/method/help.getAppConfig new file mode 100644 index 0000000000..61ec61617e --- /dev/null +++ b/data/core.telegram.org/method/help.getAppConfig @@ -0,0 +1,142 @@ + + + + + help.getAppConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getAppConfig

+ +

Get app-specific configuration, see client configuration for more info on the result.

+

+
jsonNull#3f6d7b68 = JSONValue;
+jsonBool#c7345e6a value:Bool = JSONValue;
+jsonNumber#2be0dfa4 value:double = JSONValue;
+jsonString#b71e767a value:string = JSONValue;
+jsonArray#f7444763 value:Vector<JSONValue> = JSONValue;
+jsonObject#99c1d49d value:Vector<JSONObjectValue> = JSONValue;
+---functions---
+help.getAppConfig#98914110 = JSONValue;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

JSONValue, see client configuration for more info on the result

+

Related pages

+

Client configuration

+

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getAppUpdate b/data/core.telegram.org/method/help.getAppUpdate new file mode 100644 index 0000000000..8d1825f006 --- /dev/null +++ b/data/core.telegram.org/method/help.getAppUpdate @@ -0,0 +1,150 @@ + + + + + help.getAppUpdate + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getAppUpdate

+ +

Returns information on update availability for the current application.

+

+
help.appUpdate#1da7158f flags:# can_not_skip:flags.0?true id:int version:string text:string entities:Vector<MessageEntity> document:flags.1?Document url:flags.2?string = help.AppUpdate;
+help.noAppUpdate#c45a6536 = help.AppUpdate;
+---functions---
+help.getAppUpdate#522d5a7d source:string = help.AppUpdate;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
sourcestringSource
+

Result

+

help.AppUpdate

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getCdnConfig b/data/core.telegram.org/method/help.getCdnConfig new file mode 100644 index 0000000000..df6a1e3818 --- /dev/null +++ b/data/core.telegram.org/method/help.getCdnConfig @@ -0,0 +1,154 @@ + + + + + help.getCdnConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getCdnConfig

+ +

Get configuration for CDN file downloads.

+

+
cdnConfig#5725e40a public_keys:Vector<CdnPublicKey> = CdnConfig;
+---functions---
+help.getCdnConfig#52029342 = CdnConfig;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

CdnConfig

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
401AUTH_KEY_PERM_EMPTYThe temporary auth key must be binded to the permanent auth key to use these methods.
+

Bots can use this method

+

Related pages

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getConfig b/data/core.telegram.org/method/help.getConfig new file mode 100644 index 0000000000..eb80c77bd2 --- /dev/null +++ b/data/core.telegram.org/method/help.getConfig @@ -0,0 +1,202 @@ + + + + + help.getConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getConfig

+ +

Returns current configuration, including data center configuration.

+

+
config#330b4067 flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true pfs_enabled:flags.13?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int pinned_infolder_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int base_lang_pack_version:flags.2?int = Config;
+---functions---
+help.getConfig#c4f9186b = Config;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Config

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CONNECTION_API_ID_INVALIDThe provided API id is invalid
400CONNECTION_APP_VERSION_EMPTYApp version is empty
400CONNECTION_DEVICE_MODEL_EMPTYDevice model empty
400CONNECTION_LANG_PACK_INVALIDLanguage pack invalid
400CONNECTION_LAYER_INVALIDLayer invalid
400CONNECTION_NOT_INITEDConnection not initialized
400CONNECTION_SYSTEM_EMPTYConnection system empty
400CONNECTION_SYSTEM_LANG_CODE_EMPTYThe system_lang_code field is empty
400DATA_INVALIDEncrypted data invalid
400INPUT_LAYER_INVALIDThe provided layer is invalid
400MSG_ID_INVALIDInvalid message ID provided
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getCountriesList b/data/core.telegram.org/method/help.getCountriesList new file mode 100644 index 0000000000..206b825527 --- /dev/null +++ b/data/core.telegram.org/method/help.getCountriesList @@ -0,0 +1,159 @@ + + + + + help.getCountriesList + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getCountriesList

+ +

Get name, ISO code, localized name and phone codes/patterns of all available countries

+

+
help.countriesListNotModified#93cc1f32 = help.CountriesList;
+help.countriesList#87d0759e countries:Vector<help.Country> hash:int = help.CountriesList;
+---functions---
+help.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lang_codestringLanguage code of the current user
hashintHash for pagination, for more info click here
+

Result

+

help.CountriesList

+

Bots can use this method

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getDeepLinkInfo b/data/core.telegram.org/method/help.getDeepLinkInfo new file mode 100644 index 0000000000..fdc1217e14 --- /dev/null +++ b/data/core.telegram.org/method/help.getDeepLinkInfo @@ -0,0 +1,150 @@ + + + + + help.getDeepLinkInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getDeepLinkInfo

+ +

Get info about a t.me link

+

+
help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo;
+help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector<MessageEntity> = help.DeepLinkInfo;
+---functions---
+help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
pathstringPath in t.me/path
+

Result

+

help.DeepLinkInfo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getInviteText b/data/core.telegram.org/method/help.getInviteText new file mode 100644 index 0000000000..44f52149d8 --- /dev/null +++ b/data/core.telegram.org/method/help.getInviteText @@ -0,0 +1,134 @@ + + + + + help.getInviteText + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getInviteText

+ +

Returns localized text of a text message with an invitation.

+

+
help.inviteText#18cb9f78 message:string = help.InviteText;
+---functions---
+help.getInviteText#4d392343 = help.InviteText;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

help.InviteText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getNearestDc b/data/core.telegram.org/method/help.getNearestDc new file mode 100644 index 0000000000..8a06259c84 --- /dev/null +++ b/data/core.telegram.org/method/help.getNearestDc @@ -0,0 +1,134 @@ + + + + + help.getNearestDc + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getNearestDc

+ +

Returns info on data centre nearest to the user.

+

+
nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc;
+---functions---
+help.getNearestDc#1fb33026 = NearestDc;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

NearestDc

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getPassportConfig b/data/core.telegram.org/method/help.getPassportConfig new file mode 100644 index 0000000000..5538f90f87 --- /dev/null +++ b/data/core.telegram.org/method/help.getPassportConfig @@ -0,0 +1,154 @@ + + + + + help.getPassportConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getPassportConfig

+ +

Get passport configuration

+

+
help.passportConfigNotModified#bfb9f457 = help.PassportConfig;
+help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig;
+---functions---
+help.getPassportConfig#c661ad08 hash:int = help.PassportConfig;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
+

Result

+

help.PassportConfig

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getPromoData b/data/core.telegram.org/method/help.getPromoData new file mode 100644 index 0000000000..9b1365c18d --- /dev/null +++ b/data/core.telegram.org/method/help.getPromoData @@ -0,0 +1,136 @@ + + + + + help.getPromoData + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getPromoData

+ +

Get MTProxy/Public Service Announcement information

+

+
help.promoDataEmpty#98f6ac75 expires:int = help.PromoData;
+help.promoData#8c39793f flags:# proxy:flags.0?true expires:int peer:Peer chats:Vector<Chat> users:Vector<User> psa_type:flags.1?string psa_message:flags.2?string = help.PromoData;
+---functions---
+help.getPromoData#c0977421 = help.PromoData;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

help.PromoData

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getProxyData b/data/core.telegram.org/method/help.getProxyData new file mode 100644 index 0000000000..c43da0ed70 --- /dev/null +++ b/data/core.telegram.org/method/help.getProxyData @@ -0,0 +1,132 @@ + + + + + help.getProxyData + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getProxyData

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getRecentMeUrls b/data/core.telegram.org/method/help.getRecentMeUrls new file mode 100644 index 0000000000..e5135d2fd4 --- /dev/null +++ b/data/core.telegram.org/method/help.getRecentMeUrls @@ -0,0 +1,149 @@ + + + + + help.getRecentMeUrls + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getRecentMeUrls

+ +

Get recently used t.me links

+

+
help.recentMeUrls#e0310d7 urls:Vector<RecentMeUrl> chats:Vector<Chat> users:Vector<User> = help.RecentMeUrls;
+---functions---
+help.getRecentMeUrls#3dc0f114 referer:string = help.RecentMeUrls;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
refererstringReferer
+

Result

+

help.RecentMeUrls

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getSupport b/data/core.telegram.org/method/help.getSupport new file mode 100644 index 0000000000..ce7d79ab2f --- /dev/null +++ b/data/core.telegram.org/method/help.getSupport @@ -0,0 +1,134 @@ + + + + + help.getSupport + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getSupport

+ +

Returns the support user for the 'ask a question' feature.

+

+
help.support#17c6b5f6 phone_number:string user:User = help.Support;
+---functions---
+help.getSupport#9cdf08cd = help.Support;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

help.Support

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getSupportName b/data/core.telegram.org/method/help.getSupportName new file mode 100644 index 0000000000..3985d01737 --- /dev/null +++ b/data/core.telegram.org/method/help.getSupportName @@ -0,0 +1,151 @@ + + + + + help.getSupportName + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getSupportName

+ +

Get localized name of the telegram support user

+

+
help.supportName#8c05f1c9 name:string = help.SupportName;
+---functions---
+help.getSupportName#d360e72c = help.SupportName;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

help.SupportName

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
403USER_INVALIDInvalid user provided
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getTermsOfServiceUpdate b/data/core.telegram.org/method/help.getTermsOfServiceUpdate new file mode 100644 index 0000000000..08b80f261a --- /dev/null +++ b/data/core.telegram.org/method/help.getTermsOfServiceUpdate @@ -0,0 +1,135 @@ + + + + + help.getTermsOfServiceUpdate + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getTermsOfServiceUpdate

+ +

Look for updates of telegram's terms of service

+

+
help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate;
+help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate;
+---functions---
+help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

help.TermsOfServiceUpdate

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.getUserInfo b/data/core.telegram.org/method/help.getUserInfo new file mode 100644 index 0000000000..678ae9195d --- /dev/null +++ b/data/core.telegram.org/method/help.getUserInfo @@ -0,0 +1,167 @@ + + + + + help.getUserInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

help.getUserInfo

+ +

Internal use

+

+
help.userInfoEmpty#f3ae2eed = help.UserInfo;
+help.userInfo#1eb3758 message:string entities:Vector<MessageEntity> author:string date:int = help.UserInfo;
+---functions---
+help.getUserInfo#38a08d3 user_id:InputUser = help.UserInfo;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
user_idInputUserUser ID
+

Result

+

help.UserInfo

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
403USER_INVALIDInvalid user provided
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.hidePromoData b/data/core.telegram.org/method/help.hidePromoData new file mode 100644 index 0000000000..d9f8b6f6f1 --- /dev/null +++ b/data/core.telegram.org/method/help.hidePromoData @@ -0,0 +1,151 @@ + + + + + help.hidePromoData + + + + + + + + + + + + + +
+ +
+
+
+ +

help.hidePromoData

+ +

Hide MTProxy/Public Service Announcement information

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+help.hidePromoData#1e251c95 peer:InputPeer = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer to hide
+

Result

+

Bool

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.saveAppLog b/data/core.telegram.org/method/help.saveAppLog new file mode 100644 index 0000000000..4535156502 --- /dev/null +++ b/data/core.telegram.org/method/help.saveAppLog @@ -0,0 +1,150 @@ + + + + + help.saveAppLog + + + + + + + + + + + + + +
+ +
+
+
+ +

help.saveAppLog

+ +

Saves logs of application on the server.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+help.saveAppLog#6f02f748 events:Vector<InputAppEvent> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
eventsVector<InputAppEvent>List of input events
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/help.setBotUpdatesStatus b/data/core.telegram.org/method/help.setBotUpdatesStatus new file mode 100644 index 0000000000..8d2322d29c --- /dev/null +++ b/data/core.telegram.org/method/help.setBotUpdatesStatus @@ -0,0 +1,156 @@ + + + + + help.setBotUpdatesStatus + + + + + + + + + + + + + +
+ +
+
+
+ +

help.setBotUpdatesStatus

+ +

Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
pending_updates_countintNumber of pending updates
messagestringError message, if present
+

Result

+

Bool

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/initConnection.html b/data/core.telegram.org/method/initConnection.html new file mode 100644 index 0000000000..2f41e4da5e --- /dev/null +++ b/data/core.telegram.org/method/initConnection.html @@ -0,0 +1,216 @@ + + + + + initConnection + + + + + + + + + + + + + +
+ +
+
+
+ +

initConnection

+ +

Initialize connection

+

+
---functions---
+initConnection#c1cd5ea9 {X:Type} flags:# api_id:int device_model:string system_version:string app_version:string system_lang_code:string lang_pack:string lang_code:string proxy:flags.0?InputClientProxy params:flags.1?JSONValue query:!X = X;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
api_idintApplication identifier (see. App configuration)
device_modelstringDevice model
system_versionstringOperation system version
app_versionstringApplication version
system_lang_codestringCode for the language used on the device's OS, ISO 639-1 standard
lang_packstringLanguage pack to use
lang_codestringCode for the language used on the client, ISO 639-1 standard
proxyflags.0?InputClientProxyInfo about an MTProto proxy
paramsflags.1?JSONValueAdditional initConnection parameters.
For now, only the tz_offset field is supported, for specifying timezone offset in seconds.
query!XThe query itself
+

Result

+

X

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400CONNECTION_LAYER_INVALIDLayer invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/invokeAfterMsg.html b/data/core.telegram.org/method/invokeAfterMsg.html new file mode 100644 index 0000000000..138bccbaec --- /dev/null +++ b/data/core.telegram.org/method/invokeAfterMsg.html @@ -0,0 +1,154 @@ + + + + + invokeAfterMsg + + + + + + + + + + + + + +
+ +
+
+
+ +

invokeAfterMsg

+ +

Invokes a query after successfull completion of one of the previous queries.

+

+
---functions---
+invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
msg_idlongMessage identifier on which a current query depends
query!XThe query itself
+

Result

+

X

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/invokeAfterMsgs.html b/data/core.telegram.org/method/invokeAfterMsgs.html new file mode 100644 index 0000000000..a3871dd82e --- /dev/null +++ b/data/core.telegram.org/method/invokeAfterMsgs.html @@ -0,0 +1,154 @@ + + + + + invokeAfterMsgs + + + + + + + + + + + + + +
+ +
+
+
+ +

invokeAfterMsgs

+ +

Invokes a query after a successfull completion of previous queries

+

+
---functions---
+invokeAfterMsgs#3dc4b4f0 {X:Type} msg_ids:Vector<long> query:!X = X;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
msg_idsVector<long>List of messages on which a current query depends
query!XThe query itself
+

Result

+

X

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/invokeWithLayer.html b/data/core.telegram.org/method/invokeWithLayer.html new file mode 100644 index 0000000000..ac7f260570 --- /dev/null +++ b/data/core.telegram.org/method/invokeWithLayer.html @@ -0,0 +1,219 @@ + + + + + invokeWithLayer + + + + + + + + + + + + + +
+ +
+
+
+ +

invokeWithLayer

+ +

Invoke the specified query using the specified API layer

+

+
---functions---
+invokeWithLayer#da9b0d0d {X:Type} layer:int query:!X = X;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
layerintThe layer to use
query!XThe query
+

Result

+

X

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400AUTH_BYTES_INVALIDThe provided authorization is invalid
400CDN_METHOD_INVALIDYou can't call this method in a CDN DC
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400CONNECTION_API_ID_INVALIDThe provided API id is invalid
400CONNECTION_DEVICE_MODEL_EMPTYDevice model empty
400CONNECTION_LANG_PACK_INVALIDLanguage pack invalid
400CONNECTION_NOT_INITEDConnection not initialized
400CONNECTION_SYSTEM_EMPTYConnection system empty
400INPUT_LAYER_INVALIDThe provided layer is invalid
400INVITE_HASH_EXPIREDThe invite link has expired
+

Bots can use this method

+

Related pages

+

Calling API Methods

+

Additional options for calling methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/invokeWithMessagesRange.html b/data/core.telegram.org/method/invokeWithMessagesRange.html new file mode 100644 index 0000000000..0309a4500d --- /dev/null +++ b/data/core.telegram.org/method/invokeWithMessagesRange.html @@ -0,0 +1,154 @@ + + + + + invokeWithMessagesRange + + + + + + + + + + + + + +
+ +
+
+
+ +

invokeWithMessagesRange

+ +

Invoke with the given message range

+

+
---functions---
+invokeWithMessagesRange#365275f2 {X:Type} range:MessageRange query:!X = X;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rangeMessageRangeMessage range
query!XQuery
+

Result

+

X

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/invokeWithTakeout.html b/data/core.telegram.org/method/invokeWithTakeout.html new file mode 100644 index 0000000000..56e1a3d632 --- /dev/null +++ b/data/core.telegram.org/method/invokeWithTakeout.html @@ -0,0 +1,171 @@ + + + + + invokeWithTakeout + + + + + + + + + + + + + +
+ +
+
+
+ +

invokeWithTakeout

+ +

Invoke a method within a takeout session

+

+
---functions---
+invokeWithTakeout#aca9fd2e {X:Type} takeout_id:long query:!X = X;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
takeout_idlongTakeout session ID
query!XQuery
+

Result

+

X

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400INPUT_METHOD_INVALID_1400137063_XInvalid method
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/invokeWithoutUpdates.html b/data/core.telegram.org/method/invokeWithoutUpdates.html new file mode 100644 index 0000000000..9c71093a33 --- /dev/null +++ b/data/core.telegram.org/method/invokeWithoutUpdates.html @@ -0,0 +1,154 @@ + + + + + invokeWithoutUpdates + + + + + + + + + + + + + +
+ +
+
+
+ +

invokeWithoutUpdates

+ +

Invoke a request without subscribing the used connection for updates (this is enabled by default for file queries).

+

+
---functions---
+invokeWithoutUpdates#bf9459b7 {X:Type} query:!X = X;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
query!XThe query
+

Result

+

X

+

Bots can use this method

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/langpack.getDifference b/data/core.telegram.org/method/langpack.getDifference new file mode 100644 index 0000000000..b0ba728836 --- /dev/null +++ b/data/core.telegram.org/method/langpack.getDifference @@ -0,0 +1,176 @@ + + + + + langpack.getDifference + + + + + + + + + + + + + +
+ +
+
+
+ +

langpack.getDifference

+ +

Get new strings in languagepack

+

+
langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector<LangPackString> = LangPackDifference;
+---functions---
+langpack.getDifference#cd984aa5 lang_pack:string lang_code:string from_version:int = LangPackDifference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lang_packstringLanguage pack
lang_codestringLanguage code
from_versionintPrevious localization pack version
+

Result

+

LangPackDifference

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400LANG_PACK_INVALIDThe provided language pack is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/langpack.getLangPack b/data/core.telegram.org/method/langpack.getLangPack new file mode 100644 index 0000000000..4111dcc688 --- /dev/null +++ b/data/core.telegram.org/method/langpack.getLangPack @@ -0,0 +1,171 @@ + + + + + langpack.getLangPack + + + + + + + + + + + + + +
+ +
+
+
+ +

langpack.getLangPack

+ +

Get localization pack strings

+

+
langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector<LangPackString> = LangPackDifference;
+---functions---
+langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lang_packstringLanguage pack name
lang_codestringLanguage code
+

Result

+

LangPackDifference

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400LANG_PACK_INVALIDThe provided language pack is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/langpack.getLanguage b/data/core.telegram.org/method/langpack.getLanguage new file mode 100644 index 0000000000..8956ca2072 --- /dev/null +++ b/data/core.telegram.org/method/langpack.getLanguage @@ -0,0 +1,154 @@ + + + + + langpack.getLanguage + + + + + + + + + + + + + +
+ +
+
+
+ +

langpack.getLanguage

+ +

Get information about a language in a localization pack

+

+
langPackLanguage#eeca5ce3 flags:# official:flags.0?true rtl:flags.2?true beta:flags.3?true name:string native_name:string lang_code:string base_lang_code:flags.1?string plural_code:string strings_count:int translated_count:int translations_url:string = LangPackLanguage;
+---functions---
+langpack.getLanguage#6a596502 lang_pack:string lang_code:string = LangPackLanguage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lang_packstringLanguage pack name
lang_codestringLanguage code
+

Result

+

LangPackLanguage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/langpack.getLanguages b/data/core.telegram.org/method/langpack.getLanguages new file mode 100644 index 0000000000..fc3b96f6dc --- /dev/null +++ b/data/core.telegram.org/method/langpack.getLanguages @@ -0,0 +1,165 @@ + + + + + langpack.getLanguages + + + + + + + + + + + + + +
+ +
+
+
+ +

langpack.getLanguages

+ +

Get information about all languages in a localization pack

+

+
---functions---
+langpack.getLanguages#42c6978f lang_pack:string = Vector<LangPackLanguage>;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
lang_packstringLanguage pack
+

Result

+

Vector<LangPackLanguage>

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400LANG_PACK_INVALIDThe provided language pack is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/langpack.getStrings b/data/core.telegram.org/method/langpack.getStrings new file mode 100644 index 0000000000..c7803c88dd --- /dev/null +++ b/data/core.telegram.org/method/langpack.getStrings @@ -0,0 +1,175 @@ + + + + + langpack.getStrings + + + + + + + + + + + + + +
+ +
+
+
+ +

langpack.getStrings

+ +

Get strings from a language pack

+

+
---functions---
+langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector<string> = Vector<LangPackString>;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lang_packstringLanguage pack name
lang_codestringLanguage code
keysVector<string>Strings to get
+

Result

+

Vector<LangPackString>

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400LANG_PACK_INVALIDThe provided language pack is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.acceptEncryption b/data/core.telegram.org/method/messages.acceptEncryption new file mode 100644 index 0000000000..b43780f2d0 --- /dev/null +++ b/data/core.telegram.org/method/messages.acceptEncryption @@ -0,0 +1,190 @@ + + + + + messages.acceptEncryption + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.acceptEncryption

+ +

Confirms creation of a secret chat

+

+
encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat;
+encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat;
+encryptedChatRequested#62718a82 flags:# folder_id:flags.0?int id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat;
+encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat;
+encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat;
+---functions---
+messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputEncryptedChatSecret chat ID
g_bbytesB = g ^ b mod p, see Wikipedia
key_fingerprintlong64-bit fingerprint of the received key
+

Result

+

EncryptedChat

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
400ENCRYPTION_ALREADY_ACCEPTEDSecret chat already accepted
400ENCRYPTION_ALREADY_DECLINEDThe secret chat was already declined
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.acceptUrlAuth b/data/core.telegram.org/method/messages.acceptUrlAuth new file mode 100644 index 0000000000..5d3261666c --- /dev/null +++ b/data/core.telegram.org/method/messages.acceptUrlAuth @@ -0,0 +1,174 @@ + + + + + messages.acceptUrlAuth + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.acceptUrlAuth

+ +

Use this to accept a Seamless Telegram Login authorization request, for more info click here »

+

+
urlAuthResultRequest#92d33a0e flags:# request_write_access:flags.0?true bot:User domain:string = UrlAuthResult;
+urlAuthResultAccepted#8f8c0e4e url:string = UrlAuthResult;
+urlAuthResultDefault#a9d6db1f = UrlAuthResult;
+---functions---
+messages.acceptUrlAuth#f729ea98 flags:# write_allowed:flags.0?true peer:InputPeer msg_id:int button_id:int = UrlAuthResult;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
write_allowedflags.0?trueSet this flag to allow the bot to send messages to you (if requested)
peerInputPeerThe location of the message
msg_idintMessage ID of the message with the login button
button_idintID of the login button
+

Result

+

UrlAuthResult

+

Related pages

+

Seamless Telegram Login

+

Handle Seamless Telegram Login URL authorization requests.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.addChatUser b/data/core.telegram.org/method/messages.addChatUser new file mode 100644 index 0000000000..54250f1f87 --- /dev/null +++ b/data/core.telegram.org/method/messages.addChatUser @@ -0,0 +1,227 @@ + + + + + messages.addChatUser + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.addChatUser

+ +

Adds a user to a chat and sends a service message on it.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.addChatUser#f9a0aa09 chat_id:int user_id:InputUser fwd_limit:int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintChat ID
user_idInputUserUser ID to be added
fwd_limitintNumber of last messages to be forwarded
+

Result

+

messages.StatedMessage

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_ID_INVALIDThe provided chat id is invalid
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400PEER_ID_INVALIDThe provided peer id is invalid
400USERS_TOO_MUCHThe maximum number of users has been exceeded (to create a chat, for example)
400USER_ALREADY_PARTICIPANTThe user is already in the group
400USER_ID_INVALIDThe provided user ID is invalid
403USER_NOT_MUTUAL_CONTACTThe provided user is not a mutual contact
403USER_PRIVACY_RESTRICTEDThe user's privacy settings do not allow you to do this
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.checkChatInvite b/data/core.telegram.org/method/messages.checkChatInvite new file mode 100644 index 0000000000..c07f48d5c2 --- /dev/null +++ b/data/core.telegram.org/method/messages.checkChatInvite @@ -0,0 +1,178 @@ + + + + + messages.checkChatInvite + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.checkChatInvite

+ +

Check the validity of a chat invite link and get basic info about it

+

+
chatInviteAlready#5a686d7c chat:Chat = ChatInvite;
+chatInvite#dfc2f58e flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:Photo participants_count:int participants:flags.4?Vector<User> = ChatInvite;
+chatInvitePeek#61695cb0 chat:Chat expires:int = ChatInvite;
+---functions---
+messages.checkChatInvite#3eadb1bb hash:string = ChatInvite;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashstringInvite hash in t.me/joinchat/hash
+

Result

+

ChatInvite

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400INVITE_HASH_EMPTYThe invite hash is empty
400INVITE_HASH_EXPIREDThe invite link has expired
400INVITE_HASH_INVALIDThe invite hash is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.clearAllDrafts b/data/core.telegram.org/method/messages.clearAllDrafts new file mode 100644 index 0000000000..7bc5bd5312 --- /dev/null +++ b/data/core.telegram.org/method/messages.clearAllDrafts @@ -0,0 +1,138 @@ + + + + + messages.clearAllDrafts + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.clearAllDrafts

+ +

Clear all drafts.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.clearAllDrafts#7e58ee9c = Bool;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Bool

+

Related pages

+

Message drafts

+

How to handle message drafts

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.clearRecentStickers b/data/core.telegram.org/method/messages.clearRecentStickers new file mode 100644 index 0000000000..92fc990f36 --- /dev/null +++ b/data/core.telegram.org/method/messages.clearRecentStickers @@ -0,0 +1,155 @@ + + + + + messages.clearRecentStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.clearRecentStickers

+ +

Clear recent stickers

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
attachedflags.0?trueSet this flag to clear the list of stickers recently attached to photo or video files
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.createChat b/data/core.telegram.org/method/messages.createChat new file mode 100644 index 0000000000..5fc07d5996 --- /dev/null +++ b/data/core.telegram.org/method/messages.createChat @@ -0,0 +1,197 @@ + + + + + messages.createChat + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.createChat

+ +

Creates a new chat.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.createChat#9cb126e users:Vector<InputUser> title:string = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
usersVector<InputUser>List of user IDs to be invited
titlestringChat name
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_INVALIDInvalid chat
400CHAT_TITLE_EMPTYNo chat title provided
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400USERS_TOO_FEWNot enough users (to create a chat, for example)
403USER_RESTRICTEDYou're spamreported, you can't create channels or chats.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.deleteChatUser b/data/core.telegram.org/method/messages.deleteChatUser new file mode 100644 index 0000000000..ebc3b45dd4 --- /dev/null +++ b/data/core.telegram.org/method/messages.deleteChatUser @@ -0,0 +1,198 @@ + + + + + messages.deleteChatUser + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.deleteChatUser

+ +

Deletes a user from a chat and sends a service message on it.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.deleteChatUser#e0611f16 chat_id:int user_id:InputUser = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintChat ID
user_idInputUserUser ID to be deleted
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_ID_INVALIDThe provided chat id is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
400USER_ID_INVALIDThe provided user ID is invalid
400USER_NOT_PARTICIPANTYou're not a member of this supergroup/channel
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.deleteHistory b/data/core.telegram.org/method/messages.deleteHistory new file mode 100644 index 0000000000..a58dc9709e --- /dev/null +++ b/data/core.telegram.org/method/messages.deleteHistory @@ -0,0 +1,201 @@ + + + + + messages.deleteHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.deleteHistory

+ +

Deletes communication history.

+

+
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
+---functions---
+messages.deleteHistory#1c015b09 flags:# just_clear:flags.0?true revoke:flags.1?true peer:InputPeer max_id:int = messages.AffectedHistory;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
just_clearflags.0?trueJust clear history for the current user, without actually removing messages for every chat user
revokeflags.1?trueWhether to delete the message history for all chat participants
peerInputPeerUser or chat, communication history of which will be deleted
max_idintMaximum ID of message to delete
+

Result

+

messages.AffectedHistory

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
400MESSAGE_ID_INVALIDThe provided message id is invalid
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.deleteMessages b/data/core.telegram.org/method/messages.deleteMessages new file mode 100644 index 0000000000..286795d67c --- /dev/null +++ b/data/core.telegram.org/method/messages.deleteMessages @@ -0,0 +1,177 @@ + + + + + messages.deleteMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.deleteMessages

+ +

Deletes messages by their identifiers.

+

+
messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages;
+---functions---
+messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector<int> = messages.AffectedMessages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
revokeflags.0?trueWhether to delete messages for all participants of the chat
idVector<int>Message ID list
+

Result

+

The method returns the list of successfully deleted messages in Vector<int>.

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
403MESSAGE_DELETE_FORBIDDENYou can't delete one of the messages you tried to delete, most likely because it is a service message.
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.deleteScheduledMessages b/data/core.telegram.org/method/messages.deleteScheduledMessages new file mode 100644 index 0000000000..3057850dda --- /dev/null +++ b/data/core.telegram.org/method/messages.deleteScheduledMessages @@ -0,0 +1,160 @@ + + + + + messages.deleteScheduledMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.deleteScheduledMessages

+ +

Delete scheduled messages

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.deleteScheduledMessages#59ae2b16 peer:InputPeer id:Vector<int> = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer
idVector<int>Scheduled message IDs
+

Result

+

Updates

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.discardEncryption b/data/core.telegram.org/method/messages.discardEncryption new file mode 100644 index 0000000000..006d1d0106 --- /dev/null +++ b/data/core.telegram.org/method/messages.discardEncryption @@ -0,0 +1,177 @@ + + + + + messages.discardEncryption + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.discardEncryption

+ +

Cancels a request for creation and/or delete info on secret chat.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.discardEncryption#edd923c5 chat_id:int = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintSecret chat ID
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_EMPTYThe provided chat ID is empty
400ENCRYPTION_ALREADY_DECLINEDThe secret chat was already declined
400ENCRYPTION_ID_INVALIDThe provided secret chat ID is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.editChatAbout b/data/core.telegram.org/method/messages.editChatAbout new file mode 100644 index 0000000000..98006aa7a5 --- /dev/null +++ b/data/core.telegram.org/method/messages.editChatAbout @@ -0,0 +1,211 @@ + + + + + messages.editChatAbout + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.editChatAbout

+ +

Edit the description of a group/supergroup/channel.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.editChatAbout#def60797 peer:InputPeer about:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe group/supergroup/channel.
aboutstringThe new description
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ABOUT_NOT_MODIFIEDAbout text has not changed
400CHAT_ABOUT_TOO_LONGChat about too long
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_NOT_MODIFIEDThe pinned message wasn't modified
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400PEER_ID_INVALIDThe provided peer id is invalid
+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.editChatAdmin b/data/core.telegram.org/method/messages.editChatAdmin new file mode 100644 index 0000000000..469412324d --- /dev/null +++ b/data/core.telegram.org/method/messages.editChatAdmin @@ -0,0 +1,195 @@ + + + + + messages.editChatAdmin + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.editChatAdmin

+ +

Make a user admin in a legacy group.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.editChatAdmin#a9e69f2e chat_id:int user_id:InputUser is_admin:Bool = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintThe ID of the group
user_idInputUserThe user to make admin
is_adminBoolWhether to make him admin
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
400USER_ID_INVALIDThe provided user ID is invalid
400USER_NOT_PARTICIPANTYou're not a member of this supergroup/channel
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.editChatDefaultBannedRights b/data/core.telegram.org/method/messages.editChatDefaultBannedRights new file mode 100644 index 0000000000..f4c8a1c646 --- /dev/null +++ b/data/core.telegram.org/method/messages.editChatDefaultBannedRights @@ -0,0 +1,201 @@ + + + + + messages.editChatDefaultBannedRights + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.editChatDefaultBannedRights

+ +

Edit the default banned rights of a channel/supergroup/group.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.editChatDefaultBannedRights#a5866b41 peer:InputPeer banned_rights:ChatBannedRights = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe peer
banned_rightsChatBannedRightsThe new global rights
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BANNED_RIGHTS_INVALIDYou provided some invalid flags in the banned rights
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_NOT_MODIFIEDThe pinned message wasn't modified
400PEER_ID_INVALIDThe provided peer id is invalid
400UNTIL_DATE_INVALIDInvalid until date provided
+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.editChatPhoto b/data/core.telegram.org/method/messages.editChatPhoto new file mode 100644 index 0000000000..c3a257e29f --- /dev/null +++ b/data/core.telegram.org/method/messages.editChatPhoto @@ -0,0 +1,208 @@ + + + + + messages.editChatPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.editChatPhoto

+ +

Changes chat photo and sends a service message on it

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.editChatPhoto#ca4c79d8 chat_id:int photo:InputChatPhoto = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintChat ID
photoInputChatPhotoPhoto to be set
+

Result

+

Returns a messages.StatedMessage object containing a service message sent during an action.

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
400CHAT_NOT_MODIFIEDThe pinned message wasn't modified
400INPUT_CONSTRUCTOR_INVALIDThe provided constructor is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
400PHOTO_CROP_SIZE_SMALLPhoto is too small
400PHOTO_EXT_INVALIDThe extension of the photo is invalid
400PHOTO_INVALIDPhoto invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.editChatTitle b/data/core.telegram.org/method/messages.editChatTitle new file mode 100644 index 0000000000..deb72daa7f --- /dev/null +++ b/data/core.telegram.org/method/messages.editChatTitle @@ -0,0 +1,193 @@ + + + + + messages.editChatTitle + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.editChatTitle

+ +

Chanages chat name and sends a service message on it.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.editChatTitle#dc452855 chat_id:int title:string = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintChat ID
titlestringNew chat name, different from the old one
+

Result

+

Returns a messages.StatedMessage object containing a service message sent during an action.

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
400CHAT_NOT_MODIFIEDThe pinned message wasn't modified
400CHAT_TITLE_EMPTYNo chat title provided
400PEER_ID_INVALIDThe provided peer id is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.editInlineBotMessage b/data/core.telegram.org/method/messages.editInlineBotMessage new file mode 100644 index 0000000000..2755b6cf13 --- /dev/null +++ b/data/core.telegram.org/method/messages.editInlineBotMessage @@ -0,0 +1,206 @@ + + + + + messages.editInlineBotMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.editInlineBotMessage

+ +

Edit an inline bot message

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.editInlineBotMessage#83557dba flags:# no_webpage:flags.1?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
no_webpageflags.1?trueDisable webpage preview
idInputBotInlineMessageIDSent inline message ID
messageflags.11?stringMessage
mediaflags.14?InputMediaMedia
reply_markupflags.2?ReplyMarkupReply markup for inline keyboards
entitiesflags.3?Vector<MessageEntity>Message entities for styled text
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
400MESSAGE_NOT_MODIFIEDThe message text has not changed
+

Bots can use this method

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.editMessage b/data/core.telegram.org/method/messages.editMessage new file mode 100644 index 0000000000..8449d15253 --- /dev/null +++ b/data/core.telegram.org/method/messages.editMessage @@ -0,0 +1,323 @@ + + + + + messages.editMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.editMessage

+ +

Edit message

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.editMessage#48f71778 flags:# no_webpage:flags.1?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.15?int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
no_webpageflags.1?trueDisable webpage preview
peerInputPeerWhere was the message sent
idintID of the message to edit
messageflags.11?stringNew message
mediaflags.14?InputMediaNew attached media
reply_markupflags.2?ReplyMarkupReply markup for inline keyboards
entitiesflags.3?Vector<MessageEntity>Message entities for styled text
schedule_dateflags.15?intScheduled message date for scheduled messages
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BUTTON_DATA_INVALIDThe data of one or more of the buttons you provided is invalid
400BUTTON_TYPE_INVALIDThe type of one or more of the buttons you provided is invalid
400BUTTON_URL_INVALIDButton URL invalid
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
403CHAT_WRITE_FORBIDDENYou can't write in this chat
403INLINE_BOT_REQUIREDOnly the inline bot can edit message
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MEDIA_CAPTION_TOO_LONGThe caption is too long
400MEDIA_PREV_INVALIDPrevious media invalid
403MESSAGE_AUTHOR_REQUIREDMessage author required
400MESSAGE_EDIT_TIME_EXPIREDYou can't edit this message anymore, too much time has passed since its creation.
400MESSAGE_EMPTYThe provided message is empty
400MESSAGE_ID_INVALIDThe provided message id is invalid
400MESSAGE_NOT_MODIFIEDThe message text has not changed
400MESSAGE_TOO_LONGThe provided message is too long
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
400REPLY_MARKUP_INVALIDThe provided reply markup is invalid
400SCHEDULE_DATE_INVALIDInvalid schedule date provided
400USER_BANNED_IN_CHANNELYou're banned from sending messages in supergroups/channels
+

Bots can use this method

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+

Scheduled messages

+

Telegram allows scheduling messages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.exportChatInvite b/data/core.telegram.org/method/messages.exportChatInvite new file mode 100644 index 0000000000..3e7ae4d63c --- /dev/null +++ b/data/core.telegram.org/method/messages.exportChatInvite @@ -0,0 +1,188 @@ + + + + + messages.exportChatInvite + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.exportChatInvite

+ +

Export an invite link for a chat

+

+
chatInviteEmpty#69df3769 = ExportedChatInvite;
+chatInviteExported#fc2e05bc link:string = ExportedChatInvite;
+---functions---
+messages.exportChatInvite#df7534c peer:InputPeer = ExportedChatInvite;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerChat
+

Result

+

ExportedChatInvite

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_ID_INVALIDThe provided chat id is invalid
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400PEER_ID_INVALIDThe provided peer id is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.faveSticker b/data/core.telegram.org/method/messages.faveSticker new file mode 100644 index 0000000000..47a9ca0bab --- /dev/null +++ b/data/core.telegram.org/method/messages.faveSticker @@ -0,0 +1,172 @@ + + + + + messages.faveSticker + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.faveSticker

+ +

Mark a sticker as favorite

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idInputDocumentSticker to mark as favorite
unfaveBoolUnfavorite
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400STICKER_ID_INVALIDThe provided sticker ID is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.forwardMessage b/data/core.telegram.org/method/messages.forwardMessage new file mode 100644 index 0000000000..51c03bf885 --- /dev/null +++ b/data/core.telegram.org/method/messages.forwardMessage @@ -0,0 +1,177 @@ + + + + + messages.forwardMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.forwardMessage

+ +

Forwards single messages.

+

{scheme}

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerUser or chat where a message will be forwarded
idintForwarded message ID
random_idlongUnique client message ID required to prevent message resending
+

Result

+

messages.StatedMessage

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
400MESSAGE_ID_INVALIDThe provided message id is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
400YOU_BLOCKED_USERYou blocked this user
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.forwardMessages b/data/core.telegram.org/method/messages.forwardMessages new file mode 100644 index 0000000000..9adba81a2d --- /dev/null +++ b/data/core.telegram.org/method/messages.forwardMessages @@ -0,0 +1,343 @@ + + + + + messages.forwardMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.forwardMessages

+ +

Forwards messages by their IDs.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.forwardMessages#d9fee60e flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true from_peer:InputPeer id:Vector<int> random_id:Vector<long> to_peer:InputPeer schedule_date:flags.10?int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
silentflags.5?trueWhether to send messages silently (no notification will be triggered on the destination clients)
backgroundflags.6?trueWhether to send the message in background
with_my_scoreflags.8?trueWhen forwarding games, whether to include your score in the game
from_peerInputPeerSource of messages
idVector<int>IDs of messages
random_idVector<long>Random ID to prevent resending of messages
to_peerInputPeerDestination peer
schedule_dateflags.10?intScheduled message date for scheduled messages
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BROADCAST_PUBLIC_VOTERS_FORBIDDENYou can't forward polls with public voters
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_ID_INVALIDThe provided chat id is invalid
400CHAT_RESTRICTEDYou can't send messages in this chat, you were restricted
403CHAT_SEND_GIFS_FORBIDDENYou can't send gifs in this chat
403CHAT_SEND_MEDIA_FORBIDDENYou can't send media in this chat
403CHAT_SEND_POLL_FORBIDDENYou can't send polls in this chat
403CHAT_SEND_STICKERS_FORBIDDENYou can't send stickers in this chat.
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400GROUPED_MEDIA_INVALIDInvalid grouped media
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MEDIA_EMPTYThe provided media object is invalid
400MESSAGE_IDS_EMPTYNo message ids were provided
400MESSAGE_ID_INVALIDThe provided message id is invalid
400MSG_ID_INVALIDInvalid message ID provided
420P0NY_FLOODWAIT 
400PEER_ID_INVALIDThe provided peer id is invalid
400RANDOM_ID_INVALIDA provided random ID is invalid
400SCHEDULE_TOO_MUCHThere are too many scheduled messages
400SLOWMODE_MULTI_MSGS_DISABLEDSlowmode is enabled, you cannot forward multiple messages to this group.
420SLOWMODE_WAIT_XSlowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.
400USER_BANNED_IN_CHANNELYou're banned from sending messages in supergroups/channels
400USER_IS_BLOCKEDYou were blocked by this user
400USER_IS_BOTBots can't send messages to other bots
400YOU_BLOCKED_USERYou blocked this user
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getAllChats b/data/core.telegram.org/method/messages.getAllChats new file mode 100644 index 0000000000..078b90e20f --- /dev/null +++ b/data/core.telegram.org/method/messages.getAllChats @@ -0,0 +1,150 @@ + + + + + messages.getAllChats + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getAllChats

+ +

Get all chats, channels and supergroups

+

+
messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
+messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;
+---functions---
+messages.getAllChats#eba80ff0 except_ids:Vector<int> = messages.Chats;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
except_idsVector<int>Except these chats/channels/supergroups
+

Result

+

messages.Chats

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getAllDrafts b/data/core.telegram.org/method/messages.getAllDrafts new file mode 100644 index 0000000000..bf16d830f4 --- /dev/null +++ b/data/core.telegram.org/method/messages.getAllDrafts @@ -0,0 +1,143 @@ + + + + + messages.getAllDrafts + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getAllDrafts

+ +

Save get all message drafts.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.getAllDrafts#6a3f8d65 = Updates;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Updates, contains all the latest updateDraftMessage updates related to all chats with drafts.

+

Related pages

+

Message drafts

+

How to handle message drafts

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getAllStickers b/data/core.telegram.org/method/messages.getAllStickers new file mode 100644 index 0000000000..1562371662 --- /dev/null +++ b/data/core.telegram.org/method/messages.getAllStickers @@ -0,0 +1,153 @@ + + + + + messages.getAllStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getAllStickers

+ +

Get all installed stickers

+

+
messages.allStickersNotModified#e86602c3 = messages.AllStickers;
+messages.allStickers#edfd405f hash:int sets:Vector<StickerSet> = messages.AllStickers;
+---functions---
+messages.getAllStickers#1c9618b1 hash:int = messages.AllStickers;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
+

Result

+

messages.AllStickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getArchivedStickers b/data/core.telegram.org/method/messages.getArchivedStickers new file mode 100644 index 0000000000..60cb78b86b --- /dev/null +++ b/data/core.telegram.org/method/messages.getArchivedStickers @@ -0,0 +1,167 @@ + + + + + messages.getArchivedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getArchivedStickers

+ +

Get all archived stickers

+

+
messages.archivedStickers#4fcba9c8 count:int sets:Vector<StickerSetCovered> = messages.ArchivedStickers;
+---functions---
+messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true offset_id:long limit:int = messages.ArchivedStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
masksflags.0?trueGet mask stickers
offset_idlongOffsets for pagination, for more info click here
limitintMaximum number of results to return, see pagination
+

Result

+

messages.ArchivedStickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getAttachedStickers b/data/core.telegram.org/method/messages.getAttachedStickers new file mode 100644 index 0000000000..67094d0ad2 --- /dev/null +++ b/data/core.telegram.org/method/messages.getAttachedStickers @@ -0,0 +1,148 @@ + + + + + messages.getAttachedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getAttachedStickers

+ +

Get stickers attached to a photo or video

+

+
---functions---
+messages.getAttachedStickers#cc5b67cc media:InputStickeredMedia = Vector<StickerSetCovered>;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
mediaInputStickeredMediaStickered media
+

Result

+

Vector<StickerSetCovered>

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getBotCallbackAnswer b/data/core.telegram.org/method/messages.getBotCallbackAnswer new file mode 100644 index 0000000000..900451d613 --- /dev/null +++ b/data/core.telegram.org/method/messages.getBotCallbackAnswer @@ -0,0 +1,226 @@ + + + + + messages.getBotCallbackAnswer + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getBotCallbackAnswer

+ +

Press an inline callback button and get a callback answer from the bot

+

+
messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer;
+---functions---
+messages.getBotCallbackAnswer#9342ca07 flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes password:flags.2?InputCheckPasswordSRP = messages.BotCallbackAnswer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
gameflags.1?trueWhether this is a "play game" button
peerInputPeerWhere was the inline keyboard sent
msg_idintID of the Message with the inline keyboard
dataflags.0?bytesCallback data
passwordflags.2?InputCheckPasswordSRPFor buttons requiring you to verify your identity with your 2FA password, the SRP payload generated using SRP.
+

Result

+

messages.BotCallbackAnswer

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BOT_RESPONSE_TIMEOUTA timeout occurred while fetching data from the bot
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400DATA_INVALIDEncrypted data invalid
400MESSAGE_ID_INVALIDThe provided message id is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
-503TimeoutTimeout while fetching data
+

Related pages

+

keyboardButtonCallback

+

Callback button

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getChats b/data/core.telegram.org/method/messages.getChats new file mode 100644 index 0000000000..37918358bd --- /dev/null +++ b/data/core.telegram.org/method/messages.getChats @@ -0,0 +1,173 @@ + + + + + messages.getChats + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getChats

+ +

Returns chat basic info on their IDs.

+

+
messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
+messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;
+---functions---
+messages.getChats#3c6aa187 id:Vector<int> = messages.Chats;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idVector<int>List of chat IDs
+

Result

+

messages.Chats

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getCommonChats b/data/core.telegram.org/method/messages.getCommonChats new file mode 100644 index 0000000000..a2cb64c4b7 --- /dev/null +++ b/data/core.telegram.org/method/messages.getCommonChats @@ -0,0 +1,185 @@ + + + + + messages.getCommonChats + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getCommonChats

+ +

Get chats in common with a user

+

+
messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
+messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;
+---functions---
+messages.getCommonChats#d0a48c4 user_id:InputUser max_id:int limit:int = messages.Chats;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idInputUserUser ID
max_idintMaximum ID of chat to return (see pagination)
limitintMaximum number of results to return, see pagination
+

Result

+

messages.Chats

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400MSG_ID_INVALIDInvalid message ID provided
400USER_ID_INVALIDThe provided user ID is invalid
+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getDhConfig b/data/core.telegram.org/method/messages.getDhConfig new file mode 100644 index 0000000000..425c602097 --- /dev/null +++ b/data/core.telegram.org/method/messages.getDhConfig @@ -0,0 +1,175 @@ + + + + + messages.getDhConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getDhConfig

+ +

Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.

+

+
messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig;
+messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig;
+---functions---
+messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
versionintValue of the version parameter from messages.dhConfig, avialable at the client
random_lengthintLength of the required random sequence
+

Result

+

messages.DhConfig

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400RANDOM_LENGTH_INVALIDRandom length invalid
+

Related pages

+

messages.dhConfig

+

New set of configuring parameters.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getDialogFilters b/data/core.telegram.org/method/messages.getDialogFilters new file mode 100644 index 0000000000..ef2317603d --- /dev/null +++ b/data/core.telegram.org/method/messages.getDialogFilters @@ -0,0 +1,136 @@ + + + + + messages.getDialogFilters + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getDialogFilters

+ +

Get folders

+

+
---functions---
+messages.getDialogFilters#f19ed96d = Vector<DialogFilter>;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Vector<DialogFilter>

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getDialogUnreadMarks b/data/core.telegram.org/method/messages.getDialogUnreadMarks new file mode 100644 index 0000000000..0c2cef4602 --- /dev/null +++ b/data/core.telegram.org/method/messages.getDialogUnreadMarks @@ -0,0 +1,133 @@ + + + + + messages.getDialogUnreadMarks + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getDialogUnreadMarks

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getDialogs b/data/core.telegram.org/method/messages.getDialogs new file mode 100644 index 0000000000..2916208d6e --- /dev/null +++ b/data/core.telegram.org/method/messages.getDialogs @@ -0,0 +1,218 @@ + + + + + messages.getDialogs + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getDialogs

+ +

Returns the current user dialog list.

+

+
messages.dialogs#15ba6c40 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Dialogs;
+messages.dialogsSlice#71e094f3 count:int dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Dialogs;
+messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs;
+---functions---
+messages.getDialogs#a0ee3b73 flags:# exclude_pinned:flags.0?true folder_id:flags.1?int offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:int = messages.Dialogs;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
exclude_pinnedflags.0?trueExclude pinned dialogs
folder_idflags.1?intPeer folder ID, for more info click here
offset_dateintOffsets for pagination, for more info click here
offset_idintOffsets for pagination, for more info click here
offset_peerInputPeerOffset peer for pagination
limitintNumber of list elements to be returned
hashintHash for pagination, for more info click here
+

Result

+

messages.Dialogs

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400FOLDER_ID_INVALIDInvalid folder ID
400INPUT_CONSTRUCTOR_INVALIDThe provided constructor is invalid
400OFFSET_PEER_ID_INVALIDThe provided offset peer is invalid
+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getDiscussionMessage b/data/core.telegram.org/method/messages.getDiscussionMessage new file mode 100644 index 0000000000..d1c3753c14 --- /dev/null +++ b/data/core.telegram.org/method/messages.getDiscussionMessage @@ -0,0 +1,162 @@ + + + + + messages.getDiscussionMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getDiscussionMessage

+ +

Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group

+

+
messages.discussionMessage#f5dd8f9d flags:# messages:Vector<Message> max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int chats:Vector<Chat> users:Vector<User> = messages.DiscussionMessage;
+---functions---
+messages.getDiscussionMessage#446972fd peer:InputPeer msg_id:int = messages.DiscussionMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerChannel ID
msg_idintMessage ID
+

Result

+

messages.DiscussionMessage

+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+

Discussion groups

+

Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getDocumentByHash b/data/core.telegram.org/method/messages.getDocumentByHash new file mode 100644 index 0000000000..4deba5fead --- /dev/null +++ b/data/core.telegram.org/method/messages.getDocumentByHash @@ -0,0 +1,178 @@ + + + + + messages.getDocumentByHash + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getDocumentByHash

+ +

Get a document by its SHA256 hash, mainly used for gifs

+

+
documentEmpty#36f8c871 id:long = Document;
+document#1e87342b flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumbs:flags.0?Vector<PhotoSize> video_thumbs:flags.1?Vector<VideoSize> dc_id:int attributes:Vector<DocumentAttribute> = Document;
+---functions---
+messages.getDocumentByHash#338e2464 sha256:bytes size:int mime_type:string = Document;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
sha256bytesSHA256 of file
sizeintSize of the file in bytes
mime_typestringMime type
+

Result

+

Document

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400SHA256_HASH_INVALIDThe provided SHA256 hash is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getEmojiKeywords b/data/core.telegram.org/method/messages.getEmojiKeywords new file mode 100644 index 0000000000..b8fd1cb004 --- /dev/null +++ b/data/core.telegram.org/method/messages.getEmojiKeywords @@ -0,0 +1,149 @@ + + + + + messages.getEmojiKeywords + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getEmojiKeywords

+ +

Get localized emoji keywords

+

+
emojiKeywordsDifference#5cc761bd lang_code:string from_version:int version:int keywords:Vector<EmojiKeyword> = EmojiKeywordsDifference;
+---functions---
+messages.getEmojiKeywords#35a0e062 lang_code:string = EmojiKeywordsDifference;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
lang_codestringLanguage code
+

Result

+

EmojiKeywordsDifference

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getEmojiKeywordsDifference b/data/core.telegram.org/method/messages.getEmojiKeywordsDifference new file mode 100644 index 0000000000..0315ae38bd --- /dev/null +++ b/data/core.telegram.org/method/messages.getEmojiKeywordsDifference @@ -0,0 +1,154 @@ + + + + + messages.getEmojiKeywordsDifference + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getEmojiKeywordsDifference

+ +

Get changed emoji keywords

+

+
emojiKeywordsDifference#5cc761bd lang_code:string from_version:int version:int keywords:Vector<EmojiKeyword> = EmojiKeywordsDifference;
+---functions---
+messages.getEmojiKeywordsDifference#1508b6af lang_code:string from_version:int = EmojiKeywordsDifference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
lang_codestringLanguage code
from_versionintPrevious emoji keyword localization version
+

Result

+

EmojiKeywordsDifference

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getEmojiKeywordsLanguages b/data/core.telegram.org/method/messages.getEmojiKeywordsLanguages new file mode 100644 index 0000000000..53446e49f5 --- /dev/null +++ b/data/core.telegram.org/method/messages.getEmojiKeywordsLanguages @@ -0,0 +1,148 @@ + + + + + messages.getEmojiKeywordsLanguages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getEmojiKeywordsLanguages

+ +

Get info about an emoji keyword localization

+

+
---functions---
+messages.getEmojiKeywordsLanguages#4e9963b2 lang_codes:Vector<string> = Vector<EmojiLanguage>;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
lang_codesVector<string>Language codes
+

Result

+

Vector<EmojiLanguage>

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getEmojiURL b/data/core.telegram.org/method/messages.getEmojiURL new file mode 100644 index 0000000000..59cdc579c6 --- /dev/null +++ b/data/core.telegram.org/method/messages.getEmojiURL @@ -0,0 +1,149 @@ + + + + + messages.getEmojiURL + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getEmojiURL

+ +

Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation

+

+
emojiURL#a575739d url:string = EmojiURL;
+---functions---
+messages.getEmojiURL#d5b10c26 lang_code:string = EmojiURL;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
lang_codestringLanguage code for which the emoji replacements will be suggested
+

Result

+

EmojiURL

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getFavedStickers b/data/core.telegram.org/method/messages.getFavedStickers new file mode 100644 index 0000000000..16c7e16378 --- /dev/null +++ b/data/core.telegram.org/method/messages.getFavedStickers @@ -0,0 +1,153 @@ + + + + + messages.getFavedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getFavedStickers

+ +

Get faved stickers

+

+
messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers;
+messages.favedStickers#f37f2f16 hash:int packs:Vector<StickerPack> stickers:Vector<Document> = messages.FavedStickers;
+---functions---
+messages.getFavedStickers#21ce0b0e hash:int = messages.FavedStickers;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
+

Result

+

messages.FavedStickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getFeaturedStickers b/data/core.telegram.org/method/messages.getFeaturedStickers new file mode 100644 index 0000000000..1970861cb0 --- /dev/null +++ b/data/core.telegram.org/method/messages.getFeaturedStickers @@ -0,0 +1,153 @@ + + + + + messages.getFeaturedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getFeaturedStickers

+ +

Get featured stickers

+

+
messages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers;
+messages.featuredStickers#b6abc341 hash:int count:int sets:Vector<StickerSetCovered> unread:Vector<long> = messages.FeaturedStickers;
+---functions---
+messages.getFeaturedStickers#2dacca4f hash:int = messages.FeaturedStickers;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
+

Result

+

messages.FeaturedStickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getFullChat b/data/core.telegram.org/method/messages.getFullChat new file mode 100644 index 0000000000..03fbb3866f --- /dev/null +++ b/data/core.telegram.org/method/messages.getFullChat @@ -0,0 +1,172 @@ + + + + + messages.getFullChat + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getFullChat

+ +

Returns full chat info according to its ID.

+

+
messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;
+---functions---
+messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintChat ID
+

Result

+

messages.ChatFull

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getGameHighScores b/data/core.telegram.org/method/messages.getGameHighScores new file mode 100644 index 0000000000..1a1f257dae --- /dev/null +++ b/data/core.telegram.org/method/messages.getGameHighScores @@ -0,0 +1,187 @@ + + + + + messages.getGameHighScores + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getGameHighScores

+ +

Get highscores of a game

+

+
messages.highScores#9a3bfd99 scores:Vector<HighScore> users:Vector<User> = messages.HighScores;
+---functions---
+messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerWhere was the game sent
idintID of message with game media attachment
user_idInputUserGet high scores made by a certain user
+

Result

+

messages.HighScores

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
400USER_BOT_REQUIREDThis method can only be called by a bot
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getHistory b/data/core.telegram.org/method/messages.getHistory new file mode 100644 index 0000000000..dfc0eac823 --- /dev/null +++ b/data/core.telegram.org/method/messages.getHistory @@ -0,0 +1,237 @@ + + + + + messages.getHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getHistory

+ +

Gets back the conversation history with one interlocutor / within a chat

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+messages.getHistory#dcbb8260 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerTarget peer
offset_idintOnly return messages starting from the specified message ID
offset_dateintOnly return messages sent before the specified date
add_offsetintNumber of list elements to be skipped, negative values are also accepted.
limitintNumber of results to return
max_idintIf a positive value was transferred, the method will return only messages with IDs less than max_id
min_idintIf a positive value was transferred, the method will return only messages with IDs more than min_id
hashintResult hash
+

Result

+

messages.Messages

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
401AUTH_KEY_PERM_EMPTYThe temporary auth key must be binded to the permanent auth key to use these methods.
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ID_INVALIDThe provided chat id is invalid
400CONNECTION_DEVICE_MODEL_EMPTYDevice model empty
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getInlineBotResults b/data/core.telegram.org/method/messages.getInlineBotResults new file mode 100644 index 0000000000..b601ee30a8 --- /dev/null +++ b/data/core.telegram.org/method/messages.getInlineBotResults @@ -0,0 +1,221 @@ + + + + + messages.getInlineBotResults + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getInlineBotResults

+ +

Query an inline bot

+

+
messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector<BotInlineResult> cache_time:int users:Vector<User> = messages.BotResults;
+---functions---
+messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
botInputUserThe bot to query
peerInputPeerThe currently opened chat
geo_pointflags.0?InputGeoPointThe geolocation, if requested
querystringThe query
offsetstringThe offset within the results, will be passed directly as-is to the bot.
+

Result

+

messages.BotResults

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BOT_INLINE_DISABLEDThis bot can't be used in inline mode
400BOT_INVALIDThis is not a valid bot
400BOT_RESPONSE_TIMEOUTA timeout occurred while fetching data from the bot
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MSG_ID_INVALIDInvalid message ID provided
-503TimeoutTimeout while fetching data
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getInlineGameHighScores b/data/core.telegram.org/method/messages.getInlineGameHighScores new file mode 100644 index 0000000000..4a25939a9d --- /dev/null +++ b/data/core.telegram.org/method/messages.getInlineGameHighScores @@ -0,0 +1,177 @@ + + + + + messages.getInlineGameHighScores + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getInlineGameHighScores

+ +

Get highscores of a game sent using an inline bot

+

+
messages.highScores#9a3bfd99 scores:Vector<HighScore> users:Vector<User> = messages.HighScores;
+---functions---
+messages.getInlineGameHighScores#f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idInputBotInlineMessageIDID of inline message
user_idInputUserGet high scores of a certain user
+

Result

+

messages.HighScores

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
400USER_BOT_REQUIREDThis method can only be called by a bot
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getMaskStickers b/data/core.telegram.org/method/messages.getMaskStickers new file mode 100644 index 0000000000..d824984c90 --- /dev/null +++ b/data/core.telegram.org/method/messages.getMaskStickers @@ -0,0 +1,153 @@ + + + + + messages.getMaskStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getMaskStickers

+ +

Get installed mask stickers

+

+
messages.allStickersNotModified#e86602c3 = messages.AllStickers;
+messages.allStickers#edfd405f hash:int sets:Vector<StickerSet> = messages.AllStickers;
+---functions---
+messages.getMaskStickers#65b8c79f hash:int = messages.AllStickers;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
+

Result

+

messages.AllStickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getMessageEditData b/data/core.telegram.org/method/messages.getMessageEditData new file mode 100644 index 0000000000..0f2723a355 --- /dev/null +++ b/data/core.telegram.org/method/messages.getMessageEditData @@ -0,0 +1,186 @@ + + + + + messages.getMessageEditData + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getMessageEditData

+ +

Find out if a media message's caption can be edited

+

+
messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData;
+---functions---
+messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer where the media was sent
idintID of message
+

Result

+

messages.MessageEditData

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
403MESSAGE_AUTHOR_REQUIREDMessage author required
400MESSAGE_ID_INVALIDThe provided message id is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getMessageReactionsList b/data/core.telegram.org/method/messages.getMessageReactionsList new file mode 100644 index 0000000000..a7cd0225a1 --- /dev/null +++ b/data/core.telegram.org/method/messages.getMessageReactionsList @@ -0,0 +1,178 @@ + + + + + messages.getMessageReactionsList + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getMessageReactionsList

+ +

Get full message reaction list

+

+
 Method schema is available as of layer 135. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
peerInputPeerPeer
idintMessage ID
reactionflags.0?stringGet only reactions of this type (UTF8 emoji)
offsetflags.1?stringOffset (typically taken from the next_offset field of the returned MessageReactionsList)
limitintMaximum number of results to return, see pagination
+

Result

+

MessageReactionsList

+

Bots can use this method

+

Related pages

+

MessageReactionsList

+

List of message reactions

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getMessages b/data/core.telegram.org/method/messages.getMessages new file mode 100644 index 0000000000..eea1240523 --- /dev/null +++ b/data/core.telegram.org/method/messages.getMessages @@ -0,0 +1,153 @@ + + + + + messages.getMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getMessages

+ +

Returns the list of messages by their IDs.

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+messages.getMessages#63c66506 id:Vector<InputMessage> = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idVector<InputMessage>Message ID list
+

Result

+

messages.Messages

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getMessagesReactions b/data/core.telegram.org/method/messages.getMessagesReactions new file mode 100644 index 0000000000..58119d44fd --- /dev/null +++ b/data/core.telegram.org/method/messages.getMessagesReactions @@ -0,0 +1,153 @@ + + + + + messages.getMessagesReactions + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getMessagesReactions

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getMessagesViews b/data/core.telegram.org/method/messages.getMessagesViews new file mode 100644 index 0000000000..9fcc318691 --- /dev/null +++ b/data/core.telegram.org/method/messages.getMessagesViews @@ -0,0 +1,199 @@ + + + + + messages.getMessagesViews + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getMessagesViews

+ +

Get and increase the view counter of a message sent or forwarded from a channel

+

+
messages.messageViews#b6c4f543 views:Vector<MessageViews> chats:Vector<Chat> users:Vector<User> = messages.MessageViews;
+---functions---
+messages.getMessagesViews#5784d3e1 peer:InputPeer id:Vector<int> increment:Bool = messages.MessageViews;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer where the message was found
idVector<int>ID of message
incrementBoolWhether to mark the message as viewed and increment the view counter
+

Result

+

Vector<int>

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ID_INVALIDThe provided chat id is invalid
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getOldFeaturedStickers b/data/core.telegram.org/method/messages.getOldFeaturedStickers new file mode 100644 index 0000000000..6e02c2408e --- /dev/null +++ b/data/core.telegram.org/method/messages.getOldFeaturedStickers @@ -0,0 +1,163 @@ + + + + + messages.getOldFeaturedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getOldFeaturedStickers

+ +

Method for fetching previously featured stickers

+

+
messages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers;
+messages.featuredStickers#b6abc341 hash:int count:int sets:Vector<StickerSetCovered> unread:Vector<long> = messages.FeaturedStickers;
+---functions---
+messages.getOldFeaturedStickers#5fe7025b offset:int limit:int hash:int = messages.FeaturedStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset
limitintMaximum number of results to return, see pagination
hashintHash for pagination, for more info click here
+

Result

+

messages.FeaturedStickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getOnlines b/data/core.telegram.org/method/messages.getOnlines new file mode 100644 index 0000000000..d34de6dd0d --- /dev/null +++ b/data/core.telegram.org/method/messages.getOnlines @@ -0,0 +1,171 @@ + + + + + messages.getOnlines + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getOnlines

+ +

Get count of online users in a chat

+

+
chatOnlines#f041e250 onlines:int = ChatOnlines;
+---functions---
+messages.getOnlines#6e2be050 peer:InputPeer = ChatOnlines;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat
+

Result

+

ChatOnlines

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getPeerDialogs b/data/core.telegram.org/method/messages.getPeerDialogs new file mode 100644 index 0000000000..f9d6c7b96b --- /dev/null +++ b/data/core.telegram.org/method/messages.getPeerDialogs @@ -0,0 +1,186 @@ + + + + + messages.getPeerDialogs + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getPeerDialogs

+ +

Get dialog info of specified peers

+

+
messages.peerDialogs#3371c354 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> state:updates.State = messages.PeerDialogs;
+---functions---
+messages.getPeerDialogs#e470bcfd peers:Vector<InputDialogPeer> = messages.PeerDialogs;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peersVector<InputDialogPeer>Peers
+

Result

+

messages.PeerDialogs

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CONNECTION_DEVICE_MODEL_EMPTYDevice model empty
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getPeerSettings b/data/core.telegram.org/method/messages.getPeerSettings new file mode 100644 index 0000000000..387c9b118b --- /dev/null +++ b/data/core.telegram.org/method/messages.getPeerSettings @@ -0,0 +1,171 @@ + + + + + messages.getPeerSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getPeerSettings

+ +

Get peer settings

+

+
peerSettings#733f2961 flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true geo_distance:flags.6?int = PeerSettings;
+---functions---
+messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe peer
+

Result

+

PeerSettings

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getPinnedDialogs b/data/core.telegram.org/method/messages.getPinnedDialogs new file mode 100644 index 0000000000..cb95c00880 --- /dev/null +++ b/data/core.telegram.org/method/messages.getPinnedDialogs @@ -0,0 +1,169 @@ + + + + + messages.getPinnedDialogs + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getPinnedDialogs

+ +

Get pinned dialogs

+

+
messages.peerDialogs#3371c354 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> state:updates.State = messages.PeerDialogs;
+---functions---
+messages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
folder_idintPeer folder ID, for more info click here
+

Result

+

messages.PeerDialogs

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400FOLDER_ID_INVALIDInvalid folder ID
+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getPollResults b/data/core.telegram.org/method/messages.getPollResults new file mode 100644 index 0000000000..988572cfac --- /dev/null +++ b/data/core.telegram.org/method/messages.getPollResults @@ -0,0 +1,177 @@ + + + + + messages.getPollResults + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getPollResults

+ +

Get poll results

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.getPollResults#73bb643b peer:InputPeer msg_id:int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer where the poll was found
msg_idintMessage ID of poll message
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getPollVotes b/data/core.telegram.org/method/messages.getPollVotes new file mode 100644 index 0000000000..481418461b --- /dev/null +++ b/data/core.telegram.org/method/messages.getPollVotes @@ -0,0 +1,204 @@ + + + + + messages.getPollVotes + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getPollVotes

+ +

Get poll results for non-anonymous polls

+

+
messages.votesList#823f649 flags:# count:int votes:Vector<MessageUserVote> users:Vector<User> next_offset:flags.0?string = messages.VotesList;
+---functions---
+messages.getPollVotes#b86e380e flags:# peer:InputPeer id:int option:flags.0?bytes offset:flags.1?string limit:int = messages.VotesList;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
peerInputPeerChat where the poll was sent
idintMessage ID
optionflags.0?bytesGet only results for the specified poll option
offsetflags.1?stringOffset for results, taken from the next_offset field of messages.votesList, initially an empty string.
Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in messages.votesList if it is empty, to avoid an infinite loop.
limitintNumber of results to return
+

Result

+

messages.VotesList

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
403BROADCAST_FORBIDDEN 
400MSG_ID_INVALIDInvalid message ID provided
403POLL_VOTE_REQUIREDCast a vote in the poll before calling this method
+

Related pages

+

messages.votesList

+

How users voted in a poll

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getRecentLocations b/data/core.telegram.org/method/messages.getRecentLocations new file mode 100644 index 0000000000..b4ebe3f0f8 --- /dev/null +++ b/data/core.telegram.org/method/messages.getRecentLocations @@ -0,0 +1,165 @@ + + + + + messages.getRecentLocations + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getRecentLocations

+ +

Get live location history of a certain user

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+messages.getRecentLocations#bbc45b09 peer:InputPeer limit:int hash:int = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerUser
limitintMaximum number of results to return, see pagination
hashintHash for pagination, for more info click here
+

Result

+

messages.Messages

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getRecentStickers b/data/core.telegram.org/method/messages.getRecentStickers new file mode 100644 index 0000000000..42702556d6 --- /dev/null +++ b/data/core.telegram.org/method/messages.getRecentStickers @@ -0,0 +1,163 @@ + + + + + messages.getRecentStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getRecentStickers

+ +

Get recent stickers

+

+
messages.recentStickersNotModified#b17f890 = messages.RecentStickers;
+messages.recentStickers#22f3afb3 hash:int packs:Vector<StickerPack> stickers:Vector<Document> dates:Vector<int> = messages.RecentStickers;
+---functions---
+messages.getRecentStickers#5ea192c9 flags:# attached:flags.0?true hash:int = messages.RecentStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
attachedflags.0?trueGet stickers recently attached to photo or video files
hashintHash for pagination, for more info click here
+

Result

+

messages.RecentStickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getReplies b/data/core.telegram.org/method/messages.getReplies new file mode 100644 index 0000000000..d306338ee7 --- /dev/null +++ b/data/core.telegram.org/method/messages.getReplies @@ -0,0 +1,196 @@ + + + + + messages.getReplies + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getReplies

+ +

Get messages in a reply thread

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+messages.getReplies#24b581ba peer:InputPeer msg_id:int offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer
msg_idintMessage ID
offset_idintOffsets for pagination, for more info click here
offset_dateintOffsets for pagination, for more info click here
add_offsetintOffsets for pagination, for more info click here
limitintMaximum number of results to return, see pagination
max_idintIf a positive value was transferred, the method will return only messages with ID smaller than max_id
min_idintIf a positive value was transferred, the method will return only messages with ID bigger than min_id
hashintHash for pagination, for more info click here
+

Result

+

messages.Messages

+

Bots can use this method

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getSavedGifs b/data/core.telegram.org/method/messages.getSavedGifs new file mode 100644 index 0000000000..825958f930 --- /dev/null +++ b/data/core.telegram.org/method/messages.getSavedGifs @@ -0,0 +1,153 @@ + + + + + messages.getSavedGifs + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getSavedGifs

+ +

Get saved GIFs

+

+
messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs;
+messages.savedGifs#2e0709a5 hash:int gifs:Vector<Document> = messages.SavedGifs;
+---functions---
+messages.getSavedGifs#83bf3d52 hash:int = messages.SavedGifs;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
+

Result

+

messages.SavedGifs

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getScheduledHistory b/data/core.telegram.org/method/messages.getScheduledHistory new file mode 100644 index 0000000000..c22b120f46 --- /dev/null +++ b/data/core.telegram.org/method/messages.getScheduledHistory @@ -0,0 +1,182 @@ + + + + + messages.getScheduledHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getScheduledHistory

+ +

Get scheduled messages

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+messages.getScheduledHistory#e2c2685b peer:InputPeer hash:int = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer
hashintHash for pagination, for more info click here
+

Result

+

messages.Messages

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400PEER_ID_INVALIDThe provided peer id is invalid
+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getScheduledMessages b/data/core.telegram.org/method/messages.getScheduledMessages new file mode 100644 index 0000000000..d58b36a977 --- /dev/null +++ b/data/core.telegram.org/method/messages.getScheduledMessages @@ -0,0 +1,179 @@ + + + + + messages.getScheduledMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getScheduledMessages

+ +

Get scheduled messages

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+messages.getScheduledMessages#bdbb0464 peer:InputPeer id:Vector<int> = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer
idVector<int>IDs of scheduled messages
+

Result

+

messages.Messages

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getSearchCounters b/data/core.telegram.org/method/messages.getSearchCounters new file mode 100644 index 0000000000..5f317bdac4 --- /dev/null +++ b/data/core.telegram.org/method/messages.getSearchCounters @@ -0,0 +1,156 @@ + + + + + messages.getSearchCounters + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getSearchCounters

+ +

Get the number of results that would be found by a messages.search call with the same parameters

+

+
---functions---
+messages.getSearchCounters#732eef00 peer:InputPeer filters:Vector<MessagesFilter> = Vector<messages.SearchCounter>;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer where to search
filtersVector<MessagesFilter>Search filters
+

Result

+

Vector<messages.SearchCounter>

+

Related pages

+

messages.search

+

Gets back found messages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getSplitRanges b/data/core.telegram.org/method/messages.getSplitRanges new file mode 100644 index 0000000000..3daa4e41a3 --- /dev/null +++ b/data/core.telegram.org/method/messages.getSplitRanges @@ -0,0 +1,133 @@ + + + + + messages.getSplitRanges + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getSplitRanges

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getStatsURL b/data/core.telegram.org/method/messages.getStatsURL new file mode 100644 index 0000000000..1d4ac97d0f --- /dev/null +++ b/data/core.telegram.org/method/messages.getStatsURL @@ -0,0 +1,181 @@ + + + + + messages.getStatsURL + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getStatsURL

+ +

Returns URL with the chat statistics. Currently this method can be used only for channels

+

+
statsURL#47a971e0 url:string = StatsURL;
+---functions---
+messages.getStatsURL#812c2ae6 flags:# dark:flags.0?true peer:InputPeer params:string = StatsURL;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
darkflags.0?truePass true if a URL with the dark theme must be returned
peerInputPeerChat identifier
paramsstringParameters from tg://statsrefresh?params=****** link
+

Result

+

StatsURL

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getStickerSet b/data/core.telegram.org/method/messages.getStickerSet new file mode 100644 index 0000000000..51473bd8fb --- /dev/null +++ b/data/core.telegram.org/method/messages.getStickerSet @@ -0,0 +1,167 @@ + + + + + messages.getStickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getStickerSet

+ +

Get info about a stickerset

+

+
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
+---functions---
+messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
stickersetInputStickerSetStickerset
+

Result

+

messages.StickerSet

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400STICKERSET_INVALIDThe provided sticker set is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getStickers b/data/core.telegram.org/method/messages.getStickers new file mode 100644 index 0000000000..e44f447f8a --- /dev/null +++ b/data/core.telegram.org/method/messages.getStickers @@ -0,0 +1,158 @@ + + + + + messages.getStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getStickers

+ +

Get stickers by emoji

+

+
messages.stickersNotModified#f1749a22 = messages.Stickers;
+messages.stickers#e4599bbd hash:int stickers:Vector<Document> = messages.Stickers;
+---functions---
+messages.getStickers#43d4f2c emoticon:string hash:int = messages.Stickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
emoticonstringThe emoji
hashintHash for pagination, for more info click here
+

Result

+

messages.Stickers

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getSuggestedDialogFilters b/data/core.telegram.org/method/messages.getSuggestedDialogFilters new file mode 100644 index 0000000000..fe87ff2901 --- /dev/null +++ b/data/core.telegram.org/method/messages.getSuggestedDialogFilters @@ -0,0 +1,136 @@ + + + + + messages.getSuggestedDialogFilters + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getSuggestedDialogFilters

+ +

Get suggested folders

+

+
---functions---
+messages.getSuggestedDialogFilters#a29cd42c = Vector<DialogFilterSuggested>;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Vector<DialogFilterSuggested>

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getUnreadMentions b/data/core.telegram.org/method/messages.getUnreadMentions new file mode 100644 index 0000000000..544c71d431 --- /dev/null +++ b/data/core.telegram.org/method/messages.getUnreadMentions @@ -0,0 +1,207 @@ + + + + + messages.getUnreadMentions + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getUnreadMentions

+ +

Get unread messages where we were mentioned

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+messages.getUnreadMentions#46578472 peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer where to look for mentions
offset_idintOffsets for pagination, for more info click here
add_offsetintOffsets for pagination, for more info click here
limitintMaximum number of results to return, see pagination
max_idintMaximum message ID to return, see pagination
min_idintMinimum message ID to return, see pagination
+

Result

+

messages.Messages

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400PEER_ID_INVALIDThe provided peer id is invalid
+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getWebPage b/data/core.telegram.org/method/messages.getWebPage new file mode 100644 index 0000000000..cab03eb39e --- /dev/null +++ b/data/core.telegram.org/method/messages.getWebPage @@ -0,0 +1,177 @@ + + + + + messages.getWebPage + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getWebPage

+ +

Get instant view page

+

+
webPageEmpty#eb1477e8 id:long = WebPage;
+webPagePending#c586da1c id:long date:int = WebPage;
+webPage#e89c45b2 flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page attributes:flags.12?Vector<WebPageAttribute> = WebPage;
+webPageNotModified#7311ca11 flags:# cached_page_views:flags.0?int = WebPage;
+---functions---
+messages.getWebPage#32ca8f91 url:string hash:int = WebPage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringURL of IV page to fetch
hashintHash for pagination, for more info click here
+

Result

+

WebPage

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400WC_CONVERT_URL_INVALIDWC convert URL invalid
+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.getWebPagePreview b/data/core.telegram.org/method/messages.getWebPagePreview new file mode 100644 index 0000000000..4d4e56e0f5 --- /dev/null +++ b/data/core.telegram.org/method/messages.getWebPagePreview @@ -0,0 +1,191 @@ + + + + + messages.getWebPagePreview + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.getWebPagePreview

+ +

Get preview of webpage

+

+
messageMediaEmpty#3ded6320 = MessageMedia;
+messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia;
+messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia;
+messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia;
+messageMediaUnsupported#9f84f49e = MessageMedia;
+messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia;
+messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia;
+messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia;
+messageMediaGame#fdb19008 game:Game = MessageMedia;
+messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia;
+messageMediaGeoLive#b940c666 flags:# geo:GeoPoint heading:flags.0?int period:int proximity_notification_radius:flags.1?int = MessageMedia;
+messageMediaPoll#4bd6e798 poll:Poll results:PollResults = MessageMedia;
+messageMediaDice#3f7ee58b value:int emoticon:string = MessageMedia;
+---functions---
+messages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3?Vector<MessageEntity> = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
messagestringMessage from which to extract the preview
entitiesflags.3?Vector<MessageEntity>Message entities for styled text
+

Result

+

MessageMedia

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_EMPTYThe provided message is empty
+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.hidePeerSettingsBar b/data/core.telegram.org/method/messages.hidePeerSettingsBar new file mode 100644 index 0000000000..3e7eed3f8f --- /dev/null +++ b/data/core.telegram.org/method/messages.hidePeerSettingsBar @@ -0,0 +1,153 @@ + + + + + messages.hidePeerSettingsBar + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.hidePeerSettingsBar

+ +

Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the peer's settings.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.hidePeerSettingsBar#4facb138 peer:InputPeer = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer
+

Result

+

Bool

+

Related pages

+

peerSettings

+

Peer settings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.importChatInvite b/data/core.telegram.org/method/messages.importChatInvite new file mode 100644 index 0000000000..3fe6e2810d --- /dev/null +++ b/data/core.telegram.org/method/messages.importChatInvite @@ -0,0 +1,222 @@ + + + + + messages.importChatInvite + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.importChatInvite

+ +

Import a chat invite and join a private chat/supergroup/channel

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.importChatInvite#6c50051c hash:string = Updates;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashstringhash from t.me/joinchat/hash
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNELS_TOO_MUCHYou have joined too many channels/supergroups
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400INVITE_HASH_EMPTYThe invite hash is empty
400INVITE_HASH_EXPIREDThe invite link has expired
400INVITE_HASH_INVALIDThe invite hash is invalid
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
400USERS_TOO_MUCHThe maximum number of users has been exceeded (to create a chat, for example)
400USER_ALREADY_PARTICIPANTThe user is already in the group
400USER_CHANNELS_TOO_MUCHOne of the users you tried to add is already in too many channels/supergroups
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.installStickerSet b/data/core.telegram.org/method/messages.installStickerSet new file mode 100644 index 0000000000..73c736f778 --- /dev/null +++ b/data/core.telegram.org/method/messages.installStickerSet @@ -0,0 +1,172 @@ + + + + + messages.installStickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.installStickerSet

+ +

Install a stickerset

+

+
messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult;
+messages.stickerSetInstallResultArchive#35e410a8 sets:Vector<StickerSetCovered> = messages.StickerSetInstallResult;
+---functions---
+messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
stickersetInputStickerSetStickerset to install
archivedBoolWhether to archive stickerset
+

Result

+

messages.StickerSetInstallResult

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400STICKERSET_INVALIDThe provided sticker set is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.markDialogUnread b/data/core.telegram.org/method/messages.markDialogUnread new file mode 100644 index 0000000000..26743a921a --- /dev/null +++ b/data/core.telegram.org/method/messages.markDialogUnread @@ -0,0 +1,160 @@ + + + + + messages.markDialogUnread + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.markDialogUnread

+ +

Manually mark dialog as unread

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.markDialogUnread#c286d98f flags:# unread:flags.0?true peer:InputDialogPeer = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
unreadflags.0?trueMark as unread/read
peerInputDialogPeerDialog
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.migrateChat b/data/core.telegram.org/method/messages.migrateChat new file mode 100644 index 0000000000..b0dc956d41 --- /dev/null +++ b/data/core.telegram.org/method/messages.migrateChat @@ -0,0 +1,185 @@ + + + + + messages.migrateChat + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.migrateChat

+ +

Turn a legacy group into a supergroup

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.migrateChat#15a3b8e3 chat_id:int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintLegacy group to migrate
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
403CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_ID_INVALIDThe provided chat id is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.readDiscussion b/data/core.telegram.org/method/messages.readDiscussion new file mode 100644 index 0000000000..f5fcbae8c5 --- /dev/null +++ b/data/core.telegram.org/method/messages.readDiscussion @@ -0,0 +1,164 @@ + + + + + messages.readDiscussion + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.readDiscussion

+ +

Mark a thread as read

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.readDiscussion#f731a9f4 peer:InputPeer msg_id:int read_max_id:int = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerGroup ID
msg_idintID of message that started the thread
read_max_idintID up to which thread messages were read
+

Result

+

Bool

+

Bots can use this method

+

Related pages

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.readEncryptedHistory b/data/core.telegram.org/method/messages.readEncryptedHistory new file mode 100644 index 0000000000..f678d46503 --- /dev/null +++ b/data/core.telegram.org/method/messages.readEncryptedHistory @@ -0,0 +1,172 @@ + + + + + messages.readEncryptedHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.readEncryptedHistory

+ +

Marks message history within a secret chat as read.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.readEncryptedHistory#7f4b690a peer:InputEncryptedChat max_date:int = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputEncryptedChatSecret chat ID
max_dateintMaximum date value for received messages in history
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400MSG_WAIT_FAILEDA waiting call returned an error
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.readFeaturedStickers b/data/core.telegram.org/method/messages.readFeaturedStickers new file mode 100644 index 0000000000..60bb3066ad --- /dev/null +++ b/data/core.telegram.org/method/messages.readFeaturedStickers @@ -0,0 +1,150 @@ + + + + + messages.readFeaturedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.readFeaturedStickers

+ +

Mark new featured stickers as read

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.readFeaturedStickers#5b118126 id:Vector<long> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idVector<long>IDs of stickersets to mark as read
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.readHistory b/data/core.telegram.org/method/messages.readHistory new file mode 100644 index 0000000000..d7ba0104a4 --- /dev/null +++ b/data/core.telegram.org/method/messages.readHistory @@ -0,0 +1,181 @@ + + + + + messages.readHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.readHistory

+ +

Marks message history as read.

+

+
messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages;
+---functions---
+messages.readHistory#e306d3a peer:InputPeer max_id:int = messages.AffectedMessages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerTarget user or group
max_idintIf a positive value is passed, only messages with identifiers less or equal than the given one will be read
+

Result

+

messages.AffectedHistory

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.readMentions b/data/core.telegram.org/method/messages.readMentions new file mode 100644 index 0000000000..914ead76ff --- /dev/null +++ b/data/core.telegram.org/method/messages.readMentions @@ -0,0 +1,181 @@ + + + + + messages.readMentions + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.readMentions

+ +

Mark mentions as read

+

+
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
+---functions---
+messages.readMentions#f0189d3 peer:InputPeer = messages.AffectedHistory;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerDialog
+

Result

+

messages.AffectedHistory

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.readMessageContents b/data/core.telegram.org/method/messages.readMessageContents new file mode 100644 index 0000000000..8b5aa0029b --- /dev/null +++ b/data/core.telegram.org/method/messages.readMessageContents @@ -0,0 +1,149 @@ + + + + + messages.readMessageContents + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.readMessageContents

+ +

Notifies the sender about the recipient having listened a voice message or watched a video.

+

+
messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages;
+---functions---
+messages.readMessageContents#36a73f77 id:Vector<int> = messages.AffectedMessages;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idVector<int>Message ID list
+

Result

+

Returns a list of listened\watched messages as Vector<int>.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.receivedMessages b/data/core.telegram.org/method/messages.receivedMessages new file mode 100644 index 0000000000..8245ea24e0 --- /dev/null +++ b/data/core.telegram.org/method/messages.receivedMessages @@ -0,0 +1,148 @@ + + + + + messages.receivedMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.receivedMessages

+ +

Confirms receipt of messages by a client, cancels PUSH-notification sending.

+

+
---functions---
+messages.receivedMessages#5a954c0 max_id:int = Vector<ReceivedNotifyMessage>;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
max_idintMaximum message ID available in a client.
+

Result

+

The method returns the list of message IDs, for which PUSH-notifications were cancelled.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.receivedQueue b/data/core.telegram.org/method/messages.receivedQueue new file mode 100644 index 0000000000..c5f60ce260 --- /dev/null +++ b/data/core.telegram.org/method/messages.receivedQueue @@ -0,0 +1,165 @@ + + + + + messages.receivedQueue + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.receivedQueue

+ +

Confirms receipt of messages in a secret chat by client, cancels push notifications.

+

+
---functions---
+messages.receivedQueue#55a5bb66 max_qts:int = Vector<long>;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
max_qtsintMaximum qts value available at the client
+

Result

+

Method returns a list of random_ids of messages for which push notifications were cancelled in Vector<long>.

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400MSG_WAIT_FAILEDA waiting call returned an error
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.reorderPinnedDialogs b/data/core.telegram.org/method/messages.reorderPinnedDialogs new file mode 100644 index 0000000000..d10ab81a40 --- /dev/null +++ b/data/core.telegram.org/method/messages.reorderPinnedDialogs @@ -0,0 +1,185 @@ + + + + + messages.reorderPinnedDialogs + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.reorderPinnedDialogs

+ +

Reorder pinned dialogs

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int order:Vector<InputDialogPeer> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
forceflags.0?trueIf set, dialogs pinned server-side but not present in the order field will be unpinned.
folder_idintPeer folder ID, for more info click here
orderVector<InputDialogPeer>New dialog order
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid
+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.reorderStickerSets b/data/core.telegram.org/method/messages.reorderStickerSets new file mode 100644 index 0000000000..698ea56560 --- /dev/null +++ b/data/core.telegram.org/method/messages.reorderStickerSets @@ -0,0 +1,160 @@ + + + + + messages.reorderStickerSets + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.reorderStickerSets

+ +

Reorder installed stickersets

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.reorderStickerSets#78337739 flags:# masks:flags.0?true order:Vector<long> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
masksflags.0?trueReorder mask stickersets
orderVector<long>New stickerset order by stickerset IDs
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.report b/data/core.telegram.org/method/messages.report new file mode 100644 index 0000000000..a6757437a1 --- /dev/null +++ b/data/core.telegram.org/method/messages.report @@ -0,0 +1,177 @@ + + + + + messages.report + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.report

+ +

Report a message in a chat for violation of telegram's Terms of Service

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.report#bd82b658 peer:InputPeer id:Vector<int> reason:ReportReason = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer
idVector<int>IDs of messages to report
reasonReportReasonWhy are these messages being reported
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.reportEncryptedSpam b/data/core.telegram.org/method/messages.reportEncryptedSpam new file mode 100644 index 0000000000..a31f055c5d --- /dev/null +++ b/data/core.telegram.org/method/messages.reportEncryptedSpam @@ -0,0 +1,167 @@ + + + + + messages.reportEncryptedSpam + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.reportEncryptedSpam

+ +

Report a secret chat for spam

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.reportEncryptedSpam#4b0c8c0f peer:InputEncryptedChat = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputEncryptedChatThe secret chat to report
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.reportSpam b/data/core.telegram.org/method/messages.reportSpam new file mode 100644 index 0000000000..f56addeae3 --- /dev/null +++ b/data/core.telegram.org/method/messages.reportSpam @@ -0,0 +1,175 @@ + + + + + messages.reportSpam + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.reportSpam

+ +

Report a new incoming chat for spam, if the peer settings of the chat allow us to do that

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.reportSpam#cf1592db peer:InputPeer = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer to report
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
+

Related pages

+

peerSettings

+

Peer settings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.requestEncryption b/data/core.telegram.org/method/messages.requestEncryption new file mode 100644 index 0000000000..9b50d0ddff --- /dev/null +++ b/data/core.telegram.org/method/messages.requestEncryption @@ -0,0 +1,185 @@ + + + + + messages.requestEncryption + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.requestEncryption

+ +

Sends a request to start a secret chat to the user.

+

+
encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat;
+encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat;
+encryptedChatRequested#62718a82 flags:# folder_id:flags.0?int id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat;
+encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat;
+encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat;
+---functions---
+messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idInputUserUser ID
random_idintUnique client request ID required to prevent resending. This also doubles as the chat ID.
g_abytesA = g ^ a mod p, see Wikipedia
+

Result

+

EncryptedChat

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400DH_G_A_INVALIDg_a invalid
400USER_ID_INVALIDThe provided user ID is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.requestUrlAuth b/data/core.telegram.org/method/messages.requestUrlAuth new file mode 100644 index 0000000000..63a45a3422 --- /dev/null +++ b/data/core.telegram.org/method/messages.requestUrlAuth @@ -0,0 +1,164 @@ + + + + + messages.requestUrlAuth + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.requestUrlAuth

+ +

Get more info about a Seamless Telegram Login authorization request, for more info click here »

+

+
urlAuthResultRequest#92d33a0e flags:# request_write_access:flags.0?true bot:User domain:string = UrlAuthResult;
+urlAuthResultAccepted#8f8c0e4e url:string = UrlAuthResult;
+urlAuthResultDefault#a9d6db1f = UrlAuthResult;
+---functions---
+messages.requestUrlAuth#e33f5613 peer:InputPeer msg_id:int button_id:int = UrlAuthResult;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer where the message is located
msg_idintThe message
button_idintThe ID of the button with the authorization request
+

Result

+

UrlAuthResult

+

Related pages

+

Seamless Telegram Login

+

Handle Seamless Telegram Login URL authorization requests.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.saveDraft b/data/core.telegram.org/method/messages.saveDraft new file mode 100644 index 0000000000..3a6cc7f78d --- /dev/null +++ b/data/core.telegram.org/method/messages.saveDraft @@ -0,0 +1,197 @@ + + + + + messages.saveDraft + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.saveDraft

+ +

Save a message draft associated to a chat.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.saveDraft#bc39e14b flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int peer:InputPeer message:string entities:flags.3?Vector<MessageEntity> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
no_webpageflags.1?trueDisable generation of the webpage preview
reply_to_msg_idflags.0?intMessage ID the message should reply to
peerInputPeerDestination of the message that should be sent
messagestringThe draft
entitiesflags.3?Vector<MessageEntity>Message entities for styled text
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid
+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+

Message drafts

+

How to handle message drafts

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.saveGif b/data/core.telegram.org/method/messages.saveGif new file mode 100644 index 0000000000..458594c409 --- /dev/null +++ b/data/core.telegram.org/method/messages.saveGif @@ -0,0 +1,172 @@ + + + + + messages.saveGif + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.saveGif

+ +

Add GIF to saved gifs list

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idInputDocumentGIF to save
unsaveBoolWhether to remove GIF from saved gifs list
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400GIF_ID_INVALIDThe provided GIF ID is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.saveRecentSticker b/data/core.telegram.org/method/messages.saveRecentSticker new file mode 100644 index 0000000000..b0fae6b85b --- /dev/null +++ b/data/core.telegram.org/method/messages.saveRecentSticker @@ -0,0 +1,182 @@ + + + + + messages.saveRecentSticker + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.saveRecentSticker

+ +

Add/remove sticker from recent stickers list

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
attachedflags.0?trueWhether to add/remove stickers recently attached to photo or video files
idInputDocumentSticker
unsaveBoolWhether to save or unsave the sticker
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400STICKER_ID_INVALIDThe provided sticker ID is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.search b/data/core.telegram.org/method/messages.search new file mode 100644 index 0000000000..731ada2adb --- /dev/null +++ b/data/core.telegram.org/method/messages.search @@ -0,0 +1,286 @@ + + + + + messages.search + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.search

+ +

Gets back found messages

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+messages.search#c352eec flags:# peer:InputPeer q:string from_id:flags.0?InputPeer top_msg_id:flags.1?int filter:MessagesFilter min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
peerInputPeerUser or chat, histories with which are searched, or (inputPeerEmpty) constructor for global search
qstringText search request
from_idflags.0?InputPeerOnly return messages sent by the specified user ID
top_msg_idflags.1?intThread ID
filterMessagesFilterFilter to return only specified message types
min_dateintIf a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned
max_dateintIf a positive value was transferred, only messages with a sending date smaller than the transferred one will be returned
offset_idintOnly return messages starting from the specified message ID
add_offsetintAdditional offset
limitintNumber of results to return
max_idintMaximum message ID to return
min_idintMinimum message ID to return
hashintHash
+

Result

+

messages.Messages

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400INPUT_CONSTRUCTOR_INVALIDThe provided constructor is invalid
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
400PEER_ID_NOT_SUPPORTEDThe provided peer ID is not supported
400SEARCH_QUERY_EMPTYThe search query is empty
400USER_ID_INVALIDThe provided user ID is invalid
+

Related pages

+

inputPeerEmpty

+

An empty constructor, no user or chat is defined.

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.searchGifs b/data/core.telegram.org/method/messages.searchGifs new file mode 100644 index 0000000000..b57a14a06b --- /dev/null +++ b/data/core.telegram.org/method/messages.searchGifs @@ -0,0 +1,172 @@ + + + + + messages.searchGifs + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.searchGifs

+ +

Search for GIFs

+

+
 Method schema is available as of layer 114. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
qstringText query
offsetintOffset for pagination »
+

Result

+

messages.FoundGifs

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400SEARCH_QUERY_EMPTYThe search query is empty
+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.searchGlobal b/data/core.telegram.org/method/messages.searchGlobal new file mode 100644 index 0000000000..a9b273fee5 --- /dev/null +++ b/data/core.telegram.org/method/messages.searchGlobal @@ -0,0 +1,226 @@ + + + + + messages.searchGlobal + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.searchGlobal

+ +

Search for messages and peers globally

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+messages.searchGlobal#4bc6589a flags:# folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
folder_idflags.0?intPeer folder ID, for more info click here
qstringQuery
filterMessagesFilterGlobal search filter
min_dateintIf a positive value was specified, the method will return only messages with date bigger than min_date
max_dateintIf a positive value was transferred, the method will return only messages with date smaller than max_date
offset_rateintInitially 0, then set to the next_rate parameter of messages.messagesSlice
offset_peerInputPeerOffsets for pagination, for more info click here
offset_idintOffsets for pagination, for more info click here
limitintOffsets for pagination, for more info click here
+

Result

+

messages.Messages

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400FOLDER_ID_INVALIDInvalid folder ID
400SEARCH_QUERY_EMPTYThe search query is empty
+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+

messages.messagesSlice

+

Incomplete list of messages and auxiliary data.

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.searchStickerSets b/data/core.telegram.org/method/messages.searchStickerSets new file mode 100644 index 0000000000..ca34662a54 --- /dev/null +++ b/data/core.telegram.org/method/messages.searchStickerSets @@ -0,0 +1,168 @@ + + + + + messages.searchStickerSets + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.searchStickerSets

+ +

Search for stickersets

+

+
messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets;
+messages.foundStickerSets#5108d648 hash:int sets:Vector<StickerSetCovered> = messages.FoundStickerSets;
+---functions---
+messages.searchStickerSets#c2b7d08b flags:# exclude_featured:flags.0?true q:string hash:int = messages.FoundStickerSets;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
exclude_featuredflags.0?trueExclude featured stickersets from results
qstringQuery string
hashintHash for pagination, for more info click here
+

Result

+

messages.FoundStickerSets

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendBroadcast b/data/core.telegram.org/method/messages.sendBroadcast new file mode 100644 index 0000000000..503ca35f2c --- /dev/null +++ b/data/core.telegram.org/method/messages.sendBroadcast @@ -0,0 +1,145 @@ + + + + + messages.sendBroadcast + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendBroadcast

+ +

Sends multiple messages to contacts.

+

{scheme}

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
contactsVector<InputUser>List of user ID to whom a message will be sent
messagestringMessage text
mediaInputMediaMessage media-contents
+

Result

+

messages.StatedMessages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendEncrypted b/data/core.telegram.org/method/messages.sendEncrypted new file mode 100644 index 0000000000..c9c912c675 --- /dev/null +++ b/data/core.telegram.org/method/messages.sendEncrypted @@ -0,0 +1,205 @@ + + + + + messages.sendEncrypted + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendEncrypted

+ +

Sends a text message to a secret chat.

+

+
messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage;
+messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage;
+---functions---
+messages.sendEncrypted#44fa7a15 flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
silentflags.0?trueSend encrypted message without a notification
peerInputEncryptedChatSecret chat ID
random_idlongUnique client message ID, necessary to avoid message resending
databytesTL-serialization of DecryptedMessage type, encrypted with a key that was created during chat initialization
+

Result

+

messages.SentEncryptedMessage

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
400DATA_INVALIDEncrypted data invalid
400ENCRYPTION_DECLINEDThe secret chat was declined
400MSG_WAIT_FAILEDA waiting call returned an error
+

Related pages

+

DecryptedMessage

+

Object describes the contents of an encrypted message.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendEncryptedFile b/data/core.telegram.org/method/messages.sendEncryptedFile new file mode 100644 index 0000000000..99a8bdff80 --- /dev/null +++ b/data/core.telegram.org/method/messages.sendEncryptedFile @@ -0,0 +1,210 @@ + + + + + messages.sendEncryptedFile + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendEncryptedFile

+ +

Sends a message with a file attachment to a secret chat

+

+
messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage;
+messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage;
+---functions---
+messages.sendEncryptedFile#5559481d flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes file:InputEncryptedFile = messages.SentEncryptedMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
silentflags.0?trueWhether to send the file without triggering a notification
peerInputEncryptedChatSecret chat ID
random_idlongUnique client message ID necessary to prevent message resending
databytesTL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization
fileInputEncryptedFileFile attachment for the secret chat
+

Result

+

messages.SentEncryptedMessage

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400DATA_TOO_LONGData too long
400ENCRYPTION_DECLINEDThe secret chat was declined
400MD5_CHECKSUM_INVALIDThe MD5 checksums do not match
400MSG_WAIT_FAILEDA waiting call returned an error
+

Related pages

+

DecryptedMessage

+

Object describes the contents of an encrypted message.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendEncryptedService b/data/core.telegram.org/method/messages.sendEncryptedService new file mode 100644 index 0000000000..1c0e8b73f5 --- /dev/null +++ b/data/core.telegram.org/method/messages.sendEncryptedService @@ -0,0 +1,200 @@ + + + + + messages.sendEncryptedService + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendEncryptedService

+ +

Sends a service message to a secret chat.

+

+
messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage;
+messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage;
+---functions---
+messages.sendEncryptedService#32d439a4 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputEncryptedChatSecret chat ID
random_idlongUnique client message ID required to prevent message resending
databytesTL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization
+

Result

+

messages.SentEncryptedMessage

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400DATA_INVALIDEncrypted data invalid
400ENCRYPTION_DECLINEDThe secret chat was declined
400ENCRYPTION_ID_INVALIDThe provided secret chat ID is invalid
400MSG_WAIT_FAILEDA waiting call returned an error
403USER_IS_BLOCKEDYou were blocked by this user
+

Related pages

+

DecryptedMessage

+

Object describes the contents of an encrypted message.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendInlineBotResult b/data/core.telegram.org/method/messages.sendInlineBotResult new file mode 100644 index 0000000000..57721a0c91 --- /dev/null +++ b/data/core.telegram.org/method/messages.sendInlineBotResult @@ -0,0 +1,329 @@ + + + + + messages.sendInlineBotResult + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendInlineBotResult

+ +

Send a result obtained using messages.getInlineBotResults.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.sendInlineBotResult#220815b0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to_msg_id:flags.0?int random_id:long query_id:long id:string schedule_date:flags.10?int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
silentflags.5?trueWhether to send the message silently (no notification will be triggered on the other client)
backgroundflags.6?trueWhether to send the message in background
clear_draftflags.7?trueWhether to clear the draft
hide_viaflags.11?trueWhether to hide the via @botname in the resulting message (only for bot usernames encountered in the config)
peerInputPeerDestination
reply_to_msg_idflags.0?intID of the message this message should reply to
random_idlongRandom ID to avoid resending the same query
query_idlongQuery ID from messages.getInlineBotResults
idstringResult ID from messages.getInlineBotResults
schedule_dateflags.10?intScheduled message date for scheduled messages
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_RESTRICTEDYou can't send messages in this chat, you were restricted
403CHAT_SEND_GIFS_FORBIDDENYou can't send gifs in this chat
403CHAT_SEND_INLINE_FORBIDDENYou can't send inline messages in this group
403CHAT_SEND_MEDIA_FORBIDDENYou can't send media in this chat
403CHAT_SEND_STICKERS_FORBIDDENYou can't send stickers in this chat.
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400INLINE_RESULT_EXPIREDThe inline query expired
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MEDIA_EMPTYThe provided media object is invalid
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
400QUERY_ID_EMPTYThe query ID is empty
400RESULT_ID_EMPTYResult ID empty
420SLOWMODE_WAIT_XSlowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.
400USER_BANNED_IN_CHANNELYou're banned from sending messages in supergroups/channels
400WEBPAGE_CURL_FAILEDFailure while fetching the webpage with cURL
400WEBPAGE_MEDIA_EMPTYWebpage media empty
400YOU_BLOCKED_USERYou blocked this user
+

Related pages

+

Message drafts

+

How to handle message drafts

+

config

+

Current configuration

+

messages.getInlineBotResults

+

Query an inline bot

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendMedia b/data/core.telegram.org/method/messages.sendMedia new file mode 100644 index 0000000000..3606d453fc --- /dev/null +++ b/data/core.telegram.org/method/messages.sendMedia @@ -0,0 +1,438 @@ + + + + + messages.sendMedia + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendMedia

+ +

Send a media

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.sendMedia#3491eba9 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
silentflags.5?trueSend message silently (no notification should be triggered)
backgroundflags.6?trueSend message in background
clear_draftflags.7?trueClear the draft
peerInputPeerDestination
reply_to_msg_idflags.0?intMessage ID to which this message should reply to
mediaInputMediaAttached media
messagestringCaption
random_idlongRandom ID to avoid resending the same message
reply_markupflags.2?ReplyMarkupReply markup for bot keyboards
entitiesflags.3?Vector<MessageEntity>Message entities for styled text
schedule_dateflags.10?intScheduled message date for scheduled messages
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BROADCAST_PUBLIC_VOTERS_FORBIDDENYou can't forward polls with public voters
400BUTTON_DATA_INVALIDThe data of one or more of the buttons you provided is invalid
400BUTTON_TYPE_INVALIDThe type of one or more of the buttons you provided is invalid
400BUTTON_URL_INVALIDButton URL invalid
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_RESTRICTEDYou can't send messages in this chat, you were restricted
403CHAT_SEND_GIFS_FORBIDDENYou can't send gifs in this chat
403CHAT_SEND_MEDIA_FORBIDDENYou can't send media in this chat
403CHAT_SEND_STICKERS_FORBIDDENYou can't send stickers in this chat.
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400EXTERNAL_URL_INVALIDExternal URL invalid
400FILE_PARTS_INVALIDThe number of file parts is invalid
400FILE_PART_LENGTH_INVALIDThe length of a file part is invalid
400IMAGE_PROCESS_FAILEDFailure while processing image
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MD5_CHECKSUM_INVALIDThe MD5 checksums do not match
400MEDIA_CAPTION_TOO_LONGThe caption is too long
400MEDIA_EMPTYThe provided media object is invalid
400MEDIA_INVALIDMedia invalid
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
400PHOTO_EXT_INVALIDThe extension of the photo is invalid
400PHOTO_INVALID_DIMENSIONSThe photo dimensions are invalid
400PHOTO_SAVE_FILE_INVALIDInternal issues, try again later
400POLL_ANSWERS_INVALIDInvalid poll answers were provided
400POLL_OPTION_DUPLICATEDuplicate poll options provided
400POLL_OPTION_INVALIDInvalid poll option provided
400QUIZ_CORRECT_ANSWERS_EMPTYNo correct quiz answer was specified
400QUIZ_CORRECT_ANSWER_INVALIDAn invalid value was provided to the correct_answers field
400REPLY_MARKUP_BUY_EMPTYReply markup for buy button empty
400REPLY_MARKUP_INVALIDThe provided reply markup is invalid
400SCHEDULE_TOO_MUCHThere are too many scheduled messages
420SLOWMODE_WAIT_XSlowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.
400TTL_MEDIA_INVALIDInvalid media Time To Live was provided
400USER_BANNED_IN_CHANNELYou're banned from sending messages in supergroups/channels
400USER_IS_BLOCKEDYou were blocked by this user
400USER_IS_BOTBots can't send messages to other bots
400WEBPAGE_CURL_FAILEDFailure while fetching the webpage with cURL
400WEBPAGE_MEDIA_EMPTYWebpage media empty
400YOU_BLOCKED_USERYou blocked this user
+

Bots can use this method

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+

Scheduled messages

+

Telegram allows scheduling messages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendMessage b/data/core.telegram.org/method/messages.sendMessage new file mode 100644 index 0000000000..52bf73abfd --- /dev/null +++ b/data/core.telegram.org/method/messages.sendMessage @@ -0,0 +1,378 @@ + + + + + messages.sendMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendMessage

+ +

Sends a message to a chat

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.sendMessage#520c3870 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
no_webpageflags.1?trueSet this flag to disable generation of the webpage preview
silentflags.5?trueSend this message silently (no notifications for the receivers)
backgroundflags.6?trueSend this message as background message
clear_draftflags.7?trueClear the draft field
peerInputPeerThe destination where the message will be sent
reply_to_msg_idflags.0?intThe message ID to which this message will reply to
messagestringThe message
random_idlongUnique client message ID required to prevent message resending
reply_markupflags.2?ReplyMarkupReply markup for sending bot buttons
entitiesflags.3?Vector<MessageEntity>Message entities for sending styled text
schedule_dateflags.10?intScheduled message date for scheduled messages
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
401AUTH_KEY_PERM_EMPTYThe temporary auth key must be binded to the permanent auth key to use these methods.
400BOT_DOMAIN_INVALIDBot domain invalid
400BOT_INVALIDThis is not a valid bot
400BUTTON_DATA_INVALIDThe data of one or more of the buttons you provided is invalid
400BUTTON_TYPE_INVALIDThe type of one or more of the buttons you provided is invalid
400BUTTON_URL_INVALIDButton URL invalid
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_ID_INVALIDThe provided chat id is invalid
400CHAT_RESTRICTEDYou can't send messages in this chat, you were restricted
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400ENCRYPTION_DECLINEDThe secret chat was declined
400ENTITY_MENTION_USER_INVALIDYou mentioned an invalid user
400FROM_MESSAGE_BOT_DISABLEDBots can't use fromMessage min constructors
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MESSAGE_EMPTYThe provided message is empty
400MESSAGE_TOO_LONGThe provided message is too long
400MSG_ID_INVALIDProvided reply_to_msg_id is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
400PINNED_DIALOGS_TOO_MUCHToo many pinned dialogs
400REPLY_MARKUP_INVALIDThe provided reply markup is invalid
400SCHEDULE_BOT_NOT_ALLOWEDBots cannot schedule messages
400SCHEDULE_DATE_TOO_LATEYou can't schedule a message this far in the future
400SCHEDULE_TOO_MUCHThere are too many scheduled messages
420SLOWMODE_WAIT_XSlowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.
400USER_BANNED_IN_CHANNELYou're banned from sending messages in supergroups/channels
400USER_IS_BLOCKEDYou were blocked by this user
400USER_IS_BOTBots can't send messages to other bots
400YOU_BLOCKED_USERYou blocked this user
+

Bots can use this method

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+

Scheduled messages

+

Telegram allows scheduling messages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendMultiMedia b/data/core.telegram.org/method/messages.sendMultiMedia new file mode 100644 index 0000000000..91e89616e5 --- /dev/null +++ b/data/core.telegram.org/method/messages.sendMultiMedia @@ -0,0 +1,238 @@ + + + + + messages.sendMultiMedia + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendMultiMedia

+ +

Send an album or grouped media

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.sendMultiMedia#cc0110cb flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector<InputSingleMedia> schedule_date:flags.10?int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
silentflags.5?trueWhether to send the album silently (no notification triggered)
backgroundflags.6?trueSend in background?
clear_draftflags.7?trueWhether to clear drafts
peerInputPeerThe destination chat
reply_to_msg_idflags.0?intThe message to reply to
multi_mediaVector<InputSingleMedia>The medias to send
schedule_dateflags.10?intScheduled message date for scheduled messages
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400MEDIA_EMPTYThe provided media object is invalid
400MEDIA_INVALIDMedia invalid
400MULTI_MEDIA_TOO_LONGToo many media files for album
400PEER_ID_INVALIDThe provided peer id is invalid
400RANDOM_ID_EMPTYRandom ID empty
+

Bots can use this method

+

Related pages

+

Message drafts

+

How to handle message drafts

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendReaction b/data/core.telegram.org/method/messages.sendReaction new file mode 100644 index 0000000000..836b132baa --- /dev/null +++ b/data/core.telegram.org/method/messages.sendReaction @@ -0,0 +1,185 @@ + + + + + messages.sendReaction + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendReaction

+ +

Send reaction to message

+

+
 Method schema is available as of layer 135. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
peerInputPeerPeer
msg_idintMessage ID to react to
reactionflags.0?stringReaction (a UTF8 emoji)
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
400REACTION_EMPTYEmpty reaction provided
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendScheduledMessages b/data/core.telegram.org/method/messages.sendScheduledMessages new file mode 100644 index 0000000000..1aac168c23 --- /dev/null +++ b/data/core.telegram.org/method/messages.sendScheduledMessages @@ -0,0 +1,177 @@ + + + + + messages.sendScheduledMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendScheduledMessages

+ +

Send scheduled messages right away

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.sendScheduledMessages#bd38850a peer:InputPeer id:Vector<int> = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer
idVector<int>Scheduled message IDs
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendScreenshotNotification b/data/core.telegram.org/method/messages.sendScreenshotNotification new file mode 100644 index 0000000000..6c535a5e49 --- /dev/null +++ b/data/core.telegram.org/method/messages.sendScreenshotNotification @@ -0,0 +1,182 @@ + + + + + messages.sendScreenshotNotification + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendScreenshotNotification

+ +

Notify the other user in a private chat that a screenshot of the chat was taken

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.sendScreenshotNotification#c97df020 peer:InputPeer reply_to_msg_id:int random_id:long = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerOther user
reply_to_msg_idintID of message that was screenshotted, can be 0
random_idlongRandom ID to avoid message resending
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.sendVote b/data/core.telegram.org/method/messages.sendVote new file mode 100644 index 0000000000..3e46d769ad --- /dev/null +++ b/data/core.telegram.org/method/messages.sendVote @@ -0,0 +1,205 @@ + + + + + messages.sendVote + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sendVote

+ +

Vote in a poll

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.sendVote#10ea6184 peer:InputPeer msg_id:int options:Vector<bytes> = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat where the poll was sent
msg_idintThe message ID of the poll
optionsVector<bytes>The options that were chosen
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
400MESSAGE_POLL_CLOSEDPoll closed
400OPTIONS_TOO_MUCHToo many options provided
400OPTION_INVALIDInvalid option selected
400REVOTE_NOT_ALLOWEDYou cannot change your vote
+

Related pages

+

poll

+

Poll

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.setBotCallbackAnswer b/data/core.telegram.org/method/messages.setBotCallbackAnswer new file mode 100644 index 0000000000..ff566319f2 --- /dev/null +++ b/data/core.telegram.org/method/messages.setBotCallbackAnswer @@ -0,0 +1,198 @@ + + + + + messages.setBotCallbackAnswer + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.setBotCallbackAnswer

+ +

Set the callback answer to a user button press (bots only)

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
alertflags.1?trueWhether to show the message as a popup instead of a toast notification
query_idlongQuery ID
messageflags.0?stringPopup to show
urlflags.2?stringURL to open
cache_timeintCache validity
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400QUERY_ID_INVALIDThe query ID is invalid
400URL_INVALIDInvalid URL provided
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.setBotPrecheckoutResults b/data/core.telegram.org/method/messages.setBotPrecheckoutResults new file mode 100644 index 0000000000..9fdddf2348 --- /dev/null +++ b/data/core.telegram.org/method/messages.setBotPrecheckoutResults @@ -0,0 +1,188 @@ + + + + + messages.setBotPrecheckoutResults + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.setBotPrecheckoutResults

+ +

Once the user has confirmed their payment and shipping details, the bot receives an updateBotPrecheckoutQuery update.
+Use this method to respond to such pre-checkout queries.
+Note: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
successflags.1?trueSet this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the error field, instead
query_idlongUnique identifier for the query to be answered
errorflags.0?stringRequired if the success isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400ERROR_TEXT_EMPTYThe provided error message is empty
+

Bots can use this method

+

Related pages

+

updateBotPrecheckoutQuery

+

This object contains information about an incoming pre-checkout query.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.setBotShippingResults b/data/core.telegram.org/method/messages.setBotShippingResults new file mode 100644 index 0000000000..c4fed4da12 --- /dev/null +++ b/data/core.telegram.org/method/messages.setBotShippingResults @@ -0,0 +1,186 @@ + + + + + messages.setBotShippingResults + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.setBotShippingResults

+ +

If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an updateBotShippingQuery update. Use this method to reply to shipping queries.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
query_idlongUnique identifier for the query to be answered
errorflags.0?stringError message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user.
shipping_optionsflags.1?Vector<ShippingOption>A vector of available shipping options.
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400QUERY_ID_INVALIDThe query ID is invalid
+

Bots can use this method

+

Related pages

+

updateBotShippingQuery

+

This object contains information about an incoming shipping query.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.setEncryptedTyping b/data/core.telegram.org/method/messages.setEncryptedTyping new file mode 100644 index 0000000000..6f581b40e4 --- /dev/null +++ b/data/core.telegram.org/method/messages.setEncryptedTyping @@ -0,0 +1,177 @@ + + + + + messages.setEncryptedTyping + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.setEncryptedTyping

+ +

Send typing event by the current user to a secret chat.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.setEncryptedTyping#791451ed peer:InputEncryptedChat typing:Bool = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputEncryptedChatSecret chat ID
typingBoolTyping.
Possible values:
(boolTrue), if the user started typing and more than 5 seconds have passed since the last request
(boolFalse), if the user stopped typing
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
+

Related pages

+

boolTrue

+

The constructor can be interpreted as a booleantrue value.

+

boolFalse

+

Constructor may be interpreted as a booleanfalse value.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.setGameScore b/data/core.telegram.org/method/messages.setGameScore new file mode 100644 index 0000000000..0c0b090dce --- /dev/null +++ b/data/core.telegram.org/method/messages.setGameScore @@ -0,0 +1,213 @@ + + + + + messages.setGameScore + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.setGameScore

+ +

Use this method to set the score of the specified user in a game sent as a normal message (bots only).

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
edit_messageflags.0?trueSet this flag if the game message should be automatically edited to include the current scoreboard
forceflags.1?trueSet this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters
peerInputPeerUnique identifier of target chat
idintIdentifier of the sent message
user_idInputUserUser identifier
scoreintNew score
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
400USER_BOT_REQUIREDThis method can only be called by a bot
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.setInlineBotResults b/data/core.telegram.org/method/messages.setInlineBotResults new file mode 100644 index 0000000000..6796d7f6e1 --- /dev/null +++ b/data/core.telegram.org/method/messages.setInlineBotResults @@ -0,0 +1,313 @@ + + + + + messages.setInlineBotResults + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.setInlineBotResults

+ +

Answer an inline query, for bots only

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.setInlineBotResults#eb5ea206 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 = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
galleryflags.0?trueSet this flag if the results are composed of media files
privateflags.1?trueSet this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query
query_idlongUnique identifier for the answered query
resultsVector<InputBotInlineResult>Vector of results for the inline query
cache_timeintThe maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.
next_offsetflags.2?stringPass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don‘t support pagination. Offset length can’t exceed 64 bytes.
switch_pmflags.3?InlineBotSwitchPMIf passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter.
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400ARTICLE_TITLE_EMPTYThe title of the article is empty
400BUTTON_DATA_INVALIDThe data of one or more of the buttons you provided is invalid
400BUTTON_TYPE_INVALIDThe type of one or more of the buttons you provided is invalid
400BUTTON_URL_INVALIDButton URL invalid
400GIF_CONTENT_TYPE_INVALIDGIF content-type invalid
400MESSAGE_EMPTYThe provided message is empty
400MESSAGE_TOO_LONGThe provided message is too long
400PHOTO_CONTENT_TYPE_INVALIDPhoto mime-type invalid
400PHOTO_CONTENT_URL_EMPTYPhoto URL invalid
400PHOTO_INVALIDPhoto invalid
400PHOTO_THUMB_URL_EMPTYPhoto thumbnail URL is empty
400QUERY_ID_INVALIDThe query ID is invalid
400REPLY_MARKUP_INVALIDThe provided reply markup is invalid
400RESULTS_TOO_MUCHToo many results were provided
400RESULT_ID_DUPLICATEYou provided a duplicate result ID
400RESULT_TYPE_INVALIDResult type invalid
400SEND_MESSAGE_MEDIA_INVALIDInvalid media provided
400SEND_MESSAGE_TYPE_INVALIDThe message type is invalid
400START_PARAM_INVALIDStart parameter invalid
403USER_BOT_INVALIDThis method can only be called by a bot
400WEBDOCUMENT_INVALIDInvalid webdocument URL provided
400WEBDOCUMENT_MIME_INVALIDInvalid webdocument mime type provided
400WEBDOCUMENT_SIZE_TOO_BIGWebdocument is too big!
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.setInlineGameScore b/data/core.telegram.org/method/messages.setInlineGameScore new file mode 100644 index 0000000000..7b0c6b3cff --- /dev/null +++ b/data/core.telegram.org/method/messages.setInlineGameScore @@ -0,0 +1,198 @@ + + + + + messages.setInlineGameScore + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.setInlineGameScore

+ +

Use this method to set the score of the specified user in a game sent as an inline message (bots only).

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:flags.1?true id:InputBotInlineMessageID user_id:InputUser score:int = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
edit_messageflags.0?trueSet this flag if the game message should be automatically edited to include the current scoreboard
forceflags.1?trueSet this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters
idInputBotInlineMessageIDID of the inline message
user_idInputUserUser identifier
scoreintNew score
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
400USER_BOT_REQUIREDThis method can only be called by a bot
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.setTyping b/data/core.telegram.org/method/messages.setTyping new file mode 100644 index 0000000000..d9c6cbe7ed --- /dev/null +++ b/data/core.telegram.org/method/messages.setTyping @@ -0,0 +1,240 @@ + + + + + messages.setTyping + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.setTyping

+ +

Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
peerInputPeerTarget user or group
top_msg_idflags.0?intThread ID
actionSendMessageActionType of action
Parameter added in Layer 17.
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_ID_INVALIDThe provided chat id is invalid
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
400USER_BANNED_IN_CHANNELYou're banned from sending messages in supergroups/channels
400USER_IS_BLOCKEDYou were blocked by this user
400USER_IS_BOTBots can't send messages to other bots
+

Bots can use this method

+

Related pages

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+

SendMessageAction

+

User actions. Use this to provide users with detailed info about their chat partners' actions: typing or sending attachments of all kinds.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.startBot b/data/core.telegram.org/method/messages.startBot new file mode 100644 index 0000000000..e264d567d6 --- /dev/null +++ b/data/core.telegram.org/method/messages.startBot @@ -0,0 +1,219 @@ + + + + + messages.startBot + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.startBot

+ +

Start a conversation with a bot using a deep linking parameter

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_param:string = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
botInputUserThe bot
peerInputPeerThe chat where to start the bot, can be the bot's private chat or a group
random_idlongRandom ID to avoid resending the same message
start_paramstringDeep linking parameter
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BOT_INVALIDThis is not a valid bot
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
400START_PARAM_EMPTYThe start parameter is empty
400START_PARAM_INVALIDStart parameter invalid
400START_PARAM_TOO_LONGStart parameter is too long
+

Related pages

+

Bots: An introduction for developers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.toggleDialogPin b/data/core.telegram.org/method/messages.toggleDialogPin new file mode 100644 index 0000000000..4a5d270047 --- /dev/null +++ b/data/core.telegram.org/method/messages.toggleDialogPin @@ -0,0 +1,177 @@ + + + + + messages.toggleDialogPin + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.toggleDialogPin

+ +

Pin/unpin a dialog

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.toggleDialogPin#a731e257 flags:# pinned:flags.0?true peer:InputDialogPeer = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
pinnedflags.0?trueWhether to pin or unpin the dialog
peerInputDialogPeerThe dialog to pin
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.toggleStickerSets b/data/core.telegram.org/method/messages.toggleStickerSets new file mode 100644 index 0000000000..6a5bc34c01 --- /dev/null +++ b/data/core.telegram.org/method/messages.toggleStickerSets @@ -0,0 +1,170 @@ + + + + + messages.toggleStickerSets + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.toggleStickerSets

+ +

Apply changes to multiple stickersets

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector<InputStickerSet> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
uninstallflags.0?trueUninstall the specified stickersets
archiveflags.1?trueArchive the specified stickersets
unarchiveflags.2?trueUnarchive the specified stickersets
stickersetsVector<InputStickerSet>Stickersets to act upon
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.uninstallStickerSet b/data/core.telegram.org/method/messages.uninstallStickerSet new file mode 100644 index 0000000000..4afc13a0d5 --- /dev/null +++ b/data/core.telegram.org/method/messages.uninstallStickerSet @@ -0,0 +1,167 @@ + + + + + messages.uninstallStickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.uninstallStickerSet

+ +

Uninstall a stickerset

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.uninstallStickerSet#f96e55de stickerset:InputStickerSet = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
stickersetInputStickerSetThe stickerset to uninstall
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400STICKERSET_INVALIDThe provided sticker set is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.unpinAllMessages b/data/core.telegram.org/method/messages.unpinAllMessages new file mode 100644 index 0000000000..ba9e03e766 --- /dev/null +++ b/data/core.telegram.org/method/messages.unpinAllMessages @@ -0,0 +1,153 @@ + + + + + messages.unpinAllMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.unpinAllMessages

+ +

Unpin all pinned messages

+

+
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
+---functions---
+messages.unpinAllMessages#f025bc8b peer:InputPeer = messages.AffectedHistory;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerChat where to unpin
+

Result

+

messages.AffectedHistory

+

Bots can use this method

+

Related pages

+

Pinned messages

+

Telegram allows pinning multiple messages on top of a specific chat.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.updateDialogFilter b/data/core.telegram.org/method/messages.updateDialogFilter new file mode 100644 index 0000000000..400e5c1a09 --- /dev/null +++ b/data/core.telegram.org/method/messages.updateDialogFilter @@ -0,0 +1,180 @@ + + + + + messages.updateDialogFilter + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.updateDialogFilter

+ +

Update folder

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.updateDialogFilter#1ad4a04a flags:# id:int filter:flags.0?DialogFilter = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idintFolder ID
filterflags.0?DialogFilterFolder info
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400FILTER_ID_INVALIDThe specified filter ID is invalid
+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.updateDialogFiltersOrder b/data/core.telegram.org/method/messages.updateDialogFiltersOrder new file mode 100644 index 0000000000..0bdf4b992d --- /dev/null +++ b/data/core.telegram.org/method/messages.updateDialogFiltersOrder @@ -0,0 +1,153 @@ + + + + + messages.updateDialogFiltersOrder + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.updateDialogFiltersOrder

+ +

Reorder folders

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.updateDialogFiltersOrder#c563c1e4 order:Vector<int> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
orderVector<int>New folder order
+

Result

+

Bool

+

Related pages

+

Folders

+

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.updatePinnedMessage b/data/core.telegram.org/method/messages.updatePinnedMessage new file mode 100644 index 0000000000..4961fdbfaf --- /dev/null +++ b/data/core.telegram.org/method/messages.updatePinnedMessage @@ -0,0 +1,223 @@ + + + + + messages.updatePinnedMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.updatePinnedMessage

+ +

Pin a message

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+messages.updatePinnedMessage#d2aaf7ec flags:# silent:flags.0?true unpin:flags.1?true pm_oneside:flags.2?true peer:InputPeer id:int = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
silentflags.0?truePin the message silently, without triggering a notification
unpinflags.1?trueWhether the message should unpinned or pinned
pm_onesideflags.2?trueWhether the message should only be pinned on the local side of a one-to-one chat
peerInputPeerThe peer where to pin the message
idintThe message to pin or unpin
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
400CHAT_NOT_MODIFIEDThe pinned message wasn't modified
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400MESSAGE_ID_INVALIDThe provided message id is invalid
400PIN_RESTRICTEDYou can't pin messages
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.uploadEncryptedFile b/data/core.telegram.org/method/messages.uploadEncryptedFile new file mode 100644 index 0000000000..660d671fa6 --- /dev/null +++ b/data/core.telegram.org/method/messages.uploadEncryptedFile @@ -0,0 +1,155 @@ + + + + + messages.uploadEncryptedFile + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.uploadEncryptedFile

+ +

Upload encrypted file and associate it to a secret chat

+

+
encryptedFileEmpty#c21f497e = EncryptedFile;
+encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile;
+---functions---
+messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputEncryptedChatThe secret chat to associate the file to
fileInputEncryptedFileThe file
+

Result

+

EncryptedFile

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.uploadMedia b/data/core.telegram.org/method/messages.uploadMedia new file mode 100644 index 0000000000..3988fff0ab --- /dev/null +++ b/data/core.telegram.org/method/messages.uploadMedia @@ -0,0 +1,254 @@ + + + + + messages.uploadMedia + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.uploadMedia

+ +

Upload a file and associate it to a chat (without actually sending it to the chat)

+

+
messageMediaEmpty#3ded6320 = MessageMedia;
+messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia;
+messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia;
+messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia;
+messageMediaUnsupported#9f84f49e = MessageMedia;
+messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia;
+messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia;
+messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia;
+messageMediaGame#fdb19008 game:Game = MessageMedia;
+messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia;
+messageMediaGeoLive#b940c666 flags:# geo:GeoPoint heading:flags.0?int period:int proximity_notification_radius:flags.1?int = MessageMedia;
+messageMediaPoll#4bd6e798 poll:Poll results:PollResults = MessageMedia;
+messageMediaDice#3f7ee58b value:int emoticon:string = MessageMedia;
+---functions---
+messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat, can be an inputPeerEmpty for bots
mediaInputMediaFile uploaded in chunks as described in files »
+

Result

+

MessageMedia

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BOT_MISSINGThis method can only be run by a bot
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
403CHAT_WRITE_FORBIDDENYou can't write in this chat
400FILE_PARTS_INVALIDThe number of file parts is invalid
400IMAGE_PROCESS_FAILEDFailure while processing image
400INPUT_USER_DEACTIVATEDThe specified user was deleted
400MEDIA_INVALIDMedia invalid
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
400PHOTO_EXT_INVALIDThe extension of the photo is invalid
400PHOTO_SAVE_FILE_INVALIDInternal issues, try again later
400USER_BANNED_IN_CHANNELYou're banned from sending messages in supergroups/channels
400WEBPAGE_CURL_FAILEDFailure while fetching the webpage with cURL
+

Bots can use this method

+

Related pages

+

inputPeerEmpty

+

An empty constructor, no user or chat is defined.

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/payments.clearSavedInfo b/data/core.telegram.org/method/payments.clearSavedInfo new file mode 100644 index 0000000000..fa5afc5408 --- /dev/null +++ b/data/core.telegram.org/method/payments.clearSavedInfo @@ -0,0 +1,160 @@ + + + + + payments.clearSavedInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.clearSavedInfo

+ +

Clear saved payment information

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
credentialsflags.0?trueRemove saved payment credentials
infoflags.1?trueClear the last order settings saved by the user
+

Result

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/payments.getBankCardData b/data/core.telegram.org/method/payments.getBankCardData new file mode 100644 index 0000000000..eb98dd017f --- /dev/null +++ b/data/core.telegram.org/method/payments.getBankCardData @@ -0,0 +1,149 @@ + + + + + payments.getBankCardData + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.getBankCardData

+ +

Get info about a credit card

+

+
payments.bankCardData#3e24e573 title:string open_urls:Vector<BankCardOpenUrl> = payments.BankCardData;
+---functions---
+payments.getBankCardData#2e79d779 number:string = payments.BankCardData;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
numberstringCredit card number
+

Result

+

payments.BankCardData

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/payments.getPaymentForm b/data/core.telegram.org/method/payments.getPaymentForm new file mode 100644 index 0000000000..21187cfb94 --- /dev/null +++ b/data/core.telegram.org/method/payments.getPaymentForm @@ -0,0 +1,166 @@ + + + + + payments.getPaymentForm + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.getPaymentForm

+ +

Get a payment form

+

+
payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector<User> = payments.PaymentForm;
+---functions---
+payments.getPaymentForm#99f09745 msg_id:int = payments.PaymentForm;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
msg_idintMessage ID of payment form
+

Result

+

payments.PaymentForm

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/payments.getPaymentReceipt b/data/core.telegram.org/method/payments.getPaymentReceipt new file mode 100644 index 0000000000..01350f0b62 --- /dev/null +++ b/data/core.telegram.org/method/payments.getPaymentReceipt @@ -0,0 +1,166 @@ + + + + + payments.getPaymentReceipt + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.getPaymentReceipt

+ +

Get payment receipt

+

+
payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector<User> = payments.PaymentReceipt;
+---functions---
+payments.getPaymentReceipt#a092a980 msg_id:int = payments.PaymentReceipt;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
msg_idintMessage ID of receipt
+

Result

+

payments.PaymentReceipt

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/payments.getSavedInfo b/data/core.telegram.org/method/payments.getSavedInfo new file mode 100644 index 0000000000..4a04e8b303 --- /dev/null +++ b/data/core.telegram.org/method/payments.getSavedInfo @@ -0,0 +1,134 @@ + + + + + payments.getSavedInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.getSavedInfo

+ +

Get saved payment information

+

+
payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo;
+---functions---
+payments.getSavedInfo#227d824b = payments.SavedInfo;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

payments.SavedInfo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/payments.sendPaymentForm b/data/core.telegram.org/method/payments.sendPaymentForm new file mode 100644 index 0000000000..ce77bfc794 --- /dev/null +++ b/data/core.telegram.org/method/payments.sendPaymentForm @@ -0,0 +1,190 @@ + + + + + payments.sendPaymentForm + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.sendPaymentForm

+ +

Send compiled payment form

+

+
payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult;
+payments.paymentVerificationNeeded#d8411139 url:string = payments.PaymentResult;
+---functions---
+payments.sendPaymentForm#2b8879b3 flags:# msg_id:int requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials = payments.PaymentResult;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
msg_idintMessage ID of form
requested_info_idflags.0?stringID of saved and validated order info
shipping_option_idflags.1?stringChosen shipping option ID
credentialsInputPaymentCredentialsPayment credentials
+

Result

+

payments.PaymentResult

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
+

Related pages

+

payments.ValidatedRequestedInfo

+

Validated user-provided info

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/payments.validateRequestedInfo b/data/core.telegram.org/method/payments.validateRequestedInfo new file mode 100644 index 0000000000..07747e9fe9 --- /dev/null +++ b/data/core.telegram.org/method/payments.validateRequestedInfo @@ -0,0 +1,181 @@ + + + + + payments.validateRequestedInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.validateRequestedInfo

+ +

Submit requested order information for validation

+

+
payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = payments.ValidatedRequestedInfo;
+---functions---
+payments.validateRequestedInfo#770a8e74 flags:# save:flags.0?true msg_id:int info:PaymentRequestedInfo = payments.ValidatedRequestedInfo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
saveflags.0?trueSave order information to re-use it for future orders
msg_idintMessage ID of payment form
infoPaymentRequestedInfoRequested order information
+

Result

+

payments.ValidatedRequestedInfo

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/phone.acceptCall b/data/core.telegram.org/method/phone.acceptCall new file mode 100644 index 0000000000..b513e3fbb0 --- /dev/null +++ b/data/core.telegram.org/method/phone.acceptCall @@ -0,0 +1,193 @@ + + + + + phone.acceptCall + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.acceptCall

+ +

Accept incoming call

+

+
phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector<User> = phone.PhoneCall;
+---functions---
+phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPhoneCallThe call to accept
g_bbytesParameter for E2E encryption key exchange »
protocolPhoneCallProtocolPhone call settings
+

Result

+

phone.PhoneCall

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CALL_ALREADY_ACCEPTEDThe call was already accepted
400CALL_ALREADY_DECLINEDThe call was already declined
400CALL_PEER_INVALIDThe provided call peer object is invalid
400CALL_PROTOCOL_FLAGS_INVALIDCall protocol flags invalid
+

Related pages

+

End-to-End Encrypted Voice Calls

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/phone.confirmCall b/data/core.telegram.org/method/phone.confirmCall new file mode 100644 index 0000000000..b89e752c8d --- /dev/null +++ b/data/core.telegram.org/method/phone.confirmCall @@ -0,0 +1,188 @@ + + + + + phone.confirmCall + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.confirmCall

+ +

Complete phone call E2E encryption key exchange »

+

+
phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector<User> = phone.PhoneCall;
+---functions---
+phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPhoneCallThe phone call
g_abytesParameter for E2E encryption key exchange »
key_fingerprintlongKey fingerprint
protocolPhoneCallProtocolPhone call settings
+

Result

+

phone.PhoneCall

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CALL_ALREADY_DECLINEDThe call was already declined
400CALL_PEER_INVALIDThe provided call peer object is invalid
+

Related pages

+

End-to-End Encrypted Voice Calls

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/phone.discardCall b/data/core.telegram.org/method/phone.discardCall new file mode 100644 index 0000000000..875c40dc26 --- /dev/null +++ b/data/core.telegram.org/method/phone.discardCall @@ -0,0 +1,202 @@ + + + + + phone.discardCall + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.discardCall

+ +

Refuse or end running call

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+phone.discardCall#b2cbc1c0 flags:# video:flags.0?true peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
videoflags.0?trueWhether this is a video call
peerInputPhoneCallThe phone call
durationintCall duration
reasonPhoneCallDiscardReasonWhy was the call discarded
connection_idlongPreferred libtgvoip relay ID
+

Result

+

Updates

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CALL_ALREADY_ACCEPTEDThe call was already accepted
400CALL_PEER_INVALIDThe provided call peer object is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/phone.getCallConfig b/data/core.telegram.org/method/phone.getCallConfig new file mode 100644 index 0000000000..146a1249c9 --- /dev/null +++ b/data/core.telegram.org/method/phone.getCallConfig @@ -0,0 +1,134 @@ + + + + + phone.getCallConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.getCallConfig

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/phone.receivedCall b/data/core.telegram.org/method/phone.receivedCall new file mode 100644 index 0000000000..68de59ce55 --- /dev/null +++ b/data/core.telegram.org/method/phone.receivedCall @@ -0,0 +1,172 @@ + + + + + phone.receivedCall + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.receivedCall

+ +

Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+phone.receivedCall#17d54f61 peer:InputPhoneCall = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPhoneCallThe phone call we're currently in
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CALL_ALREADY_DECLINEDThe call was already declined
400CALL_PEER_INVALIDThe provided call peer object is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/phone.requestCall b/data/core.telegram.org/method/phone.requestCall new file mode 100644 index 0000000000..84b1af4b7e --- /dev/null +++ b/data/core.telegram.org/method/phone.requestCall @@ -0,0 +1,213 @@ + + + + + phone.requestCall + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.requestCall

+ +

Start a telegram phone call

+

+
phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector<User> = phone.PhoneCall;
+---functions---
+phone.requestCall#42ff96ed flags:# video:flags.0?true user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
videoflags.0?trueWhether to start a video call
user_idInputUserDestination of the phone call
random_idintRandom ID to avoid resending the same object
g_a_hashbytesParameter for E2E encryption key exchange »
protocolPhoneCallProtocolPhone call settings
+

Result

+

phone.PhoneCall

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CALL_PROTOCOL_FLAGS_INVALIDCall protocol flags invalid
400PARTICIPANT_VERSION_OUTDATEDThe other participant does not use an up to date telegram client with support for calls
400USER_ID_INVALIDThe provided user ID is invalid
403USER_IS_BLOCKEDYou were blocked by this user
403USER_PRIVACY_RESTRICTEDThe user's privacy settings do not allow you to do this
+

Related pages

+

End-to-End Encrypted Voice Calls

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/phone.saveCallDebug b/data/core.telegram.org/method/phone.saveCallDebug new file mode 100644 index 0000000000..3a5342f7bb --- /dev/null +++ b/data/core.telegram.org/method/phone.saveCallDebug @@ -0,0 +1,177 @@ + + + + + phone.saveCallDebug + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.saveCallDebug

+ +

Send phone call debug data to server

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+phone.saveCallDebug#277add7e peer:InputPhoneCall debug:DataJSON = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPhoneCallPhone call
debugDataJSONDebug statistics obtained from libtgvoip
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CALL_PEER_INVALIDThe provided call peer object is invalid
400DATA_JSON_INVALIDThe provided JSON data is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/phone.sendSignalingData b/data/core.telegram.org/method/phone.sendSignalingData new file mode 100644 index 0000000000..d2940b64c8 --- /dev/null +++ b/data/core.telegram.org/method/phone.sendSignalingData @@ -0,0 +1,156 @@ + + + + + phone.sendSignalingData + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.sendSignalingData

+ +

Send VoIP signaling data

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+phone.sendSignalingData#ff7a9383 peer:InputPhoneCall data:bytes = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPhoneCallPhone call
databytesSignaling payload
+

Result

+

Bool

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/phone.setCallRating b/data/core.telegram.org/method/phone.setCallRating new file mode 100644 index 0000000000..f5971a820d --- /dev/null +++ b/data/core.telegram.org/method/phone.setCallRating @@ -0,0 +1,192 @@ + + + + + phone.setCallRating + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.setCallRating

+ +

Rate a call

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+---functions---
+phone.setCallRating#59ead627 flags:# user_initiative:flags.0?true peer:InputPhoneCall rating:int comment:string = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
user_initiativeflags.0?trueWhether the user decided on their own initiative to rate the call
peerInputPhoneCallThe call to rate
ratingintRating in 1-5 stars
commentstringAn additional comment
+

Result

+

Updates with info about the rating message sent to the official VoIP bot

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400CALL_PEER_INVALIDThe provided call peer object is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/photos.deletePhotos b/data/core.telegram.org/method/photos.deletePhotos new file mode 100644 index 0000000000..54a646100e --- /dev/null +++ b/data/core.telegram.org/method/photos.deletePhotos @@ -0,0 +1,148 @@ + + + + + photos.deletePhotos + + + + + + + + + + + + + +
+ +
+
+
+ +

photos.deletePhotos

+ +

Deletes profile photos.

+

+
---functions---
+photos.deletePhotos#87cf7f2f id:Vector<InputPhoto> = Vector<long>;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idVector<InputPhoto>Input photos to delete
+

Result

+

Method returns a list of successfully deleted photos in Vector<long>

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/photos.getUserPhotos b/data/core.telegram.org/method/photos.getUserPhotos new file mode 100644 index 0000000000..e358c6ec11 --- /dev/null +++ b/data/core.telegram.org/method/photos.getUserPhotos @@ -0,0 +1,188 @@ + + + + + photos.getUserPhotos + + + + + + + + + + + + + +
+ +
+
+
+ +

photos.getUserPhotos

+ +

Returns the list of user photos.

+

+
photos.photos#8dca6aa5 photos:Vector<Photo> users:Vector<User> = photos.Photos;
+photos.photosSlice#15051f54 count:int photos:Vector<Photo> users:Vector<User> = photos.Photos;
+---functions---
+photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idInputUserUser ID
offsetintNumber of list elements to be skipped
max_idlongIf a positive value was transferred, the method will return only photos with IDs less than the set one
limitintNumber of list elements to be returned
+

Result

+

photos.Photos

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400MAX_ID_INVALIDThe provided max ID is invalid
400USER_ID_INVALIDThe provided user ID is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/photos.updateProfilePhoto b/data/core.telegram.org/method/photos.updateProfilePhoto new file mode 100644 index 0000000000..d43cb46b4f --- /dev/null +++ b/data/core.telegram.org/method/photos.updateProfilePhoto @@ -0,0 +1,191 @@ + + + + + photos.updateProfilePhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

photos.updateProfilePhoto

+ +

Installs a previously uploaded photo as a profile photo.

+

+
photos.photo#20212ca8 photo:Photo users:Vector<User> = photos.Photo;
+---functions---
+photos.updateProfilePhoto#72d4742c id:InputPhoto = photos.Photo;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idInputPhotoInput photo
+

Result

+

UserProfilePhoto

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400FILE_PARTS_INVALIDThe number of file parts is invalid
400IMAGE_PROCESS_FAILEDFailure while processing image
400LOCATION_INVALIDThe provided location is invalid
400PHOTO_CROP_SIZE_SMALLPhoto is too small
400PHOTO_EXT_INVALIDThe extension of the photo is invalid
400PHOTO_ID_INVALIDPhoto ID invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/photos.uploadProfilePhoto b/data/core.telegram.org/method/photos.uploadProfilePhoto new file mode 100644 index 0000000000..8cd8f406ce --- /dev/null +++ b/data/core.telegram.org/method/photos.uploadProfilePhoto @@ -0,0 +1,216 @@ + + + + + photos.uploadProfilePhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

photos.uploadProfilePhoto

+ +

Updates current user profile photo.

+

+
photos.photo#20212ca8 photo:Photo users:Vector<User> = photos.Photo;
+---functions---
+photos.uploadProfilePhoto#89f30f69 flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = photos.Photo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
fileflags.0?InputFileFile saved in parts by means of upload.saveFilePart method
videoflags.1?InputFileAnimated profile picture video
video_start_tsflags.2?doubleFloating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview.
+

Result

+

photos.Photo

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400FILE_PARTS_INVALIDThe number of file parts is invalid
400IMAGE_PROCESS_FAILEDFailure while processing image
400PHOTO_CROP_FILE_MISSINGPhoto crop file missing
400PHOTO_CROP_SIZE_SMALLPhoto is too small
400PHOTO_EXT_INVALIDThe extension of the photo is invalid
400PHOTO_FILE_MISSINGProfile photo file missing
400VIDEO_FILE_INVALIDThe specified video file is invalid
+

Related pages

+

upload.saveFilePart

+

Saves a part of file for futher sending to one of the methods.

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/stats.getBroadcastStats b/data/core.telegram.org/method/stats.getBroadcastStats new file mode 100644 index 0000000000..15f5de46ad --- /dev/null +++ b/data/core.telegram.org/method/stats.getBroadcastStats @@ -0,0 +1,194 @@ + + + + + stats.getBroadcastStats + + + + + + + + + + + + + +
+ +
+
+
+ +

stats.getBroadcastStats

+ +

Get channel statistics

+

+
stats.broadcastStats#bdf78394 period:StatsDateRangeDays followers:StatsAbsValueAndPrev views_per_post:StatsAbsValueAndPrev shares_per_post:StatsAbsValueAndPrev enabled_notifications:StatsPercentValue growth_graph:StatsGraph followers_graph:StatsGraph mute_graph:StatsGraph top_hours_graph:StatsGraph interactions_graph:StatsGraph iv_interactions_graph:StatsGraph views_by_source_graph:StatsGraph new_followers_by_source_graph:StatsGraph languages_graph:StatsGraph recent_message_interactions:Vector<MessageInteractionCounters> = stats.BroadcastStats;
+---functions---
+stats.getBroadcastStats#ab42441a flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastStats;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
darkflags.0?trueWhether to enable dark theme for graph colors
channelInputChannelThe channel
+

Result

+

stats.BroadcastStats

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BROADCAST_REQUIREDThis method can only be called on a channel, please use stats.getMegagroupStats for supergroups
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/stats.getMegagroupStats b/data/core.telegram.org/method/stats.getMegagroupStats new file mode 100644 index 0000000000..8df2f8d812 --- /dev/null +++ b/data/core.telegram.org/method/stats.getMegagroupStats @@ -0,0 +1,165 @@ + + + + + stats.getMegagroupStats + + + + + + + + + + + + + +
+ +
+
+
+ +

stats.getMegagroupStats

+ +

Get supergroup statistics

+

+
stats.megagroupStats#ef7ff916 period:StatsDateRangeDays members:StatsAbsValueAndPrev messages:StatsAbsValueAndPrev viewers:StatsAbsValueAndPrev posters:StatsAbsValueAndPrev growth_graph:StatsGraph members_graph:StatsGraph new_members_by_source_graph:StatsGraph languages_graph:StatsGraph messages_graph:StatsGraph actions_graph:StatsGraph top_hours_graph:StatsGraph weekdays_graph:StatsGraph top_posters:Vector<StatsGroupTopPoster> top_admins:Vector<StatsGroupTopAdmin> top_inviters:Vector<StatsGroupTopInviter> users:Vector<User> = stats.MegagroupStats;
+---functions---
+stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel = stats.MegagroupStats;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
darkflags.0?trueWhether to enable dark theme for graph colors
channelInputChannelSupergroup ID
+

Result

+

stats.MegagroupStats

+

Bots can use this method

+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/stats.getMessagePublicForwards b/data/core.telegram.org/method/stats.getMessagePublicForwards new file mode 100644 index 0000000000..7608717c0f --- /dev/null +++ b/data/core.telegram.org/method/stats.getMessagePublicForwards @@ -0,0 +1,208 @@ + + + + + stats.getMessagePublicForwards + + + + + + + + + + + + + +
+ +
+
+
+ +

stats.getMessagePublicForwards

+ +

Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
+Will return a list of messages with peer_id equal to the public channel to which this message was forwarded.

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannelSource channel
msg_idintSource message ID
offset_rateintInitially 0, then set to the next_rate parameter of messages.messagesSlice
offset_peerInputPeerOffsets for pagination, for more info click here
offset_idintOffsets for pagination, for more info click here
limitintMaximum number of results to return, see pagination
+

Result

+

messages.Messages

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400MESSAGE_ID_INVALIDThe provided message id is invalid
+

Bots can use this method

+

Related pages

+

messages.messagesSlice

+

Incomplete list of messages and auxiliary data.

+

Pagination in the API

+

How to fetch results from large lists of objects.

+

message

+

A message

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/stats.getMessageStats b/data/core.telegram.org/method/stats.getMessageStats new file mode 100644 index 0000000000..c31a7fa6dd --- /dev/null +++ b/data/core.telegram.org/method/stats.getMessageStats @@ -0,0 +1,185 @@ + + + + + stats.getMessageStats + + + + + + + + + + + + + +
+ +
+
+
+ +

stats.getMessageStats

+ +

Get message statistics

+

+
stats.messageStats#8999f295 views_graph:StatsGraph = stats.MessageStats;
+---functions---
+stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
darkflags.0?trueWhether to enable dark theme for graph colors
channelInputChannelChannel ID
msg_idintMessage ID
+

Result

+

stats.MessageStats

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this
+

Bots can use this method

+

Related pages

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/stats.loadAsyncGraph b/data/core.telegram.org/method/stats.loadAsyncGraph new file mode 100644 index 0000000000..80ef1e608e --- /dev/null +++ b/data/core.telegram.org/method/stats.loadAsyncGraph @@ -0,0 +1,188 @@ + + + + + stats.loadAsyncGraph + + + + + + + + + + + + + +
+ +
+
+
+ +

stats.loadAsyncGraph

+ +

Load channel statistics graph asynchronously

+

+
statsGraphAsync#4a27eb2d token:string = StatsGraph;
+statsGraphError#bedc9822 error:string = StatsGraph;
+statsGraph#8ea464b6 flags:# json:DataJSON zoom_token:flags.0?string = StatsGraph;
+---functions---
+stats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
tokenstringGraph token from statsGraphAsync constructor
xflags.0?longZoom value, if required
+

Result

+

StatsGraph

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400GRAPH_INVALID_RELOADInvalid graph token provided, please reload the stats and provide the updated token
400GRAPH_OUTDATED_RELOADThe graph is outdated, please get a new async token using stats.getBroadcastStats
+

Related pages

+

statsGraphAsync

+

This channel statistics graph must be generated asynchronously using stats.loadAsyncGraph to reduce server load

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/stickers.addStickerToSet b/data/core.telegram.org/method/stickers.addStickerToSet new file mode 100644 index 0000000000..fe62614553 --- /dev/null +++ b/data/core.telegram.org/method/stickers.addStickerToSet @@ -0,0 +1,177 @@ + + + + + stickers.addStickerToSet + + + + + + + + + + + + + +
+ +
+
+
+ +

stickers.addStickerToSet

+ +

Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.

+

+
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
+---functions---
+stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
stickersetInputStickerSetThe stickerset
stickerInputStickerSetItemThe sticker
+

Result

+

messages.StickerSet

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BOT_MISSINGThis method can only be run by a bot
400STICKERSET_INVALIDThe provided sticker set is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/stickers.changeStickerPosition b/data/core.telegram.org/method/stickers.changeStickerPosition new file mode 100644 index 0000000000..0a4d277018 --- /dev/null +++ b/data/core.telegram.org/method/stickers.changeStickerPosition @@ -0,0 +1,177 @@ + + + + + stickers.changeStickerPosition + + + + + + + + + + + + + +
+ +
+
+
+ +

stickers.changeStickerPosition

+ +

Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot

+

+
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
+---functions---
+stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
stickerInputDocumentThe sticker
positionintThe new position of the sticker, zero-based
+

Result

+

messages.StickerSet

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BOT_MISSINGThis method can only be run by a bot
400STICKER_INVALIDThe provided sticker is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/stickers.createStickerSet b/data/core.telegram.org/method/stickers.createStickerSet new file mode 100644 index 0000000000..f2fb90e440 --- /dev/null +++ b/data/core.telegram.org/method/stickers.createStickerSet @@ -0,0 +1,257 @@ + + + + + stickers.createStickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

stickers.createStickerSet

+ +

Create a stickerset, bots only.

+

+
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
+---functions---
+stickers.createStickerSet#f1036780 flags:# masks:flags.0?true animated:flags.1?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> = messages.StickerSet;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
masksflags.0?trueWhether this is a mask stickerset
animatedflags.1?trueWhether this is an animated stickerset
user_idInputUserStickerset owner
titlestringStickerset name, 1-64 chars
short_namestringSticker set name. Can contain only English letters, digits and underscores. Must end with "by" ( is case insensitive); 1-64 characters
thumbflags.2?InputDocumentThumbnail
stickersVector<InputStickerSetItem>Stickers
+

Result

+

messages.StickerSet

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BOT_MISSINGThis method can only be run by a bot
400PACK_SHORT_NAME_INVALIDShort pack name invalid
400PACK_SHORT_NAME_OCCUPIEDA stickerpack with this name already exists
400PACK_TITLE_INVALIDThe stickerpack title is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
400SHORTNAME_OCCUPY_FAILEDAn internal error occurred
400STICKERS_EMPTYNo sticker provided
400STICKER_EMOJI_INVALIDSticker emoji invalid
400STICKER_FILE_INVALIDSticker file invalid
400STICKER_PNG_DIMENSIONSSticker png dimensions invalid
400STICKER_PNG_NOPNGOne of the specified stickers is not a valid PNG file
400USER_ID_INVALIDThe provided user ID is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/stickers.removeStickerFromSet b/data/core.telegram.org/method/stickers.removeStickerFromSet new file mode 100644 index 0000000000..af186e28a5 --- /dev/null +++ b/data/core.telegram.org/method/stickers.removeStickerFromSet @@ -0,0 +1,172 @@ + + + + + stickers.removeStickerFromSet + + + + + + + + + + + + + +
+ +
+
+
+ +

stickers.removeStickerFromSet

+ +

Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.

+

+
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
+---functions---
+stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
stickerInputDocumentThe sticker to remove
+

Result

+

messages.StickerSet

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400BOT_MISSINGThis method can only be run by a bot
400STICKER_INVALIDThe provided sticker is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/stickers.setStickerSetThumb b/data/core.telegram.org/method/stickers.setStickerSetThumb new file mode 100644 index 0000000000..e606e1126b --- /dev/null +++ b/data/core.telegram.org/method/stickers.setStickerSetThumb @@ -0,0 +1,172 @@ + + + + + stickers.setStickerSetThumb + + + + + + + + + + + + + +
+ +
+
+
+ +

stickers.setStickerSetThumb

+ +

Set stickerset thumbnail

+

+
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
+---functions---
+stickers.setStickerSetThumb#9a364e30 stickerset:InputStickerSet thumb:InputDocument = messages.StickerSet;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
stickersetInputStickerSetStickerset
thumbInputDocumentThumbnail
+

Result

+

messages.StickerSet

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400STICKERSET_INVALIDThe provided sticker set is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/updates.getChannelDifference b/data/core.telegram.org/method/updates.getChannelDifference new file mode 100644 index 0000000000..8ed2f6cfeb --- /dev/null +++ b/data/core.telegram.org/method/updates.getChannelDifference @@ -0,0 +1,237 @@ + + + + + updates.getChannelDifference + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.getChannelDifference

+ +

Returns the difference between the current state of updates of a certain channel and transmitted.

+

+
updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference;
+updates.channelDifferenceTooLong#a4bcc6fe flags:# final:flags.0?true timeout:flags.1?int dialog:Dialog messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference;
+updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector<Message> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference;
+---functions---
+updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
forceflags.0?trueSet to true to skip some possibly unneeded updates and reduce server-side load
channelInputChannelThe channel
filterChannelMessagesFilterMesssage filter
ptsintPersistent timestamp (see updates)
limitintHow many updates to fetch, max 100000
Ordinary (non-bot) users are supposed to pass 10-100
+

Result

+

updates.ChannelDifference

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
403CHANNEL_PUBLIC_GROUP_NAchannel/supergroup not available
400FROM_MESSAGE_BOT_DISABLEDBots can't use fromMessage min constructors
400MSG_ID_INVALIDInvalid message ID provided
400PERSISTENT_TIMESTAMP_EMPTYPersistent timestamp empty
400PERSISTENT_TIMESTAMP_INVALIDPersistent timestamp invalid
400PINNED_DIALOGS_TOO_MUCHToo many pinned dialogs
400RANGES_INVALIDInvalid range provided
+

Bots can use this method

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/updates.getDifference b/data/core.telegram.org/method/updates.getDifference new file mode 100644 index 0000000000..65dd64cdca --- /dev/null +++ b/data/core.telegram.org/method/updates.getDifference @@ -0,0 +1,215 @@ + + + + + updates.getDifference + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.getDifference

+ +

Get new updates.

+

+
updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference;
+updates.difference#f49ca0 new_messages:Vector<Message> new_encrypted_messages:Vector<EncryptedMessage> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> state:updates.State = updates.Difference;
+updates.differenceSlice#a8fb1981 new_messages:Vector<Message> new_encrypted_messages:Vector<EncryptedMessage> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> intermediate_state:updates.State = updates.Difference;
+updates.differenceTooLong#4afe8f6d pts:int = updates.Difference;
+---functions---
+updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
ptsintPTS, see updates.
pts_total_limitflags.0?intFor fast updating: if provided and pts + pts_total_limit < remote pts, updates.differenceTooLong will be returned.
Simply tells the server to not return the difference if it is bigger than pts_total_limit
If the remote pts is too big (> ~4000000), this field will default to 1000000
dateintdate, see updates.
qtsintQTS, see updates.
+

Result

+

updates.Difference

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
401AUTH_KEY_PERM_EMPTYThe temporary auth key must be binded to the permanent auth key to use these methods.
400CDN_METHOD_INVALIDYou can't call this method in a CDN DC
400DATE_EMPTYDate empty
400PERSISTENT_TIMESTAMP_EMPTYPersistent timestamp empty
400PERSISTENT_TIMESTAMP_INVALIDPersistent timestamp invalid
+

Bots can use this method

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

updates.differenceTooLong

+

The difference is too long, and the specified state must be used to refetch updates.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/updates.getState b/data/core.telegram.org/method/updates.getState new file mode 100644 index 0000000000..8993d80a5b --- /dev/null +++ b/data/core.telegram.org/method/updates.getState @@ -0,0 +1,135 @@ + + + + + updates.getState + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.getState

+ +

Returns a current state of updates.

+

+
updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State;
+---functions---
+updates.getState#edd4882a = updates.State;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

updates.State

+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/upload.getCdnFile b/data/core.telegram.org/method/upload.getCdnFile new file mode 100644 index 0000000000..73a2330b24 --- /dev/null +++ b/data/core.telegram.org/method/upload.getCdnFile @@ -0,0 +1,162 @@ + + + + + upload.getCdnFile + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.getCdnFile

+ +

Download a CDN file.

+

+
upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile;
+upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile;
+---functions---
+upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
file_tokenbytesFile token
offsetintOffset of chunk to download
limitintLength of chunk to download
+

Result

+

upload.CdnFile

+

Related pages

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/upload.getCdnFileHashes b/data/core.telegram.org/method/upload.getCdnFileHashes new file mode 100644 index 0000000000..a1e3ce15eb --- /dev/null +++ b/data/core.telegram.org/method/upload.getCdnFileHashes @@ -0,0 +1,178 @@ + + + + + upload.getCdnFileHashes + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.getCdnFileHashes

+ +

Get SHA256 hashes for verifying downloaded CDN files

+

+
---functions---
+upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector<FileHash>;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
file_tokenbytesFile
offsetintOffset from which to start getting hashes
+

Result

+

Vector<FileHash>

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CDN_METHOD_INVALIDYou can't call this method in a CDN DC
400RSA_DECRYPT_FAILEDInternal RSA decryption failed
+

Bots can use this method

+

Related pages

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/upload.getFile b/data/core.telegram.org/method/upload.getFile new file mode 100644 index 0000000000..b58ae34eab --- /dev/null +++ b/data/core.telegram.org/method/upload.getFile @@ -0,0 +1,252 @@ + + + + + upload.getFile + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.getFile

+ +

Returns content of a whole file or its part.

+

+
upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File;
+upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector<FileHash> = upload.File;
+---functions---
+upload.getFile#b15a9afc flags:# precise:flags.0?true cdn_supported:flags.1?true location:InputFileLocation offset:int limit:int = upload.File;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
preciseflags.0?trueDisable some checks on limit and offset values, useful for example to stream videos by keyframes
cdn_supportedflags.1?trueWhether the current client supports CDN downloads
locationInputFileLocationFile location
offsetintNumber of bytes to be skipped
limitintNumber of bytes to be returned
+

Result

+

upload.File

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
401AUTH_KEY_PERM_EMPTYThe temporary auth key must be binded to the permanent auth key to use these methods.
400CHANNEL_INVALIDThe provided channel is invalid
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
406FILEREF_UPGRADE_NEEDEDThe client has to be updated in order to support file references
400FILE_ID_INVALIDThe provided file id is invalid
400FILE_REFERENCE_*The file reference expired, it must be refreshed
400FILE_REFERENCE_EXPIREDFile reference expired, it must be refetched as described in https://core.telegram.org/api/file_reference
400LIMIT_INVALIDThe provided limit is invalid
400LOCATION_INVALIDThe provided location is invalid
400MSG_ID_INVALIDInvalid message ID provided
400OFFSET_INVALIDThe provided offset is invalid
400PEER_ID_INVALIDThe provided peer id is invalid
+

Bots can use this method

+

Related pages

+

Encrypted CDNs for Speed and Security

+

File references

+

How to handle file references.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/upload.getFileHashes b/data/core.telegram.org/method/upload.getFileHashes new file mode 100644 index 0000000000..cf307f9316 --- /dev/null +++ b/data/core.telegram.org/method/upload.getFileHashes @@ -0,0 +1,171 @@ + + + + + upload.getFileHashes + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.getFileHashes

+ +

Get SHA256 hashes for verifying downloaded files

+

+
---functions---
+upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector<FileHash>;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
locationInputFileLocationFile
offsetintOffset from which to get file hashes
+

Result

+

Vector<FileHash>

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400LOCATION_INVALIDThe provided location is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/upload.getWebFile b/data/core.telegram.org/method/upload.getWebFile new file mode 100644 index 0000000000..5de40c121c --- /dev/null +++ b/data/core.telegram.org/method/upload.getWebFile @@ -0,0 +1,176 @@ + + + + + upload.getWebfile + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.getWebfile

+ +

Returns content of an HTTP file or a part, by proxying the request through telegram.

+

+
upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile;
+---functions---
+upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
locationInputWebFileLocationThe file to download
offsetintNumber of bytes to be skipped
limitintNumber of bytes to be returned
+

Result

+

upload.WebFile

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400LOCATION_INVALIDThe provided location is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/upload.reuploadCdnFile b/data/core.telegram.org/method/upload.reuploadCdnFile new file mode 100644 index 0000000000..caec7beb1a --- /dev/null +++ b/data/core.telegram.org/method/upload.reuploadCdnFile @@ -0,0 +1,173 @@ + + + + + upload.reuploadCdnFile + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.reuploadCdnFile

+ +

Request a reupload of a certain file to a CDN DC.

+

+
---functions---
+upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector<FileHash>;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
file_tokenbytesFile token
request_tokenbytesRequest token
+

Result

+

Vector<FileHash>

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400RSA_DECRYPT_FAILEDInternal RSA decryption failed
+

Bots can use this method

+

Related pages

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/upload.saveBigFilePart b/data/core.telegram.org/method/upload.saveBigFilePart new file mode 100644 index 0000000000..f004308d20 --- /dev/null +++ b/data/core.telegram.org/method/upload.saveBigFilePart @@ -0,0 +1,208 @@ + + + + + upload.saveBigFilePart + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.saveBigFilePart

+ +

Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
file_idlongRandom file id, created by the client
file_partintPart sequence number
file_total_partsintTotal number of parts
bytesbytesBinary data, part contents
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400FILE_PARTS_INVALIDThe number of file parts is invalid
400FILE_PART_EMPTYThe provided file part is empty
400FILE_PART_INVALIDThe file part number is invalid
400FILE_PART_SIZE_CHANGEDProvided file part size has changed
400FILE_PART_SIZE_INVALIDThe provided file part size is invalid
400FILE_PART_TOO_BIGThe uploaded file part is too big
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/upload.saveFilePart b/data/core.telegram.org/method/upload.saveFilePart new file mode 100644 index 0000000000..d3f316a9aa --- /dev/null +++ b/data/core.telegram.org/method/upload.saveFilePart @@ -0,0 +1,183 @@ + + + + + upload.saveFilePart + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.saveFilePart

+ +

Saves a part of file for futher sending to one of the methods.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
file_idlongRandom file identifier created by the client
file_partintNumerical order of a part
bytesbytesBinary data, contend of a part
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400FILE_PART_EMPTYThe provided file part is empty
400FILE_PART_INVALIDThe file part number is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/users.getFullUser b/data/core.telegram.org/method/users.getFullUser new file mode 100644 index 0000000000..030da6d388 --- /dev/null +++ b/data/core.telegram.org/method/users.getFullUser @@ -0,0 +1,177 @@ + + + + + users.getFullUser + + + + + + + + + + + + + +
+ +
+
+
+ +

users.getFullUser

+ +

Returns extended user info by ID.

+

+
userFull#edf17c12 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true user:User about:flags.1?string settings:PeerSettings profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int = UserFull;
+---functions---
+users.getFullUser#ca30a5b1 id:InputUser = UserFull;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idInputUserUser ID
+

Result

+

Returns a UserFull object containing user info.

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400MSG_ID_INVALIDInvalid message ID provided
400USER_ID_INVALIDThe provided user ID is invalid
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/users.getUsers b/data/core.telegram.org/method/users.getUsers new file mode 100644 index 0000000000..e7c8aaec4b --- /dev/null +++ b/data/core.telegram.org/method/users.getUsers @@ -0,0 +1,186 @@ + + + + + users.getUsers + + + + + + + + + + + + + +
+ +
+
+
+ +

users.getUsers

+ +

Returns basic user info according to their identifiers.

+

+
---functions---
+users.getUsers#d91a548 id:Vector<InputUser> = Vector<User>;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idVector<InputUser>List of user identifiers
+

Result

+

Vector<User>

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
401AUTH_KEY_PERM_EMPTYThe temporary auth key must be binded to the permanent auth key to use these methods.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup
400CONNECTION_NOT_INITEDConnection not initialized
400INPUT_LAYER_INVALIDThe provided layer is invalid
400MSG_ID_INVALIDInvalid message ID provided
+

Bots can use this method

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/users.setSecureValueErrors b/data/core.telegram.org/method/users.setSecureValueErrors new file mode 100644 index 0000000000..2651346e96 --- /dev/null +++ b/data/core.telegram.org/method/users.setSecureValueErrors @@ -0,0 +1,176 @@ + + + + + users.setSecureValueErrors + + + + + + + + + + + + + +
+ +
+
+
+ +

users.setSecureValueErrors

+ +

Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).

+

Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector<SecureValueError> = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idInputUserThe user
errorsVector<SecureValueError>Errors
+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400USER_ID_INVALIDThe provided user ID is invalid
+

Bots can use this method

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/mtproto/mtproto-transports.html b/data/core.telegram.org/mtproto/mtproto-transports.html new file mode 100644 index 0000000000..ce1c53bcb7 --- /dev/null +++ b/data/core.telegram.org/mtproto/mtproto-transports.html @@ -0,0 +1,293 @@ + + + + + MTProto transports + + + + + + + + + + + + + +
+ +
+
+
+ +

MTProto transports

+ +
+ +

Here's a list of MTProto transport protocols (see the ISO/OSI recap for a full explanation):

+ +

The server recognizes these different protocols (and distinguishes them from HTTP, too) by the header. +Additionally, the following transport features can be used:

+ +

Example implementations for these protocols can be seen in tdlib and MadelineProto.

+

Abridged

+

The lightest protocol available.

+
    +
  • Overhead: Very small
  • +
  • Minimum envelope length: 1 byte
  • +
  • Maximum envelope length: 4 bytes
  • +
+

Payload structure:

+
+-+----...----+
+|l|  payload  |
++-+----...----+
+OR
+
++-+---+----...----+
+|h|len|  payload  +
++-+---+----...----+
+

Before sending anything into the underlying socket (see transports), the client must first send 0xef as the first byte (the server will not send 0xef as the first byte in the first reply).
+Then, payloads are wrapped in the following envelope:

+
    +
  • Length: payload length, divided by four, and encoded as a single byte, only if the resulting packet length is a value between 0x01..0x7e.
  • +
  • Payload: the MTProto payload
  • +
+

If the packet length divided by four is bigger than or equal to 127 (>= 0x7f), the following envelope must be used, instead:

+
    +
  • Header: A single byte of value 0x7f
  • +
  • Length: payload length, divided by four, and encoded as 3 length bytes (little endian)
  • +
  • Payload: the MTProto payload
  • +
+

Intermediate

+

In case 4-byte data alignment is needed, an intermediate version of the original protocol may be used.

+
    +
  • Overhead: small
  • +
  • Minimum envelope length: 4 bytes
  • +
  • Maximum envelope length: 4 bytes
  • +
+

Payload structure:

+
+----+----...----+
++len.+  payload  +
++----+----...----+
+

Before sending anything into the underlying socket (see transports), the client must first send 0xeeeeeeee as the first int (four bytes, the server will not send 0xeeeeeeee as the first int in the first reply).
+Then, payloads are wrapped in the following envelope:

+
    +
  • Length: payload length encoded as 4 length bytes (little endian)
  • +
  • Payload: the MTProto payload
  • +
+

Padded intermediate

+

Padded version of the intermediate protocol, to use with obfuscation enabled to bypass ISP blocks.

+
    +
  • Overhead: small-medium
  • +
  • Minimum envelope length: random
  • +
  • Maximum envelope length: random
  • +
+

Before sending anything into the underlying socket (see transports), the client must first send 0xdddddddd as the first int (four bytes, the server will not send 0xdddddddd as the first int in the first reply).
+Then, payloads are wrapped in the following envelope:

+
+----+----...----+----...----+
+|tlen|  payload  |  padding  |
++----+----...----+----...----+
+

Envelope description:

+
    +
  • Total length: payload+padding length encoded as 4 length bytes (little endian)
  • +
  • Payload: the MTProto payload
  • +
  • Padding: A random padding string of length 0-15
  • +
+

Full

+

The basic MTProto transport protocol

+
    +
  • Overhead: medium
  • +
  • Minimum envelope length: 12 bytes (length+seqno+crc)
  • +
  • Maximum envelope length: 12 bytes (length+seqno+crc)
  • +
+

Payload structure:

+
+----+----+----...----+----+
+|len.|seq.|  payload  |crc.|
++----+----+----...----+----+
+

Envelope description:

+
    +
  • Length: length+seqno+payload+crc length encoded as 4 length bytes (little endian, the length of the length field must be included, too)
  • +
  • Seqno: the TCP sequence number for this TCP connection (different from the MTProto sequence number): the first packet sent is numbered 0, the next one 1, etc.
  • +
  • payload: MTProto payload
  • +
  • crc: 4 CRC32 bytes computed using length, sequence number, and payload together.
  • +
+

Transport features

+

Additionally, the following transport features can be used:

+

Quick ack

+

These MTProto transport protocols have support for quick acknowledgment. +In this case, the client sets the highest-order length bit in the query packet, and the server responds with a special 4 bytes as a separate packet. +They are the 32 higher-order bits of SHA256 of the encrypted portion of the packet prepended by 32 bytes from the authorization key (the same hash as computed for verifying the message key), with the most significant bit set to make clear that this is not the length of a regular server response packet; if the abridged version is used, bswap is applied to these four bytes.

+

Transport errors

+

In the event of a transport error (missing auth key, transport flood, etc.), the server may send a packet with a signed little-endian number of 4 bytes, whose absolute value contains the error code (the error itself is actually negative).

+

For example, error Code 403 corresponds to situations where the corresponding HTTP error would have been returned by the HTTP protocol.

+

Error 404 (auth key not found) is returned when the specified auth key ID cannot be found by the DC.

+

Error 429 (transport flood) is returned when too many transport connections are established to the same IP in a too short lapse of time, or if any of the container/service message limits are reached.

+

Transport obfuscation

+

Transport obfuscation is required to use the websocket transports.

+

Transport obfuscation to prevent ISP blocks is implemented using the following protocol, situated under the MTProto transport in the ISO/OSI stack, see the recap; this means that the payload is first wrapped in the MTProto transport envelope (all transports are supported), and then obfuscated:

+

Prior to establishing the connection (and eventually sending the protocol header of a specific MTProto transport), a 64-byte (512-bit) random initialization payload is generated. +During the generation process, special care must be taken in order to avoid a situation where that the first int (first four bytes) of the random string are equal to one of the known protocol identifiers (see above).
+In particular, the first four bytes must not be equal to 0xdddddddd (padded intermediate), 0xeeeeeeee (intermediate), POST, GET, HEAD, or any of the HTTP methods that are accepted by the MTProto servers.
+The first byte must also not be equal to 0xef (abridged). +Bytes 4-8 must also not be equal to 0x00000000, since that would indicate use of the full transport with the initial TCP sequence number (0).

+

The protocol identifier, if present, must be inserted in the initialization payload at byte offset 56: if its length is less than 4, it must be padded using the protocol identifier itself, to make its length 4 (0xef => 0xefefefef): the standalone protocol identifier must be not be sent aftwerwards.

+

This protocol is also (but not exclusively) used when connecting to MTProxies: only in this case, the DC ID in a specially encoded form must also be inserted in the initialization payload at offset 60. +The encoding simply consist of the DC ID in two-byte signed little-endian form; 10000 has to be added to the DC ID to connect to the test servers; it has to be made negative if the DC we're connecting to is a media (not CDN) DC.

+

Next, a secondary initialization payload is generated by reversing the primary intialization payload.

+

Two keys are extracted from both initialization payloads, using bytes at offsets 8-40: the key extracted from the primary payload is used as encryption key, the key extracted from the secondary payload is used as decryption key.

+

Two IVs are extracted from both initialization payloads, using bytes at offsets 40-56: the IV extracted from the primary payload is used as encryption IV, the IV extracted from the secondary payload is used as decryption IV.

+

Only if using MTProxy, the secret is used to provide connection with the MTProxy server. +The secret is a 16-byte string, usually distributed in its hexadecimal form along with the MTProxy host and port.

+

Often, a 17-byte version of the secret can be found: this simply indicates that the client should use a specific MTProto transport (based on the first byte, usually it's 0xdd, to indicate that the padded intermediate protocol should be used 0xdddddddd; however, clients should default to the padded intermediate transport whenever an additional byte in the secret is encountered).

+

The extracted encryption and decryption keys must be concatenated with the secret (the first byte of which should be ignored if it's the 17-byte version), and the SHA256 hash of such string should be used as encryption/decryption key.

+

The obtained encryption and decryption key/IV pairs must then be used with AES-256-CTR to encrypt and decrypt all outgoing and incoming payloads.

+

The first thing that must be encrypted using the encryption key is the initialization payload itself. +Then bytes 56-64 of the encrypted initialization payload are substituted in the original initialization payload: this is the part that contains the constant MTProto transport protocol identifier and the DC ID (only for MTProxies).

+

The final initialization payload must then be sent in the socket as first 64 bytes after the TCP handshake.

+

Example pseudocode for the generation of an MTProxy connection payload (media DC 4) using the obfuscated padded intermediate transport. +Warning: do not use the specified proxy secret in any MTProxy exposed on the internet.

+
protocol := 0xdddddddd
+dc := 0xfcff
+
+while 1:
+    init := (56 random bytes) + protocol + dc + (2 random bytes)
+
+    if init[0] == 0xef:
+      continue
+
+    first_int := substr(init, 0, 4)
+    if first_int == 0x44414548 || first_int == 0x54534f50 || first_int == 0x20544547 || first_int == 0x4954504f || first_int == 0x02010316 || first_int == 0xdddddddd || first_int == 0xeeeeeeee:
+      continue
+
+    second_int := substr(init, 0, 4)
+    if second_int == 0x00000000:
+      continue
+
+    break
+
+initRev := strrev(init)
+
+encryptKey := substr(init, 8, 32)
+encryptIV := substr(init, 40, 16)
+
+decryptKey := substr(initRev, 8, 32)
+decryptIV := substr(initRev, 40, 16)
+
+secret := substr(0xdd99999999999999999999999999999999, 1, 16)
+
+encryptKey = SHA256(encryptKey + secret)
+decryptKey = SHA256(decryptKey + secret)
+
+encryptedInit := CTR(encryptKey, encryptIV, init)
+
+finalInit := substr(init, 0, 56) + substr(encryptedInit, 56, 8)
+
+write(finalInit)
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/core.telegram.org/type/AccountDaysTTL.html b/data/core.telegram.org/type/AccountDaysTTL.html new file mode 100644 index 0000000000..f8328db941 --- /dev/null +++ b/data/core.telegram.org/type/AccountDaysTTL.html @@ -0,0 +1,162 @@ + + + + + AccountDaysTTL + + + + + + + + + + + + + +
+ +
+
+
+ +

AccountDaysTTL

+ +

Time-to-live of current account

+

+
accountDaysTTL#b8d0afdf days:int = AccountDaysTTL;
+
+---functions---
+
+account.getAccountTTL#8fc711d = AccountDaysTTL;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
accountDaysTTLTime to live in days of the current account
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getAccountTTLGet days to live of account
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Audio.html b/data/core.telegram.org/type/Audio.html new file mode 100644 index 0000000000..07852bed3d --- /dev/null +++ b/data/core.telegram.org/type/Audio.html @@ -0,0 +1,128 @@ + + + + + Audio + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/Authorization.html b/data/core.telegram.org/type/Authorization.html new file mode 100644 index 0000000000..fa7ec2e7b9 --- /dev/null +++ b/data/core.telegram.org/type/Authorization.html @@ -0,0 +1,162 @@ + + + + + Authorization + + + + + + + + + + + + + +
+ +
+
+
+ +

Authorization

+ +

Represents a logged-in session

+

+
authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization;
+
+---functions---
+
+auth.acceptLoginToken#e894ad4d token:bytes = Authorization;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
authorizationLogged-in session
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
auth.acceptLoginTokenLogin via QR code
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/AutoDownloadSettings.html b/data/core.telegram.org/type/AutoDownloadSettings.html new file mode 100644 index 0000000000..58de91de49 --- /dev/null +++ b/data/core.telegram.org/type/AutoDownloadSettings.html @@ -0,0 +1,143 @@ + + + + + AutoDownloadSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

AutoDownloadSettings

+ +

Media autodownload settings

+

+
autoDownloadSettings#e04232f3 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true photo_size_max:int video_size_max:int file_size_max:int video_upload_maxbitrate:int = AutoDownloadSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
autoDownloadSettingsAutodownload settings
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/BankCardOpenUrl.html b/data/core.telegram.org/type/BankCardOpenUrl.html new file mode 100644 index 0000000000..545940daf3 --- /dev/null +++ b/data/core.telegram.org/type/BankCardOpenUrl.html @@ -0,0 +1,143 @@ + + + + + BankCardOpenUrl + + + + + + + + + + + + + +
+ +
+
+
+ +

BankCardOpenUrl

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/BaseTheme.html b/data/core.telegram.org/type/BaseTheme.html new file mode 100644 index 0000000000..5edb18ae5b --- /dev/null +++ b/data/core.telegram.org/type/BaseTheme.html @@ -0,0 +1,163 @@ + + + + + BaseTheme + + + + + + + + + + + + + +
+ +
+
+
+ +

BaseTheme

+ +

Basic theme settings

+

+
baseThemeClassic#c3a12462 = BaseTheme;
+baseThemeDay#fbd81688 = BaseTheme;
+baseThemeNight#b7b31ea8 = BaseTheme;
+baseThemeTinted#6d5f77ee = BaseTheme;
+baseThemeArctic#5b11125a = BaseTheme;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
baseThemeClassicClassic theme
baseThemeDayDay theme
baseThemeNightNight theme
baseThemeTintedTinted theme
baseThemeArcticArctic theme
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Bool.html b/data/core.telegram.org/type/Bool.html new file mode 100644 index 0000000000..482c5eb654 --- /dev/null +++ b/data/core.telegram.org/type/Bool.html @@ -0,0 +1,662 @@ + + + + + Bool + + + + + + + + + + + + + +
+ +
+
+
+ +

Bool

+ +

Boolean type.

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+
+---functions---
+
+auth.logOut#5717da40 = Bool;
+auth.resetAuthorizations#9fab0d1a = Bool;
+auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool;
+auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool;
+auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector<long> = Bool;
+
+account.registerDevice#68976c6f flags:# no_muted:flags.0?true token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector<int> = Bool;
+account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector<int> = Bool;
+account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool;
+account.resetNotifySettings#db7e1747 = Bool;
+account.updateStatus#6628562c offline:Bool = Bool;
+account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool;
+account.checkUsername#2714d86c username:string = Bool;
+account.deleteAccount#418d4e0b reason:string = Bool;
+account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool;
+account.updateDeviceLocked#38df3532 period:int = Bool;
+account.resetAuthorization#df77f3bc hash:long = Bool;
+account.updatePasswordSettings#a59b102f password:InputCheckPasswordSRP new_settings:account.PasswordInputSettings = Bool;
+account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool;
+account.resetWebAuthorization#2d01b9ef hash:long = Bool;
+account.resetWebAuthorizations#682d2594 = Bool;
+account.deleteSecureValue#b880bc4b types:Vector<SecureValueType> = Bool;
+account.acceptAuthorization#e7027c94 bot_id:int scope:string public_key:string value_hashes:Vector<SecureValueHash> credentials:SecureCredentialsEncrypted = Bool;
+account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool;
+account.verifyEmail#ecba39db email:string code:string = Bool;
+account.finishTakeoutSession#1d2652ee flags:# success:flags.0?true = Bool;
+account.confirmPasswordEmail#8fdf1920 code:string = Bool;
+account.resendPasswordEmail#7a7f2a15 = Bool;
+account.cancelPasswordEmail#c1cbd5b6 = Bool;
+account.getContactSignUpNotification#9f07c728 = Bool;
+account.setContactSignUpNotification#cff43f61 silent:Bool = Bool;
+account.saveWallPaper#6c5a5b37 wallpaper:InputWallPaper unsave:Bool settings:WallPaperSettings = Bool;
+account.installWallPaper#feed5769 wallpaper:InputWallPaper settings:WallPaperSettings = Bool;
+account.resetWallPapers#bb3b9804 = Bool;
+account.saveAutoDownloadSettings#76f36233 flags:# low:flags.0?true high:flags.1?true settings:AutoDownloadSettings = Bool;
+account.saveTheme#f257106c theme:InputTheme unsave:Bool = Bool;
+account.installTheme#7ae43737 flags:# dark:flags.0?true format:flags.1?string theme:flags.1?InputTheme = Bool;
+account.setContentSettings#b574b16b flags:# sensitive_enabled:flags.0?true = Bool;
+
+contacts.deleteByPhones#1013fd9e phones:Vector<string> = Bool;
+contacts.block#68cc1411 id:InputPeer = Bool;
+contacts.unblock#bea65d50 id:InputPeer = Bool;
+contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool;
+contacts.resetSaved#879537f1 = Bool;
+contacts.toggleTopPeers#8514bdda enabled:Bool = Bool;
+
+messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool;
+messages.reportSpam#cf1592db peer:InputPeer = Bool;
+messages.report#bd82b658 peer:InputPeer id:Vector<int> reason:ReportReason = Bool;
+messages.discardEncryption#edd923c5 chat_id:int = Bool;
+messages.setEncryptedTyping#791451ed peer:InputEncryptedChat typing:Bool = Bool;
+messages.readEncryptedHistory#7f4b690a peer:InputEncryptedChat max_date:int = Bool;
+messages.reportEncryptedSpam#4b0c8c0f peer:InputEncryptedChat = Bool;
+messages.uninstallStickerSet#f96e55de stickerset:InputStickerSet = Bool;
+messages.editChatAdmin#a9e69f2e chat_id:int user_id:InputUser is_admin:Bool = Bool;
+messages.reorderStickerSets#78337739 flags:# masks:flags.0?true order:Vector<long> = Bool;
+messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool;
+messages.setInlineBotResults#eb5ea206 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 = Bool;
+messages.editInlineBotMessage#83557dba flags:# no_webpage:flags.1?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = Bool;
+messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool;
+messages.saveDraft#bc39e14b flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int peer:InputPeer message:string entities:flags.3?Vector<MessageEntity> = Bool;
+messages.readFeaturedStickers#5b118126 id:Vector<long> = Bool;
+messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool;
+messages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool;
+messages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:flags.1?true id:InputBotInlineMessageID user_id:InputUser score:int = Bool;
+messages.toggleDialogPin#a731e257 flags:# pinned:flags.0?true peer:InputDialogPeer = Bool;
+messages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int order:Vector<InputDialogPeer> = Bool;
+messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = Bool;
+messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool;
+messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool;
+messages.markDialogUnread#c286d98f flags:# unread:flags.0?true peer:InputDialogPeer = Bool;
+messages.clearAllDrafts#7e58ee9c = Bool;
+messages.editChatAbout#def60797 peer:InputPeer about:string = Bool;
+messages.hidePeerSettingsBar#4facb138 peer:InputPeer = Bool;
+messages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector<InputStickerSet> = Bool;
+messages.updateDialogFilter#1ad4a04a flags:# id:int filter:flags.0?DialogFilter = Bool;
+messages.updateDialogFiltersOrder#c563c1e4 order:Vector<int> = Bool;
+messages.readDiscussion#f731a9f4 peer:InputPeer msg_id:int read_max_id:int = Bool;
+
+upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool;
+upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool;
+
+channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool;
+channels.reportSpam#fe087810 channel:InputChannel user_id:InputUser id:Vector<int> = Bool;
+channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool;
+channels.updateUsername#3514b3de channel:InputChannel username:string = Bool;
+channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool;
+channels.readMessageContents#eab5dc38 channel:InputChannel id:Vector<int> = Bool;
+channels.deleteHistory#af369d42 channel:InputChannel max_id:int = Bool;
+channels.setDiscussionGroup#40582bb2 broadcast:InputChannel group:InputChannel = Bool;
+channels.editLocation#58e63f6d channel:InputChannel geo_point:InputGeoPoint address:string = Bool;
+
+help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool;
+help.acceptTermsOfService#ee72f79a id:DataJSON = Bool;
+help.saveAppLog#6f02f748 events:Vector<InputAppEvent> = Bool;
+help.hidePromoData#1e251c95 peer:InputPeer = Bool;
+help.dismissSuggestion#77fa99f suggestion:string = Bool;
+
+bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool;
+bots.setBotCommands#805d46f6 commands:Vector<BotCommand> = Bool;
+
+payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool;
+
+phone.receivedCall#17d54f61 peer:InputPhoneCall = Bool;
+phone.saveCallDebug#277add7e peer:InputPhoneCall debug:DataJSON = Bool;
+phone.sendSignalingData#ff7a9383 peer:InputPhoneCall data:bytes = Bool;
+
+users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector<SecureValueError> = Bool;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
boolFalseConstructor may be interpreted as a booleanfalse value.
boolTrueThe constructor can be interpreted as a booleantrue value.
+

Methods

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
auth.logOutLogs out the user.
auth.resetAuthorizationsTerminates all user's authorized sessions except for the current one.

After calling this method it is necessary to reregister the current device using the method account.registerDevice
auth.bindTempAuthKeyBinds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one.

For more information, see Perfect Forward Secrecy.
account.registerDeviceRegister device to receive PUSH notifications
account.unregisterDeviceDeletes a device by its token, stops sending PUSH-notifications to it.
account.updateNotifySettingsEdits notification settings from a given user/group, from all users/all groups.
account.resetNotifySettingsResets all notification settings from users and groups.
account.updateStatusUpdates online user status.
account.reportPeerReport a peer for violation of telegram's Terms of Service
contacts.deleteByPhonesDelete contacts by phone number
contacts.blockAdds the user to the blacklist.
contacts.unblockDeletes the user from the blacklist.
messages.setTypingSends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.
messages.reportSpamReport a new incoming chat for spam, if the peer settings of the chat allow us to do that
messages.reportReport a message in a chat for violation of telegram's Terms of Service
upload.saveFilePartSaves a part of file for futher sending to one of the methods.
messages.discardEncryptionCancels a request for creation and/or delete info on secret chat.
messages.setEncryptedTypingSend typing event by the current user to a secret chat.
messages.readEncryptedHistoryMarks message history within a secret chat as read.
messages.reportEncryptedSpamReport a secret chat for spam
upload.saveBigFilePartSaves a part of a large file (over 10Mb in size) to be later passed to one of the methods.
account.checkUsernameValidates a username and checks availability.
account.deleteAccountDelete the user's account from the telegram servers. Can be used, for example, to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured.
account.setAccountTTLSet account self-destruction period
account.updateDeviceLockedWhen client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.
account.resetAuthorizationLog out an active authorized session by it hash
account.updatePasswordSettingsSet a new 2FA password
messages.uninstallStickerSetUninstall a stickerset
channels.readHistoryMark channel/supergroup history as read
channels.reportSpamReports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup
channels.checkUsernameCheck if a username is free and can be assigned to a channel/supergroup
channels.updateUsernameChange the username of a supergroup/channel
messages.editChatAdminMake a user admin in a legacy group.
messages.reorderStickerSetsReorder installed stickersets
messages.saveGifAdd GIF to saved gifs list
messages.setInlineBotResultsAnswer an inline query, for bots only
auth.cancelCodeCancel the login verification code
messages.editInlineBotMessageEdit an inline bot message
messages.setBotCallbackAnswerSet the callback answer to a user button press (bots only)
contacts.resetTopPeerRatingReset rating of top peer
messages.saveDraftSave a message draft associated to a chat.
messages.readFeaturedStickersMark new featured stickers as read
messages.saveRecentStickerAdd/remove sticker from recent stickers list
messages.clearRecentStickersClear recent stickers
account.confirmPhoneConfirm a phone number to cancel account deletion, for more info click here »
auth.dropTempAuthKeysDelete all temporary authorization keys except for the ones specified
messages.setInlineGameScoreUse this method to set the score of the specified user in a game sent as an inline message (bots only).
help.setBotUpdatesStatusInforms the server about the number of pending bot updates if they haven't been processed for a long time; for bots only
messages.toggleDialogPinPin/unpin a dialog
messages.reorderPinnedDialogsReorder pinned dialogs
bots.answerWebhookJSONQueryAnswers a custom query; for bots only
payments.clearSavedInfoClear saved payment information
messages.setBotShippingResultsIf you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an updateBotShippingQuery update. Use this method to reply to shipping queries.
messages.setBotPrecheckoutResultsOnce the user has confirmed their payment and shipping details, the bot receives an updateBotPrecheckoutQuery update.
Use this method to respond to such pre-checkout queries.
Note: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.
phone.receivedCallOptional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended.
phone.saveCallDebugSend phone call debug data to server
channels.setStickersAssociate a stickerset to the supergroup
messages.faveStickerMark a sticker as favorite
channels.readMessageContentsMark channel/supergroup message contents as read
contacts.resetSavedDelete saved contacts
channels.deleteHistoryDelete the history of a supergroup
account.resetWebAuthorizationLog out an active web telegram login session
account.resetWebAuthorizationsReset all active web telegram login sessions
help.acceptTermsOfServiceAccept the new terms of service
account.deleteSecureValueDelete stored telegram passport value
users.setSecureValueErrorsSet secure passport value errors for a user
account.acceptAuthorizationSends a Telegram Passport authorization form, effectively sharing data with the service
account.verifyPhoneVerify a phone number for telegram passport.
account.verifyEmailVerify an email address for telegram passport.
account.finishTakeoutSessionFinish account takeout session
messages.markDialogUnreadManually mark dialog as unread
contacts.toggleTopPeersEnable/disable top peers
messages.clearAllDraftsClear all drafts.
help.saveAppLogSaves logs of application on the server.
account.confirmPasswordEmailVerify an email to use as 2FA recovery method.
account.resendPasswordEmailResend the code to verify an email to use as 2FA recovery method.
account.cancelPasswordEmailCancel the code that was sent to verify an email to use as 2FA recovery method.
account.getContactSignUpNotificationWhether the user will receive notifications when contacts sign up
account.setContactSignUpNotificationToggle contact sign up notifications
messages.editChatAboutEdit the description of a group/supergroup/channel.
account.saveWallPaperInstall/uninstall wallpaper
account.installWallPaperInstall wallpaper
account.resetWallPapersDelete installed wallpapers
account.saveAutoDownloadSettingsChange media autodownload settings
channels.setDiscussionGroupAssociate a group to a channel as discussion group for that channel
messages.hidePeerSettingsBarShould be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the peer's settings.
channels.editLocationEdit location of geogroup
account.saveThemeSave a theme
account.installThemeInstall a theme
account.setContentSettingsSet sensitive content settings (for viewing or hiding NSFW content)
messages.toggleStickerSetsApply changes to multiple stickersets
messages.updateDialogFilterUpdate folder
messages.updateDialogFiltersOrderReorder folders
bots.setBotCommandsSet bot command list
help.hidePromoDataHide MTProxy/Public Service Announcement information
phone.sendSignalingDataSend VoIP signaling data
help.dismissSuggestionDismiss a suggestion
messages.readDiscussionMark a channel discussion as read
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/BotCommand.html b/data/core.telegram.org/type/BotCommand.html new file mode 100644 index 0000000000..74a3a01a7a --- /dev/null +++ b/data/core.telegram.org/type/BotCommand.html @@ -0,0 +1,143 @@ + + + + + BotCommand + + + + + + + + + + + + + +
+ +
+
+
+ +

BotCommand

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/BotInfo.html b/data/core.telegram.org/type/BotInfo.html new file mode 100644 index 0000000000..d3f5a69075 --- /dev/null +++ b/data/core.telegram.org/type/BotInfo.html @@ -0,0 +1,143 @@ + + + + + BotInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

BotInfo

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/BotInlineMessage.html b/data/core.telegram.org/type/BotInlineMessage.html new file mode 100644 index 0000000000..9c2853cc93 --- /dev/null +++ b/data/core.telegram.org/type/BotInlineMessage.html @@ -0,0 +1,163 @@ + + + + + BotInlineMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

BotInlineMessage

+ +

Inline message

+

+
botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = BotInlineMessage;
+botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = BotInlineMessage;
+botInlineMessageMediaGeo#51846fd flags:# geo:GeoPoint heading:flags.0?int period:flags.1?int proximity_notification_radius:flags.3?int reply_markup:flags.2?ReplyMarkup = BotInlineMessage;
+botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage;
+botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
botInlineMessageMediaAutoSend whatever media is attached to the botInlineMediaResult
botInlineMessageTextSend a simple text message
botInlineMessageMediaGeoSend a geolocation
botInlineMessageMediaVenueSend a venue
botInlineMessageMediaContactSend a contact
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/BotInlineResult.html b/data/core.telegram.org/type/BotInlineResult.html new file mode 100644 index 0000000000..78a2886a3d --- /dev/null +++ b/data/core.telegram.org/type/BotInlineResult.html @@ -0,0 +1,148 @@ + + + + + BotInlineResult + + + + + + + + + + + + + +
+ +
+
+
+ +

BotInlineResult

+ +

Results of an inline query

+

+
botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult;
+botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
botInlineResultGeneric result
botInlineMediaResultMedia result
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/CdnConfig.html b/data/core.telegram.org/type/CdnConfig.html new file mode 100644 index 0000000000..b521fe166b --- /dev/null +++ b/data/core.telegram.org/type/CdnConfig.html @@ -0,0 +1,164 @@ + + + + + CdnConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

CdnConfig

+ +

Configuration for CDN file downloads.

+

+
cdnConfig#5725e40a public_keys:Vector<CdnPublicKey> = CdnConfig;
+
+---functions---
+
+help.getCdnConfig#52029342 = CdnConfig;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
cdnConfigConfiguration for CDN file downloads.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getCdnConfigGet configuration for CDN file downloads.
+

Related pages

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/CdnPublicKey.html b/data/core.telegram.org/type/CdnPublicKey.html new file mode 100644 index 0000000000..b1b845c5b8 --- /dev/null +++ b/data/core.telegram.org/type/CdnPublicKey.html @@ -0,0 +1,145 @@ + + + + + CdnPublicKey + + + + + + + + + + + + + +
+ +
+
+
+ +

CdnPublicKey

+ +

Public key to use only during handshakes to CDN DCs.

+

+
cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
cdnPublicKeyPublic key to use only during handshakes to CDN DCs.
+

Related pages

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChannelAdminLogEvent.html b/data/core.telegram.org/type/ChannelAdminLogEvent.html new file mode 100644 index 0000000000..6d523c7bef --- /dev/null +++ b/data/core.telegram.org/type/ChannelAdminLogEvent.html @@ -0,0 +1,143 @@ + + + + + ChannelAdminLogEvent + + + + + + + + + + + + + +
+ +
+
+
+ +

ChannelAdminLogEvent

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChannelAdminLogEventAction.html b/data/core.telegram.org/type/ChannelAdminLogEventAction.html new file mode 100644 index 0000000000..a848962397 --- /dev/null +++ b/data/core.telegram.org/type/ChannelAdminLogEventAction.html @@ -0,0 +1,243 @@ + + + + + ChannelAdminLogEventAction + + + + + + + + + + + + + +
+ +
+
+
+ +

ChannelAdminLogEventAction

+ +

Channel admin log event

+

+
channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction;
+channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction;
+channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction;
+channelAdminLogEventActionChangePhoto#434bd2af prev_photo:Photo new_photo:Photo = ChannelAdminLogEventAction;
+channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction;
+channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction;
+channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction;
+channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction;
+channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction;
+channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction;
+channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction;
+channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction;
+channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction;
+channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction;
+channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction;
+channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction;
+channelAdminLogEventActionDefaultBannedRights#2df5fc0a prev_banned_rights:ChatBannedRights new_banned_rights:ChatBannedRights = ChannelAdminLogEventAction;
+channelAdminLogEventActionStopPoll#8f079643 message:Message = ChannelAdminLogEventAction;
+channelAdminLogEventActionChangeLinkedChat#a26f881b prev_value:int new_value:int = ChannelAdminLogEventAction;
+channelAdminLogEventActionChangeLocation#e6b76ae prev_value:ChannelLocation new_value:ChannelLocation = ChannelAdminLogEventAction;
+channelAdminLogEventActionToggleSlowMode#53909779 prev_value:int new_value:int = ChannelAdminLogEventAction;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
channelAdminLogEventActionChangeTitleChannel/supergroup title was changed
channelAdminLogEventActionChangeAboutThe description was changed
channelAdminLogEventActionChangeUsernameChannel/supergroup username was changed
channelAdminLogEventActionChangePhotoThe channel/supergroup's picture was changed
channelAdminLogEventActionToggleInvitesInvites were enabled/disabled
channelAdminLogEventActionToggleSignaturesChannel signatures were enabled/disabled
channelAdminLogEventActionUpdatePinnedA message was pinned
channelAdminLogEventActionEditMessageA message was edited
channelAdminLogEventActionDeleteMessageA message was deleted
channelAdminLogEventActionParticipantJoinA user has joined the group (in the case of big groups, info of the user that has joined isn't shown)
channelAdminLogEventActionParticipantLeaveA user left the channel/supergroup (in the case of big groups, info of the user that has joined isn't shown)
channelAdminLogEventActionParticipantInviteA user was invited to the group
channelAdminLogEventActionParticipantToggleBanThe banned rights of a user were changed
channelAdminLogEventActionParticipantToggleAdminThe admin rights of a user were changed
channelAdminLogEventActionChangeStickerSetThe supergroup's stickerset was changed
channelAdminLogEventActionTogglePreHistoryHiddenThe hidden prehistory setting was changed
channelAdminLogEventActionDefaultBannedRightsThe default banned rights were modified
channelAdminLogEventActionStopPollA poll was stopped
channelAdminLogEventActionChangeLinkedChatThe linked chat was changed
channelAdminLogEventActionChangeLocationThe geogroup location was changed
channelAdminLogEventActionToggleSlowModeSlow mode setting for supergroups was changed
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChannelAdminLogEventsFilter.html b/data/core.telegram.org/type/ChannelAdminLogEventsFilter.html new file mode 100644 index 0000000000..4255ee28a6 --- /dev/null +++ b/data/core.telegram.org/type/ChannelAdminLogEventsFilter.html @@ -0,0 +1,143 @@ + + + + + ChannelAdminLogEventsFilter + + + + + + + + + + + + + +
+ +
+
+
+ +

ChannelAdminLogEventsFilter

+ +

Filter for fetching events in the channel admin log

+

+
channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true group_call:flags.14?true invites:flags.15?true = ChannelAdminLogEventsFilter;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
channelAdminLogEventsFilterFilter only certain admin log events
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChannelLocation.html b/data/core.telegram.org/type/ChannelLocation.html new file mode 100644 index 0000000000..5d0285b981 --- /dev/null +++ b/data/core.telegram.org/type/ChannelLocation.html @@ -0,0 +1,148 @@ + + + + + ChannelLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

ChannelLocation

+ +

Geographical location of supergroup (geogroups)

+

+
channelLocationEmpty#bfb5ad8b = ChannelLocation;
+channelLocation#209b82db geo_point:GeoPoint address:string = ChannelLocation;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
channelLocationEmptyNo location (normal supergroup)
channelLocationGeographical location of supergroup (geogroups)
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChannelMessagesFilter.html b/data/core.telegram.org/type/ChannelMessagesFilter.html new file mode 100644 index 0000000000..96ddee820f --- /dev/null +++ b/data/core.telegram.org/type/ChannelMessagesFilter.html @@ -0,0 +1,148 @@ + + + + + ChannelMessagesFilter + + + + + + + + + + + + + +
+ +
+
+
+ +

ChannelMessagesFilter

+ +

Filter for fetching only certain types of channel messages

+

+
channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter;
+channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector<MessageRange> = ChannelMessagesFilter;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
channelMessagesFilterEmptyNo filter
channelMessagesFilterFilter for getting only certain types of channel messages
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChannelParticipant.html b/data/core.telegram.org/type/ChannelParticipant.html new file mode 100644 index 0000000000..e3686b3960 --- /dev/null +++ b/data/core.telegram.org/type/ChannelParticipant.html @@ -0,0 +1,164 @@ + + + + + ChannelParticipant + + + + + + + + + + + + + +
+ +
+
+
+ +

ChannelParticipant

+ +

Channel participant

+

+
channelParticipant#15ebac1d user_id:int date:int = ChannelParticipant;
+channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant;
+channelParticipantCreator#447dca4b flags:# user_id:int admin_rights:ChatAdminRights rank:flags.0?string = ChannelParticipant;
+channelParticipantAdmin#ccbebbaf flags:# can_edit:flags.0?true self:flags.1?true user_id:int inviter_id:flags.1?int promoted_by:int date:int admin_rights:ChatAdminRights rank:flags.2?string = ChannelParticipant;
+channelParticipantBanned#1c0facaf flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChatBannedRights = ChannelParticipant;
+channelParticipantLeft#c3c6796b user_id:int = ChannelParticipant;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
channelParticipantChannel/supergroup participant
channelParticipantSelfMyself
channelParticipantCreatorChannel/supergroup creator
channelParticipantAdminAdmin
channelParticipantBannedBanned/kicked user
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChannelParticipantsFilter.html b/data/core.telegram.org/type/ChannelParticipantsFilter.html new file mode 100644 index 0000000000..f1d62710ef --- /dev/null +++ b/data/core.telegram.org/type/ChannelParticipantsFilter.html @@ -0,0 +1,178 @@ + + + + + ChannelParticipantsFilter + + + + + + + + + + + + + +
+ +
+
+
+ +

ChannelParticipantsFilter

+ +

Filter for fetching channel participants

+

+
channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter;
+channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter;
+channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter;
+channelParticipantsBots#b0d1865b = ChannelParticipantsFilter;
+channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter;
+channelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter;
+channelParticipantsContacts#bb6ae88d q:string = ChannelParticipantsFilter;
+channelParticipantsMentions#e04b5ceb flags:# q:flags.0?string top_msg_id:flags.1?int = ChannelParticipantsFilter;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
channelParticipantsRecentFetch only recent participants
channelParticipantsAdminsFetch only admin participants
channelParticipantsKickedFetch only kicked participants
channelParticipantsBotsFetch only bot participants
channelParticipantsBannedFetch only banned participants
channelParticipantsSearchQuery participants by name
channelParticipantsContactsFetch only participants that are also contacts
channelParticipantsMentionsThis filter is used when looking for members to mention.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Chat.html b/data/core.telegram.org/type/Chat.html new file mode 100644 index 0000000000..c1016f98c1 --- /dev/null +++ b/data/core.telegram.org/type/Chat.html @@ -0,0 +1,163 @@ + + + + + Chat + + + + + + + + + + + + + +
+ +
+
+
+ +

Chat

+ +

Object defines a group.

+

+
chatEmpty#9ba2d800 id:int = Chat;
+chat#3bda1bde flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true deactivated:flags.5?true call_active:flags.23?true call_not_empty:flags.24?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel admin_rights:flags.14?ChatAdminRights default_banned_rights:flags.18?ChatBannedRights = Chat;
+chatForbidden#7328bdb id:int title:string = Chat;
+channel#d31a961e flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?Vector<RestrictionReason> admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int = Chat;
+channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
chatEmptyEmpty constructor, group doesn't exist
chatInfo about a group
chatForbiddenA group to which the user has no access. E.g., because the user was kicked from the group.
channelChannel/supergroup info
channelForbiddenIndicates a channel/supergroup we can't access because we were banned, or for some other reason.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChatAdminRights.html b/data/core.telegram.org/type/ChatAdminRights.html new file mode 100644 index 0000000000..3b10b71338 --- /dev/null +++ b/data/core.telegram.org/type/ChatAdminRights.html @@ -0,0 +1,146 @@ + + + + + ChatAdminRights + + + + + + + + + + + + + +
+ +
+
+
+ +

ChatAdminRights

+ +

Represents the rights of an admin in a channel/supergroup.

+

+
chatAdminRights#5fb224d5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true pin_messages:flags.7?true add_admins:flags.9?true anonymous:flags.10?true manage_call:flags.11?true other:flags.12?true = ChatAdminRights;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
chatAdminRightsRepresents the rights of an admin in a channel/supergroup.
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChatBannedRights.html b/data/core.telegram.org/type/ChatBannedRights.html new file mode 100644 index 0000000000..a2f18b8195 --- /dev/null +++ b/data/core.telegram.org/type/ChatBannedRights.html @@ -0,0 +1,146 @@ + + + + + ChatBannedRights + + + + + + + + + + + + + +
+ +
+
+
+ +

ChatBannedRights

+ +

Represents the rights of a normal user in a supergroup/channel/chat.

+

+
chatBannedRights#9f120418 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true send_polls:flags.8?true change_info:flags.10?true invite_users:flags.15?true pin_messages:flags.17?true until_date:int = ChatBannedRights;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
chatBannedRightsRepresents the rights of a normal user in a supergroup/channel/chat. In this case, the flags are inverted: if set, a flag does not allow a user to do X.
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChatFull.html b/data/core.telegram.org/type/ChatFull.html new file mode 100644 index 0000000000..de925986cf --- /dev/null +++ b/data/core.telegram.org/type/ChatFull.html @@ -0,0 +1,148 @@ + + + + + ChatFull + + + + + + + + + + + + + +
+ +
+
+
+ +

ChatFull

+ +

Object containing detailed group info

+

+
chatFull#1b7c9db3 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:int about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int = ChatFull;
+channelFull#f0e6672a flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?int location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int = ChatFull;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
chatFullDetailed chat info
channelFullFull info about a channel/supergroup
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChatInvite.html b/data/core.telegram.org/type/ChatInvite.html new file mode 100644 index 0000000000..914a41c105 --- /dev/null +++ b/data/core.telegram.org/type/ChatInvite.html @@ -0,0 +1,172 @@ + + + + + ChatInvite + + + + + + + + + + + + + +
+ +
+
+
+ +

ChatInvite

+ +

Chat invite

+

+
chatInviteAlready#5a686d7c chat:Chat = ChatInvite;
+chatInvite#dfc2f58e flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:Photo participants_count:int participants:flags.4?Vector<User> = ChatInvite;
+chatInvitePeek#61695cb0 chat:Chat expires:int = ChatInvite;
+
+---functions---
+
+messages.checkChatInvite#3eadb1bb hash:string = ChatInvite;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
chatInviteAlreadyThe user has already joined this chat
chatInviteChat invite info
chatInvitePeekA chat invitation that also allows peeking into the group to read messages without joining it.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.checkChatInviteCheck the validity of a chat invite link and get basic info about it
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChatOnlines.html b/data/core.telegram.org/type/ChatOnlines.html new file mode 100644 index 0000000000..5e4da1af59 --- /dev/null +++ b/data/core.telegram.org/type/ChatOnlines.html @@ -0,0 +1,162 @@ + + + + + ChatOnlines + + + + + + + + + + + + + +
+ +
+
+
+ +

ChatOnlines

+ +

Number of online users in a chat

+

+
chatOnlines#f041e250 onlines:int = ChatOnlines;
+
+---functions---
+
+messages.getOnlines#6e2be050 peer:InputPeer = ChatOnlines;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
chatOnlinesNumber of online users in a chat
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getOnlinesGet count of online users in a chat
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChatParticipant.html b/data/core.telegram.org/type/ChatParticipant.html new file mode 100644 index 0000000000..0b3c7bbbae --- /dev/null +++ b/data/core.telegram.org/type/ChatParticipant.html @@ -0,0 +1,153 @@ + + + + + ChatParticipant + + + + + + + + + + + + + +
+ +
+
+
+ +

ChatParticipant

+ +

Details of a group member.

+

+
chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant;
+chatParticipantCreator#da13538a user_id:int = ChatParticipant;
+chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
chatParticipantGroup member.
chatParticipantCreatorRepresents the creator of the group
chatParticipantAdminChat admin
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChatParticipants.html b/data/core.telegram.org/type/ChatParticipants.html new file mode 100644 index 0000000000..d3955d770f --- /dev/null +++ b/data/core.telegram.org/type/ChatParticipants.html @@ -0,0 +1,148 @@ + + + + + ChatParticipants + + + + + + + + + + + + + +
+ +
+
+
+ +

ChatParticipants

+ +

Object contains info on group members.

+

+
chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants;
+chatParticipants#3f460fed chat_id:int participants:Vector<ChatParticipant> version:int = ChatParticipants;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
chatParticipantsForbiddenInfo on members is unavailable
chatParticipantsGroup members.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ChatPhoto.html b/data/core.telegram.org/type/ChatPhoto.html new file mode 100644 index 0000000000..27b0d2d5ac --- /dev/null +++ b/data/core.telegram.org/type/ChatPhoto.html @@ -0,0 +1,148 @@ + + + + + ChatPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

ChatPhoto

+ +

Object defines a group profile photo.

+

+
chatPhotoEmpty#37c1011c = ChatPhoto;
+chatPhoto#d20b9f3c flags:# has_video:flags.0?true photo_small:FileLocation photo_big:FileLocation dc_id:int = ChatPhoto;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
chatPhotoEmptyGroup photo is not set.
chatPhotoGroup profile photo.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/CodeSettings.html b/data/core.telegram.org/type/CodeSettings.html new file mode 100644 index 0000000000..f7d5c3f256 --- /dev/null +++ b/data/core.telegram.org/type/CodeSettings.html @@ -0,0 +1,143 @@ + + + + + CodeSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

CodeSettings

+ +

Settings for the code type to send

+

+
codeSettings#debebe83 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true = CodeSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
codeSettingsSettings used by telegram servers for sending the confirm code.

Example implementations: telegram for android, tdlib.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Config.html b/data/core.telegram.org/type/Config.html new file mode 100644 index 0000000000..595f7d8a27 --- /dev/null +++ b/data/core.telegram.org/type/Config.html @@ -0,0 +1,162 @@ + + + + + Config + + + + + + + + + + + + + +
+ +
+
+
+ +

Config

+ +

Object contains info on API configuring parameters.

+

+
config#330b4067 flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true pfs_enabled:flags.13?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int pinned_infolder_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int base_lang_pack_version:flags.2?int = Config;
+
+---functions---
+
+help.getConfig#c4f9186b = Config;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
configCurrent configuration
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getConfigReturns current configuration, icluding data center configuration.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Contact.html b/data/core.telegram.org/type/Contact.html new file mode 100644 index 0000000000..b9659f14d7 --- /dev/null +++ b/data/core.telegram.org/type/Contact.html @@ -0,0 +1,143 @@ + + + + + Contact + + + + + + + + + + + + + +
+ +
+
+
+ +

Contact

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ContactStatus.html b/data/core.telegram.org/type/ContactStatus.html new file mode 100644 index 0000000000..c598c1f7f8 --- /dev/null +++ b/data/core.telegram.org/type/ContactStatus.html @@ -0,0 +1,143 @@ + + + + + ContactStatus + + + + + + + + + + + + + +
+ +
+
+
+ +

ContactStatus

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DataJSON.html b/data/core.telegram.org/type/DataJSON.html new file mode 100644 index 0000000000..f705420c99 --- /dev/null +++ b/data/core.telegram.org/type/DataJSON.html @@ -0,0 +1,168 @@ + + + + + DataJSON + + + + + + + + + + + + + +
+ +
+
+
+ +

DataJSON

+ +

Represent a JSON-encoded object

+

+
dataJSON#7d748d04 data:string = DataJSON;
+
+---functions---
+
+bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON;
+
+phone.getCallConfig#55451fa9 = DataJSON;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
dataJSONRepresents a json-encoded object
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
bots.sendCustomRequestSends a custom request; for bots only
phone.getCallConfigGet phone call configuration to be passed to libtgvoip's shared config
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DcOption.html b/data/core.telegram.org/type/DcOption.html new file mode 100644 index 0000000000..83c46fc0de --- /dev/null +++ b/data/core.telegram.org/type/DcOption.html @@ -0,0 +1,143 @@ + + + + + DcOption + + + + + + + + + + + + + +
+ +
+
+
+ +

DcOption

+ +

Information for connection to data centre.

+

+
dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
dcOptionData centre
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DecryptedDataBlock.html b/data/core.telegram.org/type/DecryptedDataBlock.html new file mode 100644 index 0000000000..3b2d6dd625 --- /dev/null +++ b/data/core.telegram.org/type/DecryptedDataBlock.html @@ -0,0 +1,128 @@ + + + + + DecryptedDataBlock + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/DecryptedMessage.html b/data/core.telegram.org/type/DecryptedMessage.html new file mode 100644 index 0000000000..18e5ee15d7 --- /dev/null +++ b/data/core.telegram.org/type/DecryptedMessage.html @@ -0,0 +1,140 @@ + + + + + DecryptedMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

DecryptedMessage

+ +

Object describes the contents of an encrypted message.

+

+
===8===
+decryptedMessage#1f814f1f random_id:long random_bytes:bytes message:string media:DecryptedMessageMedia = DecryptedMessage;
+decryptedMessageService#aa48327d random_id:long random_bytes:bytes action:DecryptedMessageAction = DecryptedMessage;
+
+===17===
+decryptedMessage#204d3878 random_id:long ttl:int message:string media:DecryptedMessageMedia = DecryptedMessage;
+decryptedMessageService#73164160 random_id:long action:DecryptedMessageAction = DecryptedMessage;
+
+===45===
+decryptedMessage#36b091de flags:# random_id:long ttl:int message:string media:flags.9?DecryptedMessageMedia entities:flags.7?Vector<MessageEntity> via_bot_name:flags.11?string reply_to_random_id:flags.3?long = DecryptedMessage;
+
+===73===
+decryptedMessage#91cc4674 flags:# no_webpage:flags.1?true silent:flags.5?true random_id:long ttl:int message:string media:flags.9?DecryptedMessageMedia entities:flags.7?Vector<MessageEntity> via_bot_name:flags.11?string reply_to_random_id:flags.3?long grouped_id:flags.17?long = DecryptedMessage;

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DecryptedMessageAction.html b/data/core.telegram.org/type/DecryptedMessageAction.html new file mode 100644 index 0000000000..02a3f8c20a --- /dev/null +++ b/data/core.telegram.org/type/DecryptedMessageAction.html @@ -0,0 +1,145 @@ + + + + + DecryptedMessageAction + + + + + + + + + + + + + +
+ +
+
+
+ +

DecryptedMessageAction

+ +

Object describes the action to which a service message is linked.

+

+
===8===
+decryptedMessageActionSetMessageTTL#a1733aec ttl_seconds:int = DecryptedMessageAction;
+decryptedMessageActionReadMessages#c4f40be random_ids:Vector<long> = DecryptedMessageAction;
+decryptedMessageActionDeleteMessages#65614304 random_ids:Vector<long> = DecryptedMessageAction;
+decryptedMessageActionScreenshotMessages#8ac1f475 random_ids:Vector<long> = DecryptedMessageAction;
+decryptedMessageActionFlushHistory#6719e45c = DecryptedMessageAction;
+
+===17===
+decryptedMessageActionResend#511110b0 start_seq_no:int end_seq_no:int = DecryptedMessageAction;
+decryptedMessageActionNotifyLayer#f3048883 layer:int = DecryptedMessageAction;
+decryptedMessageActionTyping#ccb27641 action:SendMessageAction = DecryptedMessageAction;
+
+===20===
+decryptedMessageActionRequestKey#f3c9611b exchange_id:long g_a:bytes = DecryptedMessageAction;
+decryptedMessageActionAcceptKey#6fe1735b exchange_id:long g_b:bytes key_fingerprint:long = DecryptedMessageAction;
+decryptedMessageActionAbortKey#dd05ec6b exchange_id:long = DecryptedMessageAction;
+decryptedMessageActionCommitKey#ec2e0b9b exchange_id:long key_fingerprint:long = DecryptedMessageAction;
+decryptedMessageActionNoop#a82fdd63 = DecryptedMessageAction;

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DecryptedMessageLayer.html b/data/core.telegram.org/type/DecryptedMessageLayer.html new file mode 100644 index 0000000000..c698efedc0 --- /dev/null +++ b/data/core.telegram.org/type/DecryptedMessageLayer.html @@ -0,0 +1,129 @@ + + + + + DecryptedMessageLayer + + + + + + + + + + + + + +
+ +
+
+
+ +

DecryptedMessageLayer

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DecryptedMessageMedia.html b/data/core.telegram.org/type/DecryptedMessageMedia.html new file mode 100644 index 0000000000..bf28500b9d --- /dev/null +++ b/data/core.telegram.org/type/DecryptedMessageMedia.html @@ -0,0 +1,149 @@ + + + + + DecryptedMessageMedia + + + + + + + + + + + + + +
+ +
+
+
+ +

DecryptedMessageMedia

+ +

Object describes media contents of an encrypted message.

+

+
===8===
+decryptedMessageMediaEmpty#89f5c4a = DecryptedMessageMedia;
+decryptedMessageMediaPhoto#32798a8c thumb:bytes thumb_w:int thumb_h:int w:int h:int size:int key:bytes iv:bytes = DecryptedMessageMedia;
+decryptedMessageMediaVideo#4cee6ef3 thumb:bytes thumb_w:int thumb_h:int duration:int w:int h:int size:int key:bytes iv:bytes = DecryptedMessageMedia;
+decryptedMessageMediaGeoPoint#35480a59 lat:double long:double = DecryptedMessageMedia;
+decryptedMessageMediaContact#588a0a97 phone_number:string first_name:string last_name:string user_id:int = DecryptedMessageMedia;
+decryptedMessageMediaDocument#b095434b thumb:bytes thumb_w:int thumb_h:int file_name:string mime_type:string size:int key:bytes iv:bytes = DecryptedMessageMedia;
+decryptedMessageMediaAudio#6080758f duration:int size:int key:bytes iv:bytes = DecryptedMessageMedia;
+
+===17===
+decryptedMessageMediaVideo#524a415d thumb:bytes thumb_w:int thumb_h:int duration:int mime_type:string w:int h:int size:int key:bytes iv:bytes = DecryptedMessageMedia;
+decryptedMessageMediaAudio#57e0a9cb duration:int mime_type:string size:int key:bytes iv:bytes = DecryptedMessageMedia;
+
+===23===
+decryptedMessageMediaExternalDocument#fa95b0dd id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector<DocumentAttribute> = DecryptedMessageMedia;
+
+===45===
+decryptedMessageMediaPhoto#f1fa8d78 thumb:bytes thumb_w:int thumb_h:int w:int h:int size:int key:bytes iv:bytes caption:string = DecryptedMessageMedia;
+decryptedMessageMediaVideo#970c8c0e thumb:bytes thumb_w:int thumb_h:int duration:int mime_type:string w:int h:int size:int key:bytes iv:bytes caption:string = DecryptedMessageMedia;
+decryptedMessageMediaDocument#7afe8ae2 thumb:bytes thumb_w:int thumb_h:int mime_type:string size:int key:bytes iv:bytes attributes:Vector<DocumentAttribute> caption:string = DecryptedMessageMedia;
+decryptedMessageMediaVenue#8a0df56f lat:double long:double title:string address:string provider:string venue_id:string = DecryptedMessageMedia;
+decryptedMessageMediaWebPage#e50511d8 url:string = DecryptedMessageMedia;

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Dialog.html b/data/core.telegram.org/type/Dialog.html new file mode 100644 index 0000000000..cfd9f8ff12 --- /dev/null +++ b/data/core.telegram.org/type/Dialog.html @@ -0,0 +1,148 @@ + + + + + Dialog + + + + + + + + + + + + + +
+ +
+
+
+ +

Dialog

+ +

Chat info.

+

+
dialog#2c171f72 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;
+dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
dialogChat
dialogFolderDialog in folder
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DialogFilter.html b/data/core.telegram.org/type/DialogFilter.html new file mode 100644 index 0000000000..71e99a9b9a --- /dev/null +++ b/data/core.telegram.org/type/DialogFilter.html @@ -0,0 +1,143 @@ + + + + + DialogFilter + + + + + + + + + + + + + +
+ +
+
+
+ +

DialogFilter

+ +

Dialog filter (folders)

+

+
dialogFilter#7438f7e8 flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string pinned_peers:Vector<InputPeer> include_peers:Vector<InputPeer> exclude_peers:Vector<InputPeer> = DialogFilter;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
dialogFilterDialog filter (folder)
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DialogFilterSuggested.html b/data/core.telegram.org/type/DialogFilterSuggested.html new file mode 100644 index 0000000000..b1b204ac72 --- /dev/null +++ b/data/core.telegram.org/type/DialogFilterSuggested.html @@ -0,0 +1,143 @@ + + + + + DialogFilterSuggested + + + + + + + + + + + + + +
+ +
+
+
+ +

DialogFilterSuggested

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DialogPeer.html b/data/core.telegram.org/type/DialogPeer.html new file mode 100644 index 0000000000..cfeca68aa5 --- /dev/null +++ b/data/core.telegram.org/type/DialogPeer.html @@ -0,0 +1,148 @@ + + + + + DialogPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

DialogPeer

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DisabledFeature.html b/data/core.telegram.org/type/DisabledFeature.html new file mode 100644 index 0000000000..3cb70c2c4f --- /dev/null +++ b/data/core.telegram.org/type/DisabledFeature.html @@ -0,0 +1,128 @@ + + + + + DisabledFeature + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/Document.html b/data/core.telegram.org/type/Document.html new file mode 100644 index 0000000000..f47bd94715 --- /dev/null +++ b/data/core.telegram.org/type/Document.html @@ -0,0 +1,173 @@ + + + + + Document + + + + + + + + + + + + + +
+ +
+
+
+ +

Document

+ +

A document.

+

+
documentEmpty#36f8c871 id:long = Document;
+document#1e87342b flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumbs:flags.0?Vector<PhotoSize> video_thumbs:flags.1?Vector<VideoSize> dc_id:int attributes:Vector<DocumentAttribute> = Document;
+
+---functions---
+
+messages.getDocumentByHash#338e2464 sha256:bytes size:int mime_type:string = Document;
+
+account.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = Document;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
documentEmptyEmpty constructor, document doesn't exist.
documentDocument
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
messages.getDocumentByHashGet a document by its SHA256 hash, mainly used for gifs
account.uploadThemeUpload theme
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DocumentAttribute.html b/data/core.telegram.org/type/DocumentAttribute.html new file mode 100644 index 0000000000..263f3d074e --- /dev/null +++ b/data/core.telegram.org/type/DocumentAttribute.html @@ -0,0 +1,173 @@ + + + + + DocumentAttribute + + + + + + + + + + + + + +
+ +
+
+
+ +

DocumentAttribute

+ +

Various possible attributes of a document (used to define if it's a sticker, a GIF, a video, a mask sticker, an image, an audio, and so on)

+

+
documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute;
+documentAttributeAnimated#11b58939 = DocumentAttribute;
+documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute;
+documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute;
+documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute;
+documentAttributeFilename#15590068 file_name:string = DocumentAttribute;
+documentAttributeHasStickers#9801d2f7 = DocumentAttribute;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
documentAttributeImageSizeDefines the width and height of an image uploaded as document
documentAttributeAnimatedDefines an animated GIF
documentAttributeStickerDefines a sticker
documentAttributeVideoDefines a video
documentAttributeAudioRepresents an audio file
documentAttributeFilenameA simple document with a file name
documentAttributeHasStickersWhether the current document has stickers attached
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/DraftMessage.html b/data/core.telegram.org/type/DraftMessage.html new file mode 100644 index 0000000000..30a2aa88a0 --- /dev/null +++ b/data/core.telegram.org/type/DraftMessage.html @@ -0,0 +1,151 @@ + + + + + DraftMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

DraftMessage

+ +

Represents a message draft.

+

+
draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage;
+draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector<MessageEntity> date:int = DraftMessage;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
draftMessageEmptyEmpty draft
draftMessageRepresents a message draft.
+

Related pages

+

Message drafts

+

How to handle message drafts

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/EmojiKeyword.html b/data/core.telegram.org/type/EmojiKeyword.html new file mode 100644 index 0000000000..510c31608e --- /dev/null +++ b/data/core.telegram.org/type/EmojiKeyword.html @@ -0,0 +1,148 @@ + + + + + EmojiKeyword + + + + + + + + + + + + + +
+ +
+
+
+ +

EmojiKeyword

+ +

Emoji keyword

+

+
emojiKeyword#d5b3b9f9 keyword:string emoticons:Vector<string> = EmojiKeyword;
+emojiKeywordDeleted#236df622 keyword:string emoticons:Vector<string> = EmojiKeyword;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
emojiKeywordEmoji keyword
emojiKeywordDeletedDeleted emoji keyword
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/EmojiKeywordsDifference.html b/data/core.telegram.org/type/EmojiKeywordsDifference.html new file mode 100644 index 0000000000..b52f292e7d --- /dev/null +++ b/data/core.telegram.org/type/EmojiKeywordsDifference.html @@ -0,0 +1,167 @@ + + + + + EmojiKeywordsDifference + + + + + + + + + + + + + +
+ +
+
+
+ +

EmojiKeywordsDifference

+ +

New emoji keywords

+

+
emojiKeywordsDifference#5cc761bd lang_code:string from_version:int version:int keywords:Vector<EmojiKeyword> = EmojiKeywordsDifference;
+
+---functions---
+
+messages.getEmojiKeywords#35a0e062 lang_code:string = EmojiKeywordsDifference;
+messages.getEmojiKeywordsDifference#1508b6af lang_code:string from_version:int = EmojiKeywordsDifference;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
emojiKeywordsDifferenceChanges to emoji keywords
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
messages.getEmojiKeywordsGet localized emoji keywords
messages.getEmojiKeywordsDifferenceGet changed emoji keywords
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/EmojiLanguage.html b/data/core.telegram.org/type/EmojiLanguage.html new file mode 100644 index 0000000000..50f2e012ca --- /dev/null +++ b/data/core.telegram.org/type/EmojiLanguage.html @@ -0,0 +1,143 @@ + + + + + EmojiLanguage + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/EmojiURL.html b/data/core.telegram.org/type/EmojiURL.html new file mode 100644 index 0000000000..06e7585352 --- /dev/null +++ b/data/core.telegram.org/type/EmojiURL.html @@ -0,0 +1,162 @@ + + + + + EmojiURL + + + + + + + + + + + + + +
+ +
+
+
+ +

EmojiURL

+ +

Emoji URL

+

+
emojiURL#a575739d url:string = EmojiURL;
+
+---functions---
+
+messages.getEmojiURL#d5b10c26 lang_code:string = EmojiURL;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
emojiURLAn HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getEmojiURLReturns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/EncryptedChat.html b/data/core.telegram.org/type/EncryptedChat.html new file mode 100644 index 0000000000..988bcb3325 --- /dev/null +++ b/data/core.telegram.org/type/EncryptedChat.html @@ -0,0 +1,187 @@ + + + + + EncryptedChat + + + + + + + + + + + + + +
+ +
+
+
+ +

EncryptedChat

+ +

Object contains info on an encrypted chat.

+

+
encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat;
+encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat;
+encryptedChatRequested#62718a82 flags:# folder_id:flags.0?int id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat;
+encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat;
+encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat;
+
+---functions---
+
+messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat;
+messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
encryptedChatEmptyEmpty constructor.
encryptedChatWaitingChat waiting for approval of second participant.
encryptedChatRequestedRequest to create an encrypted chat.
encryptedChatEncrypted chat
encryptedChatDiscardedDiscarded or deleted chat.
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
messages.requestEncryptionSends a request to start a secret chat to the user.
messages.acceptEncryptionConfirms creation of a secret chat
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/EncryptedFile.html b/data/core.telegram.org/type/EncryptedFile.html new file mode 100644 index 0000000000..7b6f7140e0 --- /dev/null +++ b/data/core.telegram.org/type/EncryptedFile.html @@ -0,0 +1,167 @@ + + + + + EncryptedFile + + + + + + + + + + + + + +
+ +
+
+
+ +

EncryptedFile

+ +

Seta an encrypted file.

+

+
encryptedFileEmpty#c21f497e = EncryptedFile;
+encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile;
+
+---functions---
+
+messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
encryptedFileEmptyEmpty constructor, unexisitng file.
encryptedFileEncrypted file.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.uploadEncryptedFileUpload encrypted file and associate it to a secret chat
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/EncryptedMessage.html b/data/core.telegram.org/type/EncryptedMessage.html new file mode 100644 index 0000000000..f831508099 --- /dev/null +++ b/data/core.telegram.org/type/EncryptedMessage.html @@ -0,0 +1,148 @@ + + + + + EncryptedMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

EncryptedMessage

+ +

Object contains encrypted message.

+

+
encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage;
+encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
encryptedMessageEncrypted message.
encryptedMessageServiceEncrypted service message
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Error.html b/data/core.telegram.org/type/Error.html new file mode 100644 index 0000000000..04a9fa2821 --- /dev/null +++ b/data/core.telegram.org/type/Error.html @@ -0,0 +1,143 @@ + + + + + Error + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/ExportedChatInvite.html b/data/core.telegram.org/type/ExportedChatInvite.html new file mode 100644 index 0000000000..c8b498fcac --- /dev/null +++ b/data/core.telegram.org/type/ExportedChatInvite.html @@ -0,0 +1,167 @@ + + + + + ExportedChatInvite + + + + + + + + + + + + + +
+ +
+
+
+ +

ExportedChatInvite

+ +

Exported chat invite

+

+
chatInviteEmpty#69df3769 = ExportedChatInvite;
+chatInviteExported#fc2e05bc link:string = ExportedChatInvite;
+
+---functions---
+
+messages.exportChatInvite#df7534c peer:InputPeer = ExportedChatInvite;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
chatInviteEmptyNo info is associated to the chat invite
chatInviteExportedExported chat invite
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.exportChatInviteExport an invite link for a chat
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ExportedMessageLink.html b/data/core.telegram.org/type/ExportedMessageLink.html new file mode 100644 index 0000000000..3d9b7325fc --- /dev/null +++ b/data/core.telegram.org/type/ExportedMessageLink.html @@ -0,0 +1,162 @@ + + + + + ExportedMessageLink + + + + + + + + + + + + + +
+ +
+
+
+ +

ExportedMessageLink

+ +

HTTP link and embed info of channel message

+

+
exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink;
+
+---functions---
+
+channels.exportMessageLink#e63fadeb flags:# grouped:flags.0?true thread:flags.1?true channel:InputChannel id:int = ExportedMessageLink;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
exportedMessageLinkLink to a message in a supergroup/channel
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
channels.exportMessageLinkGet link and embed info of a message in a channel/supergroup
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/FileHash.html b/data/core.telegram.org/type/FileHash.html new file mode 100644 index 0000000000..a3398c6d28 --- /dev/null +++ b/data/core.telegram.org/type/FileHash.html @@ -0,0 +1,143 @@ + + + + + FileHash + + + + + + + + + + + + + +
+ +
+
+
+ +

FileHash

+ +

Hash of an uploaded file, to be checked for validity after download

+

+
fileHash#6242c773 offset:int limit:int hash:bytes = FileHash;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
fileHashSHA256 Hash of an uploaded file, to be checked for validity after download
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/FileLocation.html b/data/core.telegram.org/type/FileLocation.html new file mode 100644 index 0000000000..d4586bb23d --- /dev/null +++ b/data/core.telegram.org/type/FileLocation.html @@ -0,0 +1,143 @@ + + + + + FileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

FileLocation

+ +

Indicates the location of a photo, will be deprecated soon

+

+
fileLocationToBeDeprecated#bc7fc6cd volume_id:long local_id:int = FileLocation;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
fileLocationToBeDeprecatedIndicates the location of a photo, will be deprecated soon
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Folder.html b/data/core.telegram.org/type/Folder.html new file mode 100644 index 0000000000..f3d2202214 --- /dev/null +++ b/data/core.telegram.org/type/Folder.html @@ -0,0 +1,143 @@ + + + + + Folder + + + + + + + + + + + + + +
+ +
+
+
+ +

Folder

+ +

A folder

+

+
folder#ff544e65 flags:# autofill_new_broadcasts:flags.0?true autofill_public_groups:flags.1?true autofill_new_correspondents:flags.2?true id:int title:string photo:flags.3?ChatPhoto = Folder;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
folderFolder
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/FolderPeer.html b/data/core.telegram.org/type/FolderPeer.html new file mode 100644 index 0000000000..74ff5af7d0 --- /dev/null +++ b/data/core.telegram.org/type/FolderPeer.html @@ -0,0 +1,143 @@ + + + + + FolderPeer + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/Game.html b/data/core.telegram.org/type/Game.html new file mode 100644 index 0000000000..952b81bf0a --- /dev/null +++ b/data/core.telegram.org/type/Game.html @@ -0,0 +1,143 @@ + + + + + Game + + + + + + + + + + + + + +
+ +
+
+
+ +

Game

+ +

Indicates an already sent game

+

+
game#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
gameIndicates an already sent game
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/GeoPoint.html b/data/core.telegram.org/type/GeoPoint.html new file mode 100644 index 0000000000..687da8a478 --- /dev/null +++ b/data/core.telegram.org/type/GeoPoint.html @@ -0,0 +1,148 @@ + + + + + GeoPoint + + + + + + + + + + + + + +
+ +
+
+
+ +

GeoPoint

+ +

Object defines a GeoPoint.

+

+
geoPointEmpty#1117dd5f = GeoPoint;
+geoPoint#b2a2f663 flags:# long:double lat:double access_hash:long accuracy_radius:flags.0?int = GeoPoint;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
geoPointEmptyEmpty constructor.
geoPointGeoPoint.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/GlobalPrivacySettings.html b/data/core.telegram.org/type/GlobalPrivacySettings.html new file mode 100644 index 0000000000..7a287b0ecd --- /dev/null +++ b/data/core.telegram.org/type/GlobalPrivacySettings.html @@ -0,0 +1,167 @@ + + + + + GlobalPrivacySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

GlobalPrivacySettings

+ +

Global privacy settings

+

+
globalPrivacySettings#bea2f424 flags:# archive_and_mute_new_noncontact_peers:flags.0?Bool = GlobalPrivacySettings;
+
+---functions---
+
+account.getGlobalPrivacySettings#eb2b4cf6 = GlobalPrivacySettings;
+account.setGlobalPrivacySettings#1edaaac2 settings:GlobalPrivacySettings = GlobalPrivacySettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
globalPrivacySettingsGlobal privacy settings
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
account.getGlobalPrivacySettingsSet global privacy settings
account.setGlobalPrivacySettingsSet global privacy settings
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/HighScore.html b/data/core.telegram.org/type/HighScore.html new file mode 100644 index 0000000000..5758c91964 --- /dev/null +++ b/data/core.telegram.org/type/HighScore.html @@ -0,0 +1,143 @@ + + + + + HighScore + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/ImportedContact.html b/data/core.telegram.org/type/ImportedContact.html new file mode 100644 index 0000000000..05ea5bbf7d --- /dev/null +++ b/data/core.telegram.org/type/ImportedContact.html @@ -0,0 +1,143 @@ + + + + + ImportedContact + + + + + + + + + + + + + +
+ +
+
+
+ +

ImportedContact

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InlineBotSwitchPM.html b/data/core.telegram.org/type/InlineBotSwitchPM.html new file mode 100644 index 0000000000..9f2252b33f --- /dev/null +++ b/data/core.telegram.org/type/InlineBotSwitchPM.html @@ -0,0 +1,143 @@ + + + + + InlineBotSwitchPM + + + + + + + + + + + + + +
+ +
+
+
+ +

InlineBotSwitchPM

+ +

The bot requested the user to message him in private

+

+
inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
inlineBotSwitchPMThe bot requested the user to message him in private
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputAppEvent.html b/data/core.telegram.org/type/InputAppEvent.html new file mode 100644 index 0000000000..c9f6b411ef --- /dev/null +++ b/data/core.telegram.org/type/InputAppEvent.html @@ -0,0 +1,143 @@ + + + + + InputAppEvent + + + + + + + + + + + + + +
+ +
+
+
+ +

InputAppEvent

+ +

Object contains info about an event that occured in the application.

+

+
inputAppEvent#1d1b1245 time:double type:string peer:long data:JSONValue = InputAppEvent;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
inputAppEventEvent that occured in the application.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputBotInlineMessage.html b/data/core.telegram.org/type/InputBotInlineMessage.html new file mode 100644 index 0000000000..6887aeb45c --- /dev/null +++ b/data/core.telegram.org/type/InputBotInlineMessage.html @@ -0,0 +1,168 @@ + + + + + InputBotInlineMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

InputBotInlineMessage

+ +

Represents a sent inline message from the perspective of a bot

+

+
inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;
+inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;
+inputBotInlineMessageMediaGeo#96929a85 flags:# geo_point:InputGeoPoint heading:flags.0?int period:flags.1?int proximity_notification_radius:flags.3?int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;
+inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;
+inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;
+inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputBotInlineMessageMediaAutoA media
inputBotInlineMessageTextSimple text message
inputBotInlineMessageMediaGeoGeolocation
inputBotInlineMessageMediaVenueVenue
inputBotInlineMessageMediaContactA contact
inputBotInlineMessageGameA game
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputBotInlineMessageID.html b/data/core.telegram.org/type/InputBotInlineMessageID.html new file mode 100644 index 0000000000..05bc21d3e3 --- /dev/null +++ b/data/core.telegram.org/type/InputBotInlineMessageID.html @@ -0,0 +1,143 @@ + + + + + InputBotInlineMessageID + + + + + + + + + + + + + +
+ +
+
+
+ +

InputBotInlineMessageID

+ +

Represents a sent inline message from the perspective of a bot

+

+
inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
inputBotInlineMessageIDRepresents a sent inline message from the perspective of a bot
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputBotInlineResult.html b/data/core.telegram.org/type/InputBotInlineResult.html new file mode 100644 index 0000000000..d454fcc9db --- /dev/null +++ b/data/core.telegram.org/type/InputBotInlineResult.html @@ -0,0 +1,158 @@ + + + + + InputBotInlineResult + + + + + + + + + + + + + +
+ +
+
+
+ +

InputBotInlineResult

+ +

Inline bot result

+

+
inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult;
+inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult;
+inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult;
+inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputBotInlineResultAn inline bot result
inputBotInlineResultPhotoPhoto
inputBotInlineResultDocumentDocument (media of any type except for photos)
inputBotInlineResultGameGame
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputChannel.html b/data/core.telegram.org/type/InputChannel.html new file mode 100644 index 0000000000..b4c6221a4d --- /dev/null +++ b/data/core.telegram.org/type/InputChannel.html @@ -0,0 +1,153 @@ + + + + + InputChannel + + + + + + + + + + + + + +
+ +
+
+
+ +

InputChannel

+ +

Represents a channel

+

+
inputChannelEmpty#ee8c1e86 = InputChannel;
+inputChannel#afeb712e channel_id:int access_hash:long = InputChannel;
+inputChannelFromMessage#2a286531 peer:InputPeer msg_id:int channel_id:int = InputChannel;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputChannelEmptyRepresents the absence of a channel
inputChannelRepresents a channel
inputChannelFromMessageDefines a min channel that was seen in a certain message of a certain chat.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputChatPhoto.html b/data/core.telegram.org/type/InputChatPhoto.html new file mode 100644 index 0000000000..f88e3f4247 --- /dev/null +++ b/data/core.telegram.org/type/InputChatPhoto.html @@ -0,0 +1,153 @@ + + + + + InputChatPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

InputChatPhoto

+ +

Defines a new group profile photo.

+

+
inputChatPhotoEmpty#1ca48f57 = InputChatPhoto;
+inputChatUploadedPhoto#c642724e flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = InputChatPhoto;
+inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputChatPhotoEmptyEmpty constructor, remove group photo.
inputChatUploadedPhotoNew photo to be set as group profile photo.
inputChatPhotoExisting photo to be set as a chat profile photo.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputCheckPasswordSRP.html b/data/core.telegram.org/type/InputCheckPasswordSRP.html new file mode 100644 index 0000000000..3232c9006c --- /dev/null +++ b/data/core.telegram.org/type/InputCheckPasswordSRP.html @@ -0,0 +1,151 @@ + + + + + InputCheckPasswordSRP + + + + + + + + + + + + + +
+ +
+
+
+ +

InputCheckPasswordSRP

+ +

Constructors for checking the validity of a 2FA SRP password

+

+
inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP;
+inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
inputCheckPasswordEmptyThere is no password
inputCheckPasswordSRPConstructor for checking the validity of a 2FA SRP password (see SRP)
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputClientProxy.html b/data/core.telegram.org/type/InputClientProxy.html new file mode 100644 index 0000000000..5fe3c92418 --- /dev/null +++ b/data/core.telegram.org/type/InputClientProxy.html @@ -0,0 +1,145 @@ + + + + + InputClientProxy + + + + + + + + + + + + + +
+ +
+
+
+ +

InputClientProxy

+ +

Info about an MTProxy used to connect.

+

+
inputClientProxy#75588b3f address:string port:int = InputClientProxy;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
inputClientProxyInfo about an MTProxy used to connect.
+

Related pages

+

MTProto transports

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputContact.html b/data/core.telegram.org/type/InputContact.html new file mode 100644 index 0000000000..9b415fdd8d --- /dev/null +++ b/data/core.telegram.org/type/InputContact.html @@ -0,0 +1,143 @@ + + + + + InputContact + + + + + + + + + + + + + +
+ +
+
+
+ +

InputContact

+ +

Object defines a contact from the user's phonebook.

+

+
inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
inputPhoneContactPhone contact. The client_id is just an arbitrary contact ID: it should be set, for example, to an incremental number when using contacts.importContacts, in order to retry importing only the contacts that weren't imported successfully.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputDialogPeer.html b/data/core.telegram.org/type/InputDialogPeer.html new file mode 100644 index 0000000000..0dbaea778f --- /dev/null +++ b/data/core.telegram.org/type/InputDialogPeer.html @@ -0,0 +1,148 @@ + + + + + InputDialogPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

InputDialogPeer

+ +

Peer, or all peers in a certain folder

+

+
inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer;
+inputDialogPeerFolder#64600527 folder_id:int = InputDialogPeer;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
inputDialogPeerA peer
inputDialogPeerFolderAll peers in a folder
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputDocument.html b/data/core.telegram.org/type/InputDocument.html new file mode 100644 index 0000000000..49a99b4d18 --- /dev/null +++ b/data/core.telegram.org/type/InputDocument.html @@ -0,0 +1,148 @@ + + + + + InputDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

InputDocument

+ +

Defines a document for subsequent interaction.

+

+
inputDocumentEmpty#72f0eaae = InputDocument;
+inputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
inputDocumentEmptyEmpty constructor.
inputDocumentDefines a video for subsequent interaction.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputEncryptedChat.html b/data/core.telegram.org/type/InputEncryptedChat.html new file mode 100644 index 0000000000..5f83dde230 --- /dev/null +++ b/data/core.telegram.org/type/InputEncryptedChat.html @@ -0,0 +1,143 @@ + + + + + InputEncryptedChat + + + + + + + + + + + + + +
+ +
+
+
+ +

InputEncryptedChat

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputEncryptedFile.html b/data/core.telegram.org/type/InputEncryptedFile.html new file mode 100644 index 0000000000..f9ee3d5645 --- /dev/null +++ b/data/core.telegram.org/type/InputEncryptedFile.html @@ -0,0 +1,158 @@ + + + + + InputEncryptedFile + + + + + + + + + + + + + +
+ +
+
+
+ +

InputEncryptedFile

+ +

Object sets encrypted file for attachment

+

+
inputEncryptedFileEmpty#1837c364 = InputEncryptedFile;
+inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile;
+inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile;
+inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputEncryptedFileEmptyEmpty constructor.
inputEncryptedFileUploadedSets new encrypted file saved by parts using upload.saveFilePart method.
inputEncryptedFileSets forwarded encrypted file for attachment.
inputEncryptedFileBigUploadedAssigns a new big encrypted file (over 10Mb in size), saved in parts using the method upload.saveBigFilePart.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputFile.html b/data/core.telegram.org/type/InputFile.html new file mode 100644 index 0000000000..40b54aa6cf --- /dev/null +++ b/data/core.telegram.org/type/InputFile.html @@ -0,0 +1,148 @@ + + + + + InputFile + + + + + + + + + + + + + +
+ +
+
+
+ +

InputFile

+ +

Defines a file uploaded by the client.

+

+
inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile;
+inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
inputFileDefines a file saved in parts using the method upload.saveFilePart.
inputFileBigAssigns a big file (over 10Mb in size), saved in part using the method upload.saveBigFilePart.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputFileLocation.html b/data/core.telegram.org/type/InputFileLocation.html new file mode 100644 index 0000000000..7a350c1afb --- /dev/null +++ b/data/core.telegram.org/type/InputFileLocation.html @@ -0,0 +1,183 @@ + + + + + InputFileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

InputFileLocation

+ +

Defines the location of a file for download.

+

+
inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation;
+inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation;
+inputDocumentFileLocation#bad07584 id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation;
+inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation;
+inputTakeoutFileLocation#29be5899 = InputFileLocation;
+inputPhotoFileLocation#40181ffe id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation;
+inputPhotoLegacyFileLocation#d83466f3 id:long access_hash:long file_reference:bytes volume_id:long local_id:int secret:long = InputFileLocation;
+inputPeerPhotoFileLocation#27d69997 flags:# big:flags.0?true peer:InputPeer volume_id:long local_id:int = InputFileLocation;
+inputStickerSetThumb#dbaeae9 stickerset:InputStickerSet volume_id:long local_id:int = InputFileLocation;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputFileLocationDEPRECATED location of a photo
inputEncryptedFileLocationLocation of encrypted secret chat file.
inputDocumentFileLocationDocument location (video, voice, audio, basically every type except photo)
inputSecureFileLocationLocation of encrypted telegram passport file.
inputTakeoutFileLocationEmpty constructor for takeout
inputPhotoFileLocationUse this object to download a photo with upload.getFile method
inputPhotoLegacyFileLocationLegacy file location
inputPeerPhotoFileLocationLocation of profile photo of channel/group/supergroup/user
inputStickerSetThumbLocation of stickerset thumbnail (see files)
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputFolderPeer.html b/data/core.telegram.org/type/InputFolderPeer.html new file mode 100644 index 0000000000..dae373f4f4 --- /dev/null +++ b/data/core.telegram.org/type/InputFolderPeer.html @@ -0,0 +1,143 @@ + + + + + InputFolderPeer + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/InputGame.html b/data/core.telegram.org/type/InputGame.html new file mode 100644 index 0000000000..fa728aa1ef --- /dev/null +++ b/data/core.telegram.org/type/InputGame.html @@ -0,0 +1,148 @@ + + + + + InputGame + + + + + + + + + + + + + +
+ +
+
+
+ +

InputGame

+ +

A game to send

+

+
inputGameID#32c3e77 id:long access_hash:long = InputGame;
+inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
inputGameIDIndicates an already sent game
inputGameShortNameGame by short name
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputGeoPoint.html b/data/core.telegram.org/type/InputGeoPoint.html new file mode 100644 index 0000000000..c952f1b961 --- /dev/null +++ b/data/core.telegram.org/type/InputGeoPoint.html @@ -0,0 +1,148 @@ + + + + + InputGeoPoint + + + + + + + + + + + + + +
+ +
+
+
+ +

InputGeoPoint

+ +

Defines a GeoPoint.

+

+
inputGeoPointEmpty#e4c123d6 = InputGeoPoint;
+inputGeoPoint#48222faf flags:# lat:double long:double accuracy_radius:flags.0?int = InputGeoPoint;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
inputGeoPointEmptyEmpty GeoPoint constructor.
inputGeoPointDefines a GeoPoint by its coordinates.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputMedia.html b/data/core.telegram.org/type/InputMedia.html new file mode 100644 index 0000000000..dd3cf9c6b7 --- /dev/null +++ b/data/core.telegram.org/type/InputMedia.html @@ -0,0 +1,213 @@ + + + + + InputMedia + + + + + + + + + + + + + +
+ +
+
+
+ +

InputMedia

+ +

Defines media content of a message.

+

+
inputMediaEmpty#9664f57f = InputMedia;
+inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;
+inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia;
+inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia;
+inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia;
+inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true force_file:flags.4?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector<DocumentAttribute> stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;
+inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia;
+inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia;
+inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia;
+inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia;
+inputMediaGame#d33f43f3 id:InputGame = InputMedia;
+inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia;
+inputMediaGeoLive#971fa843 flags:# stopped:flags.0?true geo_point:InputGeoPoint heading:flags.2?int period:flags.1?int proximity_notification_radius:flags.3?int = InputMedia;
+inputMediaPoll#f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector<bytes> solution:flags.1?string solution_entities:flags.1?Vector<MessageEntity> = InputMedia;
+inputMediaDice#e66fbf7b emoticon:string = InputMedia;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputMediaEmptyEmpty media content of a message.
inputMediaUploadedPhotoPhoto
inputMediaPhotoForwarded photo
inputMediaGeoPointMap.
inputMediaContactPhonebook contact
inputMediaUploadedDocumentNew document
inputMediaDocumentForwarded document
inputMediaVenueCan be used to send a venue geolocation.
inputMediaPhotoExternalNew photo that will be uploaded by the server using the specified URL
inputMediaDocumentExternalDocument that will be downloaded by the telegram servers
inputMediaGameA game
inputMediaInvoiceGenerated invoice of a bot payment
inputMediaGeoLiveLive geographical location
inputMediaPollA poll
inputMediaDiceSend a dice in the chat
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputMessage.html b/data/core.telegram.org/type/InputMessage.html new file mode 100644 index 0000000000..43c6cbff80 --- /dev/null +++ b/data/core.telegram.org/type/InputMessage.html @@ -0,0 +1,158 @@ + + + + + InputMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

InputMessage

+ +

A message

+

+
inputMessageID#a676a322 id:int = InputMessage;
+inputMessageReplyTo#bad88395 id:int = InputMessage;
+inputMessagePinned#86872538 = InputMessage;
+inputMessageCallbackQuery#acfa1a7e id:int query_id:long = InputMessage;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputMessageIDMessage by ID
inputMessageReplyToMessage to which the specified message replies to
inputMessagePinnedPinned message
inputMessageCallbackQueryUsed by bots for fetching information about the message that originated a callback query
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputNotifyPeer.html b/data/core.telegram.org/type/InputNotifyPeer.html new file mode 100644 index 0000000000..b208d19a12 --- /dev/null +++ b/data/core.telegram.org/type/InputNotifyPeer.html @@ -0,0 +1,158 @@ + + + + + InputNotifyPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

InputNotifyPeer

+ +

Object defines the set of users and/or groups that generate notifications.

+

+
inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer;
+inputNotifyUsers#193b4417 = InputNotifyPeer;
+inputNotifyChats#4a95e84e = InputNotifyPeer;
+inputNotifyBroadcasts#b1db7c7e = InputNotifyPeer;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputNotifyPeerNotifications generated by a certain user or group.
inputNotifyUsersNotifications generated by all users.
inputNotifyChatsNotifications generated by all groups.
inputNotifyBroadcastsAll channels
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputPaymentCredentials.html b/data/core.telegram.org/type/InputPaymentCredentials.html new file mode 100644 index 0000000000..2763dbcaef --- /dev/null +++ b/data/core.telegram.org/type/InputPaymentCredentials.html @@ -0,0 +1,158 @@ + + + + + InputPaymentCredentials + + + + + + + + + + + + + +
+ +
+
+
+ +

InputPaymentCredentials

+ +

Payment credentials

+

+
inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials;
+inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials;
+inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials;
+inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputPaymentCredentialsSavedSaved payment credentials
inputPaymentCredentialsPayment credentials
inputPaymentCredentialsApplePayApple pay payment credentials
inputPaymentCredentialsAndroidPayAndroid pay payment credentials
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputPeer.html b/data/core.telegram.org/type/InputPeer.html new file mode 100644 index 0000000000..078dd09ecc --- /dev/null +++ b/data/core.telegram.org/type/InputPeer.html @@ -0,0 +1,173 @@ + + + + + InputPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

InputPeer

+ +

Peer

+

+
inputPeerEmpty#7f3b18ea = InputPeer;
+inputPeerSelf#7da07ec9 = InputPeer;
+inputPeerChat#179be863 chat_id:int = InputPeer;
+inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer;
+inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer;
+inputPeerUserFromMessage#17bae2e6 peer:InputPeer msg_id:int user_id:int = InputPeer;
+inputPeerChannelFromMessage#9c95f7bb peer:InputPeer msg_id:int channel_id:int = InputPeer;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputPeerEmptyAn empty constructor, no user or chat is defined.
inputPeerSelfDefines the current user.
inputPeerChatDefines a chat for further interaction.
inputPeerUserDefines a user for further interaction.
inputPeerChannelDefines a channel for further interaction.
inputPeerUserFromMessageDefines a min user that was seen in a certain message of a certain chat.
inputPeerChannelFromMessageDefines a min channel that was seen in a certain message of a certain chat.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputPeerNotifySettings.html b/data/core.telegram.org/type/InputPeerNotifySettings.html new file mode 100644 index 0000000000..e5e6de1880 --- /dev/null +++ b/data/core.telegram.org/type/InputPeerNotifySettings.html @@ -0,0 +1,143 @@ + + + + + InputPeerNotifySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

InputPeerNotifySettings

+ +

Notifications settings.

+

+
inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
inputPeerNotifySettingsNotification settings.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputPhoneCall.html b/data/core.telegram.org/type/InputPhoneCall.html new file mode 100644 index 0000000000..fcbe17ef2b --- /dev/null +++ b/data/core.telegram.org/type/InputPhoneCall.html @@ -0,0 +1,143 @@ + + + + + InputPhoneCall + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/InputPhoto.html b/data/core.telegram.org/type/InputPhoto.html new file mode 100644 index 0000000000..578e455e7f --- /dev/null +++ b/data/core.telegram.org/type/InputPhoto.html @@ -0,0 +1,148 @@ + + + + + InputPhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

InputPhoto

+ +

Defines a photo for further interaction.

+

+
inputPhotoEmpty#1cd7bf0d = InputPhoto;
+inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
inputPhotoEmptyEmpty constructor.
inputPhotoDefines a photo for further interaction.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputPrivacyKey.html b/data/core.telegram.org/type/InputPrivacyKey.html new file mode 100644 index 0000000000..4fc8f55233 --- /dev/null +++ b/data/core.telegram.org/type/InputPrivacyKey.html @@ -0,0 +1,178 @@ + + + + + InputPrivacyKey + + + + + + + + + + + + + +
+ +
+
+
+ +

InputPrivacyKey

+ +

Privacy key

+

+
inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey;
+inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey;
+inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey;
+inputPrivacyKeyPhoneP2P#db9e70d2 = InputPrivacyKey;
+inputPrivacyKeyForwards#a4dd4c08 = InputPrivacyKey;
+inputPrivacyKeyProfilePhoto#5719bacc = InputPrivacyKey;
+inputPrivacyKeyPhoneNumber#352dafa = InputPrivacyKey;
+inputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputPrivacyKeyStatusTimestampWhether we can see the exact last online timestamp of the user
inputPrivacyKeyChatInviteWhether the user can be invited to chats
inputPrivacyKeyPhoneCallWhether the user will accept phone calls
inputPrivacyKeyPhoneP2PWhether the user allows P2P communication during VoIP calls
inputPrivacyKeyForwardsWhether messages forwarded from this user will be anonymous
inputPrivacyKeyProfilePhotoWhether people will be able to see the user's profile picture
inputPrivacyKeyPhoneNumberWhether people will be able to see the user's phone number
inputPrivacyKeyAddedByPhoneWhether people can add you to their contact list by your phone number
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputPrivacyRule.html b/data/core.telegram.org/type/InputPrivacyRule.html new file mode 100644 index 0000000000..6b2e3c6a51 --- /dev/null +++ b/data/core.telegram.org/type/InputPrivacyRule.html @@ -0,0 +1,178 @@ + + + + + InputPrivacyRule + + + + + + + + + + + + + +
+ +
+
+
+ +

InputPrivacyRule

+ +

Privacy rule

+

+
inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule;
+inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule;
+inputPrivacyValueAllowUsers#131cc67f users:Vector<InputUser> = InputPrivacyRule;
+inputPrivacyValueDisallowContacts#ba52007 = InputPrivacyRule;
+inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule;
+inputPrivacyValueDisallowUsers#90110467 users:Vector<InputUser> = InputPrivacyRule;
+inputPrivacyValueAllowChatParticipants#4c81c1ba chats:Vector<int> = InputPrivacyRule;
+inputPrivacyValueDisallowChatParticipants#d82363af chats:Vector<int> = InputPrivacyRule;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputPrivacyValueAllowContactsAllow only contacts
inputPrivacyValueAllowAllAllow all users
inputPrivacyValueAllowUsersAllow only certain users
inputPrivacyValueDisallowContactsDisallow only contacts
inputPrivacyValueDisallowAllDisallow all
inputPrivacyValueDisallowUsersDisallow only certain users
inputPrivacyValueAllowChatParticipantsAllow only participants of certain chats
inputPrivacyValueDisallowChatParticipantsDisallow only participants of certain chats
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputSecureFile.html b/data/core.telegram.org/type/InputSecureFile.html new file mode 100644 index 0000000000..0d8fde7d1e --- /dev/null +++ b/data/core.telegram.org/type/InputSecureFile.html @@ -0,0 +1,151 @@ + + + + + InputSecureFile + + + + + + + + + + + + + +
+ +
+
+
+ +

InputSecureFile

+ +

Secure passport file, for more info see the passport docs »

+

+
inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile;
+inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
inputSecureFileUploadedUploaded secure file, for more info see the passport docs »
inputSecureFilePreuploaded passport file, for more info see the passport docs »
+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputSecureValue.html b/data/core.telegram.org/type/InputSecureValue.html new file mode 100644 index 0000000000..aacc52509e --- /dev/null +++ b/data/core.telegram.org/type/InputSecureValue.html @@ -0,0 +1,145 @@ + + + + + InputSecureValue + + + + + + + + + + + + + +
+ +
+
+
+ +

InputSecureValue

+ +

Secure value, for more info see the passport docs »

+

+
inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector<InputSecureFile> files:flags.4?Vector<InputSecureFile> plain_data:flags.5?SecurePlainData = InputSecureValue;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
inputSecureValueSecure value, for more info see the passport docs »
+

Related pages

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputSingleMedia.html b/data/core.telegram.org/type/InputSingleMedia.html new file mode 100644 index 0000000000..cc2fb00ed7 --- /dev/null +++ b/data/core.telegram.org/type/InputSingleMedia.html @@ -0,0 +1,148 @@ + + + + + InputSingleMedia + + + + + + + + + + + + + +
+ +
+
+
+ +

InputSingleMedia

+ +

A single media in an album or grouped media sent with messages.sendMultiMedia.

+

+
inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector<MessageEntity> = InputSingleMedia;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
inputSingleMediaA single media in an album or grouped media sent with messages.sendMultiMedia.
+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+

messages.sendMultiMedia

+

Send an album or grouped media

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputStickerSet.html b/data/core.telegram.org/type/InputStickerSet.html new file mode 100644 index 0000000000..fb407945d4 --- /dev/null +++ b/data/core.telegram.org/type/InputStickerSet.html @@ -0,0 +1,163 @@ + + + + + InputStickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

InputStickerSet

+ +

Represents a stickerset

+

+
inputStickerSetEmpty#ffb62b95 = InputStickerSet;
+inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet;
+inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet;
+inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;
+inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputStickerSetEmptyEmpty constructor
inputStickerSetIDStickerset by ID
inputStickerSetShortNameStickerset by short name, from tg://addstickers?set=short_name
inputStickerSetAnimatedEmojiAnimated emojis stickerset
inputStickerSetDiceSend a dice
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputStickerSetItem.html b/data/core.telegram.org/type/InputStickerSetItem.html new file mode 100644 index 0000000000..0970a27757 --- /dev/null +++ b/data/core.telegram.org/type/InputStickerSetItem.html @@ -0,0 +1,143 @@ + + + + + InputStickerSetItem + + + + + + + + + + + + + +
+ +
+
+
+ +

InputStickerSetItem

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputStickeredMedia.html b/data/core.telegram.org/type/InputStickeredMedia.html new file mode 100644 index 0000000000..551ed85987 --- /dev/null +++ b/data/core.telegram.org/type/InputStickeredMedia.html @@ -0,0 +1,148 @@ + + + + + InputStickeredMedia + + + + + + + + + + + + + +
+ +
+
+
+ +

InputStickeredMedia

+ +

Represents a media with attached stickers

+

+
inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia;
+inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
inputStickeredMediaPhotoA photo with stickers attached
inputStickeredMediaDocumentA document with stickers attached
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputTheme.html b/data/core.telegram.org/type/InputTheme.html new file mode 100644 index 0000000000..46f5fe3b7e --- /dev/null +++ b/data/core.telegram.org/type/InputTheme.html @@ -0,0 +1,148 @@ + + + + + InputTheme + + + + + + + + + + + + + +
+ +
+
+
+ +

InputTheme

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputThemeSettings.html b/data/core.telegram.org/type/InputThemeSettings.html new file mode 100644 index 0000000000..877c9e761d --- /dev/null +++ b/data/core.telegram.org/type/InputThemeSettings.html @@ -0,0 +1,143 @@ + + + + + InputThemeSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

InputThemeSettings

+ +

Theme settings

+

+
inputThemeSettings#bd507cd1 flags:# base_theme:BaseTheme accent_color:int message_top_color:flags.0?int message_bottom_color:flags.0?int wallpaper:flags.1?InputWallPaper wallpaper_settings:flags.1?WallPaperSettings = InputThemeSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
inputThemeSettingsTheme settings
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputUser.html b/data/core.telegram.org/type/InputUser.html new file mode 100644 index 0000000000..554d8513e9 --- /dev/null +++ b/data/core.telegram.org/type/InputUser.html @@ -0,0 +1,158 @@ + + + + + InputUser + + + + + + + + + + + + + +
+ +
+
+
+ +

InputUser

+ +

Defines a user for subsequent interaction.

+

+
inputUserEmpty#b98886cf = InputUser;
+inputUserSelf#f7c1b13f = InputUser;
+inputUser#d8292816 user_id:int access_hash:long = InputUser;
+inputUserFromMessage#2d117597 peer:InputPeer msg_id:int user_id:int = InputUser;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputUserEmptyEmpty constructor, does not define a user.
inputUserSelfDefines the current user.
inputUserDefines a user for further interaction.
inputUserFromMessageDefines a min user that was seen in a certain message of a certain chat.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputWallPaper.html b/data/core.telegram.org/type/InputWallPaper.html new file mode 100644 index 0000000000..4f6f36b6af --- /dev/null +++ b/data/core.telegram.org/type/InputWallPaper.html @@ -0,0 +1,153 @@ + + + + + InputWallPaper + + + + + + + + + + + + + +
+ +
+
+
+ +

InputWallPaper

+ +

Wallpaper

+

+
inputWallPaper#e630b979 id:long access_hash:long = InputWallPaper;
+inputWallPaperSlug#72091c80 slug:string = InputWallPaper;
+inputWallPaperNoFile#8427bbac = InputWallPaper;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputWallPaperWallpaper
inputWallPaperSlugWallpaper by slug (a unique ID)
inputWallPaperNoFileWallpaper with no file
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputWebDocument.html b/data/core.telegram.org/type/InputWebDocument.html new file mode 100644 index 0000000000..c58243db57 --- /dev/null +++ b/data/core.telegram.org/type/InputWebDocument.html @@ -0,0 +1,143 @@ + + + + + InputWebDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

InputWebDocument

+ +

Specifies a document that will have to be downloaded from the URL by the telegram servers

+

+
inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector<DocumentAttribute> = InputWebDocument;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
inputWebDocumentThe document
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/InputWebFileLocation.html b/data/core.telegram.org/type/InputWebFileLocation.html new file mode 100644 index 0000000000..d01f124563 --- /dev/null +++ b/data/core.telegram.org/type/InputWebFileLocation.html @@ -0,0 +1,148 @@ + + + + + InputWebFileLocation + + + + + + + + + + + + + +
+ +
+
+
+ +

InputWebFileLocation

+ +

Location of remote file

+

+
inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation;
+inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
inputWebFileLocationLocation of a remote HTTP(s) file
inputWebFileGeoPointLocationGeolocation
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Invoice.html b/data/core.telegram.org/type/Invoice.html new file mode 100644 index 0000000000..f0cbab565b --- /dev/null +++ b/data/core.telegram.org/type/Invoice.html @@ -0,0 +1,143 @@ + + + + + Invoice + + + + + + + + + + + + + +
+ +
+
+
+ +

Invoice

+ +

Invoice

+

+
invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector<LabeledPrice> = Invoice;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
invoiceInvoice
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/JSONObjectValue.html b/data/core.telegram.org/type/JSONObjectValue.html new file mode 100644 index 0000000000..cd4594e52b --- /dev/null +++ b/data/core.telegram.org/type/JSONObjectValue.html @@ -0,0 +1,143 @@ + + + + + JSONObjectValue + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/JSONValue.html b/data/core.telegram.org/type/JSONValue.html new file mode 100644 index 0000000000..a3e1596a9f --- /dev/null +++ b/data/core.telegram.org/type/JSONValue.html @@ -0,0 +1,187 @@ + + + + + JSONValue + + + + + + + + + + + + + +
+ +
+
+
+ +

JSONValue

+ +

JSON value

+

+
jsonNull#3f6d7b68 = JSONValue;
+jsonBool#c7345e6a value:Bool = JSONValue;
+jsonNumber#2be0dfa4 value:double = JSONValue;
+jsonString#b71e767a value:string = JSONValue;
+jsonArray#f7444763 value:Vector<JSONValue> = JSONValue;
+jsonObject#99c1d49d value:Vector<JSONObjectValue> = JSONValue;
+
+---functions---
+
+help.getAppConfig#98914110 = JSONValue;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
jsonNullnull JSON value
jsonBoolJSON boolean value
jsonNumberJSON numeric value
jsonStringJSON string
jsonArrayJSON array
jsonObjectJSON object value
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getAppConfigGet app-specific configuration
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/KeyboardButton.html b/data/core.telegram.org/type/KeyboardButton.html new file mode 100644 index 0000000000..1d6ec3dfea --- /dev/null +++ b/data/core.telegram.org/type/KeyboardButton.html @@ -0,0 +1,193 @@ + + + + + KeyboardButton + + + + + + + + + + + + + +
+ +
+
+
+ +

KeyboardButton

+ +

Bot or inline keyboard buttons

+

+
keyboardButton#a2fa4880 text:string = KeyboardButton;
+keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton;
+keyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton;
+keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton;
+keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton;
+keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton;
+keyboardButtonGame#50f41ccf text:string = KeyboardButton;
+keyboardButtonBuy#afd93fbb text:string = KeyboardButton;
+keyboardButtonUrlAuth#10b78d29 flags:# text:string fwd_text:flags.0?string url:string button_id:int = KeyboardButton;
+inputKeyboardButtonUrlAuth#d02e7fd4 flags:# request_write_access:flags.0?true text:string fwd_text:flags.1?string url:string bot:InputUser = KeyboardButton;
+keyboardButtonRequestPoll#bbc7515d flags:# quiz:flags.0?Bool text:string = KeyboardButton;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
keyboardButtonBot keyboard button
keyboardButtonUrlURL button
keyboardButtonCallbackCallback button
keyboardButtonRequestPhoneButton to request a user's phone number
keyboardButtonRequestGeoLocationButton to request a user's geolocation
keyboardButtonSwitchInlineButton to force a user to switch to inline mode Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field.
keyboardButtonGameButton to start a game
keyboardButtonBuyButton to buy a product
keyboardButtonUrlAuthButton to request a user to authorize via URL using Seamless Telegram Login. When the user clicks on such a button, messages.requestUrlAuth should be called, providing the button_id and the ID of the container message. The returned urlAuthResultRequest object will contain more details about the authorization request (request_write_access if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). Finally, the user can choose to call messages.acceptUrlAuth to get a urlAuthResultAccepted with the URL to open instead of the url of this constructor, or a urlAuthResultDefault, in which case the url of this constructor must be opened, instead. If the user refuses the authorization request but still wants to open the link, the url of this constructor must be used.
inputKeyboardButtonUrlAuthButton to request a user to authorize via URL using Seamless Telegram Login.
keyboardButtonRequestPollA button that allows the user to create and send a poll when pressed; available only in private
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/KeyboardButtonRow.html b/data/core.telegram.org/type/KeyboardButtonRow.html new file mode 100644 index 0000000000..c8bcfc9438 --- /dev/null +++ b/data/core.telegram.org/type/KeyboardButtonRow.html @@ -0,0 +1,143 @@ + + + + + KeyboardButtonRow + + + + + + + + + + + + + +
+ +
+
+
+ +

KeyboardButtonRow

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/LabeledPrice.html b/data/core.telegram.org/type/LabeledPrice.html new file mode 100644 index 0000000000..ad2cfd78f5 --- /dev/null +++ b/data/core.telegram.org/type/LabeledPrice.html @@ -0,0 +1,143 @@ + + + + + LabeledPrice + + + + + + + + + + + + + +
+ +
+
+
+ +

LabeledPrice

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/LangPackDifference.html b/data/core.telegram.org/type/LangPackDifference.html new file mode 100644 index 0000000000..a4d700c8a5 --- /dev/null +++ b/data/core.telegram.org/type/LangPackDifference.html @@ -0,0 +1,167 @@ + + + + + LangPackDifference + + + + + + + + + + + + + +
+ +
+
+
+ +

LangPackDifference

+ +

Language pack changes

+

+
langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector<LangPackString> = LangPackDifference;
+
+---functions---
+
+langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference;
+langpack.getDifference#cd984aa5 lang_pack:string lang_code:string from_version:int = LangPackDifference;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
langPackDifferenceChanges to the app's localization pack
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
langpack.getLangPackGet localization pack strings
langpack.getDifferenceGet new strings in languagepack
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/LangPackLanguage.html b/data/core.telegram.org/type/LangPackLanguage.html new file mode 100644 index 0000000000..826a281e96 --- /dev/null +++ b/data/core.telegram.org/type/LangPackLanguage.html @@ -0,0 +1,162 @@ + + + + + LangPackLanguage + + + + + + + + + + + + + +
+ +
+
+
+ +

LangPackLanguage

+ +

Language pack language

+

+
langPackLanguage#eeca5ce3 flags:# official:flags.0?true rtl:flags.2?true beta:flags.3?true name:string native_name:string lang_code:string base_lang_code:flags.1?string plural_code:string strings_count:int translated_count:int translations_url:string = LangPackLanguage;
+
+---functions---
+
+langpack.getLanguage#6a596502 lang_pack:string lang_code:string = LangPackLanguage;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
langPackLanguageIdentifies a localization pack
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
langpack.getLanguageGet information about a language in a localization pack
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/LangPackString.html b/data/core.telegram.org/type/LangPackString.html new file mode 100644 index 0000000000..0824cced39 --- /dev/null +++ b/data/core.telegram.org/type/LangPackString.html @@ -0,0 +1,153 @@ + + + + + LangPackString + + + + + + + + + + + + + +
+ +
+
+
+ +

LangPackString

+ +

Language pack string

+

+
langPackString#cad181f6 key:string value:string = LangPackString;
+langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString;
+langPackStringDeleted#2979eeb2 key:string = LangPackString;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
langPackStringTranslated localization string
langPackStringPluralizedA language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info
langPackStringDeletedDeleted localization string
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MaskCoords.html b/data/core.telegram.org/type/MaskCoords.html new file mode 100644 index 0000000000..114060a660 --- /dev/null +++ b/data/core.telegram.org/type/MaskCoords.html @@ -0,0 +1,143 @@ + + + + + MaskCoords + + + + + + + + + + + + + +
+ +
+
+
+ +

MaskCoords

+ +

Mask coordinates (if this is a mask sticker, attached to a photo)

+

+
maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
maskCoordsPosition on a photo where a mask should be placed

The n position indicates where the mask should be placed:

- 0 => Relative to the forehead
- 1 => Relative to the eyes
- 2 => Relative to the mouth
- 3 => Relative to the chin
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Message.html b/data/core.telegram.org/type/Message.html new file mode 100644 index 0000000000..fa1ff1ea5c --- /dev/null +++ b/data/core.telegram.org/type/Message.html @@ -0,0 +1,153 @@ + + + + + Message + + + + + + + + + + + + + +
+ +
+
+
+ +

Message

+ +

Object describing a message.

+

+
messageEmpty#83e5de54 id:int = Message;
+message#58ae39c9 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long restriction_reason:flags.22?Vector<RestrictionReason> = Message;
+messageService#286fa604 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction = Message;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
messageEmptyEmpty constructor, non-existent message.
messageA message
messageServiceIndicates a service message
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MessageAction.html b/data/core.telegram.org/type/MessageAction.html new file mode 100644 index 0000000000..cfa7a33ddd --- /dev/null +++ b/data/core.telegram.org/type/MessageAction.html @@ -0,0 +1,258 @@ + + + + + MessageAction + + + + + + + + + + + + + +
+ +
+
+
+ +

MessageAction

+ +

Object describing actions connected to a service message.

+

+
messageActionEmpty#b6aef7b0 = MessageAction;
+messageActionChatCreate#a6638b9a title:string users:Vector<int> = MessageAction;
+messageActionChatEditTitle#b5a1ce5a title:string = MessageAction;
+messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction;
+messageActionChatDeletePhoto#95e3fbef = MessageAction;
+messageActionChatAddUser#488a7337 users:Vector<int> = MessageAction;
+messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction;
+messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction;
+messageActionChannelCreate#95d2ac92 title:string = MessageAction;
+messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction;
+messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction;
+messageActionPinMessage#94bd38ed = MessageAction;
+messageActionHistoryClear#9fbab604 = MessageAction;
+messageActionGameScore#92a72876 game_id:long score:int = MessageAction;
+messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction;
+messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction;
+messageActionPhoneCall#80e11a7f flags:# video:flags.2?true call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction;
+messageActionScreenshotTaken#4792929b = MessageAction;
+messageActionCustomAction#fae69f56 message:string = MessageAction;
+messageActionBotAllowed#abe9affe domain:string = MessageAction;
+messageActionSecureValuesSentMe#1b287353 values:Vector<SecureValue> credentials:SecureCredentialsEncrypted = MessageAction;
+messageActionSecureValuesSent#d95c6154 types:Vector<SecureValueType> = MessageAction;
+messageActionContactSignUp#f3f25f76 = MessageAction;
+messageActionGeoProximityReached#98e0d697 from_id:Peer to_id:Peer distance:int = MessageAction;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
messageActionEmptyEmpty constructor.
messageActionChatCreateGroup created
messageActionChatEditTitleGroup name changed.
messageActionChatEditPhotoGroup profile changed
messageActionChatDeletePhotoGroup profile photo removed.
messageActionChatAddUserNew member in the group
messageActionChatDeleteUserUser left the group.
messageActionChatJoinedByLinkA user joined the chat via an invite link
messageActionChannelCreateThe channel was created
messageActionChatMigrateToIndicates the chat was migrated to the specified supergroup
messageActionChannelMigrateFromIndicates the channel was migrated from the specified chat
messageActionPinMessageA message was pinned
messageActionHistoryClearChat history was cleared
messageActionGameScoreSomeone scored in a game
messageActionPaymentSentMeA user just sent a payment to me (a bot)
messageActionPaymentSentA payment was sent
messageActionPhoneCallA phone call
messageActionScreenshotTakenA screenshot of the chat was taken
messageActionCustomActionCustom action (most likely not supported by the current layer, an upgrade might be needed)
messageActionBotAllowedThe domain name of the website on which the user has logged in. More about Telegram Login »
messageActionSecureValuesSentMeSecure telegram passport values were received
messageActionSecureValuesSentRequest for secure telegram passport values was sent
messageActionContactSignUpA contact just signed up to telegram
messageActionGeoProximityReachedWe are now in proximity of this user (triggered by the other user, by sending a live geolocation with the proximity_notification_radius flag)
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MessageEntity.html b/data/core.telegram.org/type/MessageEntity.html new file mode 100644 index 0000000000..0e632188ac --- /dev/null +++ b/data/core.telegram.org/type/MessageEntity.html @@ -0,0 +1,233 @@ + + + + + MessageEntity + + + + + + + + + + + + + +
+ +
+
+
+ +

MessageEntity

+ +

Message entities, representing styled text in a message

+

+
messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity;
+messageEntityMention#fa04579d offset:int length:int = MessageEntity;
+messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity;
+messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity;
+messageEntityUrl#6ed02538 offset:int length:int = MessageEntity;
+messageEntityEmail#64e475c2 offset:int length:int = MessageEntity;
+messageEntityBold#bd610bc9 offset:int length:int = MessageEntity;
+messageEntityItalic#826f8b60 offset:int length:int = MessageEntity;
+messageEntityCode#28a20571 offset:int length:int = MessageEntity;
+messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity;
+messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity;
+messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity;
+inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity;
+messageEntityPhone#9b69e34b offset:int length:int = MessageEntity;
+messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity;
+messageEntityUnderline#9c4e7e8b offset:int length:int = MessageEntity;
+messageEntityStrike#bf0693d4 offset:int length:int = MessageEntity;
+messageEntityBlockquote#20df5d0 offset:int length:int = MessageEntity;
+messageEntityBankCard#761e6af4 offset:int length:int = MessageEntity;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
messageEntityUnknownUnknown message entity
messageEntityMentionMessage entity mentioning the current user
messageEntityHashtag#hashtag message entity
messageEntityBotCommandMessage entity representing a bot /command
messageEntityUrlMessage entity representing an in-text url: https://google.com; for text urls, use messageEntityTextUrl.
messageEntityEmailMessage entity representing an email@example.com.
messageEntityBoldMessage entity representing bold text.
messageEntityItalicMessage entity representing italic text.
messageEntityCodeMessage entity representing a codeblock.
messageEntityPreMessage entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock.
messageEntityTextUrlMessage entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.
messageEntityMentionNameMessage entity representing a user mention: for creating a mention use inputMessageEntityMentionName.
inputMessageEntityMentionNameMessage entity that can be used to create a user user mention: received mentions use the messageEntityMentionName constructor, instead.
messageEntityPhoneMessage entity representing a phone number.
messageEntityCashtagMessage entity representing a $cashtag.
messageEntityUnderlineMessage entity representing underlined text.
messageEntityStrikeMessage entity representing strikethrough text.
messageEntityBlockquoteMessage entity representing a block quote.
messageEntityBankCardIndicates a credit card number
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MessageFwdHeader.html b/data/core.telegram.org/type/MessageFwdHeader.html new file mode 100644 index 0000000000..b956d858fc --- /dev/null +++ b/data/core.telegram.org/type/MessageFwdHeader.html @@ -0,0 +1,143 @@ + + + + + MessageFwdHeader + + + + + + + + + + + + + +
+ +
+
+
+ +

MessageFwdHeader

+ +

Info about a forwarded message

+

+
messageFwdHeader#5f777dce flags:# imported:flags.7?true from_id:flags.0?Peer from_name:flags.5?string date:int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int psa_type:flags.6?string = MessageFwdHeader;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messageFwdHeaderInfo about a forwarded message
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MessageInteractionCounters.html b/data/core.telegram.org/type/MessageInteractionCounters.html new file mode 100644 index 0000000000..61b7b5537c --- /dev/null +++ b/data/core.telegram.org/type/MessageInteractionCounters.html @@ -0,0 +1,143 @@ + + + + + MessageInteractionCounters + + + + + + + + + + + + + +
+ +
+
+
+ +

MessageInteractionCounters

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MessageMedia.html b/data/core.telegram.org/type/MessageMedia.html new file mode 100644 index 0000000000..5e7e743adc --- /dev/null +++ b/data/core.telegram.org/type/MessageMedia.html @@ -0,0 +1,227 @@ + + + + + MessageMedia + + + + + + + + + + + + + +
+ +
+
+
+ +

MessageMedia

+ +

Media

+

+
messageMediaEmpty#3ded6320 = MessageMedia;
+messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia;
+messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia;
+messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia;
+messageMediaUnsupported#9f84f49e = MessageMedia;
+messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia;
+messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia;
+messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia;
+messageMediaGame#fdb19008 game:Game = MessageMedia;
+messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia;
+messageMediaGeoLive#b940c666 flags:# geo:GeoPoint heading:flags.0?int period:int proximity_notification_radius:flags.1?int = MessageMedia;
+messageMediaPoll#4bd6e798 poll:Poll results:PollResults = MessageMedia;
+messageMediaDice#3f7ee58b value:int emoticon:string = MessageMedia;
+
+---functions---
+
+messages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3?Vector<MessageEntity> = MessageMedia;
+messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
messageMediaEmptyEmpty constructor.
messageMediaPhotoAttached photo.
messageMediaGeoAttached map.
messageMediaContactAttached contact.
messageMediaUnsupportedCurrent version of the client does not support this media type.
messageMediaDocumentDocument (video, audio, voice, sticker, any media type except photo)
messageMediaWebPagePreview of webpage
messageMediaVenueVenue
messageMediaGameTelegram game
messageMediaInvoiceInvoice
messageMediaGeoLiveIndicates a live geolocation
messageMediaPollPoll
messageMediaDiceDice
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
messages.getWebPagePreviewGet preview of webpage
messages.uploadMediaUpload a file and associate it to a chat (without actually sending it to the chat)
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MessageRange.html b/data/core.telegram.org/type/MessageRange.html new file mode 100644 index 0000000000..e8cdcdfe87 --- /dev/null +++ b/data/core.telegram.org/type/MessageRange.html @@ -0,0 +1,143 @@ + + + + + MessageRange + + + + + + + + + + + + + +
+ +
+
+
+ +

MessageRange

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MessageReactionsList.html b/data/core.telegram.org/type/MessageReactionsList.html new file mode 100644 index 0000000000..9b7f6be3f2 --- /dev/null +++ b/data/core.telegram.org/type/MessageReactionsList.html @@ -0,0 +1,128 @@ + + + + + MessageReactionsList + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/MessageReplies.html b/data/core.telegram.org/type/MessageReplies.html new file mode 100644 index 0000000000..f73b4b3003 --- /dev/null +++ b/data/core.telegram.org/type/MessageReplies.html @@ -0,0 +1,146 @@ + + + + + MessageReplies + + + + + + + + + + + + + +
+ +
+
+
+ +

MessageReplies

+ +

Info about post comments (for channels) or message replies (for groups)

+

+
messageReplies#4128faac flags:# comments:flags.0?true replies:int replies_pts:int recent_repliers:flags.1?Vector<Peer> channel_id:flags.0?int max_id:flags.2?int read_max_id:flags.3?int = MessageReplies;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messageRepliesInfo about the comment section of a channel post, or a simple message thread
+

Related pages

+

Threads

+

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MessageReplyHeader.html b/data/core.telegram.org/type/MessageReplyHeader.html new file mode 100644 index 0000000000..9486d59fdb --- /dev/null +++ b/data/core.telegram.org/type/MessageReplyHeader.html @@ -0,0 +1,143 @@ + + + + + MessageReplyHeader + + + + + + + + + + + + + +
+ +
+
+
+ +

MessageReplyHeader

+ +

Reply information

+

+
messageReplyHeader#a6d57763 flags:# reply_to_msg_id:int reply_to_peer_id:flags.0?Peer reply_to_top_id:flags.1?int = MessageReplyHeader;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messageReplyHeaderMessage thread information
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MessageUserVote.html b/data/core.telegram.org/type/MessageUserVote.html new file mode 100644 index 0000000000..9a86483413 --- /dev/null +++ b/data/core.telegram.org/type/MessageUserVote.html @@ -0,0 +1,153 @@ + + + + + MessageUserVote + + + + + + + + + + + + + +
+ +
+
+
+ +

MessageUserVote

+ +

How a user voted in a poll

+

+
messageUserVote#a28e5559 user_id:int option:bytes date:int = MessageUserVote;
+messageUserVoteInputOption#36377430 user_id:int date:int = MessageUserVote;
+messageUserVoteMultiple#e8fe0de user_id:int options:Vector<bytes> date:int = MessageUserVote;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
messageUserVoteUser ID
messageUserVoteInputOptionHow a user voted in a poll (reduced constructor, returned if an option was provided to messages.getPollVotes)
messageUserVoteMultipleHow a user voted in a multiple-choice poll
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MessageViews.html b/data/core.telegram.org/type/MessageViews.html new file mode 100644 index 0000000000..ae48a53621 --- /dev/null +++ b/data/core.telegram.org/type/MessageViews.html @@ -0,0 +1,143 @@ + + + + + MessageViews + + + + + + + + + + + + + +
+ +
+
+
+ +

MessageViews

+ +

View, forward counter + info about replies of a specific message

+

+
messageViews#455b853d flags:# views:flags.0?int forwards:flags.1?int replies:flags.2?MessageReplies = MessageViews;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messageViewsView, forward counter + info about replies of a specific message
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/MessagesFilter.html b/data/core.telegram.org/type/MessagesFilter.html new file mode 100644 index 0000000000..0bb1bd888a --- /dev/null +++ b/data/core.telegram.org/type/MessagesFilter.html @@ -0,0 +1,223 @@ + + + + + MessagesFilter + + + + + + + + + + + + + +
+ +
+
+
+ +

MessagesFilter

+ +

Object describes message filter.

+

+
inputMessagesFilterEmpty#57e2f66c = MessagesFilter;
+inputMessagesFilterPhotos#9609a51c = MessagesFilter;
+inputMessagesFilterVideo#9fc00e65 = MessagesFilter;
+inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter;
+inputMessagesFilterDocument#9eddf188 = MessagesFilter;
+inputMessagesFilterUrl#7ef0dd87 = MessagesFilter;
+inputMessagesFilterGif#ffc86587 = MessagesFilter;
+inputMessagesFilterVoice#50f5c392 = MessagesFilter;
+inputMessagesFilterMusic#3751b49e = MessagesFilter;
+inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter;
+inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter;
+inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter;
+inputMessagesFilterRoundVideo#b549da53 = MessagesFilter;
+inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter;
+inputMessagesFilterGeo#e7026d0d = MessagesFilter;
+inputMessagesFilterContacts#e062db83 = MessagesFilter;
+inputMessagesFilterPinned#1bb00451 = MessagesFilter;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputMessagesFilterEmptyFilter is absent.
inputMessagesFilterPhotosFilter for messages containing photos.
inputMessagesFilterVideoFilter for messages containing videos.
inputMessagesFilterPhotoVideoFilter for messages containing photos or videos.
inputMessagesFilterDocumentFilter for messages containing documents.
inputMessagesFilterUrlReturn only messages containing URLs
inputMessagesFilterGifReturn only messages containing gifs
inputMessagesFilterVoiceReturn only messages containing voice notes
inputMessagesFilterMusicReturn only messages containing audio files
inputMessagesFilterChatPhotosReturn only chat photo changes
inputMessagesFilterPhoneCallsReturn only phone calls
inputMessagesFilterRoundVoiceReturn only round videos and voice notes
inputMessagesFilterRoundVideoReturn only round videos
inputMessagesFilterMyMentionsReturn only messages where the current user was mentioned
inputMessagesFilterGeoReturn only messages containing geolocations
inputMessagesFilterContactsReturn only messages containing contacts
inputMessagesFilterPinnedFetch only pinned messages
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/NearestDc.html b/data/core.telegram.org/type/NearestDc.html new file mode 100644 index 0000000000..32b00a6c46 --- /dev/null +++ b/data/core.telegram.org/type/NearestDc.html @@ -0,0 +1,162 @@ + + + + + NearestDc + + + + + + + + + + + + + +
+ +
+
+
+ +

NearestDc

+ +

Object contains info on nearest data centre.

+

+
nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc;
+
+---functions---
+
+help.getNearestDc#1fb33026 = NearestDc;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
nearestDcNearest data centre, according to geo-ip.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getNearestDcReturns info on data centre nearest to the user.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/NotifyPeer.html b/data/core.telegram.org/type/NotifyPeer.html new file mode 100644 index 0000000000..57d8363f3f --- /dev/null +++ b/data/core.telegram.org/type/NotifyPeer.html @@ -0,0 +1,158 @@ + + + + + NotifyPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

NotifyPeer

+ +

Object defines the set of users and/or groups that generate notifications.

+

+
notifyPeer#9fd40bd8 peer:Peer = NotifyPeer;
+notifyUsers#b4c83b4c = NotifyPeer;
+notifyChats#c007cec3 = NotifyPeer;
+notifyBroadcasts#d612e8ef = NotifyPeer;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
notifyPeerNotifications generated by a certain user or group.
notifyUsersNotifications generated by all users.
notifyChatsNotifications generated by all groups.
notifyBroadcastsChannel notification settings
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Null.html b/data/core.telegram.org/type/Null.html new file mode 100644 index 0000000000..485f4a1d65 --- /dev/null +++ b/data/core.telegram.org/type/Null.html @@ -0,0 +1,143 @@ + + + + + Null + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/Page.html b/data/core.telegram.org/type/Page.html new file mode 100644 index 0000000000..3a80037009 --- /dev/null +++ b/data/core.telegram.org/type/Page.html @@ -0,0 +1,143 @@ + + + + + Page + + + + + + + + + + + + + +
+ +
+
+
+ +

Page

+ +

Instant view page

+

+
page#98657f0d flags:# part:flags.0?true rtl:flags.1?true v2:flags.2?true url:string blocks:Vector<PageBlock> photos:Vector<Photo> documents:Vector<Document> views:flags.3?int = Page;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
pageInstant view page
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PageBlock.html b/data/core.telegram.org/type/PageBlock.html new file mode 100644 index 0000000000..1ba78fd496 --- /dev/null +++ b/data/core.telegram.org/type/PageBlock.html @@ -0,0 +1,283 @@ + + + + + PageBlock + + + + + + + + + + + + + +
+ +
+
+
+ +

PageBlock

+ +

Represents an instant view page element

+

+
pageBlockUnsupported#13567e8a = PageBlock;
+pageBlockTitle#70abc3fd text:RichText = PageBlock;
+pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock;
+pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock;
+pageBlockHeader#bfd064ec text:RichText = PageBlock;
+pageBlockSubheader#f12bb6e1 text:RichText = PageBlock;
+pageBlockParagraph#467a0766 text:RichText = PageBlock;
+pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock;
+pageBlockFooter#48870999 text:RichText = PageBlock;
+pageBlockDivider#db20b188 = PageBlock;
+pageBlockAnchor#ce0d37b0 name:string = PageBlock;
+pageBlockList#e4e88011 items:Vector<PageListItem> = PageBlock;
+pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock;
+pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock;
+pageBlockPhoto#1759c560 flags:# photo_id:long caption:PageCaption url:flags.0?string webpage_id:flags.0?long = PageBlock;
+pageBlockVideo#7c8fe7b6 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:PageCaption = PageBlock;
+pageBlockCover#39f23300 cover:PageBlock = PageBlock;
+pageBlockEmbed#a8718dc5 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:flags.5?int h:flags.5?int caption:PageCaption = PageBlock;
+pageBlockEmbedPost#f259a80b url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector<PageBlock> caption:PageCaption = PageBlock;
+pageBlockCollage#65a0fa4d items:Vector<PageBlock> caption:PageCaption = PageBlock;
+pageBlockSlideshow#31f9590 items:Vector<PageBlock> caption:PageCaption = PageBlock;
+pageBlockChannel#ef1751b5 channel:Chat = PageBlock;
+pageBlockAudio#804361ea audio_id:long caption:PageCaption = PageBlock;
+pageBlockKicker#1e148390 text:RichText = PageBlock;
+pageBlockTable#bf4dea82 flags:# bordered:flags.0?true striped:flags.1?true title:RichText rows:Vector<PageTableRow> = PageBlock;
+pageBlockOrderedList#9a8ae1e1 items:Vector<PageListOrderedItem> = PageBlock;
+pageBlockDetails#76768bed flags:# open:flags.0?true blocks:Vector<PageBlock> title:RichText = PageBlock;
+pageBlockRelatedArticles#16115a96 title:RichText articles:Vector<PageRelatedArticle> = PageBlock;
+pageBlockMap#a44f3ef6 geo:GeoPoint zoom:int w:int h:int caption:PageCaption = PageBlock;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
pageBlockUnsupportedUnsupported IV element
pageBlockTitleTitle
pageBlockSubtitleSubtitle
pageBlockAuthorDateAuthor and date of creation of article
pageBlockHeaderPage header
pageBlockSubheaderSubheader
pageBlockParagraphA paragraph
pageBlockPreformattedPreformatted (<pre> text)
pageBlockFooterPage footer
pageBlockDividerAn empty block separating a page
pageBlockAnchorLink to section within the page itself (like <a href="#target">anchor</a>)
pageBlockListUnordered list of IV blocks
pageBlockBlockquoteQuote (equivalent to the HTML <blockquote>)
pageBlockPullquotePullquote
pageBlockPhotoA photo
pageBlockVideoVideo
pageBlockCoverA page cover
pageBlockEmbedAn embedded webpage
pageBlockEmbedPostAn embedded post
pageBlockCollageCollage of media
pageBlockSlideshowSlideshow
pageBlockChannelReference to a telegram channel
pageBlockAudioAudio
pageBlockKickerKicker
pageBlockTableTable
pageBlockOrderedListOrdered list of IV blocks
pageBlockDetailsA collapsible details block
pageBlockRelatedArticlesRelated articles
pageBlockMapA map
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PageCaption.html b/data/core.telegram.org/type/PageCaption.html new file mode 100644 index 0000000000..c442307627 --- /dev/null +++ b/data/core.telegram.org/type/PageCaption.html @@ -0,0 +1,143 @@ + + + + + PageCaption + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/PageListItem.html b/data/core.telegram.org/type/PageListItem.html new file mode 100644 index 0000000000..bc5b5671b1 --- /dev/null +++ b/data/core.telegram.org/type/PageListItem.html @@ -0,0 +1,148 @@ + + + + + PageListItem + + + + + + + + + + + + + +
+ +
+
+
+ +

PageListItem

+ +

Item in block list

+

+
pageListItemText#b92fb6cd text:RichText = PageListItem;
+pageListItemBlocks#25e073fc blocks:Vector<PageBlock> = PageListItem;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
pageListItemTextList item
pageListItemBlocksList item
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PageListOrderedItem.html b/data/core.telegram.org/type/PageListOrderedItem.html new file mode 100644 index 0000000000..f69bd9d61d --- /dev/null +++ b/data/core.telegram.org/type/PageListOrderedItem.html @@ -0,0 +1,148 @@ + + + + + PageListOrderedItem + + + + + + + + + + + + + +
+ +
+
+
+ +

PageListOrderedItem

+ +

Represents an instant view ordered list

+

+
pageListOrderedItemText#5e068047 num:string text:RichText = PageListOrderedItem;
+pageListOrderedItemBlocks#98dd8936 num:string blocks:Vector<PageBlock> = PageListOrderedItem;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
pageListOrderedItemTextOrdered list of text items
pageListOrderedItemBlocksOrdered list of IV blocks
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PageRelatedArticle.html b/data/core.telegram.org/type/PageRelatedArticle.html new file mode 100644 index 0000000000..160705a60d --- /dev/null +++ b/data/core.telegram.org/type/PageRelatedArticle.html @@ -0,0 +1,143 @@ + + + + + PageRelatedArticle + + + + + + + + + + + + + +
+ +
+
+
+ +

PageRelatedArticle

+ +

Related articles

+

+
pageRelatedArticle#b390dc08 flags:# url:string webpage_id:long title:flags.0?string description:flags.1?string photo_id:flags.2?long author:flags.3?string published_date:flags.4?int = PageRelatedArticle;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
pageRelatedArticleRelated article
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PageTableCell.html b/data/core.telegram.org/type/PageTableCell.html new file mode 100644 index 0000000000..7f853eda8c --- /dev/null +++ b/data/core.telegram.org/type/PageTableCell.html @@ -0,0 +1,143 @@ + + + + + PageTableCell + + + + + + + + + + + + + +
+ +
+
+
+ +

PageTableCell

+ +

Represents a table in an instant view table

+

+
pageTableCell#34566b6a flags:# header:flags.0?true align_center:flags.3?true align_right:flags.4?true valign_middle:flags.5?true valign_bottom:flags.6?true text:flags.7?RichText colspan:flags.1?int rowspan:flags.2?int = PageTableCell;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
pageTableCellTable cell
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PageTableRow.html b/data/core.telegram.org/type/PageTableRow.html new file mode 100644 index 0000000000..9d4fed3bec --- /dev/null +++ b/data/core.telegram.org/type/PageTableRow.html @@ -0,0 +1,143 @@ + + + + + PageTableRow + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/PasswordKdfAlgo.html b/data/core.telegram.org/type/PasswordKdfAlgo.html new file mode 100644 index 0000000000..a798c4b338 --- /dev/null +++ b/data/core.telegram.org/type/PasswordKdfAlgo.html @@ -0,0 +1,151 @@ + + + + + PasswordKdfAlgo + + + + + + + + + + + + + +
+ +
+
+
+ +

PasswordKdfAlgo

+ +

Key derivation function to use when generating the password hash for SRP two-factor authorization

+

+
passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo;
+passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
passwordKdfAlgoUnknownUnknown KDF (most likely, the client is outdated and does not support the specified KDF algorithm)
passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowThis key derivation algorithm defines that SRP 2FA login must be used
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PaymentCharge.html b/data/core.telegram.org/type/PaymentCharge.html new file mode 100644 index 0000000000..4803813d02 --- /dev/null +++ b/data/core.telegram.org/type/PaymentCharge.html @@ -0,0 +1,143 @@ + + + + + PaymentCharge + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/PaymentRequestedInfo.html b/data/core.telegram.org/type/PaymentRequestedInfo.html new file mode 100644 index 0000000000..2aab2fbd77 --- /dev/null +++ b/data/core.telegram.org/type/PaymentRequestedInfo.html @@ -0,0 +1,143 @@ + + + + + PaymentRequestedInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

PaymentRequestedInfo

+ +

Requested payment info

+

+
paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
paymentRequestedInfoOrder info provided by the user
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PaymentSavedCredentials.html b/data/core.telegram.org/type/PaymentSavedCredentials.html new file mode 100644 index 0000000000..ee16c57dd2 --- /dev/null +++ b/data/core.telegram.org/type/PaymentSavedCredentials.html @@ -0,0 +1,143 @@ + + + + + PaymentSavedCredentials + + + + + + + + + + + + + +
+ +
+
+
+ +

PaymentSavedCredentials

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Peer.html b/data/core.telegram.org/type/Peer.html new file mode 100644 index 0000000000..73cd205a42 --- /dev/null +++ b/data/core.telegram.org/type/Peer.html @@ -0,0 +1,153 @@ + + + + + Peer + + + + + + + + + + + + + +
+ +
+
+
+ +

Peer

+ +

Chat partner or group.

+

+
peerUser#9db1bc6d user_id:int = Peer;
+peerChat#bad0e5bb chat_id:int = Peer;
+peerChannel#bddde532 channel_id:int = Peer;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
peerUserChat partner
peerChatGroup.
peerChannelChannel/supergroup
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PeerBlocked.html b/data/core.telegram.org/type/PeerBlocked.html new file mode 100644 index 0000000000..1a419d9dab --- /dev/null +++ b/data/core.telegram.org/type/PeerBlocked.html @@ -0,0 +1,143 @@ + + + + + PeerBlocked + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/PeerLocated.html b/data/core.telegram.org/type/PeerLocated.html new file mode 100644 index 0000000000..47dd914ba1 --- /dev/null +++ b/data/core.telegram.org/type/PeerLocated.html @@ -0,0 +1,148 @@ + + + + + PeerLocated + + + + + + + + + + + + + +
+ +
+
+
+ +

PeerLocated

+ +

Geolocated peer

+

+
peerLocated#ca461b5d peer:Peer expires:int distance:int = PeerLocated;
+peerSelfLocated#f8ec284b expires:int = PeerLocated;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
peerLocatedPeer geolocated nearby
peerSelfLocatedCurrent peer
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PeerNotifySettings.html b/data/core.telegram.org/type/PeerNotifySettings.html new file mode 100644 index 0000000000..7f6bb5e77d --- /dev/null +++ b/data/core.telegram.org/type/PeerNotifySettings.html @@ -0,0 +1,162 @@ + + + + + PeerNotifySettings + + + + + + + + + + + + + +
+ +
+
+
+ +

PeerNotifySettings

+ +

Notification settings.

+

+
peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings;
+
+---functions---
+
+account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
peerNotifySettingsNotification settings.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getNotifySettingsGets current notification settings for a given user/group, from all users/all groups.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PeerSettings.html b/data/core.telegram.org/type/PeerSettings.html new file mode 100644 index 0000000000..737aae0f6a --- /dev/null +++ b/data/core.telegram.org/type/PeerSettings.html @@ -0,0 +1,162 @@ + + + + + PeerSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

PeerSettings

+ +

Peer settings

+

+
peerSettings#733f2961 flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true geo_distance:flags.6?int = PeerSettings;
+
+---functions---
+
+messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
peerSettingsPeer settings
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getPeerSettingsGet peer settings
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PhoneCall.html b/data/core.telegram.org/type/PhoneCall.html new file mode 100644 index 0000000000..22dff2a22f --- /dev/null +++ b/data/core.telegram.org/type/PhoneCall.html @@ -0,0 +1,168 @@ + + + + + PhoneCall + + + + + + + + + + + + + +
+ +
+
+
+ +

PhoneCall

+ +

Phone call

+

+
phoneCallEmpty#5366c915 id:long = PhoneCall;
+phoneCallWaiting#1b8f4ad1 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall;
+phoneCallRequested#87eabb53 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall;
+phoneCallAccepted#997c454a flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall;
+phoneCall#8742ae7f flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector<PhoneConnection> start_date:int = PhoneCall;
+phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true video:flags.6?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
phoneCallEmptyEmpty constructor
phoneCallWaitingIncoming phone call
phoneCallRequestedRequested phone call
phoneCallAcceptedAn accepted phone call
phoneCallPhone call
phoneCallDiscardedIndicates a discarded phone call
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PhoneCallDiscardReason.html b/data/core.telegram.org/type/PhoneCallDiscardReason.html new file mode 100644 index 0000000000..c4518cf0a9 --- /dev/null +++ b/data/core.telegram.org/type/PhoneCallDiscardReason.html @@ -0,0 +1,158 @@ + + + + + PhoneCallDiscardReason + + + + + + + + + + + + + +
+ +
+
+
+ +

PhoneCallDiscardReason

+ +

Why was the phone call discarded?

+

+
phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason;
+phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason;
+phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason;
+phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
phoneCallDiscardReasonMissedThe phone call was missed
phoneCallDiscardReasonDisconnectThe phone call was disconnected
phoneCallDiscardReasonHangupThe phone call was ended normally
phoneCallDiscardReasonBusyThe phone call was discared because the user is busy in another call
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PhoneCallProtocol.html b/data/core.telegram.org/type/PhoneCallProtocol.html new file mode 100644 index 0000000000..aa41544af4 --- /dev/null +++ b/data/core.telegram.org/type/PhoneCallProtocol.html @@ -0,0 +1,143 @@ + + + + + PhoneCallProtocol + + + + + + + + + + + + + +
+ +
+
+
+ +

PhoneCallProtocol

+ +

Phone call protocol

+

+
phoneCallProtocol#fc878fc8 flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int library_versions:Vector<string> = PhoneCallProtocol;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
phoneCallProtocolProtocol info for libtgvoip
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PhoneConnection.html b/data/core.telegram.org/type/PhoneConnection.html new file mode 100644 index 0000000000..09bb1e9a92 --- /dev/null +++ b/data/core.telegram.org/type/PhoneConnection.html @@ -0,0 +1,148 @@ + + + + + PhoneConnection + + + + + + + + + + + + + +
+ +
+
+
+ +

PhoneConnection

+ +

Phone call connection

+

+
phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection;
+phoneConnectionWebrtc#635fe375 flags:# turn:flags.0?true stun:flags.1?true id:long ip:string ipv6:string port:int username:string password:string = PhoneConnection;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
phoneConnectionIdentifies an endpoint that can be used to connect to the other user in a phone call
phoneConnectionWebrtcWebRTC connection parameters
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Photo.html b/data/core.telegram.org/type/Photo.html new file mode 100644 index 0000000000..7decfaae2c --- /dev/null +++ b/data/core.telegram.org/type/Photo.html @@ -0,0 +1,148 @@ + + + + + Photo + + + + + + + + + + + + + +
+ +
+
+
+ +

Photo

+ +

Object describes a photo.

+

+
photoEmpty#2331b22d id:long = Photo;
+photo#fb197a65 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector<PhotoSize> video_sizes:flags.1?Vector<VideoSize> dc_id:int = Photo;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
photoEmptyEmpty constructor, non-existent photo
photoPhoto
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PhotoSize.html b/data/core.telegram.org/type/PhotoSize.html new file mode 100644 index 0000000000..8515b49db0 --- /dev/null +++ b/data/core.telegram.org/type/PhotoSize.html @@ -0,0 +1,168 @@ + + + + + PhotoSize + + + + + + + + + + + + + +
+ +
+
+
+ +

PhotoSize

+ +

Location of a certain size of a picture

+

+
photoSizeEmpty#e17e23c type:string = PhotoSize;
+photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize;
+photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize;
+photoStrippedSize#e0b0bc2e type:string bytes:bytes = PhotoSize;
+photoSizeProgressive#5aa86a51 type:string location:FileLocation w:int h:int sizes:Vector<int> = PhotoSize;
+photoPathSize#d8214d41 type:string bytes:bytes = PhotoSize;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
photoSizeEmptyEmpty constructor. Image with this thumbnail is unavailable.
photoSizeImage description.
photoCachedSizeDescription of an image and its content.
photoStrippedSizeJust the image's content
photoSizeProgressiveProgressively encoded photosize
photoPathSizeMessages with animated stickers can have a compressed svg (< 300 bytes) to show the outline of the sticker before fetching the actual lottie animation.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Poll.html b/data/core.telegram.org/type/Poll.html new file mode 100644 index 0000000000..a31a00d663 --- /dev/null +++ b/data/core.telegram.org/type/Poll.html @@ -0,0 +1,143 @@ + + + + + Poll + + + + + + + + + + + + + +
+ +
+
+
+ +

Poll

+ +

Indicates a poll message

+

+
poll#86e18161 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:string answers:Vector<PollAnswer> close_period:flags.4?int close_date:flags.5?int = Poll;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
pollPoll
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PollAnswer.html b/data/core.telegram.org/type/PollAnswer.html new file mode 100644 index 0000000000..eb613d6f09 --- /dev/null +++ b/data/core.telegram.org/type/PollAnswer.html @@ -0,0 +1,146 @@ + + + + + PollAnswer + + + + + + + + + + + + + +
+ +
+
+
+ +

PollAnswer

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PollAnswerVoters.html b/data/core.telegram.org/type/PollAnswerVoters.html new file mode 100644 index 0000000000..d223cf63e2 --- /dev/null +++ b/data/core.telegram.org/type/PollAnswerVoters.html @@ -0,0 +1,143 @@ + + + + + PollAnswerVoters + + + + + + + + + + + + + +
+ +
+
+
+ +

PollAnswerVoters

+ +

How users voted on a certain poll answer

+

+
pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
pollAnswerVotersA poll answer, and how users voted on it
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PollResults.html b/data/core.telegram.org/type/PollResults.html new file mode 100644 index 0000000000..4fe3eb5ca3 --- /dev/null +++ b/data/core.telegram.org/type/PollResults.html @@ -0,0 +1,143 @@ + + + + + PollResults + + + + + + + + + + + + + +
+ +
+
+
+ +

PollResults

+ +

Results of poll

+

+
pollResults#badcc1a3 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<int> solution:flags.4?string solution_entities:flags.4?Vector<MessageEntity> = PollResults;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
pollResultsResults of poll
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PopularContact.html b/data/core.telegram.org/type/PopularContact.html new file mode 100644 index 0000000000..1ad73c7c9f --- /dev/null +++ b/data/core.telegram.org/type/PopularContact.html @@ -0,0 +1,143 @@ + + + + + PopularContact + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/PostAddress.html b/data/core.telegram.org/type/PostAddress.html new file mode 100644 index 0000000000..be37090314 --- /dev/null +++ b/data/core.telegram.org/type/PostAddress.html @@ -0,0 +1,143 @@ + + + + + PostAddress + + + + + + + + + + + + + +
+ +
+
+
+ +

PostAddress

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PrivacyKey.html b/data/core.telegram.org/type/PrivacyKey.html new file mode 100644 index 0000000000..6c0d3d1460 --- /dev/null +++ b/data/core.telegram.org/type/PrivacyKey.html @@ -0,0 +1,178 @@ + + + + + PrivacyKey + + + + + + + + + + + + + +
+ +
+
+
+ +

PrivacyKey

+ +

Privacy key

+

+
privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey;
+privacyKeyChatInvite#500e6dfa = PrivacyKey;
+privacyKeyPhoneCall#3d662b7b = PrivacyKey;
+privacyKeyPhoneP2P#39491cc8 = PrivacyKey;
+privacyKeyForwards#69ec56a3 = PrivacyKey;
+privacyKeyProfilePhoto#96151fed = PrivacyKey;
+privacyKeyPhoneNumber#d19ae46d = PrivacyKey;
+privacyKeyAddedByPhone#42ffd42b = PrivacyKey;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
privacyKeyStatusTimestampWhether we can see the last online timestamp
privacyKeyChatInviteWhether the user can be invited to chats
privacyKeyPhoneCallWhether the user accepts phone calls
privacyKeyPhoneP2PWhether P2P connections in phone calls are allowed
privacyKeyForwardsWhether messages forwarded from the user will be anonymously forwarded
privacyKeyProfilePhotoWhether the profile picture of the user is visible
privacyKeyPhoneNumberWhether the user allows us to see his phone number
privacyKeyAddedByPhoneWhether people can add you to their contact list by your phone number
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/PrivacyRule.html b/data/core.telegram.org/type/PrivacyRule.html new file mode 100644 index 0000000000..cc5bf9b3fe --- /dev/null +++ b/data/core.telegram.org/type/PrivacyRule.html @@ -0,0 +1,178 @@ + + + + + PrivacyRule + + + + + + + + + + + + + +
+ +
+
+
+ +

PrivacyRule

+ +

Privacy rule

+

+
privacyValueAllowContacts#fffe1bac = PrivacyRule;
+privacyValueAllowAll#65427b82 = PrivacyRule;
+privacyValueAllowUsers#4d5bbe0c users:Vector<int> = PrivacyRule;
+privacyValueDisallowContacts#f888fa1a = PrivacyRule;
+privacyValueDisallowAll#8b73e763 = PrivacyRule;
+privacyValueDisallowUsers#c7f49b7 users:Vector<int> = PrivacyRule;
+privacyValueAllowChatParticipants#18be796b chats:Vector<int> = PrivacyRule;
+privacyValueDisallowChatParticipants#acae0690 chats:Vector<int> = PrivacyRule;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
privacyValueAllowContactsAllow all contacts
privacyValueAllowAllAllow all users
privacyValueAllowUsersAllow only certain users
privacyValueDisallowContactsDisallow only contacts
privacyValueDisallowAllDisallow all users
privacyValueDisallowUsersDisallow only certain users
privacyValueAllowChatParticipantsAllow all participants of certain chats
privacyValueDisallowChatParticipantsDisallow only participants of certain chats
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ReceivedNotifyMessage.html b/data/core.telegram.org/type/ReceivedNotifyMessage.html new file mode 100644 index 0000000000..44b36bbf0d --- /dev/null +++ b/data/core.telegram.org/type/ReceivedNotifyMessage.html @@ -0,0 +1,143 @@ + + + + + ReceivedNotifyMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

ReceivedNotifyMessage

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/RecentMeUrl.html b/data/core.telegram.org/type/RecentMeUrl.html new file mode 100644 index 0000000000..fc8f76b1c1 --- /dev/null +++ b/data/core.telegram.org/type/RecentMeUrl.html @@ -0,0 +1,163 @@ + + + + + RecentMeUrl + + + + + + + + + + + + + +
+ +
+
+
+ +

RecentMeUrl

+ +

Recent t.me urls

+

+
recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl;
+recentMeUrlUser#8dbc3336 url:string user_id:int = RecentMeUrl;
+recentMeUrlChat#a01b22f9 url:string chat_id:int = RecentMeUrl;
+recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl;
+recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
recentMeUrlUnknownUnknown t.me url
recentMeUrlUserRecent t.me link to a user
recentMeUrlChatRecent t.me link to a chat
recentMeUrlChatInviteRecent t.me invite link to a chat
recentMeUrlStickerSetRecent t.me stickerset installation URL
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ReplyMarkup.html b/data/core.telegram.org/type/ReplyMarkup.html new file mode 100644 index 0000000000..788fa253b6 --- /dev/null +++ b/data/core.telegram.org/type/ReplyMarkup.html @@ -0,0 +1,158 @@ + + + + + ReplyMarkup + + + + + + + + + + + + + +
+ +
+
+
+ +

ReplyMarkup

+ +

Reply markup for bot and inline keyboards

+

+
replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup;
+replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup;
+replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector<KeyboardButtonRow> = ReplyMarkup;
+replyInlineMarkup#48a30254 rows:Vector<KeyboardButtonRow> = ReplyMarkup;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
replyKeyboardHideHide sent bot keyboard
replyKeyboardForceReplyForce the user to send a reply
replyKeyboardMarkupBot keyboard
replyInlineMarkupBot or inline keyboard
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ReportReason.html b/data/core.telegram.org/type/ReportReason.html new file mode 100644 index 0000000000..763a50abd2 --- /dev/null +++ b/data/core.telegram.org/type/ReportReason.html @@ -0,0 +1,173 @@ + + + + + ReportReason + + + + + + + + + + + + + +
+ +
+
+
+ +

ReportReason

+ +

Report reason

+

+
inputReportReasonSpam#58dbcab8 = ReportReason;
+inputReportReasonViolence#1e22c78d = ReportReason;
+inputReportReasonPornography#2e59d922 = ReportReason;
+inputReportReasonChildAbuse#adf44ee3 = ReportReason;
+inputReportReasonOther#e1746d0a text:string = ReportReason;
+inputReportReasonCopyright#9b89f93a = ReportReason;
+inputReportReasonGeoIrrelevant#dbd4feed = ReportReason;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
inputReportReasonSpamReport for spam
inputReportReasonViolenceReport for violence
inputReportReasonPornographyReport for pornography
inputReportReasonChildAbuseReport for child abuse
inputReportReasonOtherOther
inputReportReasonCopyrightReport for copyrighted content
inputReportReasonGeoIrrelevantReport an irrelevant geogroup
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/RestrictionReason.html b/data/core.telegram.org/type/RestrictionReason.html new file mode 100644 index 0000000000..43b45cb7a3 --- /dev/null +++ b/data/core.telegram.org/type/RestrictionReason.html @@ -0,0 +1,143 @@ + + + + + RestrictionReason + + + + + + + + + + + + + +
+ +
+
+
+ +

RestrictionReason

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/RichText.html b/data/core.telegram.org/type/RichText.html new file mode 100644 index 0000000000..d479134cef --- /dev/null +++ b/data/core.telegram.org/type/RichText.html @@ -0,0 +1,218 @@ + + + + + RichText + + + + + + + + + + + + + +
+ +
+
+
+ +

RichText

+ +

Rich text

+

+
textEmpty#dc3d824f = RichText;
+textPlain#744694e0 text:string = RichText;
+textBold#6724abc4 text:RichText = RichText;
+textItalic#d912a59c text:RichText = RichText;
+textUnderline#c12622c4 text:RichText = RichText;
+textStrike#9bf8bb95 text:RichText = RichText;
+textFixed#6c3f19b9 text:RichText = RichText;
+textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText;
+textEmail#de5a0dd6 text:RichText email:string = RichText;
+textConcat#7e6260d7 texts:Vector<RichText> = RichText;
+textSubscript#ed6a8504 text:RichText = RichText;
+textSuperscript#c7fb5e01 text:RichText = RichText;
+textMarked#34b8621 text:RichText = RichText;
+textPhone#1ccb966a text:RichText phone:string = RichText;
+textImage#81ccf4f document_id:long w:int h:int = RichText;
+textAnchor#35553762 text:RichText name:string = RichText;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
textEmptyEmpty rich text element
textPlainPlain text
textBoldBold text
textItalicItalic text
textUnderlineUnderlined text
textStrikeStrikethrough text
textFixedfixed-width rich text
textUrlLink
textEmailRich text email link
textConcatConcatenation of rich texts
textSubscriptSubscript text
textSuperscriptSuperscript text
textMarkedHighlighted text
textPhoneRich text linked to a phone number
textImageInline image
textAnchorText linking to another section of the page
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SavedContact.html b/data/core.telegram.org/type/SavedContact.html new file mode 100644 index 0000000000..eac2ad0944 --- /dev/null +++ b/data/core.telegram.org/type/SavedContact.html @@ -0,0 +1,143 @@ + + + + + SavedContact + + + + + + + + + + + + + +
+ +
+
+
+ +

SavedContact

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SecureCredentialsEncrypted.html b/data/core.telegram.org/type/SecureCredentialsEncrypted.html new file mode 100644 index 0000000000..1ab7df2e2b --- /dev/null +++ b/data/core.telegram.org/type/SecureCredentialsEncrypted.html @@ -0,0 +1,143 @@ + + + + + SecureCredentialsEncrypted + + + + + + + + + + + + + +
+ +
+
+
+ +

SecureCredentialsEncrypted

+ +

Encrypted secure credentials

+

+
secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
secureCredentialsEncryptedEncrypted credentials required to decrypt telegram passport data.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SecureData.html b/data/core.telegram.org/type/SecureData.html new file mode 100644 index 0000000000..45416ea568 --- /dev/null +++ b/data/core.telegram.org/type/SecureData.html @@ -0,0 +1,146 @@ + + + + + SecureData + + + + + + + + + + + + + +
+ +
+
+
+ +

SecureData

+ +

Secure passport data, for more info see the passport docs »

+

+
secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
secureDataSecure data
+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SecureFile.html b/data/core.telegram.org/type/SecureFile.html new file mode 100644 index 0000000000..2b54777d4a --- /dev/null +++ b/data/core.telegram.org/type/SecureFile.html @@ -0,0 +1,151 @@ + + + + + SecureFile + + + + + + + + + + + + + +
+ +
+
+
+ +

SecureFile

+ +

Secure passport file, for more info see the passport docs »

+

+
secureFileEmpty#64199744 = SecureFile;
+secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
secureFileEmptyEmpty constructor
secureFileSecure file
+

Related pages

+

Telegram Passport Manual

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SecurePasswordKdfAlgo.html b/data/core.telegram.org/type/SecurePasswordKdfAlgo.html new file mode 100644 index 0000000000..c14ef0ce3f --- /dev/null +++ b/data/core.telegram.org/type/SecurePasswordKdfAlgo.html @@ -0,0 +1,155 @@ + + + + + SecurePasswordKdfAlgo + + + + + + + + + + + + + +
+ +
+
+
+ +

SecurePasswordKdfAlgo

+ +

KDF algorithm to use for computing telegram passport hash

+

+
securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo;
+securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo;
+securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
securePasswordKdfAlgoUnknownUnknown KDF algo (most likely the client has to be updated)
securePasswordKdfAlgoPBKDF2HMACSHA512iter100000PBKDF2 with SHA512 and 100000 iterations KDF algo
securePasswordKdfAlgoSHA512SHA512 KDF algo
+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SecurePlainData.html b/data/core.telegram.org/type/SecurePlainData.html new file mode 100644 index 0000000000..daca73021b --- /dev/null +++ b/data/core.telegram.org/type/SecurePlainData.html @@ -0,0 +1,150 @@ + + + + + SecurePlainData + + + + + + + + + + + + + +
+ +
+
+
+ +

SecurePlainData

+ +

Plaintext verified passport data.

+

+
securePlainPhone#7d6099dd phone:string = SecurePlainData;
+securePlainEmail#21ec5a5f email:string = SecurePlainData;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
securePlainPhonePhone number to use in telegram passport: it must be verified, first ».
securePlainEmailEmail address to use in telegram passport: it must be verified, first ».
+

Related pages

+

Telegram Passport Encryption Details

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SecureRequiredType.html b/data/core.telegram.org/type/SecureRequiredType.html new file mode 100644 index 0000000000..dbf90440d7 --- /dev/null +++ b/data/core.telegram.org/type/SecureRequiredType.html @@ -0,0 +1,148 @@ + + + + + SecureRequiredType + + + + + + + + + + + + + +
+ +
+
+
+ +

SecureRequiredType

+ +

Required secure file type

+

+
secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType;
+secureRequiredTypeOneOf#27477b4 types:Vector<SecureRequiredType> = SecureRequiredType;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
secureRequiredTypeRequired type
secureRequiredTypeOneOfOne of
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SecureSecretSettings.html b/data/core.telegram.org/type/SecureSecretSettings.html new file mode 100644 index 0000000000..ba0d96dd17 --- /dev/null +++ b/data/core.telegram.org/type/SecureSecretSettings.html @@ -0,0 +1,145 @@ + + + + + SecureSecretSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

SecureSecretSettings

+ +

Telegram passport settings

+

+
secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
secureSecretSettingsSecure settings
+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SecureValue.html b/data/core.telegram.org/type/SecureValue.html new file mode 100644 index 0000000000..be459a438f --- /dev/null +++ b/data/core.telegram.org/type/SecureValue.html @@ -0,0 +1,162 @@ + + + + + SecureValue + + + + + + + + + + + + + +
+ +
+
+
+ +

SecureValue

+ +

Secure tgpassport value

+

+
secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector<SecureFile> files:flags.4?Vector<SecureFile> plain_data:flags.5?SecurePlainData hash:bytes = SecureValue;
+
+---functions---
+
+account.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
secureValueSecure value
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.saveSecureValueSave secure passport value
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SecureValueError.html b/data/core.telegram.org/type/SecureValueError.html new file mode 100644 index 0000000000..3e18d045e0 --- /dev/null +++ b/data/core.telegram.org/type/SecureValueError.html @@ -0,0 +1,183 @@ + + + + + SecureValueError + + + + + + + + + + + + + +
+ +
+
+
+ +

SecureValueError

+ +

Secure value error

+

+
secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError;
+secureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError;
+secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError;
+secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError;
+secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError;
+secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector<bytes> text:string = SecureValueError;
+secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError;
+secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError;
+secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector<bytes> text:string = SecureValueError;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
secureValueErrorDataSecure value error
secureValueErrorFrontSideSecure value error front side
secureValueErrorReverseSideReverse side error
secureValueErrorSelfieSecure value error: invalid selfie
secureValueErrorFileSecure value error file
secureValueErrorFilesSecure value error files
secureValueErrorSecure value error
secureValueErrorTranslationFileTranslation missing
secureValueErrorTranslationFilesTranslation file error
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SecureValueHash.html b/data/core.telegram.org/type/SecureValueHash.html new file mode 100644 index 0000000000..7bd165fcc5 --- /dev/null +++ b/data/core.telegram.org/type/SecureValueHash.html @@ -0,0 +1,143 @@ + + + + + SecureValueHash + + + + + + + + + + + + + +
+ +
+
+ + +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SecureValueType.html b/data/core.telegram.org/type/SecureValueType.html new file mode 100644 index 0000000000..75ada85e47 --- /dev/null +++ b/data/core.telegram.org/type/SecureValueType.html @@ -0,0 +1,203 @@ + + + + + SecureValueType + + + + + + + + + + + + + +
+ +
+
+
+ +

SecureValueType

+ +

Secure value type

+

+
secureValueTypePersonalDetails#9d2a81e3 = SecureValueType;
+secureValueTypePassport#3dac6a00 = SecureValueType;
+secureValueTypeDriverLicense#6e425c4 = SecureValueType;
+secureValueTypeIdentityCard#a0d0744b = SecureValueType;
+secureValueTypeInternalPassport#99a48f23 = SecureValueType;
+secureValueTypeAddress#cbe31e26 = SecureValueType;
+secureValueTypeUtilityBill#fc36954e = SecureValueType;
+secureValueTypeBankStatement#89137c0d = SecureValueType;
+secureValueTypeRentalAgreement#8b883488 = SecureValueType;
+secureValueTypePassportRegistration#99e3806a = SecureValueType;
+secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType;
+secureValueTypePhone#b320aadb = SecureValueType;
+secureValueTypeEmail#8e3ca7ee = SecureValueType;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
secureValueTypePersonalDetailsPersonal details
secureValueTypePassportPassport
secureValueTypeDriverLicenseDriver's license
secureValueTypeIdentityCardIdentity card
secureValueTypeInternalPassportInternal passport
secureValueTypeAddressAddress
secureValueTypeUtilityBillUtility bill
secureValueTypeBankStatementBank statement
secureValueTypeRentalAgreementRental agreement
secureValueTypePassportRegistrationInternal registration passport
secureValueTypeTemporaryRegistrationTemporary registration
secureValueTypePhonePhone
secureValueTypeEmailEmail
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/SendMessageAction.html b/data/core.telegram.org/type/SendMessageAction.html new file mode 100644 index 0000000000..d7cf006d0a --- /dev/null +++ b/data/core.telegram.org/type/SendMessageAction.html @@ -0,0 +1,203 @@ + + + + + SendMessageAction + + + + + + + + + + + + + +
+ +
+
+
+ +

SendMessageAction

+ +

User actions. Use this to provide users with detailed info about their chat partners' actions: typing or sending attachments of all kinds.

+

+
sendMessageTypingAction#16bf744e = SendMessageAction;
+sendMessageCancelAction#fd5ec8f5 = SendMessageAction;
+sendMessageRecordVideoAction#a187d66f = SendMessageAction;
+sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction;
+sendMessageRecordAudioAction#d52f73f7 = SendMessageAction;
+sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction;
+sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction;
+sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction;
+sendMessageGeoLocationAction#176f8ba1 = SendMessageAction;
+sendMessageChooseContactAction#628cbc6f = SendMessageAction;
+sendMessageGamePlayAction#dd6a8f48 = SendMessageAction;
+sendMessageRecordRoundAction#88f27fbc = SendMessageAction;
+sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
sendMessageTypingActionUser is typing.
sendMessageCancelActionInvalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload.
sendMessageRecordVideoActionUser is recording a video.
sendMessageUploadVideoActionUser is uploading a video.
sendMessageRecordAudioActionUser is recording a voice message.
sendMessageUploadAudioActionUser is uploading a voice message.
sendMessageUploadPhotoActionUser is uploading a photo.
sendMessageUploadDocumentActionUser is uploading a file.
sendMessageGeoLocationActionUser is selecting a location to share.
sendMessageChooseContactActionUser is selecting a contact to share.
sendMessageGamePlayActionUser is playing a game
sendMessageRecordRoundActionUser is recording a round video to share
sendMessageUploadRoundActionUser is uploading a round video
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ShippingOption.html b/data/core.telegram.org/type/ShippingOption.html new file mode 100644 index 0000000000..96f8ea5e28 --- /dev/null +++ b/data/core.telegram.org/type/ShippingOption.html @@ -0,0 +1,143 @@ + + + + + ShippingOption + + + + + + + + + + + + + +
+ +
+
+
+ +

ShippingOption

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/StatsAbsValueAndPrev.html b/data/core.telegram.org/type/StatsAbsValueAndPrev.html new file mode 100644 index 0000000000..e4034358f2 --- /dev/null +++ b/data/core.telegram.org/type/StatsAbsValueAndPrev.html @@ -0,0 +1,143 @@ + + + + + StatsAbsValueAndPrev + + + + + + + + + + + + + +
+ +
+
+
+ +

StatsAbsValueAndPrev

+ +

Channel statistics value pair

+

+
statsAbsValueAndPrev#cb43acde current:double previous:double = StatsAbsValueAndPrev;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
statsAbsValueAndPrevStatistics value couple; intial and final value for period of time currently in consideration
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/StatsDateRangeDays.html b/data/core.telegram.org/type/StatsDateRangeDays.html new file mode 100644 index 0000000000..8dae7c2ac0 --- /dev/null +++ b/data/core.telegram.org/type/StatsDateRangeDays.html @@ -0,0 +1,143 @@ + + + + + StatsDateRangeDays + + + + + + + + + + + + + +
+ +
+
+
+ +

StatsDateRangeDays

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/StatsGraph.html b/data/core.telegram.org/type/StatsGraph.html new file mode 100644 index 0000000000..f76bb71f82 --- /dev/null +++ b/data/core.telegram.org/type/StatsGraph.html @@ -0,0 +1,172 @@ + + + + + StatsGraph + + + + + + + + + + + + + +
+ +
+
+
+ +

StatsGraph

+ +

Channel statistics graph

+

+
statsGraphAsync#4a27eb2d token:string = StatsGraph;
+statsGraphError#bedc9822 error:string = StatsGraph;
+statsGraph#8ea464b6 flags:# json:DataJSON zoom_token:flags.0?string = StatsGraph;
+
+---functions---
+
+stats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
statsGraphAsyncThis graph must be generated asynchronously using stats.loadAsyncGraph to reduce server load
statsGraphErrorAn error occurred while generating the statistics graph
statsGraphChannel statistics graph
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
stats.loadAsyncGraphLoad channel statistics graph asynchronously
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/StatsGroupTopAdmin.html b/data/core.telegram.org/type/StatsGroupTopAdmin.html new file mode 100644 index 0000000000..b783a73a14 --- /dev/null +++ b/data/core.telegram.org/type/StatsGroupTopAdmin.html @@ -0,0 +1,146 @@ + + + + + StatsGroupTopAdmin + + + + + + + + + + + + + +
+ +
+
+
+ +

StatsGroupTopAdmin

+ +

Most active admin in a supergroup

+

+
statsGroupTopAdmin#6014f412 user_id:int deleted:int kicked:int banned:int = StatsGroupTopAdmin;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
statsGroupTopAdminInformation about an active admin in a supergroup
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/StatsGroupTopInviter.html b/data/core.telegram.org/type/StatsGroupTopInviter.html new file mode 100644 index 0000000000..31b9d6953b --- /dev/null +++ b/data/core.telegram.org/type/StatsGroupTopInviter.html @@ -0,0 +1,146 @@ + + + + + StatsGroupTopInviter + + + + + + + + + + + + + +
+ +
+
+
+ +

StatsGroupTopInviter

+ +

Most active inviter in a supergroup

+

+
statsGroupTopInviter#31962a4c user_id:int invitations:int = StatsGroupTopInviter;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
statsGroupTopInviterInformation about an active supergroup inviter
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/StatsGroupTopPoster.html b/data/core.telegram.org/type/StatsGroupTopPoster.html new file mode 100644 index 0000000000..c513445d7d --- /dev/null +++ b/data/core.telegram.org/type/StatsGroupTopPoster.html @@ -0,0 +1,146 @@ + + + + + StatsGroupTopPoster + + + + + + + + + + + + + +
+ +
+
+
+ +

StatsGroupTopPoster

+ +

Most active user in a supergroup

+

+
statsGroupTopPoster#18f3d0f7 user_id:int messages:int avg_chars:int = StatsGroupTopPoster;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
statsGroupTopPosterInformation about an active user in a supergroup
+

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/StatsPercentValue.html b/data/core.telegram.org/type/StatsPercentValue.html new file mode 100644 index 0000000000..3c030cab3c --- /dev/null +++ b/data/core.telegram.org/type/StatsPercentValue.html @@ -0,0 +1,143 @@ + + + + + StatsPercentValue + + + + + + + + + + + + + +
+ +
+
+
+ +

StatsPercentValue

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/StatsURL.html b/data/core.telegram.org/type/StatsURL.html new file mode 100644 index 0000000000..1e39f5a4bb --- /dev/null +++ b/data/core.telegram.org/type/StatsURL.html @@ -0,0 +1,162 @@ + + + + + StatsURL + + + + + + + + + + + + + +
+ +
+
+
+ +

StatsURL

+ +

URL with chat statistics

+

+
statsURL#47a971e0 url:string = StatsURL;
+
+---functions---
+
+messages.getStatsURL#812c2ae6 flags:# dark:flags.0?true peer:InputPeer params:string = StatsURL;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
statsURLURL with chat statistics
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getStatsURLReturns URL with the chat statistics. Currently this method can be used only for channels
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/StickerPack.html b/data/core.telegram.org/type/StickerPack.html new file mode 100644 index 0000000000..9303854fae --- /dev/null +++ b/data/core.telegram.org/type/StickerPack.html @@ -0,0 +1,143 @@ + + + + + StickerPack + + + + + + + + + + + + + +
+ +
+
+
+ +

StickerPack

+ +

Stickerpack

+

+
stickerPack#12b299d4 emoticon:string documents:Vector<long> = StickerPack;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
stickerPackA stickerpack is a group of stickers associated to the same emoji.
It is not a sticker pack the way it is usually intended, you may be looking for a StickerSet.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/StickerSet.html b/data/core.telegram.org/type/StickerSet.html new file mode 100644 index 0000000000..ba3db2b567 --- /dev/null +++ b/data/core.telegram.org/type/StickerSet.html @@ -0,0 +1,143 @@ + + + + + StickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

StickerSet

+ +

Represents a stickerset (stickerpack)

+

+
stickerSet#eeb46f27 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumb:flags.4?PhotoSize thumb_dc_id:flags.4?int count:int hash:int = StickerSet;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
stickerSetRepresents a stickerset (stickerpack)
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/StickerSetCovered.html b/data/core.telegram.org/type/StickerSetCovered.html new file mode 100644 index 0000000000..1b1a194f76 --- /dev/null +++ b/data/core.telegram.org/type/StickerSetCovered.html @@ -0,0 +1,148 @@ + + + + + StickerSetCovered + + + + + + + + + + + + + +
+ +
+
+
+ +

StickerSetCovered

+ +

Stickerset, with a specific sticker as preview

+

+
stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered;
+stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector<Document> = StickerSetCovered;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
stickerSetCoveredStickerset, with a specific sticker as preview
stickerSetMultiCoveredStickerset, with a specific stickers as preview
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Theme.html b/data/core.telegram.org/type/Theme.html new file mode 100644 index 0000000000..b657439a8d --- /dev/null +++ b/data/core.telegram.org/type/Theme.html @@ -0,0 +1,172 @@ + + + + + Theme + + + + + + + + + + + + + +
+ +
+
+
+ +

Theme

+ +

Cloud theme

+

+
theme#28f1114 flags:# creator:flags.0?true default:flags.1?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?ThemeSettings installs_count:int = Theme;
+
+---functions---
+
+account.createTheme#8432c21f flags:# slug:string title:string document:flags.2?InputDocument settings:flags.3?InputThemeSettings = Theme;
+account.updateTheme#5cb367d5 flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument settings:flags.3?InputThemeSettings = Theme;
+account.getTheme#8d9d742b format:string theme:InputTheme document_id:long = Theme;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
themeTheme
+

Methods

+ + + + + + + + + + + + + + + + + + + + + +
MethodDescription
account.createThemeCreate a theme
account.updateThemeUpdate theme
account.getThemeGet theme information
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/ThemeSettings.html b/data/core.telegram.org/type/ThemeSettings.html new file mode 100644 index 0000000000..42b220d770 --- /dev/null +++ b/data/core.telegram.org/type/ThemeSettings.html @@ -0,0 +1,143 @@ + + + + + ThemeSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

ThemeSettings

+ +

Theme settings

+

+
themeSettings#9c14984a flags:# base_theme:BaseTheme accent_color:int message_top_color:flags.0?int message_bottom_color:flags.0?int wallpaper:flags.1?WallPaper = ThemeSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
themeSettingsTheme settings
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/TopPeer.html b/data/core.telegram.org/type/TopPeer.html new file mode 100644 index 0000000000..f0d8798851 --- /dev/null +++ b/data/core.telegram.org/type/TopPeer.html @@ -0,0 +1,143 @@ + + + + + TopPeer + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/TopPeerCategory.html b/data/core.telegram.org/type/TopPeerCategory.html new file mode 100644 index 0000000000..9ca7efa2c1 --- /dev/null +++ b/data/core.telegram.org/type/TopPeerCategory.html @@ -0,0 +1,178 @@ + + + + + TopPeerCategory + + + + + + + + + + + + + +
+ +
+
+
+ +

TopPeerCategory

+ +

Top peer category

+

+
topPeerCategoryBotsPM#ab661b5b = TopPeerCategory;
+topPeerCategoryBotsInline#148677e2 = TopPeerCategory;
+topPeerCategoryCorrespondents#637b7ed = TopPeerCategory;
+topPeerCategoryGroups#bd17a14a = TopPeerCategory;
+topPeerCategoryChannels#161d9628 = TopPeerCategory;
+topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory;
+topPeerCategoryForwardUsers#a8406ca9 = TopPeerCategory;
+topPeerCategoryForwardChats#fbeec0f0 = TopPeerCategory;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
topPeerCategoryBotsPMMost used bots
topPeerCategoryBotsInlineMost used inline bots
topPeerCategoryCorrespondentsUsers we've chatted most frequently with
topPeerCategoryGroupsOften-opened groups and supergroups
topPeerCategoryChannelsMost frequently visited channels
topPeerCategoryPhoneCallsMost frequently called users
topPeerCategoryForwardUsersUsers to which the users often forwards messages to
topPeerCategoryForwardChatsChats to which the users often forwards messages to
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/TopPeerCategoryPeers.html b/data/core.telegram.org/type/TopPeerCategoryPeers.html new file mode 100644 index 0000000000..26269fe475 --- /dev/null +++ b/data/core.telegram.org/type/TopPeerCategoryPeers.html @@ -0,0 +1,143 @@ + + + + + TopPeerCategoryPeers + + + + + + + + + + + + + +
+ +
+
+
+ +

TopPeerCategoryPeers

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/True.html b/data/core.telegram.org/type/True.html new file mode 100644 index 0000000000..e042d3ae1a --- /dev/null +++ b/data/core.telegram.org/type/True.html @@ -0,0 +1,145 @@ + + + + + True + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/Update.html b/data/core.telegram.org/type/Update.html new file mode 100644 index 0000000000..8862d98e95 --- /dev/null +++ b/data/core.telegram.org/type/Update.html @@ -0,0 +1,562 @@ + + + + + Update + + + + + + + + + + + + + +
+ +
+
+
+ +

Update

+ +

Object contains info on events occured.

+

+
updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update;
+updateMessageID#4e90bfd6 id:int random_id:long = Update;
+updateDeleteMessages#a20db0e5 messages:Vector<int> pts:int pts_count:int = Update;
+updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update;
+updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update;
+updateChatParticipants#7761198 participants:ChatParticipants = Update;
+updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update;
+updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update;
+updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update;
+updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update;
+updateEncryptedChatTyping#1710f156 chat_id:int = Update;
+updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update;
+updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update;
+updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update;
+updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update;
+updateDcOptions#8e5e9873 dc_options:Vector<DcOption> = Update;
+updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update;
+updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector<MessageEntity> = Update;
+updatePrivacy#ee3b272a key:PrivacyKey rules:Vector<PrivacyRule> = Update;
+updateUserPhone#12b9417b user_id:int phone:string = Update;
+updateReadHistoryInbox#9c974fdf flags:# folder_id:flags.0?int peer:Peer max_id:int still_unread_count:int pts:int pts_count:int = Update;
+updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update;
+updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update;
+updateReadMessagesContents#68c13933 messages:Vector<int> pts:int pts_count:int = Update;
+updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update;
+updateChannel#b6d45656 channel_id:int = Update;
+updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update;
+updateReadChannelInbox#330b5424 flags:# folder_id:flags.0?int channel_id:int max_id:int still_unread_count:int pts:int = Update;
+updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector<int> pts:int pts_count:int = Update;
+updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update;
+updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update;
+updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update;
+updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector<long> = Update;
+updateStickerSets#43ae3dec = Update;
+updateSavedGifs#9375341e = Update;
+updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update;
+updateBotInlineSend#e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update;
+updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update;
+updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update;
+updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update;
+updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update;
+updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update;
+updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update;
+updateReadFeaturedStickers#571d2742 = Update;
+updateRecentStickers#9a422c20 = Update;
+updateConfig#a229dd06 = Update;
+updatePtsChanged#3354678f = Update;
+updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update;
+updateDialogPinned#6e6fe51c flags:# pinned:flags.0?true folder_id:flags.1?int peer:DialogPeer = Update;
+updatePinnedDialogs#fa0f3ca2 flags:# folder_id:flags.1?int order:flags.0?Vector<DialogPeer> = Update;
+updateBotWebhookJSON#8317c0c3 data:DataJSON = Update;
+updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update;
+updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update;
+updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update;
+updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update;
+updateLangPackTooLong#46560264 lang_code:string = Update;
+updateLangPack#56022f4d difference:LangPackDifference = Update;
+updateFavedStickers#e511996d = Update;
+updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector<int> = Update;
+updateContactsReset#7084a7be = Update;
+updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update;
+updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update;
+updateMessagePoll#aca1657b flags:# poll_id:long poll:flags.0?Poll results:PollResults = Update;
+updateChatDefaultBannedRights#54c01850 peer:Peer default_banned_rights:ChatBannedRights version:int = Update;
+updateFolderPeers#19360dc0 folder_peers:Vector<FolderPeer> pts:int pts_count:int = Update;
+updatePeerSettings#6a7e7366 peer:Peer settings:PeerSettings = Update;
+updatePeerLocated#b4afcfb0 peers:Vector<PeerLocated> = Update;
+updateNewScheduledMessage#39a51dfb message:Message = Update;
+updateDeleteScheduledMessages#90866cee peer:Peer messages:Vector<int> = Update;
+updateTheme#8216fba3 theme:Theme = Update;
+updateGeoLiveViewed#871fb939 peer:Peer msg_id:int = Update;
+updateLoginToken#564fe691 = Update;
+updateMessagePollVote#42f88f2c poll_id:long user_id:int options:Vector<bytes> = Update;
+updateDialogFilter#26ffde7d flags:# id:int filter:flags.0?DialogFilter = Update;
+updateDialogFilterOrder#a5d72105 order:Vector<int> = Update;
+updateDialogFilters#3504914f = Update;
+updatePhoneCallSignalingData#2661bf09 phone_call_id:long data:bytes = Update;
+updateChannelMessageForwards#6e8a84df channel_id:int id:int forwards:int = Update;
+updateReadChannelDiscussionInbox#1cc7de54 flags:# channel_id:int top_msg_id:int read_max_id:int broadcast_id:flags.0?int broadcast_post:flags.0?int = Update;
+updateReadChannelDiscussionOutbox#4638a26c channel_id:int top_msg_id:int read_max_id:int = Update;
+updatePeerBlocked#246a4b22 peer_id:Peer blocked:Bool = Update;
+updateChannelUserTyping#ff2abe9f flags:# channel_id:int top_msg_id:flags.0?int user_id:int action:SendMessageAction = Update;
+updatePinnedMessages#ed85eab5 flags:# pinned:flags.0?true peer:Peer messages:Vector<int> pts:int pts_count:int = Update;
+updatePinnedChannelMessages#8588878b flags:# pinned:flags.0?true channel_id:int messages:Vector<int> pts:int pts_count:int = Update;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
updateNewMessageNew message.
updateMessageIDSent message with random_id client identifier was assigned an identifier.
updateDeleteMessagesMessages were deleted.
updateUserTypingThe user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he's been doing.
updateChatUserTypingThe user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he's been doing.
updateChatParticipantsComposition of chat participants changed.
updateUserStatusContact status update.
updateUserNameChanges the user's first name, last name and username.
updateUserPhotoChange of contact's profile photo.
updateNewEncryptedMessageNew encrypted message.
updateEncryptedChatTypingInterlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time there is no repeated update, it shall be considered that the interlocutor stopped typing.
updateEncryptionChange of state in an encrypted chat.
updateEncryptedMessagesReadCommunication history in an encrypted chat was marked as read.
updateChatParticipantAddNew group member.
updateChatParticipantDeleteA member has left the group.
updateDcOptionsChanges in the data center configuration options.
updateNotifySettingsChanges in notification settings.
updateServiceNotificationA service message for the user.

The app must show the message to the user upon receiving this update. In case the popup parameter was passed, the text message must be displayed in a popup alert immediately upon receipt. It is recommended to handle the text as you would an ordinary message in terms of highlighting links, etc. The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications).
updatePrivacyPrivacy rules were changed
updateUserPhoneA user's phone number was changed
updateReadHistoryInboxIncoming messages were read
updateReadHistoryOutboxOutgoing messages were read
updateWebPageAn (IV) webpage preview was generated
updateReadMessagesContentsContents of messages in the common message box were read
updateChannelTooLongThere are new updates in the specified channel, the client must fetch them, eventually starting the specified pts if the difference is too long or if the channel isn't currently in the states.
updateChannelA new channel is available
updateNewChannelMessageA new message was sent in a channel/supergroup
updateReadChannelInboxIncoming messages in a channel/supergroup were read
updateDeleteChannelMessagesSome messages in a supergroup/channel were deleted
updateChannelMessageViewsThe view counter of a message in a channel has changed
updateChatParticipantAdminAdmin permissions of a user in a legacy group were changed
updateNewStickerSetA new stickerset was installed
updateStickerSetsOrderThe order of stickersets was changed
updateStickerSetsInstalled stickersets have changed, the client should refetch them using messages.getAllStickers
updateSavedGifsThe saved gif list has changed, the client should refetch it using messages.getSavedGifs
updateBotInlineQueryAn incoming inline query
updateBotInlineSendThe result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.
updateEditChannelMessageA message was edited in a channel/supergroup
updateBotCallbackQueryA callback button was pressed, and the button data was sent to the bot that created the button
updateEditMessageA message was edited
updateInlineBotCallbackQueryThis notification is received by bots when a button is pressed
updateReadChannelOutboxOutgoing messages in a channel/supergroup were read
updateDraftMessageNotifies a change of a message draft.
updateReadFeaturedStickersSome featured stickers were marked as read
updateRecentStickersThe recent sticker list was updated
updateConfigThe server-side configuration has changed; the client should re-fetch the config using help.getConfig
updatePtsChangedCommon message box sequence PTS has changed, state has to be refetched using updates.getState
updateChannelWebPageA webpage preview of a link in a channel/supergroup message was generated
updateDialogPinnedA dialog was pinned/unpinned
updatePinnedDialogsPinned dialogs were updated
updateBotWebhookJSONA new incoming event; for bots only
updateBotWebhookJSONQueryA new incoming query; for bots only
updateBotShippingQueryThis object contains information about an incoming shipping query.
updateBotPrecheckoutQueryThis object contains information about an incoming pre-checkout query.
updatePhoneCallAn incoming phone call
updateLangPackTooLongA language pack has changed, the client should manually fetch the changed strings using langpack.getDifference
updateLangPackLanguage pack updated
updateFavedStickersThe list of favorited stickers was changed, the client should call messages.getFavedStickers to refetch the new list
updateChannelReadMessagesContentsThe specified channel/supergroup messages were read
updateContactsResetAll contacts were deleted
updateChannelAvailableMessagesThe history of a channel/supergroup was hidden.
updateDialogUnreadMarkThe manual unread mark of a chat was changed
updateMessagePollThe results of a poll have changed
updateChatDefaultBannedRightsDefault banned rights in a normal chat were updated
updateFolderPeersThe dialog list of a folder was changed
updatePeerSettingsSettings of a certain peer have changed
updatePeerLocatedList of peers near you was updated
updateNewScheduledMessageNew incoming scheduled message
updateDeleteScheduledMessagesSome scheduled messages were deleted
updateThemeA new cloud theme was installed
updateGeoLiveViewedLive geoposition message was viewed
updateLoginTokenA login token (for login via QR code) was generated
updateMessagePollVoteA specific user has voted in a poll
updateDialogFilterA new folder was added
updateDialogFilterOrderNew chat folders order
updateDialogFiltersUpdate folder list
updatePhoneCallSignalingDataIncoming phone call signaling payload
updateChannelParticipantA participant has left/joined a channel or supergroup.
updateChannelMessageForwardsThe forward counter of a message in a channel has changed
updateReadChannelDiscussionInboxIncoming messages were marked as read
updateReadChannelDiscussionOutboxOutgoing comments in a discussion thread were marked as read
updatePeerBlockedA peer was blocked
updateChannelUserTypinguser is typing in a supergroup, channel or message thread
updatePinnedMessagesSome messages were pinned in a chat
updatePinnedChannelMessagesMessages were pinned/unpinned in a channel/supergroup
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Updates.html b/data/core.telegram.org/type/Updates.html new file mode 100644 index 0000000000..b93313f5fd --- /dev/null +++ b/data/core.telegram.org/type/Updates.html @@ -0,0 +1,428 @@ + + + + + Updates + + + + + + + + + + + + + +
+ +
+
+
+ +

Updates

+ +

Object which is perceived by the client without a call on its part when an event occurs.

+

+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
+
+---functions---
+
+contacts.deleteContacts#96a0e00 id:Vector<InputUser> = Updates;
+contacts.addContact#e8f463d0 flags:# add_phone_privacy_exception:flags.0?true id:InputUser first_name:string last_name:string phone:string = Updates;
+contacts.acceptContact#f831a20f id:InputUser = Updates;
+contacts.getLocated#d348bc44 flags:# background:flags.1?true geo_point:InputGeoPoint self_expires:flags.0?int = Updates;
+contacts.blockFromReplies#29a8962c flags:# delete_message:flags.0?true delete_history:flags.1?true report_spam:flags.2?true msg_id:int = Updates;
+
+messages.sendMessage#520c3870 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int = Updates;
+messages.sendMedia#3491eba9 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int = Updates;
+messages.forwardMessages#d9fee60e flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true from_peer:InputPeer id:Vector<int> random_id:Vector<long> to_peer:InputPeer schedule_date:flags.10?int = Updates;
+messages.editChatTitle#dc452855 chat_id:int title:string = Updates;
+messages.editChatPhoto#ca4c79d8 chat_id:int photo:InputChatPhoto = Updates;
+messages.addChatUser#f9a0aa09 chat_id:int user_id:InputUser fwd_limit:int = Updates;
+messages.deleteChatUser#e0611f16 chat_id:int user_id:InputUser = Updates;
+messages.createChat#9cb126e users:Vector<InputUser> title:string = Updates;
+messages.importChatInvite#6c50051c hash:string = Updates;
+messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_param:string = Updates;
+messages.migrateChat#15a3b8e3 chat_id:int = Updates;
+messages.sendInlineBotResult#220815b0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to_msg_id:flags.0?int random_id:long query_id:long id:string schedule_date:flags.10?int = Updates;
+messages.editMessage#48f71778 flags:# no_webpage:flags.1?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.15?int = Updates;
+messages.getAllDrafts#6a3f8d65 = Updates;
+messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates;
+messages.sendScreenshotNotification#c97df020 peer:InputPeer reply_to_msg_id:int random_id:long = Updates;
+messages.sendMultiMedia#cc0110cb flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector<InputSingleMedia> schedule_date:flags.10?int = Updates;
+messages.updatePinnedMessage#d2aaf7ec flags:# silent:flags.0?true unpin:flags.1?true pm_oneside:flags.2?true peer:InputPeer id:int = Updates;
+messages.sendVote#10ea6184 peer:InputPeer msg_id:int options:Vector<bytes> = Updates;
+messages.getPollResults#73bb643b peer:InputPeer msg_id:int = Updates;
+messages.editChatDefaultBannedRights#a5866b41 peer:InputPeer banned_rights:ChatBannedRights = Updates;
+messages.sendScheduledMessages#bd38850a peer:InputPeer id:Vector<int> = Updates;
+messages.deleteScheduledMessages#59ae2b16 peer:InputPeer id:Vector<int> = Updates;
+
+help.getAppChangelog#9010ef6f prev_app_version:string = Updates;
+
+channels.createChannel#3d5fb10f flags:# broadcast:flags.0?true megagroup:flags.1?true for_import:flags.3?true title:string about:string geo_point:flags.2?InputGeoPoint address:flags.2?string = Updates;
+channels.editAdmin#d33c8902 channel:InputChannel user_id:InputUser admin_rights:ChatAdminRights rank:string = Updates;
+channels.editTitle#566decd0 channel:InputChannel title:string = Updates;
+channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates;
+channels.joinChannel#24b524c5 channel:InputChannel = Updates;
+channels.leaveChannel#f836aa95 channel:InputChannel = Updates;
+channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector<InputUser> = Updates;
+channels.deleteChannel#c0111fe3 channel:InputChannel = Updates;
+channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates;
+channels.editBanned#72796912 channel:InputChannel user_id:InputUser banned_rights:ChatBannedRights = Updates;
+channels.togglePreHistoryHidden#eabbb94c channel:InputChannel enabled:Bool = Updates;
+channels.editCreator#8f38cd1f channel:InputChannel user_id:InputUser password:InputCheckPasswordSRP = Updates;
+channels.toggleSlowMode#edd49ef0 channel:InputChannel seconds:int = Updates;
+
+phone.discardCall#b2cbc1c0 flags:# video:flags.0?true peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Updates;
+phone.setCallRating#59ead627 flags:# user_initiative:flags.0?true peer:InputPhoneCall rating:int comment:string = Updates;
+
+account.getNotifyExceptions#53577479 flags:# compare_sound:flags.1?true peer:flags.0?InputNotifyPeer = Updates;
+
+folders.editPeerFolders#6847d0ab folder_peers:Vector<InputFolderPeer> = Updates;
+folders.deleteFolder#1c295881 folder_id:int = Updates;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
updatesTooLongToo many updates, it is necessary to execute updates.getDifference.
updateShortMessageInfo about a message sent to (received from) another user
updateShortChatMessageShortened constructor containing info on one new incoming text message from a chat
updateShortShortened constructor containing info on one update not requiring auxiliary data
updatesCombinedConstructor for a group of updates.
updatesFull constructor of updates
updateShortSentMessageShortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object).
+

Methods

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
contacts.deleteContactsDeletes several contacts from the list.
messages.sendMessageSends a message to a chat
messages.sendMediaSend a media
messages.forwardMessagesForwards messages by their IDs.
messages.editChatTitleChanages chat name and sends a service message on it.
messages.editChatPhotoChanges chat photo and sends a service message on it
messages.addChatUserAdds a user to a chat and sends a service message on it.
messages.deleteChatUserDeletes a user from a chat and sends a service message on it.
messages.createChatCreates a new chat.
messages.importChatInviteImport a chat invite and join a private chat/supergroup/channel
messages.startBotStart a conversation with a bot using a deep linking parameter
help.getAppChangelogGet changelog of current app
channels.createChannelCreate a supergroup/channel.
channels.editAdminModify the admin rights of a user in a supergroup/channel.
channels.editTitleEdit the name of a channel/supergroup
channels.editPhotoChange the photo of a channel/supergroup
channels.joinChannelJoin a channel/supergroup
channels.leaveChannelLeave a channel/supergroup
channels.inviteToChannelInvite users to a channel/supergroup
channels.deleteChannelDelete a channel/supergroup
messages.migrateChatTurn a legacy group into a supergroup
messages.sendInlineBotResultSend a result obtained using messages.getInlineBotResults.
channels.toggleSignaturesEnable/disable message signatures in channels
messages.editMessageEdit message
messages.getAllDraftsSave get all message drafts.
messages.setGameScoreUse this method to set the score of the specified user in a game sent as a normal message (bots only).
phone.discardCallRefuse or end running call
phone.setCallRatingRate a call
channels.editBannedBan/unban/kick a user in a supergroup/channel.
messages.sendScreenshotNotificationNotify the other user in a private chat that a screenshot of the chat was taken
channels.togglePreHistoryHiddenHide/unhide message history for new channel/supergroup users
messages.sendMultiMediaSend an album of media
messages.updatePinnedMessagePin a message
account.getNotifyExceptionsReturns list of chats with non-default notification settings
messages.sendVoteVote in a poll
messages.getPollResultsGet poll results
messages.editChatDefaultBannedRightsEdit the default banned rights of a channel/supergroup/group.
folders.editPeerFoldersEdit peers in folder
folders.deleteFolderDelete a folder
contacts.addContactAdd an existing telegram user as contact
contacts.acceptContactIf the peer settings of a new user allow us to add him as contact, add that user as contact
channels.editCreatorTransfer channel ownership
contacts.getLocatedGet contacts near you
channels.toggleSlowModeToggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds
messages.sendScheduledMessagesSend scheduled messages
messages.deleteScheduledMessagesDelete scheduled messages
contacts.blockFromRepliesStop getting notifications about thread replies of a certain user in @replies
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/UrlAuthResult.html b/data/core.telegram.org/type/UrlAuthResult.html new file mode 100644 index 0000000000..af7a4bd49c --- /dev/null +++ b/data/core.telegram.org/type/UrlAuthResult.html @@ -0,0 +1,177 @@ + + + + + UrlAuthResult + + + + + + + + + + + + + +
+ +
+
+
+ +

UrlAuthResult

+ +

URL authorization result

+

+
urlAuthResultRequest#92d33a0e flags:# request_write_access:flags.0?true bot:User domain:string = UrlAuthResult;
+urlAuthResultAccepted#8f8c0e4e url:string = UrlAuthResult;
+urlAuthResultDefault#a9d6db1f = UrlAuthResult;
+
+---functions---
+
+messages.requestUrlAuth#e33f5613 peer:InputPeer msg_id:int button_id:int = UrlAuthResult;
+messages.acceptUrlAuth#f729ea98 flags:# write_allowed:flags.0?true peer:InputPeer msg_id:int button_id:int = UrlAuthResult;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
urlAuthResultRequestDetails about the authorization request, for more info click here »
urlAuthResultAcceptedDetails about an accepted authorization request, for more info click here »
urlAuthResultDefaultDetails about an accepted authorization request, for more info click here »
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
messages.requestUrlAuthGet more info about a Seamless Telegram Login authorization request, for more info click here »
messages.acceptUrlAuthUse this to accept a Seamless Telegram Login authorization request, for more info click here »
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/User.html b/data/core.telegram.org/type/User.html new file mode 100644 index 0000000000..f516173a0d --- /dev/null +++ b/data/core.telegram.org/type/User.html @@ -0,0 +1,177 @@ + + + + + User + + + + + + + + + + + + + +
+ +
+
+
+ +

User

+ +

Object defines a user.

+

+
userEmpty#200250ba id:int = User;
+user#938458c1 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User;
+
+---functions---
+
+account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User;
+account.updateUsername#3e0bdd7c username:string = User;
+account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
userEmptyEmpty constructor, non-existent user.
userIndicates info about a certain user
+

Methods

+ + + + + + + + + + + + + + + + + + + + + +
MethodDescription
account.updateProfileUpdates user profile.
account.updateUsernameChanges username for the current user.
account.changePhoneChange the phone number of the current account
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/UserFull.html b/data/core.telegram.org/type/UserFull.html new file mode 100644 index 0000000000..1a62a92dc6 --- /dev/null +++ b/data/core.telegram.org/type/UserFull.html @@ -0,0 +1,162 @@ + + + + + UserFull + + + + + + + + + + + + + +
+ +
+
+
+ +

UserFull

+ +

Object contains extended user info.

+

+
userFull#edf17c12 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true user:User about:flags.1?string settings:PeerSettings profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int = UserFull;
+
+---functions---
+
+users.getFullUser#ca30a5b1 id:InputUser = UserFull;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
userFullExtended user info
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
users.getFullUserReturns extended user info by ID.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/UserProfilePhoto.html b/data/core.telegram.org/type/UserProfilePhoto.html new file mode 100644 index 0000000000..1274d24642 --- /dev/null +++ b/data/core.telegram.org/type/UserProfilePhoto.html @@ -0,0 +1,148 @@ + + + + + UserProfilePhoto + + + + + + + + + + + + + +
+ +
+
+
+ +

UserProfilePhoto

+ +

Object contains info on the user's profile photo.

+

+
userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto;
+userProfilePhoto#69d3ab26 flags:# has_video:flags.0?true photo_id:long photo_small:FileLocation photo_big:FileLocation dc_id:int = UserProfilePhoto;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
userProfilePhotoEmptyProfile photo has not been set, or was hidden.
userProfilePhotoUser profile photo.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/UserStatus.html b/data/core.telegram.org/type/UserStatus.html new file mode 100644 index 0000000000..1d1eee9c60 --- /dev/null +++ b/data/core.telegram.org/type/UserStatus.html @@ -0,0 +1,168 @@ + + + + + UserStatus + + + + + + + + + + + + + +
+ +
+
+
+ +

UserStatus

+ +

User online status

+

+
userStatusEmpty#9d05049 = UserStatus;
+userStatusOnline#edb93949 expires:int = UserStatus;
+userStatusOffline#8c703f was_online:int = UserStatus;
+userStatusRecently#e26f42f1 = UserStatus;
+userStatusLastWeek#7bf09fc = UserStatus;
+userStatusLastMonth#77ebc742 = UserStatus;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
userStatusEmptyUser status has not been set yet.
userStatusOnlineOnline status of the user.
userStatusOfflineThe user's offline status.
userStatusRecentlyOnline status: last seen recently
userStatusLastWeekOnline status: last seen last week
userStatusLastMonthOnline status: last seen last month
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/Vector t.html b/data/core.telegram.org/type/Vector t.html new file mode 100644 index 0000000000..b5163ddb0a --- /dev/null +++ b/data/core.telegram.org/type/Vector t.html @@ -0,0 +1,143 @@ + + + + + Vector t + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/Video.html b/data/core.telegram.org/type/Video.html new file mode 100644 index 0000000000..07f2eb6427 --- /dev/null +++ b/data/core.telegram.org/type/Video.html @@ -0,0 +1,128 @@ + + + + + Video + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/VideoSize.html b/data/core.telegram.org/type/VideoSize.html new file mode 100644 index 0000000000..f9c39d2898 --- /dev/null +++ b/data/core.telegram.org/type/VideoSize.html @@ -0,0 +1,143 @@ + + + + + VideoSize + + + + + + + + + + + + + +
+ +
+
+
+ +

VideoSize

+ +

Represents an animated video thumbnail

+

+
videoSize#e831c556 flags:# type:string location:FileLocation w:int h:int size:int video_start_ts:flags.0?double = VideoSize;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
videoSizeAnimated profile picture in MPEG4 format
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/WallPaper.html b/data/core.telegram.org/type/WallPaper.html new file mode 100644 index 0000000000..a9e674d540 --- /dev/null +++ b/data/core.telegram.org/type/WallPaper.html @@ -0,0 +1,172 @@ + + + + + WallPaper + + + + + + + + + + + + + +
+ +
+
+
+ +

WallPaper

+ +

Object contains info on a wallpaper.

+

+
wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper;
+wallPaperNoFile#8af40b25 flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper;
+
+---functions---
+
+account.getWallPaper#fc8ddbea wallpaper:InputWallPaper = WallPaper;
+account.uploadWallPaper#dd853661 file:InputFile mime_type:string settings:WallPaperSettings = WallPaper;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
wallPaperWallpaper settings.
wallPaperNoFileNo file wallpaper
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
account.getWallPaperGet info about a certain wallpaper
account.uploadWallPaperCreate and upload a new wallpaper
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/WallPaperSettings.html b/data/core.telegram.org/type/WallPaperSettings.html new file mode 100644 index 0000000000..93a322af3e --- /dev/null +++ b/data/core.telegram.org/type/WallPaperSettings.html @@ -0,0 +1,143 @@ + + + + + WallPaperSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

WallPaperSettings

+ +

Wallpaper settings

+

+
wallPaperSettings#5086cf8 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int intensity:flags.3?int rotation:flags.4?int = WallPaperSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
wallPaperSettingsWallpaper settings
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/WebAuthorization.html b/data/core.telegram.org/type/WebAuthorization.html new file mode 100644 index 0000000000..9d80c51a10 --- /dev/null +++ b/data/core.telegram.org/type/WebAuthorization.html @@ -0,0 +1,143 @@ + + + + + WebAuthorization + + + + + + + + + + + + + +
+ +
+
+
+ +

WebAuthorization

+ +

Web authorization

+

+
webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
webAuthorizationRepresents a bot logged in using the Telegram login widget
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/WebDocument.html b/data/core.telegram.org/type/WebDocument.html new file mode 100644 index 0000000000..bf44690e34 --- /dev/null +++ b/data/core.telegram.org/type/WebDocument.html @@ -0,0 +1,148 @@ + + + + + WebDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

WebDocument

+ +

Remote document

+

+
webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector<DocumentAttribute> = WebDocument;
+webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector<DocumentAttribute> = WebDocument;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
webDocumentRemote document
webDocumentNoProxyRemote document that can be downloaded without proxying through telegram
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/WebPage.html b/data/core.telegram.org/type/WebPage.html new file mode 100644 index 0000000000..415d58bef1 --- /dev/null +++ b/data/core.telegram.org/type/WebPage.html @@ -0,0 +1,177 @@ + + + + + WebPage + + + + + + + + + + + + + +
+ +
+
+
+ +

WebPage

+ +

Instant View webpage preview

+

+
webPageEmpty#eb1477e8 id:long = WebPage;
+webPagePending#c586da1c id:long date:int = WebPage;
+webPage#e89c45b2 flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page attributes:flags.12?Vector<WebPageAttribute> = WebPage;
+webPageNotModified#7311ca11 flags:# cached_page_views:flags.0?int = WebPage;
+
+---functions---
+
+messages.getWebPage#32ca8f91 url:string hash:int = WebPage;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
webPageEmptyNo preview is available for the webpage
webPagePendingA preview of the webpage is currently being generated
webPageWebpage preview
webPageNotModifiedThe preview of the webpage hasn't changed
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getWebPageGet instant view page
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/WebPageAttribute.html b/data/core.telegram.org/type/WebPageAttribute.html new file mode 100644 index 0000000000..72fd3b3d11 --- /dev/null +++ b/data/core.telegram.org/type/WebPageAttribute.html @@ -0,0 +1,143 @@ + + + + + WebPageAttribute + + + + + + + + + + + + + +
+ +
+
+
+ +

WebPageAttribute

+ + + +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.AuthorizationForm b/data/core.telegram.org/type/account.AuthorizationForm new file mode 100644 index 0000000000..d123d2f5db --- /dev/null +++ b/data/core.telegram.org/type/account.AuthorizationForm @@ -0,0 +1,162 @@ + + + + + Account.AuthorizationForm + + + + + + + + + + + + + +
+ +
+
+
+ +

Account.AuthorizationForm

+ +

Authorization form

+

+
account.authorizationForm#ad2e1cd8 flags:# required_types:Vector<SecureRequiredType> values:Vector<SecureValue> errors:Vector<SecureValueError> users:Vector<User> privacy_policy_url:flags.0?string = account.AuthorizationForm;
+
+---functions---
+
+account.getAuthorizationForm#b86ba8e1 bot_id:int scope:string public_key:string = account.AuthorizationForm;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.authorizationFormAuthorization form
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getAuthorizationFormReturns a Telegram Passport authorization form for sharing data with a service
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.Authorizations b/data/core.telegram.org/type/account.Authorizations new file mode 100644 index 0000000000..84b2ddecce --- /dev/null +++ b/data/core.telegram.org/type/account.Authorizations @@ -0,0 +1,162 @@ + + + + + Account.Authorizations + + + + + + + + + + + + + +
+ +
+
+
+ +

Account.Authorizations

+ +

Logged-in sessions

+

+
account.authorizations#1250abde authorizations:Vector<Authorization> = account.Authorizations;
+
+---functions---
+
+account.getAuthorizations#e320c158 = account.Authorizations;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.authorizationsLogged-in sessions
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getAuthorizationsGet logged-in sessions
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.AutoDownloadSettings b/data/core.telegram.org/type/account.AutoDownloadSettings new file mode 100644 index 0000000000..62f458a8c2 --- /dev/null +++ b/data/core.telegram.org/type/account.AutoDownloadSettings @@ -0,0 +1,162 @@ + + + + + Account.AutoDownloadSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

Account.AutoDownloadSettings

+ +

Media autodownload settings

+

+
account.autoDownloadSettings#63cacf26 low:AutoDownloadSettings medium:AutoDownloadSettings high:AutoDownloadSettings = account.AutoDownloadSettings;
+
+---functions---
+
+account.getAutoDownloadSettings#56da0b3f = account.AutoDownloadSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.autoDownloadSettingsMedia autodownload settings
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getAutoDownloadSettingsGet media autodownload settings
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.ContentSettings b/data/core.telegram.org/type/account.ContentSettings new file mode 100644 index 0000000000..1463d8e552 --- /dev/null +++ b/data/core.telegram.org/type/account.ContentSettings @@ -0,0 +1,162 @@ + + + + + account.ContentSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.ContentSettings

+ +

Sensitive content settings

+

+
account.contentSettings#57e28221 flags:# sensitive_enabled:flags.0?true sensitive_can_change:flags.1?true = account.ContentSettings;
+
+---functions---
+
+account.getContentSettings#8b9b4dae = account.ContentSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.contentSettingsSensitive content settings
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getContentSettingsGet sensitive content settings
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.Password b/data/core.telegram.org/type/account.Password new file mode 100644 index 0000000000..e7fd4354e1 --- /dev/null +++ b/data/core.telegram.org/type/account.Password @@ -0,0 +1,162 @@ + + + + + account.Password + + + + + + + + + + + + + +
+ +
+
+
+ +

account.Password

+ +

Configuration for two-factor authorization

+

+
account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password;
+
+---functions---
+
+account.getPassword#548a30f5 = account.Password;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.passwordConfiguration for two-factor authorization
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getPasswordObtain configuration for two-factor authorization with password
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.PasswordInputSettings b/data/core.telegram.org/type/account.PasswordInputSettings new file mode 100644 index 0000000000..4f1d1be3be --- /dev/null +++ b/data/core.telegram.org/type/account.PasswordInputSettings @@ -0,0 +1,146 @@ + + + + + account.PasswordInputSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.PasswordInputSettings

+ +

Constructor for setting up a new 2FA SRP password

+

+
account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.passwordInputSettingsSettings for setting up a new password
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.PasswordSettings b/data/core.telegram.org/type/account.PasswordSettings new file mode 100644 index 0000000000..0874105335 --- /dev/null +++ b/data/core.telegram.org/type/account.PasswordSettings @@ -0,0 +1,164 @@ + + + + + account.PasswordSettings + + + + + + + + + + + + + +
+ +
+
+
+ +

account.PasswordSettings

+ +

Private info associated to the password info (recovery email, telegram passport info & so on)

+

+
account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings;
+
+---functions---
+
+account.getPasswordSettings#9cd4eaf9 password:InputCheckPasswordSRP = account.PasswordSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.passwordSettingsPrivate info associated to the password info (recovery email, telegram passport info & so on)
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getPasswordSettingsGet private info associated to the password info (recovery email, telegram passport info & so on)
+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.PrivacyRules b/data/core.telegram.org/type/account.PrivacyRules new file mode 100644 index 0000000000..cb8ee77bc4 --- /dev/null +++ b/data/core.telegram.org/type/account.PrivacyRules @@ -0,0 +1,167 @@ + + + + + Account.PrivacyRules + + + + + + + + + + + + + +
+ +
+
+
+ +

Account.PrivacyRules

+ +

Privacy rules

+

+
account.privacyRules#50a04e45 rules:Vector<PrivacyRule> chats:Vector<Chat> users:Vector<User> = account.PrivacyRules;
+
+---functions---
+
+account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;
+account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector<InputPrivacyRule> = account.PrivacyRules;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.privacyRulesPrivacy rules
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
account.getPrivacyGet privacy settings of current account
account.setPrivacyChange privacy settings of current account
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.SentChangePhoneCode b/data/core.telegram.org/type/account.SentChangePhoneCode new file mode 100644 index 0000000000..75077c664c --- /dev/null +++ b/data/core.telegram.org/type/account.SentChangePhoneCode @@ -0,0 +1,128 @@ + + + + + Account.SentChangePhoneCode + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/account.SentEmailCode b/data/core.telegram.org/type/account.SentEmailCode new file mode 100644 index 0000000000..7507d8c438 --- /dev/null +++ b/data/core.telegram.org/type/account.SentEmailCode @@ -0,0 +1,162 @@ + + + + + account.SentEmailCode + + + + + + + + + + + + + +
+ +
+
+
+ +

account.SentEmailCode

+ +

The email code that was sent

+

+
account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode;
+
+---functions---
+
+account.sendVerifyEmailCode#7011509f email:string = account.SentEmailCode;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.sentEmailCodeThe sent email code
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.sendVerifyEmailCodeSend the verification email code for telegram passport.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.Takeout b/data/core.telegram.org/type/account.Takeout new file mode 100644 index 0000000000..165485a798 --- /dev/null +++ b/data/core.telegram.org/type/account.Takeout @@ -0,0 +1,162 @@ + + + + + Account.Takeout + + + + + + + + + + + + + +
+ +
+
+
+ +

Account.Takeout

+ +

Takeout info

+

+
account.takeout#4dba4501 id:long = account.Takeout;
+
+---functions---
+
+account.initTakeoutSession#f05b4804 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?int = account.Takeout;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.takeoutTakout info
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.initTakeoutSessionIntialize account takeout session
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.Themes b/data/core.telegram.org/type/account.Themes new file mode 100644 index 0000000000..e89d260a04 --- /dev/null +++ b/data/core.telegram.org/type/account.Themes @@ -0,0 +1,167 @@ + + + + + account.Themes + + + + + + + + + + + + + +
+ +
+
+
+ +

account.Themes

+ +

Installed themes

+

+
account.themesNotModified#f41eb622 = account.Themes;
+account.themes#7f676421 hash:int themes:Vector<Theme> = account.Themes;
+
+---functions---
+
+account.getThemes#285946f8 format:string hash:int = account.Themes;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
account.themesNotModifiedNo new themes were installed
account.themesInstalled themes
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getThemesGet installed themes
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.TmpPassword b/data/core.telegram.org/type/account.TmpPassword new file mode 100644 index 0000000000..e287a186d6 --- /dev/null +++ b/data/core.telegram.org/type/account.TmpPassword @@ -0,0 +1,162 @@ + + + + + Account.TmpPassword + + + + + + + + + + + + + +
+ +
+
+
+ +

Account.TmpPassword

+ +

Temporary password

+

+
account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword;
+
+---functions---
+
+account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.tmpPasswordTemporary payment password
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getTmpPasswordGet temporary payment password
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.WallPapers b/data/core.telegram.org/type/account.WallPapers new file mode 100644 index 0000000000..b7b5e61924 --- /dev/null +++ b/data/core.telegram.org/type/account.WallPapers @@ -0,0 +1,167 @@ + + + + + Account.WallPapers + + + + + + + + + + + + + +
+ +
+
+
+ +

Account.WallPapers

+ +

Wallpapers

+

+
account.wallPapersNotModified#1c199183 = account.WallPapers;
+account.wallPapers#702b65a9 hash:int wallpapers:Vector<WallPaper> = account.WallPapers;
+
+---functions---
+
+account.getWallPapers#aabb1763 hash:int = account.WallPapers;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
account.wallPapersNotModifiedNo new wallpapers were found
account.wallPapersInstalled wallpapers
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getWallPapersReturns a list of available wallpapers.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/account.WebAuthorizations b/data/core.telegram.org/type/account.WebAuthorizations new file mode 100644 index 0000000000..e45bcec3e6 --- /dev/null +++ b/data/core.telegram.org/type/account.WebAuthorizations @@ -0,0 +1,162 @@ + + + + + Account.WebAuthorizations + + + + + + + + + + + + + +
+ +
+
+
+ +

Account.WebAuthorizations

+ +

Web authorizations

+

+
account.webAuthorizations#ed56c9fc authorizations:Vector<WebAuthorization> users:Vector<User> = account.WebAuthorizations;
+
+---functions---
+
+account.getWebAuthorizations#182e6d6f = account.WebAuthorizations;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
account.webAuthorizationsWeb authorizations
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
account.getWebAuthorizationsGet web login widget authorizations
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/auth.Authorization b/data/core.telegram.org/type/auth.Authorization new file mode 100644 index 0000000000..edfe4dde30 --- /dev/null +++ b/data/core.telegram.org/type/auth.Authorization @@ -0,0 +1,192 @@ + + + + + auth.Authorization + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.Authorization

+ +

Oject contains info on user authorization.

+

+
auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization;
+auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization;
+
+---functions---
+
+auth.signUp#80eee427 phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization;
+auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization;
+auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization;
+auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;
+auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization;
+auth.recoverPassword#4ea56e92 code:string = auth.Authorization;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
auth.authorizationContains user authorization info.
auth.authorizationSignUpRequiredAn account with this phone number doesn't exist on telegram: the user has to enter basic information and sign up
+

Methods

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
auth.signUpRegisters a validated phone number in the system.
auth.signInSigns in a user with a validated phone number.
auth.importAuthorizationLogs in a user using a key transmitted from his native data-centre.
auth.importBotAuthorizationLogin as a bot
auth.checkPasswordTry logging to an account protected by a 2FA password.
auth.recoverPasswordReset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/auth.CheckedPhone b/data/core.telegram.org/type/auth.CheckedPhone new file mode 100644 index 0000000000..fc50fb2606 --- /dev/null +++ b/data/core.telegram.org/type/auth.CheckedPhone @@ -0,0 +1,128 @@ + + + + + Auth.CheckedPhone + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/auth.CodeType b/data/core.telegram.org/type/auth.CodeType new file mode 100644 index 0000000000..e3770f512d --- /dev/null +++ b/data/core.telegram.org/type/auth.CodeType @@ -0,0 +1,153 @@ + + + + + auth.CodeType + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.CodeType

+ +

Type of verification code that will be sent next if you call the resendCode method

+

+
auth.codeTypeSms#72a3158c = auth.CodeType;
+auth.codeTypeCall#741cd3e3 = auth.CodeType;
+auth.codeTypeFlashCall#226ccefb = auth.CodeType;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
auth.codeTypeSmsType of verification code that will be sent next if you call the resendCode method: SMS code
auth.codeTypeCallType of verification code that will be sent next if you call the resendCode method: SMS code
auth.codeTypeFlashCallType of verification code that will be sent next if you call the resendCode method: SMS code
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/auth.ExportedAuthorization b/data/core.telegram.org/type/auth.ExportedAuthorization new file mode 100644 index 0000000000..5539365d1f --- /dev/null +++ b/data/core.telegram.org/type/auth.ExportedAuthorization @@ -0,0 +1,162 @@ + + + + + Auth.ExportedAuthorization + + + + + + + + + + + + + +
+ +
+
+
+ +

Auth.ExportedAuthorization

+ +

Exported authorization

+

+
auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization;
+
+---functions---
+
+auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
auth.exportedAuthorizationData for copying of authorization between data centres.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
auth.exportAuthorizationReturns data for copying authorization to another data-centre.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/auth.LoginToken b/data/core.telegram.org/type/auth.LoginToken new file mode 100644 index 0000000000..8b6ca03efa --- /dev/null +++ b/data/core.telegram.org/type/auth.LoginToken @@ -0,0 +1,177 @@ + + + + + auth.LoginToken + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.LoginToken

+ +

Login token (for QR code login)

+

+
auth.loginToken#629f1980 expires:int token:bytes = auth.LoginToken;
+auth.loginTokenMigrateTo#68e9916 dc_id:int token:bytes = auth.LoginToken;
+auth.loginTokenSuccess#390d5c5e authorization:auth.Authorization = auth.LoginToken;
+
+---functions---
+
+auth.exportLoginToken#b1b41517 api_id:int api_hash:string except_ids:Vector<int> = auth.LoginToken;
+auth.importLoginToken#95ac5ce4 token:bytes = auth.LoginToken;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
auth.loginTokenLogin token (for QR code login)
auth.loginTokenMigrateToRepeat the query to the specified DC
auth.loginTokenSuccessLogin via token (QR code) succeded!
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
auth.exportLoginTokenExport login token (for login via QR code)
auth.importLoginTokenLogin using a redirected login token, generated in case of DC mismatch during QR code login.

For more info, see login via QR code.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/auth.PasswordRecovery b/data/core.telegram.org/type/auth.PasswordRecovery new file mode 100644 index 0000000000..cf48374757 --- /dev/null +++ b/data/core.telegram.org/type/auth.PasswordRecovery @@ -0,0 +1,165 @@ + + + + + auth.PasswordRecovery + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.PasswordRecovery

+ +

Recovery info of a 2FA password, only for accounts with a recovery email configured.

+

+
auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery;
+
+---functions---
+
+auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
auth.passwordRecoveryRecovery info of a 2FA password, only for accounts with a recovery email configured.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
auth.requestPasswordRecoveryRequest recovery code of a 2FA password, only for accounts with a recovery email configured.
+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/auth.SentCode b/data/core.telegram.org/type/auth.SentCode new file mode 100644 index 0000000000..e143e1a557 --- /dev/null +++ b/data/core.telegram.org/type/auth.SentCode @@ -0,0 +1,183 @@ + + + + + auth.SentCode + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.SentCode

+ +

Contains info on a confirmation code message sent via SMS, phone call or Telegram.

+

+
auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;
+
+---functions---
+
+auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode;
+auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode;
+
+account.sendChangePhoneCode#82574ae5 phone_number:string settings:CodeSettings = auth.SentCode;
+account.sendConfirmPhoneCode#1b3faa88 hash:string settings:CodeSettings = auth.SentCode;
+account.sendVerifyPhoneCode#a5a356f9 phone_number:string settings:CodeSettings = auth.SentCode;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
auth.sentCodeContains info about a sent verification code.
+

Methods

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
auth.sendCodeSend the verification code for login
account.sendChangePhoneCodeVerify a new phone number to associate to the current account
auth.resendCodeResend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.
account.sendConfirmPhoneCodeSend confirmation code to cancel account deletion, for more info click here »
account.sendVerifyPhoneCodeSend the verification phone code for telegram passport.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/auth.SentCodeType b/data/core.telegram.org/type/auth.SentCodeType new file mode 100644 index 0000000000..c036eadc9b --- /dev/null +++ b/data/core.telegram.org/type/auth.SentCodeType @@ -0,0 +1,158 @@ + + + + + auth.SentCodeType + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.SentCodeType

+ +

Type of the verification code that was sent

+

+
auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType;
+auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType;
+auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType;
+auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
auth.sentCodeTypeAppThe code was sent through the telegram app
auth.sentCodeTypeSmsThe code was sent via SMS
auth.sentCodeTypeCallThe code will be sent via a phone call: a synthesized voice will tell the user which verification code to input.
auth.sentCodeTypeFlashCallThe code will be sent via a flash phone call, that will be closed immediately. The phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/bytes.html b/data/core.telegram.org/type/bytes.html new file mode 100644 index 0000000000..555ff94a64 --- /dev/null +++ b/data/core.telegram.org/type/bytes.html @@ -0,0 +1,125 @@ + + + + + bytes + + + + + + + + + + + + + +
+ +
+
+
+ +

bytes

+ +

Basic bare type. It is an alias of the string type, with the difference that the value may contain arbitrary byte sequences, including invalid UTF-8 sequences.

+

When computing crc32 for a constructor or method it is necessary to replace all byte types with string types.

+

Related pages

+

string

+

A basic bare type. Values of type string look differently depending on the length L of the string being serialized:

+
    +
  • If L <= 253, the serialization contains one byte with the value of L, then L bytes of the string followed by 0 to 3 characters containing 0, such that the overall length of the value be divisible by 4, whereupon all of this is interpreted as a sequence of int(L/4)+1 32-bit little-endian integers.
  • +
  • If L >= 254, the serialization contains byte 254, followed by 3 bytes with the string length L in little-endian order, followed by L bytes of the string, further followed by 0 to 3 null padding bytes.
  • +
+

All strings passed to the API must be encoded in UTF-8. When arbitrary byte sequences have to be serialized, bytes alias is to be used.

+

Further details on basic types»

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/channels.AdminLogResults b/data/core.telegram.org/type/channels.AdminLogResults new file mode 100644 index 0000000000..d5500b2ae5 --- /dev/null +++ b/data/core.telegram.org/type/channels.AdminLogResults @@ -0,0 +1,162 @@ + + + + + Channels.AdminLogResults + + + + + + + + + + + + + +
+ +
+
+
+ +

Channels.AdminLogResults

+ +

Admin log events

+

+
channels.adminLogResults#ed8af74d events:Vector<ChannelAdminLogEvent> chats:Vector<Chat> users:Vector<User> = channels.AdminLogResults;
+
+---functions---
+
+channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector<InputUser> max_id:long min_id:long limit:int = channels.AdminLogResults;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
channels.adminLogResultsAdmin log events
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
channels.getAdminLogGet the admin log of a channel/supergroup
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/channels.ChannelParticipant b/data/core.telegram.org/type/channels.ChannelParticipant new file mode 100644 index 0000000000..839f2b5d2c --- /dev/null +++ b/data/core.telegram.org/type/channels.ChannelParticipant @@ -0,0 +1,162 @@ + + + + + Channels.ChannelParticipant + + + + + + + + + + + + + +
+ +
+
+
+ +

Channels.ChannelParticipant

+ +

Channel participant

+

+
channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector<User> = channels.ChannelParticipant;
+
+---functions---
+
+channels.getParticipant#546dd7a6 channel:InputChannel user_id:InputUser = channels.ChannelParticipant;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
channels.channelParticipantRepresents a channel participant
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
channels.getParticipantGet info about a channel/supergroup participant
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/channels.ChannelParticipants b/data/core.telegram.org/type/channels.ChannelParticipants new file mode 100644 index 0000000000..31b7273119 --- /dev/null +++ b/data/core.telegram.org/type/channels.ChannelParticipants @@ -0,0 +1,167 @@ + + + + + Channels.ChannelParticipants + + + + + + + + + + + + + +
+ +
+
+
+ +

Channels.ChannelParticipants

+ +

Channel/supergroup participants

+

+
channels.channelParticipants#f56ee2a8 count:int participants:Vector<ChannelParticipant> users:Vector<User> = channels.ChannelParticipants;
+channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants;
+
+---functions---
+
+channels.getParticipants#123e05e9 channel:InputChannel filter:ChannelParticipantsFilter offset:int limit:int hash:int = channels.ChannelParticipants;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
channels.channelParticipantsRepresents multiple channel participants
channels.channelParticipantsNotModifiedNo new participant info could be found
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
channels.getParticipantsGet the participants of a channel
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/contacts.Blocked b/data/core.telegram.org/type/contacts.Blocked new file mode 100644 index 0000000000..c53473ad10 --- /dev/null +++ b/data/core.telegram.org/type/contacts.Blocked @@ -0,0 +1,167 @@ + + + + + contacts.Blocked + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.Blocked

+ +

Info on users from the current user's black list.

+

+
contacts.blocked#ade1591 blocked:Vector<PeerBlocked> chats:Vector<Chat> users:Vector<User> = contacts.Blocked;
+contacts.blockedSlice#e1664194 count:int blocked:Vector<PeerBlocked> chats:Vector<Chat> users:Vector<User> = contacts.Blocked;
+
+---functions---
+
+contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
contacts.blockedFull list of blocked users.
contacts.blockedSliceIncomplete list of blocked users.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
contacts.getBlockedReturns the list of blocked users.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/contacts.Contacts b/data/core.telegram.org/type/contacts.Contacts new file mode 100644 index 0000000000..cea3587b85 --- /dev/null +++ b/data/core.telegram.org/type/contacts.Contacts @@ -0,0 +1,167 @@ + + + + + contacts.Contacts + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.Contacts

+ +

Info on the current user's contact list.

+

+
contacts.contactsNotModified#b74ba9d2 = contacts.Contacts;
+contacts.contacts#eae87e42 contacts:Vector<Contact> saved_count:int users:Vector<User> = contacts.Contacts;
+
+---functions---
+
+contacts.getContacts#c023849f hash:int = contacts.Contacts;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
contacts.contactsNotModifiedContact list on the server is the same as the list on the client.
contacts.contactsThe current user's contact list and info on users.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
contacts.getContactsReturns the current user's contact list.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/contacts.Found b/data/core.telegram.org/type/contacts.Found new file mode 100644 index 0000000000..9109b2af78 --- /dev/null +++ b/data/core.telegram.org/type/contacts.Found @@ -0,0 +1,162 @@ + + + + + contacts.Found + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.Found

+ +

Object contains info on users found by name substring and auxiliary data.

+

+
contacts.found#b3134d9d my_results:Vector<Peer> results:Vector<Peer> chats:Vector<Chat> users:Vector<User> = contacts.Found;
+
+---functions---
+
+contacts.search#11f812d8 q:string limit:int = contacts.Found;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
contacts.foundUsers found by name substring and auxiliary data.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
contacts.searchReturns users found by username substring.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/contacts.ImportedContacts b/data/core.telegram.org/type/contacts.ImportedContacts new file mode 100644 index 0000000000..f6536bad2b --- /dev/null +++ b/data/core.telegram.org/type/contacts.ImportedContacts @@ -0,0 +1,162 @@ + + + + + contacts.ImportedContacts + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.ImportedContacts

+ +

Object contains info on succesfully imported contacts.

+

+
contacts.importedContacts#77d01c3b imported:Vector<ImportedContact> popular_invites:Vector<PopularContact> retry_contacts:Vector<long> users:Vector<User> = contacts.ImportedContacts;
+
+---functions---
+
+contacts.importContacts#2c800be5 contacts:Vector<InputContact> = contacts.ImportedContacts;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
contacts.importedContactsInfo on succesfully imported contacts.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
contacts.importContactsImports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/contacts.Link b/data/core.telegram.org/type/contacts.Link new file mode 100644 index 0000000000..9b169b7230 --- /dev/null +++ b/data/core.telegram.org/type/contacts.Link @@ -0,0 +1,128 @@ + + + + + contacts.Link + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/contacts.ResolvedPeer b/data/core.telegram.org/type/contacts.ResolvedPeer new file mode 100644 index 0000000000..daccb91bfd --- /dev/null +++ b/data/core.telegram.org/type/contacts.ResolvedPeer @@ -0,0 +1,162 @@ + + + + + Contacts.ResolvedPeer + + + + + + + + + + + + + +
+ +
+
+
+ +

Contacts.ResolvedPeer

+ +

Peer returned after resolving a @username

+

+
contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector<Chat> users:Vector<User> = contacts.ResolvedPeer;
+
+---functions---
+
+contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
contacts.resolvedPeerResolved peer
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
contacts.resolveUsernameResolve a @username to get peer info
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/contacts.TopPeers b/data/core.telegram.org/type/contacts.TopPeers new file mode 100644 index 0000000000..b87ac754a5 --- /dev/null +++ b/data/core.telegram.org/type/contacts.TopPeers @@ -0,0 +1,172 @@ + + + + + Contacts.TopPeers + + + + + + + + + + + + + +
+ +
+
+
+ +

Contacts.TopPeers

+ +

Top peers

+

+
contacts.topPeersNotModified#de266ef5 = contacts.TopPeers;
+contacts.topPeers#70b772a8 categories:Vector<TopPeerCategoryPeers> chats:Vector<Chat> users:Vector<User> = contacts.TopPeers;
+contacts.topPeersDisabled#b52c939d = contacts.TopPeers;
+
+---functions---
+
+contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true forward_users:flags.4?true forward_chats:flags.5?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
contacts.topPeersNotModifiedTop peer info hasn't changed
contacts.topPeersTop peers
contacts.topPeersDisabledTop peers disabled
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
contacts.getTopPeersGet most used peers
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/double.html b/data/core.telegram.org/type/double.html new file mode 100644 index 0000000000..7bc569c5f4 --- /dev/null +++ b/data/core.telegram.org/type/double.html @@ -0,0 +1,118 @@ + + + + + double + + + + + + + + + + + + + +
+ +
+
+
+ +

double

+ +

A basic bare type, values of which correspond two-element sequences containing 64-bit real numbers in a standard double format.

+

More on basic types»

+

Related pages

+

Binary Data Serialization

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.AppUpdate b/data/core.telegram.org/type/help.AppUpdate new file mode 100644 index 0000000000..d825d68721 --- /dev/null +++ b/data/core.telegram.org/type/help.AppUpdate @@ -0,0 +1,167 @@ + + + + + help.AppUpdate + + + + + + + + + + + + + +
+ +
+
+
+ +

help.AppUpdate

+ +

Contains info on app update availability.

+

+
help.appUpdate#1da7158f flags:# can_not_skip:flags.0?true id:int version:string text:string entities:Vector<MessageEntity> document:flags.1?Document url:flags.2?string = help.AppUpdate;
+help.noAppUpdate#c45a6536 = help.AppUpdate;
+
+---functions---
+
+help.getAppUpdate#522d5a7d source:string = help.AppUpdate;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
help.appUpdateAn update is available for the application.
help.noAppUpdateNo updates are available for the application.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getAppUpdateReturns information on update availability for the current application.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.CountriesList b/data/core.telegram.org/type/help.CountriesList new file mode 100644 index 0000000000..6c117a13b8 --- /dev/null +++ b/data/core.telegram.org/type/help.CountriesList @@ -0,0 +1,167 @@ + + + + + help.CountriesList + + + + + + + + + + + + + +
+ +
+
+
+ +

help.CountriesList

+ +

Name, ISO code, localized name and phone codes/patterns of all available countries

+

+
help.countriesListNotModified#93cc1f32 = help.CountriesList;
+help.countriesList#87d0759e countries:Vector<help.Country> hash:int = help.CountriesList;
+
+---functions---
+
+help.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
help.countriesListNotModifiedThe country list has not changed
help.countriesListName, ISO code, localized name and phone codes/patterns of all available countries
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getCountriesListGet name, ISO code, localized name and phone codes/patterns of all available countries
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.Country b/data/core.telegram.org/type/help.Country new file mode 100644 index 0000000000..1cc922de4b --- /dev/null +++ b/data/core.telegram.org/type/help.Country @@ -0,0 +1,143 @@ + + + + + help.Country + + + + + + + + + + + + + +
+ +
+
+
+ +

help.Country

+ +

Name, ISO code, localized name and phone codes/patterns of a specific country

+

+
help.country#c3878e23 flags:# hidden:flags.0?true iso2:string default_name:string name:flags.1?string country_codes:Vector<help.CountryCode> = help.Country;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
help.countryName, ISO code, localized name and phone codes/patterns of a specific country
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.CountryCode b/data/core.telegram.org/type/help.CountryCode new file mode 100644 index 0000000000..3499f1e899 --- /dev/null +++ b/data/core.telegram.org/type/help.CountryCode @@ -0,0 +1,143 @@ + + + + + help.CountryCode + + + + + + + + + + + + + +
+ +
+
+
+ +

help.CountryCode

+ +

Country code and phone number pattern of a specific country

+

+
help.countryCode#4203c5ef flags:# country_code:string prefixes:flags.0?Vector<string> patterns:flags.1?Vector<string> = help.CountryCode;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
help.countryCodeCountry code and phone number pattern of a specific country
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.DeepLinkInfo b/data/core.telegram.org/type/help.DeepLinkInfo new file mode 100644 index 0000000000..7467988f17 --- /dev/null +++ b/data/core.telegram.org/type/help.DeepLinkInfo @@ -0,0 +1,167 @@ + + + + + Help.DeepLinkInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

Help.DeepLinkInfo

+ +

Contains information about a tg:// deep link

+

+
help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo;
+help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector<MessageEntity> = help.DeepLinkInfo;
+
+---functions---
+
+help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
help.deepLinkInfoEmptyDeep link info empty
help.deepLinkInfoDeep linking info
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getDeepLinkInfoGet info about a t.me link
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.InviteText b/data/core.telegram.org/type/help.InviteText new file mode 100644 index 0000000000..86bfc47206 --- /dev/null +++ b/data/core.telegram.org/type/help.InviteText @@ -0,0 +1,162 @@ + + + + + help.InviteText + + + + + + + + + + + + + +
+ +
+
+
+ +

help.InviteText

+ +

Object contains info on the text of a message with an invitation.

+

+
help.inviteText#18cb9f78 message:string = help.InviteText;
+
+---functions---
+
+help.getInviteText#4d392343 = help.InviteText;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
help.inviteTextText of a text message with an invitation to install application.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getInviteTextReturns text of a text message with an invitation.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.PassportConfig b/data/core.telegram.org/type/help.PassportConfig new file mode 100644 index 0000000000..3ba2014f12 --- /dev/null +++ b/data/core.telegram.org/type/help.PassportConfig @@ -0,0 +1,169 @@ + + + + + Help.PassportConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

Help.PassportConfig

+ +

Telegram passport configuration

+

+
help.passportConfigNotModified#bfb9f457 = help.PassportConfig;
+help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig;
+
+---functions---
+
+help.getPassportConfig#c661ad08 hash:int = help.PassportConfig;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
help.passportConfigNotModifiedPassword configuration not modified
help.passportConfigTelegram passport configuration
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getPassportConfigGet passport configuration
+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.PromoData b/data/core.telegram.org/type/help.PromoData new file mode 100644 index 0000000000..22e708e247 --- /dev/null +++ b/data/core.telegram.org/type/help.PromoData @@ -0,0 +1,167 @@ + + + + + help.PromoData + + + + + + + + + + + + + +
+ +
+
+
+ +

help.PromoData

+ +

Info about pinned MTProxy or Public Service Announcement peers.

+

+
help.promoDataEmpty#98f6ac75 expires:int = help.PromoData;
+help.promoData#8c39793f flags:# proxy:flags.0?true expires:int peer:Peer chats:Vector<Chat> users:Vector<User> psa_type:flags.1?string psa_message:flags.2?string = help.PromoData;
+
+---functions---
+
+help.getPromoData#c0977421 = help.PromoData;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
help.promoDataEmptyNo PSA/MTProxy info is available
help.promoDataMTProxy/Public Service Announcement information
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getPromoDataGet MTProxy/Public Service Announcement information
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.ProxyData b/data/core.telegram.org/type/help.ProxyData new file mode 100644 index 0000000000..74b4b9f7c4 --- /dev/null +++ b/data/core.telegram.org/type/help.ProxyData @@ -0,0 +1,130 @@ + + + + + Help.ProxyData + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/help.RecentMeUrls b/data/core.telegram.org/type/help.RecentMeUrls new file mode 100644 index 0000000000..fc9f9d9780 --- /dev/null +++ b/data/core.telegram.org/type/help.RecentMeUrls @@ -0,0 +1,162 @@ + + + + + Help.RecentMeUrls + + + + + + + + + + + + + +
+ +
+
+
+ +

Help.RecentMeUrls

+ +

Recent t.me URLs

+

+
help.recentMeUrls#e0310d7 urls:Vector<RecentMeUrl> chats:Vector<Chat> users:Vector<User> = help.RecentMeUrls;
+
+---functions---
+
+help.getRecentMeUrls#3dc0f114 referer:string = help.RecentMeUrls;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
help.recentMeUrlsRecent t.me URLs
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getRecentMeUrlsGet recently used t.me links
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.Support b/data/core.telegram.org/type/help.Support new file mode 100644 index 0000000000..a9c1b24751 --- /dev/null +++ b/data/core.telegram.org/type/help.Support @@ -0,0 +1,162 @@ + + + + + help.Support + + + + + + + + + + + + + +
+ +
+
+
+ +

help.Support

+ +

Info about the support user, relevant to the current user.

+

+
help.support#17c6b5f6 phone_number:string user:User = help.Support;
+
+---functions---
+
+help.getSupport#9cdf08cd = help.Support;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
help.supportInfo on support user.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getSupportReturns the support user for the 'ask a question' feature.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.SupportName b/data/core.telegram.org/type/help.SupportName new file mode 100644 index 0000000000..5ed926b2b1 --- /dev/null +++ b/data/core.telegram.org/type/help.SupportName @@ -0,0 +1,162 @@ + + + + + Help.SupportName + + + + + + + + + + + + + +
+ +
+
+
+ +

Help.SupportName

+ +

Get localized name for support user

+

+
help.supportName#8c05f1c9 name:string = help.SupportName;
+
+---functions---
+
+help.getSupportName#d360e72c = help.SupportName;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
help.supportNameLocalized name for telegram support
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getSupportNameGet localized name of the telegram support user
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.TermsOfService b/data/core.telegram.org/type/help.TermsOfService new file mode 100644 index 0000000000..95c76f0620 --- /dev/null +++ b/data/core.telegram.org/type/help.TermsOfService @@ -0,0 +1,143 @@ + + + + + help.TermsOfService + + + + + + + + + + + + + +
+ +
+
+
+ +

help.TermsOfService

+ +

Contains info about the latest telegram Terms Of Service.

+

+
help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector<MessageEntity> min_age_confirm:flags.1?int = help.TermsOfService;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
help.termsOfServiceInfo about the latest telegram Terms Of Service
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.TermsOfServiceUpdate b/data/core.telegram.org/type/help.TermsOfServiceUpdate new file mode 100644 index 0000000000..fa9815d66e --- /dev/null +++ b/data/core.telegram.org/type/help.TermsOfServiceUpdate @@ -0,0 +1,167 @@ + + + + + Help.TermsOfServiceUpdate + + + + + + + + + + + + + +
+ +
+
+
+ +

Help.TermsOfServiceUpdate

+ +

Update of Telegram's terms of service

+

+
help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate;
+help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate;
+
+---functions---
+
+help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
help.termsOfServiceUpdateEmptyNo changes were made to telegram's terms of service
help.termsOfServiceUpdateInfo about an update of telegram's terms of service. If the terms of service are declined, then the account.deleteAccount method should be called with the reason "Decline ToS update"
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
help.getTermsOfServiceUpdateLook for updates of telegram's terms of service
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/help.UserInfo b/data/core.telegram.org/type/help.UserInfo new file mode 100644 index 0000000000..20c01cc61e --- /dev/null +++ b/data/core.telegram.org/type/help.UserInfo @@ -0,0 +1,172 @@ + + + + + Help.UserInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

Help.UserInfo

+ +

User info

+

+
help.userInfoEmpty#f3ae2eed = help.UserInfo;
+help.userInfo#1eb3758 message:string entities:Vector<MessageEntity> author:string date:int = help.UserInfo;
+
+---functions---
+
+help.getUserInfo#38a08d3 user_id:InputUser = help.UserInfo;
+help.editUserInfo#66b91b70 user_id:InputUser message:string entities:Vector<MessageEntity> = help.UserInfo;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
help.userInfoEmptyInternal use
help.userInfoInternal use
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
help.getUserInfoInternal use
help.editUserInfoInternal use
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/int.html b/data/core.telegram.org/type/int.html new file mode 100644 index 0000000000..5a6f6bdc91 --- /dev/null +++ b/data/core.telegram.org/type/int.html @@ -0,0 +1,118 @@ + + + + + int + + + + + + + + + + + + + +
+ +
+
+
+ +

int

+ +

A basic bare type, the values of which correspond to single-element sequences, i.e. numbers from -2^31 to 2^31-1 which in this case represent themselves.

+

More on basic types »

+

Related pages

+

Binary Data Serialization

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/long.html b/data/core.telegram.org/type/long.html new file mode 100644 index 0000000000..c7970611b3 --- /dev/null +++ b/data/core.telegram.org/type/long.html @@ -0,0 +1,118 @@ + + + + + long + + + + + + + + + + + + + +
+ +
+
+
+ +

long

+ +

A basic bare type, elements of which correspond to two-element sequences, representing 64-bit signed numbers (little-endian).

+

More on basic types »

+

Related pages

+

Binary Data Serialization

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.AffectedHistory b/data/core.telegram.org/type/messages.AffectedHistory new file mode 100644 index 0000000000..3db9e3817f --- /dev/null +++ b/data/core.telegram.org/type/messages.AffectedHistory @@ -0,0 +1,178 @@ + + + + + messages.AffectedHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.AffectedHistory

+ +

Object contains info on affected part of communication history with the user or in a chat.

+

+
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
+
+---functions---
+
+messages.deleteHistory#1c015b09 flags:# just_clear:flags.0?true revoke:flags.1?true peer:InputPeer max_id:int = messages.AffectedHistory;
+messages.readMentions#f0189d3 peer:InputPeer = messages.AffectedHistory;
+messages.unpinAllMessages#f025bc8b peer:InputPeer = messages.AffectedHistory;
+
+channels.deleteUserHistory#d10dd71b channel:InputChannel user_id:InputUser = messages.AffectedHistory;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.affectedHistoryAffected part of communication history with the user or in a chat.
+

Methods

+ + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
messages.deleteHistoryDeletes communication history.
channels.deleteUserHistoryDelete all messages sent by a certain user in a supergroup
messages.readMentionsMark mentions as read
messages.unpinAllMessagesUnpin all pinned messages
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.AffectedMessages b/data/core.telegram.org/type/messages.AffectedMessages new file mode 100644 index 0000000000..773cecdc8b --- /dev/null +++ b/data/core.telegram.org/type/messages.AffectedMessages @@ -0,0 +1,178 @@ + + + + + Messages.AffectedMessages + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.AffectedMessages

+ +

Messages affected by changes

+

+
messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages;
+
+---functions---
+
+messages.readHistory#e306d3a peer:InputPeer max_id:int = messages.AffectedMessages;
+messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector<int> = messages.AffectedMessages;
+messages.readMessageContents#36a73f77 id:Vector<int> = messages.AffectedMessages;
+
+channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector<int> = messages.AffectedMessages;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.affectedMessagesEvents affected by operation
+

Methods

+ + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
messages.readHistoryMarks message history as read.
messages.deleteMessagesDeletes messages by their identifiers.
messages.readMessageContentsNotifies the sender about the recipient having listened a voice message or watched a video.
channels.deleteMessagesDelete messages in a channel/supergroup
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.AllStickers b/data/core.telegram.org/type/messages.AllStickers new file mode 100644 index 0000000000..3994941c6c --- /dev/null +++ b/data/core.telegram.org/type/messages.AllStickers @@ -0,0 +1,172 @@ + + + + + Messages.AllStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.AllStickers

+ +

All stickers

+

+
messages.allStickersNotModified#e86602c3 = messages.AllStickers;
+messages.allStickers#edfd405f hash:int sets:Vector<StickerSet> = messages.AllStickers;
+
+---functions---
+
+messages.getAllStickers#1c9618b1 hash:int = messages.AllStickers;
+messages.getMaskStickers#65b8c79f hash:int = messages.AllStickers;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.allStickersNotModifiedInfo about all installed stickers hasn't changed
messages.allStickersInfo about all installed stickers
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
messages.getAllStickersGet all installed stickers
messages.getMaskStickersGet installed mask stickers
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.ArchivedStickers b/data/core.telegram.org/type/messages.ArchivedStickers new file mode 100644 index 0000000000..2b5223ecbb --- /dev/null +++ b/data/core.telegram.org/type/messages.ArchivedStickers @@ -0,0 +1,162 @@ + + + + + Messages.ArchivedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.ArchivedStickers

+ +

Archived stickers

+

+
messages.archivedStickers#4fcba9c8 count:int sets:Vector<StickerSetCovered> = messages.ArchivedStickers;
+
+---functions---
+
+messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true offset_id:long limit:int = messages.ArchivedStickers;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.archivedStickersArchived stickersets
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getArchivedStickersGet all archived stickers
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.BotCallbackAnswer b/data/core.telegram.org/type/messages.BotCallbackAnswer new file mode 100644 index 0000000000..363ec6c4d1 --- /dev/null +++ b/data/core.telegram.org/type/messages.BotCallbackAnswer @@ -0,0 +1,162 @@ + + + + + Messages.BotCallbackAnswer + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.BotCallbackAnswer

+ +

Callback answer of bot

+

+
messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer;
+
+---functions---
+
+messages.getBotCallbackAnswer#9342ca07 flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes password:flags.2?InputCheckPasswordSRP = messages.BotCallbackAnswer;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.botCallbackAnswerCallback answer sent by the bot in response to a button press
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getBotCallbackAnswerPress an inline callback button and get a callback answer from the bot
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.BotResults b/data/core.telegram.org/type/messages.BotResults new file mode 100644 index 0000000000..04d7008fc8 --- /dev/null +++ b/data/core.telegram.org/type/messages.BotResults @@ -0,0 +1,162 @@ + + + + + messages.BotResults + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.BotResults

+ +

Result of a query to an inline bot

+

+
messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector<BotInlineResult> cache_time:int users:Vector<User> = messages.BotResults;
+
+---functions---
+
+messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.botResultsResult of a query to an inline bot
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getInlineBotResultsQuery an inline bot
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.ChatFull b/data/core.telegram.org/type/messages.ChatFull new file mode 100644 index 0000000000..e9ed919416 --- /dev/null +++ b/data/core.telegram.org/type/messages.ChatFull @@ -0,0 +1,168 @@ + + + + + messages.ChatFull + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.ChatFull

+ +

Object contains extended info on chat with auxiliary data.

+

+
messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;
+
+---functions---
+
+messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull;
+
+channels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.chatFullExtended info on chat and auxiliary data.
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
messages.getFullChatReturns full chat info according to its ID.
channels.getFullChannelGet full info about a channel
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.Chats b/data/core.telegram.org/type/messages.Chats new file mode 100644 index 0000000000..92d786143f --- /dev/null +++ b/data/core.telegram.org/type/messages.Chats @@ -0,0 +1,198 @@ + + + + + messages.Chats + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.Chats

+ +

Object contains list of chats with auxiliary data.

+

+
messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
+messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;
+
+---functions---
+
+messages.getChats#3c6aa187 id:Vector<int> = messages.Chats;
+messages.getCommonChats#d0a48c4 user_id:InputUser max_id:int limit:int = messages.Chats;
+messages.getAllChats#eba80ff0 except_ids:Vector<int> = messages.Chats;
+
+channels.getChannels#a7f6bbb id:Vector<InputChannel> = messages.Chats;
+channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true = messages.Chats;
+channels.getLeftChannels#8341ecc0 offset:int = messages.Chats;
+channels.getGroupsForDiscussion#f5dad378 = messages.Chats;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.chatsList of chats with auxiliary data.
messages.chatsSlicePartial list of chats, more would have to be fetched with pagination
+

Methods

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
messages.getChatsReturns chat basic info on their IDs.
channels.getChannelsGet info about channels/supergroups
channels.getAdminedPublicChannelsGet channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the limit for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups.
messages.getCommonChatsGet chats in common with a user
messages.getAllChatsGet all chats, channels and supergroups
channels.getLeftChannelsGet a list of channels/supergroups we left
channels.getGroupsForDiscussionGet all groups that can be used as discussion groups
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.DhConfig b/data/core.telegram.org/type/messages.DhConfig new file mode 100644 index 0000000000..f174b30ae1 --- /dev/null +++ b/data/core.telegram.org/type/messages.DhConfig @@ -0,0 +1,167 @@ + + + + + Messages.DhConfig + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.DhConfig

+ +

Contains info on cofiguring parameters for key generation by Diffie-Hellman protocol.

+

+
messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig;
+messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig;
+
+---functions---
+
+messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.dhConfigNotModifiedConfiguring parameters did not change.
messages.dhConfigNew set of configuring parameters.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getDhConfigReturns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.Dialogs b/data/core.telegram.org/type/messages.Dialogs new file mode 100644 index 0000000000..212a9ad55d --- /dev/null +++ b/data/core.telegram.org/type/messages.Dialogs @@ -0,0 +1,172 @@ + + + + + messages.Dialogs + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.Dialogs

+ +

Object contains a list of chats with messages and auxiliary data.

+

+
messages.dialogs#15ba6c40 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Dialogs;
+messages.dialogsSlice#71e094f3 count:int dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Dialogs;
+messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs;
+
+---functions---
+
+messages.getDialogs#a0ee3b73 flags:# exclude_pinned:flags.0?true folder_id:flags.1?int offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:int = messages.Dialogs;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.dialogsFull list of chats with messages and auxiliary data.
messages.dialogsSliceIncomplete list of dialogs with messages and auxiliary data.
messages.dialogsNotModifiedDialogs haven't changed
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getDialogsReturns the current user dialog list.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.DiscussionMessage b/data/core.telegram.org/type/messages.DiscussionMessage new file mode 100644 index 0000000000..f745771416 --- /dev/null +++ b/data/core.telegram.org/type/messages.DiscussionMessage @@ -0,0 +1,162 @@ + + + + + messages.DiscussionMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.DiscussionMessage

+ +

Info about a message thread

+

+
messages.discussionMessage#f5dd8f9d flags:# messages:Vector<Message> max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int chats:Vector<Chat> users:Vector<User> = messages.DiscussionMessage;
+
+---functions---
+
+messages.getDiscussionMessage#446972fd peer:InputPeer msg_id:int = messages.DiscussionMessage;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.discussionMessageInformation about a message thread
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getDiscussionMessageGet discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.FavedStickers b/data/core.telegram.org/type/messages.FavedStickers new file mode 100644 index 0000000000..a0ccb34ea5 --- /dev/null +++ b/data/core.telegram.org/type/messages.FavedStickers @@ -0,0 +1,167 @@ + + + + + Messages.FavedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.FavedStickers

+ +

Favorited stickers

+

+
messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers;
+messages.favedStickers#f37f2f16 hash:int packs:Vector<StickerPack> stickers:Vector<Document> = messages.FavedStickers;
+
+---functions---
+
+messages.getFavedStickers#21ce0b0e hash:int = messages.FavedStickers;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.favedStickersNotModifiedNo new favorited stickers were found
messages.favedStickersFavorited stickers
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getFavedStickersGet faved stickers
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.FeaturedStickers b/data/core.telegram.org/type/messages.FeaturedStickers new file mode 100644 index 0000000000..3048caa3c4 --- /dev/null +++ b/data/core.telegram.org/type/messages.FeaturedStickers @@ -0,0 +1,172 @@ + + + + + Messages.FeaturedStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.FeaturedStickers

+ +

Featured stickers

+

+
messages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers;
+messages.featuredStickers#b6abc341 hash:int count:int sets:Vector<StickerSetCovered> unread:Vector<long> = messages.FeaturedStickers;
+
+---functions---
+
+messages.getFeaturedStickers#2dacca4f hash:int = messages.FeaturedStickers;
+messages.getOldFeaturedStickers#5fe7025b offset:int limit:int hash:int = messages.FeaturedStickers;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.featuredStickersNotModifiedFeatured stickers haven't changed
messages.featuredStickersFeatured stickersets
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
messages.getFeaturedStickersGet featured stickers
messages.getOldFeaturedStickersOld method for fetching featured sticker
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.FoundGifs b/data/core.telegram.org/type/messages.FoundGifs new file mode 100644 index 0000000000..45502897c9 --- /dev/null +++ b/data/core.telegram.org/type/messages.FoundGifs @@ -0,0 +1,128 @@ + + + + + Messages.FoundGifs + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.FoundStickerSets b/data/core.telegram.org/type/messages.FoundStickerSets new file mode 100644 index 0000000000..2bd1e3e508 --- /dev/null +++ b/data/core.telegram.org/type/messages.FoundStickerSets @@ -0,0 +1,167 @@ + + + + + Messages.FoundStickerSets + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.FoundStickerSets

+ +

Found stickersets

+

+
messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets;
+messages.foundStickerSets#5108d648 hash:int sets:Vector<StickerSetCovered> = messages.FoundStickerSets;
+
+---functions---
+
+messages.searchStickerSets#c2b7d08b flags:# exclude_featured:flags.0?true q:string hash:int = messages.FoundStickerSets;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.foundStickerSetsNotModifiedNo further results were found
messages.foundStickerSetsFound stickersets
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.searchStickerSetsSearch for stickersets
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.HighScores b/data/core.telegram.org/type/messages.HighScores new file mode 100644 index 0000000000..72c290a0e4 --- /dev/null +++ b/data/core.telegram.org/type/messages.HighScores @@ -0,0 +1,167 @@ + + + + + Messages.HighScores + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.HighScores

+ +

High scores (in games)

+

+
messages.highScores#9a3bfd99 scores:Vector<HighScore> users:Vector<User> = messages.HighScores;
+
+---functions---
+
+messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores;
+messages.getInlineGameHighScores#f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.highScoresHighscores in a game
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
messages.getGameHighScoresGet highscores of a game
messages.getInlineGameHighScoresGet highscores of a game sent using an inline bot
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.InactiveChats b/data/core.telegram.org/type/messages.InactiveChats new file mode 100644 index 0000000000..acbf3d590c --- /dev/null +++ b/data/core.telegram.org/type/messages.InactiveChats @@ -0,0 +1,162 @@ + + + + + messages.InactiveChats + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.InactiveChats

+ +

Inactive chat list

+

+
messages.inactiveChats#a927fec5 dates:Vector<int> chats:Vector<Chat> users:Vector<User> = messages.InactiveChats;
+
+---functions---
+
+channels.getInactiveChannels#11e831ee = messages.InactiveChats;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.inactiveChatsInactive chat list
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
channels.getInactiveChannelsGet inactive channels and supergroups
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.MessageEditData b/data/core.telegram.org/type/messages.MessageEditData new file mode 100644 index 0000000000..c19ba9c4f4 --- /dev/null +++ b/data/core.telegram.org/type/messages.MessageEditData @@ -0,0 +1,162 @@ + + + + + Messages.MessageEditData + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.MessageEditData

+ +

Message edit data for media

+

+
messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData;
+
+---functions---
+
+messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.messageEditDataMessage edit data for media
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getMessageEditDataFind out if a media message's caption can be edited
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.MessageViews b/data/core.telegram.org/type/messages.MessageViews new file mode 100644 index 0000000000..589ed2c015 --- /dev/null +++ b/data/core.telegram.org/type/messages.MessageViews @@ -0,0 +1,162 @@ + + + + + messages.MessageViews + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.MessageViews

+ +

View, forward counter + info about replies

+

+
messages.messageViews#b6c4f543 views:Vector<MessageViews> chats:Vector<Chat> users:Vector<User> = messages.MessageViews;
+
+---functions---
+
+messages.getMessagesViews#5784d3e1 peer:InputPeer id:Vector<int> increment:Bool = messages.MessageViews;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.messageViewsView, forward counter + info about replies
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getMessagesViewsGet and increase the view counter of a message sent or forwarded from a channel
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.Messages b/data/core.telegram.org/type/messages.Messages new file mode 100644 index 0000000000..82ac2ef639 --- /dev/null +++ b/data/core.telegram.org/type/messages.Messages @@ -0,0 +1,229 @@ + + + + + messages.Messages + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.Messages

+ +

Object contains infor on list of messages with auxiliary data.

+

+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+
+---functions---
+
+messages.getMessages#63c66506 id:Vector<InputMessage> = messages.Messages;
+messages.getHistory#dcbb8260 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages;
+messages.search#c352eec flags:# peer:InputPeer q:string from_id:flags.0?InputPeer top_msg_id:flags.1?int filter:MessagesFilter min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages;
+messages.searchGlobal#4bc6589a flags:# folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
+messages.getUnreadMentions#46578472 peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;
+messages.getRecentLocations#bbc45b09 peer:InputPeer limit:int hash:int = messages.Messages;
+messages.getScheduledHistory#e2c2685b peer:InputPeer hash:int = messages.Messages;
+messages.getScheduledMessages#bdbb0464 peer:InputPeer id:Vector<int> = messages.Messages;
+messages.getReplies#24b581ba peer:InputPeer msg_id:int offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages;
+
+channels.getMessages#ad8c9a23 channel:InputChannel id:Vector<InputMessage> = messages.Messages;
+
+stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.messagesFull list of messages with auxilary data.
messages.messagesSliceIncomplete list of messages and auxiliary data.
messages.channelMessagesChannel messages
messages.messagesNotModifiedNo new messages matching the query were found
+

Methods

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
messages.getMessagesReturns the list of messages by their IDs.
messages.getHistoryGets back the conversation history with one interlocutor / within a chat
messages.searchGets back found messages
channels.getMessagesGet channel/supergroup messages
messages.searchGlobalSearch for messages and peers globally
messages.getUnreadMentionsGet unread messages where we were mentioned
messages.getRecentLocationsGet live location history of a certain user
messages.getScheduledHistoryGet scheduled messages
messages.getScheduledMessagesGet scheduled messages
messages.getRepliesGet messages in a reply thread
stats.getMessagePublicForwardsObtains a list of messages, indicating to which other public channels was a channel message forwarded.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.PeerDialogs b/data/core.telegram.org/type/messages.PeerDialogs new file mode 100644 index 0000000000..fabdf9cb3a --- /dev/null +++ b/data/core.telegram.org/type/messages.PeerDialogs @@ -0,0 +1,167 @@ + + + + + Messages.PeerDialogs + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.PeerDialogs

+ +

List of dialogs

+

+
messages.peerDialogs#3371c354 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> state:updates.State = messages.PeerDialogs;
+
+---functions---
+
+messages.getPeerDialogs#e470bcfd peers:Vector<InputDialogPeer> = messages.PeerDialogs;
+messages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.peerDialogsDialog info of multiple peers
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
messages.getPeerDialogsGet dialog info of specified peers
messages.getPinnedDialogsGet pinned dialogs
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.RecentStickers b/data/core.telegram.org/type/messages.RecentStickers new file mode 100644 index 0000000000..281051cca8 --- /dev/null +++ b/data/core.telegram.org/type/messages.RecentStickers @@ -0,0 +1,167 @@ + + + + + Messages.RecentStickers + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.RecentStickers

+ +

Recent stickers

+

+
messages.recentStickersNotModified#b17f890 = messages.RecentStickers;
+messages.recentStickers#22f3afb3 hash:int packs:Vector<StickerPack> stickers:Vector<Document> dates:Vector<int> = messages.RecentStickers;
+
+---functions---
+
+messages.getRecentStickers#5ea192c9 flags:# attached:flags.0?true hash:int = messages.RecentStickers;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.recentStickersNotModifiedNo new recent sticker was found
messages.recentStickersRecently used stickers
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getRecentStickersGet recent stickers
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.SavedGifs b/data/core.telegram.org/type/messages.SavedGifs new file mode 100644 index 0000000000..b0ab2049df --- /dev/null +++ b/data/core.telegram.org/type/messages.SavedGifs @@ -0,0 +1,167 @@ + + + + + Messages.SavedGifs + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.SavedGifs

+ +

Saved GIFs

+

+
messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs;
+messages.savedGifs#2e0709a5 hash:int gifs:Vector<Document> = messages.SavedGifs;
+
+---functions---
+
+messages.getSavedGifs#83bf3d52 hash:int = messages.SavedGifs;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.savedGifsNotModifiedNo new saved gifs were found
messages.savedGifsSaved gifs
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getSavedGifsGet saved GIFs
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.SearchCounter b/data/core.telegram.org/type/messages.SearchCounter new file mode 100644 index 0000000000..4c446355e3 --- /dev/null +++ b/data/core.telegram.org/type/messages.SearchCounter @@ -0,0 +1,143 @@ + + + + + Messages.SearchCounter + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.SearchCounter

+ +

Number of results that would be returned by a search

+

+
messages.searchCounter#e844ebff flags:# inexact:flags.1?true filter:MessagesFilter count:int = messages.SearchCounter;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.searchCounterIndicates how many results would be found by a messages.search call with the same parameters
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.SentEncryptedMessage b/data/core.telegram.org/type/messages.SentEncryptedMessage new file mode 100644 index 0000000000..81eda89322 --- /dev/null +++ b/data/core.telegram.org/type/messages.SentEncryptedMessage @@ -0,0 +1,177 @@ + + + + + Messages.SentEncryptedMessage + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.SentEncryptedMessage

+ +

Contains info on message sent to an encrypted chat.

+

+
messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage;
+messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage;
+
+---functions---
+
+messages.sendEncrypted#44fa7a15 flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage;
+messages.sendEncryptedFile#5559481d flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes file:InputEncryptedFile = messages.SentEncryptedMessage;
+messages.sendEncryptedService#32d439a4 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.sentEncryptedMessageMessage without file attachemts sent to an encrypted file.
messages.sentEncryptedFileMessage with a file enclosure sent to a protected chat
+

Methods

+ + + + + + + + + + + + + + + + + + + + + +
MethodDescription
messages.sendEncryptedSends a text message to a secret chat.
messages.sendEncryptedFileSends a message with a file attachment to a secret chat
messages.sendEncryptedServiceSends a service message to a secret chat.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.SentMessage b/data/core.telegram.org/type/messages.SentMessage new file mode 100644 index 0000000000..fd5144a3fa --- /dev/null +++ b/data/core.telegram.org/type/messages.SentMessage @@ -0,0 +1,128 @@ + + + + + messages.SentMessage + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.StatedMessage b/data/core.telegram.org/type/messages.StatedMessage new file mode 100644 index 0000000000..70318f3ec2 --- /dev/null +++ b/data/core.telegram.org/type/messages.StatedMessage @@ -0,0 +1,128 @@ + + + + + messages.StatedMessage + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.StatedMessages b/data/core.telegram.org/type/messages.StatedMessages new file mode 100644 index 0000000000..a789574721 --- /dev/null +++ b/data/core.telegram.org/type/messages.StatedMessages @@ -0,0 +1,128 @@ + + + + + messages.StatedMessages + + + + + + + + + + + + + +
+ + + +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.StickerSet b/data/core.telegram.org/type/messages.StickerSet new file mode 100644 index 0000000000..0d35a66e57 --- /dev/null +++ b/data/core.telegram.org/type/messages.StickerSet @@ -0,0 +1,188 @@ + + + + + Messages.StickerSet + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.StickerSet

+ +

Stickerset

+

+
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
+
+---functions---
+
+messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet;
+
+stickers.createStickerSet#f1036780 flags:# masks:flags.0?true animated:flags.1?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> = messages.StickerSet;
+stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet;
+stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet;
+stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet;
+stickers.setStickerSetThumb#9a364e30 stickerset:InputStickerSet thumb:InputDocument = messages.StickerSet;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.stickerSetStickerset and stickers inside it
+

Methods

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodDescription
messages.getStickerSetGet info about a stickerset
stickers.createStickerSetCreate a stickerset, bots only.
stickers.removeStickerFromSetRemove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.
stickers.changeStickerPositionChanges the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot
stickers.addStickerToSetAdd a sticker to a stickerset, bots only. The sticker set must have been created by the bot.
stickers.setStickerSetThumbSet stickerset thumbnail
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.StickerSetInstallResult b/data/core.telegram.org/type/messages.StickerSetInstallResult new file mode 100644 index 0000000000..630a87fae8 --- /dev/null +++ b/data/core.telegram.org/type/messages.StickerSetInstallResult @@ -0,0 +1,167 @@ + + + + + Messages.StickerSetInstallResult + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.StickerSetInstallResult

+ +

Result of stickerset installation process

+

+
messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult;
+messages.stickerSetInstallResultArchive#35e410a8 sets:Vector<StickerSetCovered> = messages.StickerSetInstallResult;
+
+---functions---
+
+messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.stickerSetInstallResultSuccessThe stickerset was installed successfully
messages.stickerSetInstallResultArchiveThe stickerset was installed, but since there are too many stickersets some were archived
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.installStickerSetInstall a stickerset
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.Stickers b/data/core.telegram.org/type/messages.Stickers new file mode 100644 index 0000000000..77173efa2a --- /dev/null +++ b/data/core.telegram.org/type/messages.Stickers @@ -0,0 +1,167 @@ + + + + + Messages.Stickers + + + + + + + + + + + + + +
+ +
+
+
+ +

Messages.Stickers

+ +

Stickers

+

+
messages.stickersNotModified#f1749a22 = messages.Stickers;
+messages.stickers#e4599bbd hash:int stickers:Vector<Document> = messages.Stickers;
+
+---functions---
+
+messages.getStickers#43d4f2c emoticon:string hash:int = messages.Stickers;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.stickersNotModifiedNo new stickers were found for the given query
messages.stickersFound stickers
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getStickersGet stickers by emoji
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/messages.VotesList b/data/core.telegram.org/type/messages.VotesList new file mode 100644 index 0000000000..8586a63bdc --- /dev/null +++ b/data/core.telegram.org/type/messages.VotesList @@ -0,0 +1,162 @@ + + + + + messages.VotesList + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.VotesList

+ +

How users voted in a poll

+

+
messages.votesList#823f649 flags:# count:int votes:Vector<MessageUserVote> users:Vector<User> next_offset:flags.0?string = messages.VotesList;
+
+---functions---
+
+messages.getPollVotes#b86e380e flags:# peer:InputPeer id:int option:flags.0?bytes offset:flags.1?string limit:int = messages.VotesList;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.votesListHow users voted in a poll
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getPollVotesGet poll results for non-anonymous polls
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/payments.BankCardData b/data/core.telegram.org/type/payments.BankCardData new file mode 100644 index 0000000000..230fdf1053 --- /dev/null +++ b/data/core.telegram.org/type/payments.BankCardData @@ -0,0 +1,162 @@ + + + + + payments.BankCardData + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.BankCardData

+ +

Credit card info, provided by the card's bank(s)

+

+
payments.bankCardData#3e24e573 title:string open_urls:Vector<BankCardOpenUrl> = payments.BankCardData;
+
+---functions---
+
+payments.getBankCardData#2e79d779 number:string = payments.BankCardData;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
payments.bankCardDataCredit card info, provided by the card's bank(s)
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
payments.getBankCardDataGet info about a credit card
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/payments.PaymentForm b/data/core.telegram.org/type/payments.PaymentForm new file mode 100644 index 0000000000..6148cceed3 --- /dev/null +++ b/data/core.telegram.org/type/payments.PaymentForm @@ -0,0 +1,162 @@ + + + + + Payments.PaymentForm + + + + + + + + + + + + + +
+ +
+
+
+ +

Payments.PaymentForm

+ +

Payment form

+

+
payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector<User> = payments.PaymentForm;
+
+---functions---
+
+payments.getPaymentForm#99f09745 msg_id:int = payments.PaymentForm;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
payments.paymentFormPayment form
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
payments.getPaymentFormGet a payment form
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/payments.PaymentReceipt b/data/core.telegram.org/type/payments.PaymentReceipt new file mode 100644 index 0000000000..6172be6d98 --- /dev/null +++ b/data/core.telegram.org/type/payments.PaymentReceipt @@ -0,0 +1,162 @@ + + + + + Payments.PaymentReceipt + + + + + + + + + + + + + +
+ +
+
+
+ +

Payments.PaymentReceipt

+ +

Payment receipt

+

+
payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector<User> = payments.PaymentReceipt;
+
+---functions---
+
+payments.getPaymentReceipt#a092a980 msg_id:int = payments.PaymentReceipt;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
payments.paymentReceiptReceipt
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
payments.getPaymentReceiptGet payment receipt
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/payments.PaymentResult b/data/core.telegram.org/type/payments.PaymentResult new file mode 100644 index 0000000000..eb72061283 --- /dev/null +++ b/data/core.telegram.org/type/payments.PaymentResult @@ -0,0 +1,167 @@ + + + + + Payments.PaymentResult + + + + + + + + + + + + + +
+ +
+
+
+ +

Payments.PaymentResult

+ +

Payment result

+

+
payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult;
+payments.paymentVerificationNeeded#d8411139 url:string = payments.PaymentResult;
+
+---functions---
+
+payments.sendPaymentForm#2b8879b3 flags:# msg_id:int requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials = payments.PaymentResult;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
payments.paymentResultPayment result
payments.paymentVerificationNeededPayment was not successful, additional verification is needed
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
payments.sendPaymentFormSend compiled payment form
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/payments.SavedInfo b/data/core.telegram.org/type/payments.SavedInfo new file mode 100644 index 0000000000..5fc6332ace --- /dev/null +++ b/data/core.telegram.org/type/payments.SavedInfo @@ -0,0 +1,162 @@ + + + + + Payments.SavedInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

Payments.SavedInfo

+ +

Saved payment info

+

+
payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo;
+
+---functions---
+
+payments.getSavedInfo#227d824b = payments.SavedInfo;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
payments.savedInfoSaved server-side order information
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
payments.getSavedInfoGet saved payment information
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/payments.ValidatedRequestedInfo b/data/core.telegram.org/type/payments.ValidatedRequestedInfo new file mode 100644 index 0000000000..c263fbf71a --- /dev/null +++ b/data/core.telegram.org/type/payments.ValidatedRequestedInfo @@ -0,0 +1,162 @@ + + + + + Payments.ValidatedRequestedInfo + + + + + + + + + + + + + +
+ +
+
+
+ +

Payments.ValidatedRequestedInfo

+ +

Validated requested info

+

+
payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = payments.ValidatedRequestedInfo;
+
+---functions---
+
+payments.validateRequestedInfo#770a8e74 flags:# save:flags.0?true msg_id:int info:PaymentRequestedInfo = payments.ValidatedRequestedInfo;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
payments.validatedRequestedInfoValidated user-provided info
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
payments.validateRequestedInfoSubmit requested order information for validation
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/phone.PhoneCall b/data/core.telegram.org/type/phone.PhoneCall new file mode 100644 index 0000000000..c8608f289b --- /dev/null +++ b/data/core.telegram.org/type/phone.PhoneCall @@ -0,0 +1,172 @@ + + + + + Phone.PhoneCall + + + + + + + + + + + + + +
+ +
+
+
+ +

Phone.PhoneCall

+ +

Phone call

+

+
phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector<User> = phone.PhoneCall;
+
+---functions---
+
+phone.requestCall#42ff96ed flags:# video:flags.0?true user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall;
+phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall;
+phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
phone.phoneCallA VoIP phone call
+

Methods

+ + + + + + + + + + + + + + + + + + + + + +
MethodDescription
phone.requestCallStart a telegram phone call
phone.acceptCallAccept incoming call
phone.confirmCallComplete phone call E2E encryption key exchange »
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/photos.Photo b/data/core.telegram.org/type/photos.Photo new file mode 100644 index 0000000000..acb1fd67cb --- /dev/null +++ b/data/core.telegram.org/type/photos.Photo @@ -0,0 +1,167 @@ + + + + + photos.Photo + + + + + + + + + + + + + +
+ +
+
+
+ +

photos.Photo

+ +

Photo with auxiliary data.

+

+
photos.photo#20212ca8 photo:Photo users:Vector<User> = photos.Photo;
+
+---functions---
+
+photos.updateProfilePhoto#72d4742c id:InputPhoto = photos.Photo;
+photos.uploadProfilePhoto#89f30f69 flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = photos.Photo;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
photos.photoPhoto with auxiliary data.
+

Methods

+ + + + + + + + + + + + + + + + + +
MethodDescription
photos.updateProfilePhotoInstalls a previously uploaded photo as a profile photo.
photos.uploadProfilePhotoUpdates current user profile photo.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/photos.Photos b/data/core.telegram.org/type/photos.Photos new file mode 100644 index 0000000000..f37edfc674 --- /dev/null +++ b/data/core.telegram.org/type/photos.Photos @@ -0,0 +1,167 @@ + + + + + photos.Photos + + + + + + + + + + + + + +
+ +
+
+
+ +

photos.Photos

+ +

Object contains list of photos with auxiliary data.

+

+
photos.photos#8dca6aa5 photos:Vector<Photo> users:Vector<User> = photos.Photos;
+photos.photosSlice#15051f54 count:int photos:Vector<Photo> users:Vector<User> = photos.Photos;
+
+---functions---
+
+photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
photos.photosFull list of photos with auxiliary data.
photos.photosSliceIncomplete list of photos with auxiliary data.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
photos.getUserPhotosReturns the list of user photos.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/stats.BroadcastStats b/data/core.telegram.org/type/stats.BroadcastStats new file mode 100644 index 0000000000..8a256e6654 --- /dev/null +++ b/data/core.telegram.org/type/stats.BroadcastStats @@ -0,0 +1,162 @@ + + + + + Stats.BroadcastStats + + + + + + + + + + + + + +
+ +
+
+
+ +

Stats.BroadcastStats

+ +

Channel statistics

+

+
stats.broadcastStats#bdf78394 period:StatsDateRangeDays followers:StatsAbsValueAndPrev views_per_post:StatsAbsValueAndPrev shares_per_post:StatsAbsValueAndPrev enabled_notifications:StatsPercentValue growth_graph:StatsGraph followers_graph:StatsGraph mute_graph:StatsGraph top_hours_graph:StatsGraph interactions_graph:StatsGraph iv_interactions_graph:StatsGraph views_by_source_graph:StatsGraph new_followers_by_source_graph:StatsGraph languages_graph:StatsGraph recent_message_interactions:Vector<MessageInteractionCounters> = stats.BroadcastStats;
+
+---functions---
+
+stats.getBroadcastStats#ab42441a flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastStats;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
stats.broadcastStatsChannel statistics
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
stats.getBroadcastStatsGet channel statistics
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/stats.MegagroupStats b/data/core.telegram.org/type/stats.MegagroupStats new file mode 100644 index 0000000000..751a83948a --- /dev/null +++ b/data/core.telegram.org/type/stats.MegagroupStats @@ -0,0 +1,162 @@ + + + + + stats.MegagroupStats + + + + + + + + + + + + + +
+ +
+
+
+ +

stats.MegagroupStats

+ +

Supergroup statistics

+

+
stats.megagroupStats#ef7ff916 period:StatsDateRangeDays members:StatsAbsValueAndPrev messages:StatsAbsValueAndPrev viewers:StatsAbsValueAndPrev posters:StatsAbsValueAndPrev growth_graph:StatsGraph members_graph:StatsGraph new_members_by_source_graph:StatsGraph languages_graph:StatsGraph messages_graph:StatsGraph actions_graph:StatsGraph top_hours_graph:StatsGraph weekdays_graph:StatsGraph top_posters:Vector<StatsGroupTopPoster> top_admins:Vector<StatsGroupTopAdmin> top_inviters:Vector<StatsGroupTopInviter> users:Vector<User> = stats.MegagroupStats;
+
+---functions---
+
+stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel = stats.MegagroupStats;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
stats.megagroupStatsSupergroup statistics
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
stats.getMegagroupStatsGet supergroup statistics
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/stats.MessageStats b/data/core.telegram.org/type/stats.MessageStats new file mode 100644 index 0000000000..585f6d4e73 --- /dev/null +++ b/data/core.telegram.org/type/stats.MessageStats @@ -0,0 +1,162 @@ + + + + + stats.MessageStats + + + + + + + + + + + + + +
+ +
+
+
+ +

stats.MessageStats

+ +

Message statistics

+

+
stats.messageStats#8999f295 views_graph:StatsGraph = stats.MessageStats;
+
+---functions---
+
+stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
stats.messageStatsMessage statistics
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
stats.getMessageStatsGet message statistics
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/storage.FileType b/data/core.telegram.org/type/storage.FileType new file mode 100644 index 0000000000..620aec488c --- /dev/null +++ b/data/core.telegram.org/type/storage.FileType @@ -0,0 +1,188 @@ + + + + + storage.FileType + + + + + + + + + + + + + +
+ +
+
+
+ +

storage.FileType

+ +

Object describes the file type.

+

+
storage.fileUnknown#aa963b05 = storage.FileType;
+storage.filePartial#40bc6f52 = storage.FileType;
+storage.fileJpeg#7efe0e = storage.FileType;
+storage.fileGif#cae1aadf = storage.FileType;
+storage.filePng#a4f63c0 = storage.FileType;
+storage.filePdf#ae1e508d = storage.FileType;
+storage.fileMp3#528a0677 = storage.FileType;
+storage.fileMov#4b09ebbc = storage.FileType;
+storage.fileMp4#b3cea0e4 = storage.FileType;
+storage.fileWebp#1081464c = storage.FileType;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
storage.fileUnknownUnknown type.
storage.filePartialPart of a bigger file.
storage.fileJpegJPEG image. MIME type: image/jpeg.
storage.fileGifGIF image. MIME type: image/gif.
storage.filePngPNG image. MIME type: image/png.
storage.filePdfPDF document image. MIME type: application/pdf.
storage.fileMp3Mp3 audio. MIME type: audio/mpeg.
storage.fileMovQuicktime video. MIME type: video/quicktime.
storage.fileMp4MPEG-4 video. MIME type: video/mp4.
storage.fileWebpWEBP image. MIME type: image/webp.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/string.html b/data/core.telegram.org/type/string.html new file mode 100644 index 0000000000..472761b35a --- /dev/null +++ b/data/core.telegram.org/type/string.html @@ -0,0 +1,126 @@ + + + + + string + + + + + + + + + + + + + +
+ +
+
+
+ +

string

+ +

A basic bare type. Values of type string look differently depending on the length L of the string being serialized:

+
    +
  • If L <= 253, the serialization contains one byte with the value of L, then L bytes of the string followed by 0 to 3 characters containing 0, such that the overall length of the value be divisible by 4, whereupon all of this is interpreted as a sequence of int(L/4)+1 32-bit little-endian integers.
  • +
  • If L >= 254, the serialization contains byte 254, followed by 3 bytes with the string length L in little-endian order, followed by L bytes of the string, further followed by 0 to 3 null padding bytes.
  • +
+

All strings passed to the API must be encoded in UTF-8. When arbitrary byte sequences have to be serialized, bytes alias is to be used.

+

Further details on basic types»

+

Related pages

+

bytes

+

Basic bare type. It is an alias of the string type, with the difference that the value may contain arbitrary byte sequences, including invalid UTF-8 sequences.

+

When computing crc32 for a constructor or method it is necessary to replace all byte types with string types.

+

Binary Data Serialization

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/updates.ChannelDifference b/data/core.telegram.org/type/updates.ChannelDifference new file mode 100644 index 0000000000..9622cab392 --- /dev/null +++ b/data/core.telegram.org/type/updates.ChannelDifference @@ -0,0 +1,172 @@ + + + + + updates.ChannelDifference + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.ChannelDifference

+ +

Contains the difference (new messages) between our local channel state and the remote state

+

+
updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference;
+updates.channelDifferenceTooLong#a4bcc6fe flags:# final:flags.0?true timeout:flags.1?int dialog:Dialog messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference;
+updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector<Message> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference;
+
+---functions---
+
+updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
updates.channelDifferenceEmptyThere are no new updates
updates.channelDifferenceTooLongThe provided pts + limit < remote pts. Simply, there are too many updates to be fetched (more than limit), the client has to resolve the update gap in one of the following ways:

1. Delete all known messages in the chat, begin from scratch by refetching all messages manually with getHistory. It is easy to implement, but suddenly disappearing messages looks awful for the user.
2. Save all messages loaded in the memory until application restart, but delete all messages from database. Messages left in the memory must be lazily updated using calls to getHistory. It looks much smoother for the user, they will need to redownload messages only after client restart. Unsynchronized messages left in the memory shouldn't be saved to database, results of getHistory and getMessages must be used to update state of deleted and edited messages left in the memory.
3. Save all messages loaded in the memory and stored in the database without saving that some messages form continuous ranges. Messages in the database will be excluded from results of getChatHistory and searchChatMessages after application restart and will be available only through getMessage. Every message should still be checked using getHistory. It has more disadvantages over 2) than advantages.
4. Save all messages with saving all data about continuous message ranges. Messages from the database may be used as results of getChatHistory and (if implemented continuous ranges support for searching shared media) searchChatMessages. The messages should still be lazily checked using getHistory, but they are still available offline. It is the best way for gaps support, but it is pretty hard to implement correctly. It should be also noted that some messages like live location messages shouldn't be deleted.
updates.channelDifferenceThe new updates
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
updates.getChannelDifferenceReturns the difference between the current state of updates of a certain channel and transmitted.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/updates.Difference b/data/core.telegram.org/type/updates.Difference new file mode 100644 index 0000000000..4f41a0c829 --- /dev/null +++ b/data/core.telegram.org/type/updates.Difference @@ -0,0 +1,177 @@ + + + + + updates.Difference + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.Difference

+ +

Occurred changes.

+

+
updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference;
+updates.difference#f49ca0 new_messages:Vector<Message> new_encrypted_messages:Vector<EncryptedMessage> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> state:updates.State = updates.Difference;
+updates.differenceSlice#a8fb1981 new_messages:Vector<Message> new_encrypted_messages:Vector<EncryptedMessage> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> intermediate_state:updates.State = updates.Difference;
+updates.differenceTooLong#4afe8f6d pts:int = updates.Difference;
+
+---functions---
+
+updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;

+

Constructors

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ConstructorDescription
updates.differenceEmptyNo events.
updates.differenceFull list of occurred events.
updates.differenceSliceIncomplete list of occurred events.
updates.differenceTooLongThe difference is too long, and the specified state must be used to refetch updates.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
updates.getDifferenceGet new updates.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/updates.State b/data/core.telegram.org/type/updates.State new file mode 100644 index 0000000000..6fe5d4d395 --- /dev/null +++ b/data/core.telegram.org/type/updates.State @@ -0,0 +1,162 @@ + + + + + updates.State + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.State

+ +

Object contains info on state for further updates.

+

+
updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State;
+
+---functions---
+
+updates.getState#edd4882a = updates.State;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
updates.stateUpdates state.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
updates.getStateReturns a current state of updates.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/upload.CdnFile b/data/core.telegram.org/type/upload.CdnFile new file mode 100644 index 0000000000..28223e59fb --- /dev/null +++ b/data/core.telegram.org/type/upload.CdnFile @@ -0,0 +1,167 @@ + + + + + upload.CdnFile + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.CdnFile

+ +

Represents the download status of a CDN file

+

+
upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile;
+upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile;
+
+---functions---
+
+upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
upload.cdnFileReuploadNeededThe file was cleared from the temporary RAM cache of the CDN and has to be reuploaded.
upload.cdnFileRepresent a chunk of a CDN file.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
upload.getCdnFileDownload a CDN file.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/upload.File b/data/core.telegram.org/type/upload.File new file mode 100644 index 0000000000..b6f5e07008 --- /dev/null +++ b/data/core.telegram.org/type/upload.File @@ -0,0 +1,167 @@ + + + + + upload.File + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.File

+ +

Contains info on file.

+

+
upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File;
+upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector<FileHash> = upload.File;
+
+---functions---
+
+upload.getFile#b15a9afc flags:# precise:flags.0?true cdn_supported:flags.1?true location:InputFileLocation offset:int limit:int = upload.File;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
upload.fileFile content.
upload.fileCdnRedirectThe file must be downloaded from a CDN DC.
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
upload.getFileReturns content of a whole file or its part.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/type/upload.WebFile b/data/core.telegram.org/type/upload.WebFile new file mode 100644 index 0000000000..0bbf46e4af --- /dev/null +++ b/data/core.telegram.org/type/upload.WebFile @@ -0,0 +1,162 @@ + + + + + Upload.WebFile + + + + + + + + + + + + + +
+ +
+
+
+ +

Upload.WebFile

+ +

Remote file

+

+
upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile;
+
+---functions---
+
+upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
upload.webFileRepresents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
upload.getWebFileReturns content of an HTTP file or a part, by proxying the request through telegram.
+ +
+ +
+
+ +
+ + + + + +