From d0c19d16f3be01448fa45b3db7aa84f6e5917203 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 13 May 2022 22:37:40 +0000 Subject: [PATCH] Update content of files --- data/web/blogfork.telegram.org.html | 261 + data/web/blogfork.telegram.org/api.html | 261 + .../api/account-deletion.html | 132 + .../api/animated-emojis.html | 191 + data/web/blogfork.telegram.org/api/auth.html | 221 + data/web/blogfork.telegram.org/api/bots.html | 145 + .../api/bots/buttons.html | 245 + .../api/bots/commands.html | 143 + .../blogfork.telegram.org/api/bots/games.html | 174 + .../api/bots/inline.html | 218 + .../blogfork.telegram.org/api/channel.html | 165 + .../web/blogfork.telegram.org/api/config.html | 431 + .../blogfork.telegram.org/api/datacenter.html | 155 + data/web/blogfork.telegram.org/api/dice.html | 152 + .../blogfork.telegram.org/api/discussion.html | 155 + .../web/blogfork.telegram.org/api/drafts.html | 134 + .../blogfork.telegram.org/api/end-to-end.html | 247 + .../api/end-to-end/pfs.html | 179 + .../api/end-to-end/seq_no.html | 176 + .../api/end-to-end/video-calls.html | 218 + .../api/end-to-end/voice-calls.html | 181 + .../api/end-to-end_v1.html | 228 + .../blogfork.telegram.org/api/entities.html | 141 + .../web/blogfork.telegram.org/api/errors.html | 237 + .../api/file_reference.html | 128 + data/web/blogfork.telegram.org/api/files.html | 571 ++ .../blogfork.telegram.org/api/folders.html | 182 + .../web/blogfork.telegram.org/api/import.html | 176 + .../blogfork.telegram.org/api/invites.html | 216 + .../blogfork.telegram.org/api/invoking.html | 157 + .../web/blogfork.telegram.org/api/layers.html | 510 ++ .../api/live-location.html | 181 + .../blogfork.telegram.org/api/mentions.html | 155 + data/web/blogfork.telegram.org/api/min.html | 145 + .../api/obtaining_api_id.html | 143 + .../blogfork.telegram.org/api/offsets.html | 173 + .../api/optimisation.html | 153 + .../blogfork.telegram.org/api/passport.html | 677 ++ .../blogfork.telegram.org/api/pattern.html | 125 + .../blogfork.telegram.org/api/payments.html | 369 + data/web/blogfork.telegram.org/api/pfs.html | 141 + data/web/blogfork.telegram.org/api/pin.html | 152 + data/web/blogfork.telegram.org/api/poll.html | 202 + .../api/push-updates.html | 1066 +++ .../blogfork.telegram.org/api/qr-login.html | 157 + .../blogfork.telegram.org/api/reactions.html | 182 + .../api/recent-actions.html | 157 + .../web/blogfork.telegram.org/api/rights.html | 136 + .../api/scheduled-messages.html | 159 + .../web/blogfork.telegram.org/api/search.html | 182 + data/web/blogfork.telegram.org/api/srp.html | 310 + data/web/blogfork.telegram.org/api/stats.html | 318 + data/web/blogfork.telegram.org/api/terms.html | 144 + .../blogfork.telegram.org/api/threads.html | 185 + .../blogfork.telegram.org/api/top-rating.html | 148 + .../blogfork.telegram.org/api/updates.html | 229 + .../api/url-authorization.html | 163 + .../blogfork.telegram.org/api/web-events.html | 180 + data/web/blogfork.telegram.org/bots.html | 440 + .../blogfork.telegram.org/bots/2-0-intro.html | 233 + .../bots/api-changelog.html | 693 ++ data/web/blogfork.telegram.org/bots/api.html | 7598 +++++++++++++++++ data/web/blogfork.telegram.org/bots/faq.html | 246 + .../web/blogfork.telegram.org/bots/games.html | 188 + .../blogfork.telegram.org/bots/inline.html | 191 + .../blogfork.telegram.org/bots/payments.html | 743 ++ .../bots/payments/currencies.json | 1 + .../blogfork.telegram.org/bots/samples.html | 252 + .../bots/samples/hellobot.html | 290 + .../bots/self-signed.html | 164 + .../blogfork.telegram.org/bots/webapps.html | 594 ++ .../blogfork.telegram.org/bots/webhooks.html | 830 ++ data/web/blogfork.telegram.org/cdn.html | 212 + .../constructor/account.authorizationForm | 177 + .../constructor/account.authorizations | 155 + .../constructor/account.autoDownloadSettings | 160 + .../constructor/account.contentSettings | 160 + .../constructor/account.password | 216 + .../constructor/account.passwordInputSettings | 179 + .../constructor/account.passwordSettings | 164 + .../constructor/account.privacyRules | 160 + .../account.resetPasswordFailedWait | 150 + .../constructor/account.resetPasswordOk | 135 + .../account.resetPasswordRequestedWait | 150 + .../constructor/account.sentEmailCode | 158 + .../constructor/account.takeout | 150 + .../constructor/account.themes | 158 + .../constructor/account.themesNotModified | 135 + .../constructor/account.tmpPassword | 155 + .../constructor/account.wallPapers | 158 + .../constructor/account.wallPapersNotModified | 135 + .../constructor/account.webAuthorizations | 155 + .../constructor/accountDaysTTL.html | 150 + .../constructor/auth.authorization | 172 + .../auth.authorizationSignUpRequired | 158 + .../constructor/auth.codeTypeCall | 135 + .../constructor/auth.codeTypeFlashCall | 135 + .../constructor/auth.codeTypeMissedCall | 135 + .../constructor/auth.codeTypeSms | 135 + .../constructor/auth.exportedAuthorization | 155 + .../constructor/auth.loggedOut | 158 + .../constructor/auth.loginToken | 158 + .../constructor/auth.loginTokenMigrateTo | 155 + .../constructor/auth.loginTokenSuccess | 150 + .../constructor/auth.passwordRecovery | 155 + .../constructor/auth.sentCode | 175 + .../constructor/auth.sentCodeTypeApp | 150 + .../constructor/auth.sentCodeTypeCall | 150 + .../constructor/auth.sentCodeTypeFlashCall | 153 + .../constructor/auth.sentCodeTypeMissedCall | 155 + .../constructor/auth.sentCodeTypeSms | 150 + .../constructor/authorization.html | 238 + .../constructor/autoDownloadSettings.html | 190 + .../constructor/availableReaction.html | 200 + .../constructor/bankCardOpenUrl.html | 155 + .../constructor/baseThemeArctic.html | 135 + .../constructor/baseThemeClassic.html | 135 + .../constructor/baseThemeDay.html | 135 + .../constructor/baseThemeNight.html | 135 + .../constructor/baseThemeTinted.html | 135 + .../constructor/boolFalse.html | 135 + .../constructor/boolTrue.html | 135 + .../constructor/botCommand.html | 155 + .../botCommandScopeChatAdmins.html | 138 + .../constructor/botCommandScopeChats.html | 138 + .../constructor/botCommandScopeDefault.html | 135 + .../constructor/botCommandScopePeer.html | 150 + .../botCommandScopePeerAdmins.html | 153 + .../constructor/botCommandScopePeerUser.html | 158 + .../constructor/botCommandScopeUsers.html | 135 + .../constructor/botInfo.html | 160 + .../constructor/botInlineMediaResult.html | 189 + .../botInlineMessageMediaAuto.html | 170 + .../botInlineMessageMediaContact.html | 175 + .../constructor/botInlineMessageMediaGeo.html | 178 + .../botInlineMessageMediaInvoice.html | 192 + .../botInlineMessageMediaVenue.html | 185 + .../constructor/botInlineMessageText.html | 173 + .../constructor/botInlineResult.html | 192 + .../constructor/cdnConfig.html | 152 + .../constructor/cdnPublicKey.html | 157 + .../constructor/channel.html | 297 + .../constructor/channelAdminLogEvent.html | 165 + ...channelAdminLogEventActionChangeAbout.html | 155 + ...ogEventActionChangeAvailableReactions.html | 158 + ...elAdminLogEventActionChangeHistoryTTL.html | 155 + ...elAdminLogEventActionChangeLinkedChat.html | 155 + ...nnelAdminLogEventActionChangeLocation.html | 155 + ...channelAdminLogEventActionChangePhoto.html | 155 + ...elAdminLogEventActionChangeStickerSet.html | 155 + ...channelAdminLogEventActionChangeTitle.html | 155 + ...nnelAdminLogEventActionChangeUsername.html | 155 + ...dminLogEventActionDefaultBannedRights.html | 158 + ...annelAdminLogEventActionDeleteMessage.html | 150 + ...elAdminLogEventActionDiscardGroupCall.html | 150 + ...channelAdminLogEventActionEditMessage.html | 155 + ...minLogEventActionExportedInviteDelete.html | 150 + ...AdminLogEventActionExportedInviteEdit.html | 155 + ...minLogEventActionExportedInviteRevoke.html | 150 + ...lAdminLogEventActionParticipantInvite.html | 150 + ...nelAdminLogEventActionParticipantJoin.html | 135 + ...LogEventActionParticipantJoinByInvite.html | 153 + ...ogEventActionParticipantJoinByRequest.html | 155 + ...elAdminLogEventActionParticipantLeave.html | 135 + ...nelAdminLogEventActionParticipantMute.html | 150 + ...nLogEventActionParticipantToggleAdmin.html | 158 + ...minLogEventActionParticipantToggleBan.html | 158 + ...lAdminLogEventActionParticipantUnmute.html | 150 + ...lAdminLogEventActionParticipantVolume.html | 150 + ...channelAdminLogEventActionSendMessage.html | 150 + ...nnelAdminLogEventActionStartGroupCall.html | 150 + .../channelAdminLogEventActionStopPoll.html | 150 + ...nLogEventActionToggleGroupCallSetting.html | 150 + ...annelAdminLogEventActionToggleInvites.html | 150 + ...elAdminLogEventActionToggleNoForwards.html | 150 + ...nLogEventActionTogglePreHistoryHidden.html | 153 + ...elAdminLogEventActionToggleSignatures.html | 150 + ...nnelAdminLogEventActionToggleSlowMode.html | 158 + ...hannelAdminLogEventActionUpdatePinned.html | 150 + .../channelAdminLogEventsFilter.html | 274 + .../constructor/channelForbidden.html | 180 + .../constructor/channelFull.html | 390 + .../constructor/channelLocation.html | 155 + .../constructor/channelLocationEmpty.html | 135 + .../constructor/channelMessagesFilter.html | 160 + .../channelMessagesFilterEmpty.html | 135 + .../constructor/channelParticipant.html | 155 + .../constructor/channelParticipantAdmin.html | 193 + .../constructor/channelParticipantBanned.html | 178 + .../channelParticipantCreator.html | 165 + .../constructor/channelParticipantLeft.html | 150 + .../constructor/channelParticipantSelf.html | 170 + .../channelParticipantsAdmins.html | 135 + .../channelParticipantsBanned.html | 150 + .../constructor/channelParticipantsBots.html | 135 + .../channelParticipantsContacts.html | 150 + .../channelParticipantsKicked.html | 150 + .../channelParticipantsMentions.html | 164 + .../channelParticipantsRecent.html | 135 + .../channelParticipantsSearch.html | 150 + .../constructor/channels.adminLogResults | 160 + .../constructor/channels.channelParticipant | 160 + .../constructor/channels.channelParticipants | 165 + .../channels.channelParticipantsNotModified | 135 + .../constructor/channels.sendAsPeers | 160 + .../constructor/chat.html | 235 + .../constructor/chatAdminRights.html | 208 + .../constructor/chatAdminWithInvites.html | 160 + .../constructor/chatBannedRights.html | 218 + .../constructor/chatEmpty.html | 150 + .../constructor/chatForbidden.html | 155 + .../constructor/chatFull.html | 255 + .../constructor/chatInvite.html | 205 + .../constructor/chatInviteAlready.html | 150 + .../constructor/chatInviteExported.html | 210 + .../constructor/chatInviteImporter.html | 178 + .../constructor/chatInvitePeek.html | 155 + .../constructor/chatOnlines.html | 150 + .../constructor/chatParticipant.html | 160 + .../constructor/chatParticipantAdmin.html | 160 + .../constructor/chatParticipantCreator.html | 150 + .../constructor/chatParticipants.html | 160 + .../chatParticipantsForbidden.html | 160 + .../constructor/chatPhoto.html | 173 + .../constructor/chatPhotoEmpty.html | 135 + .../constructor/codeSettings.html | 181 + .../constructor/config.html | 423 + .../constructor/contact.html | 155 + .../constructor/contactStatus.html | 155 + .../constructor/contacts.blocked | 160 + .../constructor/contacts.blockedSlice | 165 + .../constructor/contacts.contacts | 160 + .../constructor/contacts.contactsNotModified | 135 + .../constructor/contacts.found | 165 + .../constructor/contacts.importedContacts | 168 + .../constructor/contacts.resolvedPeer | 160 + .../constructor/contacts.topPeers | 160 + .../constructor/contacts.topPeersDisabled | 135 + .../constructor/contacts.topPeersNotModified | 135 + .../constructor/dataJSON.html | 150 + .../constructor/dcOption.html | 200 + .../constructor/decryptedMessage.html | 220 + .../decryptedMessageActionAbortKey.html | 151 + .../decryptedMessageActionAcceptKey.html | 163 + .../decryptedMessageActionCommitKey.html | 158 + .../decryptedMessageActionDeleteMessages.html | 151 + .../decryptedMessageActionFlushHistory.html | 136 + .../decryptedMessageActionNoop.html | 136 + .../decryptedMessageActionNotifyLayer.html | 154 + .../decryptedMessageActionReadMessages.html | 151 + .../decryptedMessageActionRequestKey.html | 158 + .../decryptedMessageActionResend.html | 158 + ...ryptedMessageActionScreenshotMessages.html | 151 + .../decryptedMessageActionSetMessageTTL.html | 152 + .../decryptedMessageActionTyping.html | 151 + .../constructor/decryptedMessageLayer.html | 176 + .../decryptedMessageMediaAudio.html | 177 + .../decryptedMessageMediaContact.html | 166 + .../decryptedMessageMediaDocument.html | 194 + .../decryptedMessageMediaEmpty.html | 136 + ...decryptedMessageMediaExternalDocument.html | 186 + .../decryptedMessageMediaGeoPoint.html | 156 + .../decryptedMessageMediaPhoto.html | 194 + .../decryptedMessageMediaVenue.html | 176 + .../decryptedMessageMediaVideo.html | 210 + .../decryptedMessageMediaWebPage.html | 151 + .../constructor/decryptedMessageService.html | 159 + .../constructor/dialog.html | 222 + .../constructor/dialogFilter.html | 223 + .../constructor/dialogFilterSuggested.html | 158 + .../constructor/dialogFolder.html | 190 + .../constructor/dialogPeer.html | 150 + .../constructor/dialogPeerFolder.html | 153 + .../constructor/document.html | 203 + .../documentAttributeAnimated.html | 135 + .../constructor/documentAttributeAudio.html | 175 + .../documentAttributeFilename.html | 150 + .../documentAttributeHasStickers.html | 135 + .../documentAttributeImageSize.html | 155 + .../constructor/documentAttributeSticker.html | 170 + .../constructor/documentAttributeVideo.html | 175 + .../constructor/documentEmpty.html | 150 + .../constructor/draftMessage.html | 180 + .../constructor/draftMessageEmpty.html | 155 + .../constructor/emojiKeyword.html | 155 + .../constructor/emojiKeywordDeleted.html | 155 + .../constructor/emojiKeywordsDifference.html | 165 + .../constructor/emojiLanguage.html | 150 + .../constructor/emojiURL.html | 150 + .../constructor/encryptedChat.html | 180 + .../constructor/encryptedChatDiscarded.html | 160 + .../constructor/encryptedChatEmpty.html | 150 + .../constructor/encryptedChatRequested.html | 188 + .../constructor/encryptedChatWaiting.html | 170 + .../constructor/encryptedFile.html | 170 + .../constructor/encryptedFileEmpty.html | 135 + .../constructor/encryptedMessage.html | 173 + .../constructor/encryptedMessageService.html | 168 + .../constructor/error.html | 155 + .../constructor/exportedMessageLink.html | 155 + .../constructor/fileHash.html | 174 + .../constructor/fileLocation.html | 185 + .../constructor/fileLocationUnavailable.html | 182 + .../constructor/folder.html | 180 + .../constructor/folderPeer.html | 158 + .../constructor/game.html | 185 + .../constructor/geoPoint.html | 170 + .../constructor/geoPointEmpty.html | 135 + .../constructor/globalPrivacySettings.html | 155 + .../constructor/groupCall.html | 245 + .../constructor/groupCallDiscarded.html | 160 + .../constructor/groupCallParticipant.html | 250 + .../groupCallParticipantVideo.html | 170 + .../groupCallParticipantVideoSourceGroup.html | 155 + .../constructor/groupCallStreamChannel.html | 163 + .../constructor/help.appUpdate | 193 + .../constructor/help.countriesList | 158 + .../constructor/help.countriesListNotModified | 135 + .../constructor/help.country | 175 + .../constructor/help.countryCode | 165 + .../constructor/help.deepLinkInfo | 168 + .../constructor/help.deepLinkInfoEmpty | 135 + .../constructor/help.inviteText | 150 + .../constructor/help.noAppUpdate | 135 + .../constructor/help.passportConfig | 159 + .../help.passportConfigNotModified | 135 + .../constructor/help.promoData | 185 + .../constructor/help.promoDataEmpty | 150 + .../constructor/help.recentMeUrls | 160 + .../constructor/help.support | 155 + .../constructor/help.supportName | 150 + .../constructor/help.termsOfService | 178 + .../constructor/help.termsOfServiceUpdate | 160 + .../help.termsOfServiceUpdateEmpty | 153 + .../constructor/help.userInfo | 168 + .../constructor/help.userInfoEmpty | 135 + .../constructor/highScore.html | 160 + .../constructor/importedContact.html | 158 + .../constructor/inlineBotSwitchPM.html | 155 + .../inlineQueryPeerTypeBroadcast.html | 138 + .../constructor/inlineQueryPeerTypeChat.html | 138 + .../inlineQueryPeerTypeMegagroup.html | 138 + .../constructor/inlineQueryPeerTypePM.html | 135 + .../inlineQueryPeerTypeSameBotPM.html | 135 + .../constructor/inputAppEvent.html | 165 + .../inputBotInlineMessageGame.html | 155 + .../constructor/inputBotInlineMessageID.html | 160 + .../inputBotInlineMessageID64.html | 165 + .../inputBotInlineMessageMediaAuto.html | 168 + .../inputBotInlineMessageMediaContact.html | 175 + .../inputBotInlineMessageMediaGeo.html | 178 + .../inputBotInlineMessageMediaInvoice.html | 190 + .../inputBotInlineMessageMediaVenue.html | 185 + .../inputBotInlineMessageText.html | 173 + .../constructor/inputBotInlineResult.html | 192 + .../inputBotInlineResultDocument.html | 182 + .../constructor/inputBotInlineResultGame.html | 160 + .../inputBotInlineResultPhoto.html | 167 + .../constructor/inputChannel.html | 158 + .../constructor/inputChannelEmpty.html | 135 + .../constructor/inputChannelFromMessage.html | 163 + .../constructor/inputChatPhoto.html | 150 + .../constructor/inputChatPhotoEmpty.html | 135 + .../constructor/inputChatUploadedPhoto.html | 168 + .../constructor/inputCheckPasswordEmpty.html | 135 + .../constructor/inputCheckPasswordSRP.html | 163 + .../constructor/inputClientProxy.html | 157 + .../constructor/inputDialogPeer.html | 150 + .../constructor/inputDialogPeerFolder.html | 153 + .../constructor/inputDocument.html | 165 + .../constructor/inputDocumentEmpty.html | 135 + .../inputDocumentFileLocation.html | 170 + .../constructor/inputEncryptedChat.html | 162 + .../constructor/inputEncryptedFile.html | 158 + .../inputEncryptedFileBigUploaded.html | 163 + .../constructor/inputEncryptedFileEmpty.html | 135 + .../inputEncryptedFileLocation.html | 158 + .../inputEncryptedFileUploaded.html | 165 + .../constructor/inputFile.html | 168 + .../constructor/inputFileBig.html | 163 + .../constructor/inputFileLocation.html | 168 + .../constructor/inputFolderPeer.html | 158 + .../constructor/inputGameID.html | 158 + .../constructor/inputGameShortName.html | 155 + .../constructor/inputGeoPoint.html | 165 + .../constructor/inputGeoPointEmpty.html | 135 + .../constructor/inputGroupCall.html | 155 + .../constructor/inputGroupCallStream.html | 175 + .../inputKeyboardButtonUrlAuth.html | 179 + .../inputKeyboardButtonUserProfile.html | 155 + .../constructor/inputMediaContact.html | 165 + .../constructor/inputMediaDice.html | 153 + .../constructor/inputMediaDocument.html | 165 + .../inputMediaDocumentExternal.html | 160 + .../constructor/inputMediaEmpty.html | 135 + .../constructor/inputMediaGame.html | 150 + .../constructor/inputMediaGeoLive.html | 178 + .../constructor/inputMediaGeoPoint.html | 150 + .../constructor/inputMediaInvoice.html | 192 + .../constructor/inputMediaPhoto.html | 160 + .../constructor/inputMediaPhotoExternal.html | 160 + .../constructor/inputMediaPoll.html | 173 + .../inputMediaUploadedDocument.html | 193 + .../constructor/inputMediaUploadedPhoto.html | 168 + .../constructor/inputMediaVenue.html | 175 + .../inputMessageCallbackQuery.html | 155 + .../inputMessageEntityMentionName.html | 165 + .../constructor/inputMessageID.html | 150 + .../constructor/inputMessagePinned.html | 135 + .../constructor/inputMessageReplyTo.html | 150 + .../inputMessagesFilterChatPhotos.html | 135 + .../inputMessagesFilterContacts.html | 135 + .../inputMessagesFilterDocument.html | 135 + .../constructor/inputMessagesFilterEmpty.html | 135 + .../constructor/inputMessagesFilterGeo.html | 135 + .../constructor/inputMessagesFilterGif.html | 135 + .../constructor/inputMessagesFilterMusic.html | 135 + .../inputMessagesFilterMyMentions.html | 138 + .../inputMessagesFilterPhoneCalls.html | 155 + .../inputMessagesFilterPhotoVideo.html | 135 + .../inputMessagesFilterPhotos.html | 135 + .../inputMessagesFilterPinned.html | 135 + .../inputMessagesFilterRoundVideo.html | 135 + .../inputMessagesFilterRoundVoice.html | 135 + .../constructor/inputMessagesFilterUrl.html | 135 + .../constructor/inputMessagesFilterVideo.html | 135 + .../constructor/inputMessagesFilterVoice.html | 135 + .../constructor/inputNotifyBroadcasts.html | 138 + .../constructor/inputNotifyChats.html | 135 + .../constructor/inputNotifyPeer.html | 150 + .../constructor/inputNotifyUsers.html | 135 + .../constructor/inputPaymentCredentials.html | 160 + .../inputPaymentCredentialsApplePay.html | 150 + .../inputPaymentCredentialsGooglePay.html | 150 + .../inputPaymentCredentialsSaved.html | 155 + .../constructor/inputPeerChannel.html | 158 + .../inputPeerChannelFromMessage.html | 163 + .../constructor/inputPeerChat.html | 150 + .../constructor/inputPeerEmpty.html | 135 + .../constructor/inputPeerNotifySettings.html | 170 + .../inputPeerPhotoFileLocation.html | 165 + .../constructor/inputPeerSelf.html | 135 + .../constructor/inputPeerUser.html | 158 + .../constructor/inputPeerUserFromMessage.html | 163 + .../constructor/inputPhoneCall.html | 155 + .../constructor/inputPhoneContact.html | 169 + .../constructor/inputPhoto.html | 165 + .../constructor/inputPhotoEmpty.html | 135 + .../constructor/inputPhotoFileLocation.html | 174 + .../inputPhotoLegacyFileLocation.html | 175 + .../inputPrivacyKeyAddedByPhone.html | 135 + .../inputPrivacyKeyChatInvite.html | 135 + .../constructor/inputPrivacyKeyForwards.html | 135 + .../constructor/inputPrivacyKeyPhoneCall.html | 135 + .../inputPrivacyKeyPhoneNumber.html | 135 + .../constructor/inputPrivacyKeyPhoneP2P.html | 135 + .../inputPrivacyKeyProfilePhoto.html | 135 + .../inputPrivacyKeyStatusTimestamp.html | 135 + .../inputPrivacyValueAllowAll.html | 135 + ...nputPrivacyValueAllowChatParticipants.html | 150 + .../inputPrivacyValueAllowContacts.html | 135 + .../inputPrivacyValueAllowUsers.html | 150 + .../inputPrivacyValueDisallowAll.html | 135 + ...tPrivacyValueDisallowChatParticipants.html | 150 + .../inputPrivacyValueDisallowContacts.html | 135 + .../inputPrivacyValueDisallowUsers.html | 150 + .../inputReportReasonChildAbuse.html | 135 + .../inputReportReasonCopyright.html | 135 + .../constructor/inputReportReasonFake.html | 135 + .../inputReportReasonGeoIrrelevant.html | 135 + .../inputReportReasonIllegalDrugs.html | 135 + .../constructor/inputReportReasonOther.html | 135 + .../inputReportReasonPersonalDetails.html | 135 + .../inputReportReasonPornography.html | 135 + .../constructor/inputReportReasonSpam.html | 135 + .../inputReportReasonViolence.html | 135 + .../constructor/inputSecureFile.html | 158 + .../constructor/inputSecureFileLocation.html | 159 + .../constructor/inputSecureFileUploaded.html | 172 + .../constructor/inputSecureValue.html | 193 + .../constructor/inputSingleMedia.html | 177 + .../inputStickerSetAnimatedEmoji.html | 135 + ...nputStickerSetAnimatedEmojiAnimations.html | 135 + .../constructor/inputStickerSetDice.html | 153 + .../constructor/inputStickerSetEmpty.html | 135 + .../constructor/inputStickerSetID.html | 155 + .../constructor/inputStickerSetItem.html | 165 + .../constructor/inputStickerSetShortName.html | 150 + .../constructor/inputStickerSetThumb.html | 158 + .../inputStickeredMediaDocument.html | 150 + .../constructor/inputStickeredMediaPhoto.html | 150 + .../constructor/inputTakeoutFileLocation.html | 135 + .../constructor/inputTheme.html | 155 + .../constructor/inputThemeSettings.html | 185 + .../constructor/inputThemeSlug.html | 150 + .../constructor/inputUser.html | 158 + .../constructor/inputUserEmpty.html | 135 + .../constructor/inputUserFromMessage.html | 163 + .../constructor/inputUserSelf.html | 135 + .../constructor/inputWallPaper.html | 155 + .../constructor/inputWallPaperNoFile.html | 153 + .../constructor/inputWallPaperSlug.html | 150 + .../constructor/inputWebDocument.html | 168 + .../inputWebFileGeoPointLocation.html | 175 + .../constructor/inputWebFileLocation.html | 155 + .../constructor/invoice.html | 212 + .../constructor/jsonArray.html | 150 + .../constructor/jsonBool.html | 150 + .../constructor/jsonNull.html | 135 + .../constructor/jsonNumber.html | 150 + .../constructor/jsonObject.html | 150 + .../constructor/jsonObjectValue.html | 155 + .../constructor/jsonString.html | 150 + .../constructor/keyboardButton.html | 150 + .../constructor/keyboardButtonBuy.html | 150 + .../constructor/keyboardButtonCallback.html | 170 + .../constructor/keyboardButtonGame.html | 150 + .../keyboardButtonRequestGeoLocation.html | 150 + .../keyboardButtonRequestPhone.html | 150 + .../keyboardButtonRequestPoll.html | 160 + .../constructor/keyboardButtonRow.html | 150 + .../keyboardButtonSwitchInline.html | 165 + .../constructor/keyboardButtonUrl.html | 155 + .../constructor/keyboardButtonUrlAuth.html | 182 + .../keyboardButtonUserProfile.html | 155 + .../constructor/labeledPrice.html | 157 + .../constructor/langPackDifference.html | 165 + .../constructor/langPackLanguage.html | 205 + .../constructor/langPackString.html | 155 + .../constructor/langPackStringDeleted.html | 150 + .../constructor/langPackStringPluralized.html | 185 + .../constructor/maskCoords.html | 172 + .../constructor/message.html | 315 + .../constructor/messageActionBotAllowed.html | 152 + .../messageActionChannelCreate.html | 150 + .../messageActionChannelMigrateFrom.html | 158 + .../constructor/messageActionChatAddUser.html | 150 + .../constructor/messageActionChatCreate.html | 155 + .../messageActionChatDeletePhoto.html | 135 + .../messageActionChatDeleteUser.html | 150 + .../messageActionChatEditPhoto.html | 150 + .../messageActionChatEditTitle.html | 150 + .../messageActionChatJoinedByLink.html | 150 + .../messageActionChatJoinedByRequest.html | 135 + .../messageActionChatMigrateTo.html | 153 + .../messageActionContactSignUp.html | 135 + .../messageActionCustomAction.html | 150 + .../constructor/messageActionEmpty.html | 135 + .../constructor/messageActionGameScore.html | 155 + .../messageActionGeoProximityReached.html | 163 + .../constructor/messageActionGroupCall.html | 160 + .../messageActionGroupCallScheduled.html | 155 + .../messageActionHistoryClear.html | 135 + .../messageActionInviteToGroupCall.html | 155 + .../constructor/messageActionPaymentSent.html | 157 + .../messageActionPaymentSentMe.html | 182 + .../constructor/messageActionPhoneCall.html | 170 + .../constructor/messageActionPinMessage.html | 135 + .../messageActionScreenshotTaken.html | 135 + .../messageActionSecureValuesSent.html | 152 + .../messageActionSecureValuesSentMe.html | 157 + .../messageActionSetChatTheme.html | 150 + .../messageActionSetMessagesTTL.html | 150 + .../constructor/messageEmpty.html | 160 + .../constructor/messageEntityBankCard.html | 155 + .../constructor/messageEntityBlockquote.html | 155 + .../constructor/messageEntityBold.html | 155 + .../constructor/messageEntityBotCommand.html | 155 + .../constructor/messageEntityCashtag.html | 155 + .../constructor/messageEntityCode.html | 155 + .../constructor/messageEntityEmail.html | 155 + .../constructor/messageEntityHashtag.html | 155 + .../constructor/messageEntityItalic.html | 155 + .../constructor/messageEntityMention.html | 158 + .../constructor/messageEntityMentionName.html | 165 + .../constructor/messageEntityPhone.html | 155 + .../constructor/messageEntityPre.html | 160 + .../constructor/messageEntitySpoiler.html | 155 + .../constructor/messageEntityStrike.html | 155 + .../constructor/messageEntityTextUrl.html | 163 + .../constructor/messageEntityUnderline.html | 155 + .../constructor/messageEntityUnknown.html | 155 + .../constructor/messageEntityUrl.html | 158 + .../constructor/messageFwdHeader.html | 198 + .../messageInteractionCounters.html | 160 + .../constructor/messageMediaContact.html | 170 + .../constructor/messageMediaDice.html | 158 + .../constructor/messageMediaDocument.html | 160 + .../constructor/messageMediaEmpty.html | 135 + .../constructor/messageMediaGame.html | 150 + .../constructor/messageMediaGeo.html | 150 + .../constructor/messageMediaGeoLive.html | 173 + .../constructor/messageMediaInvoice.html | 201 + .../constructor/messageMediaPhoto.html | 160 + .../constructor/messageMediaPoll.html | 155 + .../constructor/messageMediaUnsupported.html | 135 + .../constructor/messageMediaVenue.html | 175 + .../constructor/messageMediaWebPage.html | 150 + .../constructor/messagePeerReaction.html | 173 + .../constructor/messageRange.html | 155 + .../constructor/messageReactions.html | 179 + .../constructor/messageReplies.html | 192 + .../constructor/messageReplyHeader.html | 168 + .../constructor/messageService.html | 215 + .../constructor/messageUserReaction.html | 155 + .../constructor/messageUserVote.html | 160 + .../messageUserVoteInputOption.html | 158 + .../constructor/messageUserVoteMultiple.html | 160 + .../constructor/messageViews.html | 168 + .../messages.affectedFoundMessages | 168 + .../constructor/messages.affectedHistory | 160 + .../constructor/messages.affectedMessages | 158 + .../constructor/messages.allStickers | 158 + .../messages.allStickersNotModified | 135 + .../constructor/messages.archivedStickers | 155 + .../constructor/messages.availableReactions | 160 + .../messages.availableReactionsNotModified | 135 + .../constructor/messages.botCallbackAnswer | 180 + .../constructor/messages.botResults | 185 + .../constructor/messages.channelMessages | 188 + .../messages.chatAdminsWithInvites | 155 + .../constructor/messages.chatFull | 163 + .../constructor/messages.chatInviteImporters | 160 + .../constructor/messages.chats | 150 + .../constructor/messages.chatsSlice | 158 + .../messages.checkedHistoryImportPeer | 153 + .../constructor/messages.dhConfig | 165 + .../constructor/messages.dhConfigNotModified | 150 + .../constructor/messages.dialogs | 165 + .../constructor/messages.dialogsNotModified | 150 + .../constructor/messages.dialogsSlice | 170 + .../constructor/messages.discussionMessage | 188 + .../constructor/messages.exportedChatInvite | 155 + .../messages.exportedChatInviteReplaced | 160 + .../constructor/messages.exportedChatInvites | 160 + .../constructor/messages.favedStickers | 163 + .../messages.favedStickersNotModified | 135 + .../constructor/messages.featuredStickers | 168 + .../messages.featuredStickersNotModified | 150 + .../constructor/messages.foundStickerSets | 158 + .../messages.foundStickerSetsNotModified | 135 + .../constructor/messages.highScores | 155 + .../constructor/messages.historyImport | 153 + .../constructor/messages.historyImportParsed | 169 + .../constructor/messages.inactiveChats | 160 + .../constructor/messages.messageEditData | 155 + .../constructor/messages.messageReactionsList | 178 + .../constructor/messages.messageViews | 160 + .../constructor/messages.messages | 160 + .../constructor/messages.messagesNotModified | 150 + .../constructor/messages.messagesSlice | 188 + .../constructor/messages.peerDialogs | 173 + .../constructor/messages.peerSettings | 160 + .../constructor/messages.recentStickers | 168 + .../messages.recentStickersNotModified | 135 + .../constructor/messages.savedGifs | 158 + .../constructor/messages.savedGifsNotModified | 135 + .../constructor/messages.searchCounter | 168 + .../messages.searchResultsCalendar | 198 + .../messages.searchResultsPositions | 155 + .../constructor/messages.sentEncryptedFile | 155 + .../constructor/messages.sentEncryptedMessage | 150 + .../constructor/messages.sponsoredMessages | 160 + .../constructor/messages.stickerSet | 160 + .../messages.stickerSetInstallResultArchive | 150 + .../messages.stickerSetInstallResultSuccess | 135 + .../messages.stickerSetNotModified | 135 + .../constructor/messages.stickers | 158 + .../constructor/messages.stickersNotModified | 135 + .../constructor/messages.translateNoResult | 135 + .../constructor/messages.translateResultText | 150 + .../constructor/messages.votesList | 173 + .../constructor/nearestDc.html | 160 + .../constructor/notifyBroadcasts.html | 135 + .../constructor/notifyChats.html | 135 + .../constructor/notifyPeer.html | 150 + .../constructor/notifyUsers.html | 135 + .../constructor/null.html | 135 + .../constructor/page.html | 193 + .../constructor/pageBlockAnchor.html | 150 + .../constructor/pageBlockAudio.html | 158 + .../constructor/pageBlockAuthorDate.html | 155 + .../constructor/pageBlockBlockquote.html | 155 + .../constructor/pageBlockChannel.html | 150 + .../constructor/pageBlockCollage.html | 155 + .../constructor/pageBlockCover.html | 150 + .../constructor/pageBlockDetails.html | 165 + .../constructor/pageBlockDivider.html | 135 + .../constructor/pageBlockEmbed.html | 190 + .../constructor/pageBlockEmbedPost.html | 180 + .../constructor/pageBlockFooter.html | 150 + .../constructor/pageBlockHeader.html | 150 + .../constructor/pageBlockKicker.html | 150 + .../constructor/pageBlockList.html | 150 + .../constructor/pageBlockMap.html | 170 + .../constructor/pageBlockOrderedList.html | 150 + .../constructor/pageBlockParagraph.html | 150 + .../constructor/pageBlockPhoto.html | 170 + .../constructor/pageBlockPreformatted.html | 155 + .../constructor/pageBlockPullquote.html | 155 + .../constructor/pageBlockRelatedArticles.html | 155 + .../constructor/pageBlockSlideshow.html | 155 + .../constructor/pageBlockSubheader.html | 150 + .../constructor/pageBlockSubtitle.html | 150 + .../constructor/pageBlockTable.html | 170 + .../constructor/pageBlockTitle.html | 150 + .../constructor/pageBlockUnsupported.html | 135 + .../constructor/pageBlockVideo.html | 170 + .../constructor/pageCaption.html | 155 + .../constructor/pageListItemBlocks.html | 150 + .../constructor/pageListItemText.html | 150 + .../pageListOrderedItemBlocks.html | 155 + .../constructor/pageListOrderedItemText.html | 155 + .../constructor/pageRelatedArticle.html | 185 + .../constructor/pageTableCell.html | 190 + .../constructor/pageTableRow.html | 150 + ...BKDF2HMACSHA512iter100000SHA256ModPow.html | 168 + .../constructor/passwordKdfAlgoUnknown.html | 135 + .../constructor/paymentCharge.html | 155 + .../constructor/paymentRequestedInfo.html | 170 + .../paymentSavedCredentialsCard.html | 155 + .../payments.ValidatedRequestedInfo | 160 + .../constructor/payments.bankCardData | 155 + .../constructor/payments.paymentForm | 213 + .../constructor/payments.paymentReceipt | 222 + .../constructor/payments.paymentResult | 150 + .../payments.paymentVerificationNeeded | 150 + .../constructor/payments.savedInfo | 160 + .../constructor/peerBlocked.html | 155 + .../constructor/peerChannel.html | 150 + .../constructor/peerChat.html | 150 + .../constructor/peerLocated.html | 160 + .../constructor/peerNotifySettings.html | 185 + .../constructor/peerSelfLocated.html | 150 + .../constructor/peerSettings.html | 215 + .../constructor/peerUser.html | 150 + .../constructor/phone.exportedGroupCallInvite | 150 + .../constructor/phone.groupCall | 173 + .../constructor/phone.groupCallStreamChannels | 150 + .../constructor/phone.groupCallStreamRtmpUrl | 155 + .../constructor/phone.groupParticipants | 178 + .../constructor/phone.joinAsPeers | 160 + .../constructor/phone.phoneCall | 155 + .../constructor/phoneCall.html | 212 + .../constructor/phoneCallAccepted.html | 192 + .../phoneCallDiscardReasonBusy.html | 135 + .../phoneCallDiscardReasonDisconnect.html | 135 + .../phoneCallDiscardReasonHangup.html | 135 + .../phoneCallDiscardReasonMissed.html | 135 + .../constructor/phoneCallDiscarded.html | 185 + .../constructor/phoneCallEmpty.html | 150 + .../constructor/phoneCallProtocol.html | 182 + .../constructor/phoneCallRequested.html | 192 + .../constructor/phoneCallWaiting.html | 190 + .../constructor/phoneConnection.html | 170 + .../constructor/phoneConnectionWebrtc.html | 190 + .../constructor/photo.html | 195 + .../constructor/photoCachedSize.html | 170 + .../constructor/photoEmpty.html | 150 + .../constructor/photoPathSize.html | 158 + .../constructor/photoSize.html | 170 + .../constructor/photoSizeEmpty.html | 153 + .../constructor/photoSizeProgressive.html | 170 + .../constructor/photoStrippedSize.html | 162 + .../constructor/photos.photo | 155 + .../constructor/photos.photos | 155 + .../constructor/photos.photosSlice | 160 + .../constructor/poll.html | 198 + .../constructor/pollAnswer.html | 158 + .../constructor/pollAnswerVoters.html | 173 + .../constructor/pollResults.html | 187 + .../constructor/popularContact.html | 155 + .../constructor/postAddress.html | 175 + .../constructor/privacyKeyAddedByPhone.html | 135 + .../constructor/privacyKeyChatInvite.html | 135 + .../constructor/privacyKeyForwards.html | 135 + .../constructor/privacyKeyPhoneCall.html | 135 + .../constructor/privacyKeyPhoneNumber.html | 135 + .../constructor/privacyKeyPhoneP2P.html | 135 + .../constructor/privacyKeyProfilePhoto.html | 135 + .../privacyKeyStatusTimestamp.html | 135 + .../constructor/privacyValueAllowAll.html | 135 + .../privacyValueAllowChatParticipants.html | 150 + .../privacyValueAllowContacts.html | 135 + .../constructor/privacyValueAllowUsers.html | 150 + .../constructor/privacyValueDisallowAll.html | 135 + .../privacyValueDisallowChatParticipants.html | 150 + .../privacyValueDisallowContacts.html | 135 + .../privacyValueDisallowUsers.html | 150 + .../constructor/reactionCount.html | 165 + .../constructor/receivedNotifyMessage.html | 155 + .../constructor/recentMeUrlChat.html | 155 + .../constructor/recentMeUrlChatInvite.html | 155 + .../constructor/recentMeUrlStickerSet.html | 155 + .../constructor/recentMeUrlUnknown.html | 150 + .../constructor/recentMeUrlUser.html | 155 + .../constructor/replyInlineMarkup.html | 150 + .../constructor/replyKeyboardForceReply.html | 165 + .../constructor/replyKeyboardHide.html | 155 + .../constructor/replyKeyboardMarkup.html | 175 + .../constructor/restrictionReason.html | 161 + .../constructor/savedPhoneContact.html | 165 + .../constructor/searchResultPosition.html | 160 + .../searchResultsCalendarPeriod.html | 169 + .../secureCredentialsEncrypted.html | 162 + .../constructor/secureData.html | 163 + .../constructor/secureFile.html | 183 + .../constructor/secureFileEmpty.html | 135 + ...wordKdfAlgoPBKDF2HMACSHA512iter100000.html | 150 + .../securePasswordKdfAlgoSHA512.html | 150 + .../securePasswordKdfAlgoUnknown.html | 135 + .../constructor/securePlainEmail.html | 153 + .../constructor/securePlainPhone.html | 153 + .../constructor/secureRequiredType.html | 170 + .../constructor/secureRequiredTypeOneOf.html | 150 + .../constructor/secureSecretSettings.html | 160 + .../constructor/secureValue.html | 197 + .../constructor/secureValueError.html | 160 + .../constructor/secureValueErrorData.html | 178 + .../constructor/secureValueErrorFile.html | 171 + .../constructor/secureValueErrorFiles.html | 171 + .../secureValueErrorFrontSide.html | 169 + .../secureValueErrorReverseSide.html | 165 + .../constructor/secureValueErrorSelfie.html | 169 + .../secureValueErrorTranslationFile.html | 181 + .../secureValueErrorTranslationFiles.html | 181 + .../constructor/secureValueHash.html | 155 + .../constructor/secureValueTypeAddress.html | 135 + .../secureValueTypeBankStatement.html | 135 + .../secureValueTypeDriverLicense.html | 135 + .../constructor/secureValueTypeEmail.html | 135 + .../secureValueTypeIdentityCard.html | 135 + .../secureValueTypeInternalPassport.html | 137 + .../constructor/secureValueTypePassport.html | 135 + .../secureValueTypePassportRegistration.html | 137 + .../secureValueTypePersonalDetails.html | 135 + .../constructor/secureValueTypePhone.html | 135 + .../secureValueTypeRentalAgreement.html | 135 + .../secureValueTypeTemporaryRegistration.html | 135 + .../secureValueTypeUtilityBill.html | 135 + .../constructor/sendMessageCancelAction.html | 135 + .../sendMessageChooseContactAction.html | 135 + .../sendMessageChooseStickerAction.html | 135 + .../sendMessageEmojiInteraction.html | 163 + .../sendMessageEmojiInteractionSeen.html | 153 + .../sendMessageGamePlayAction.html | 135 + .../sendMessageGeoLocationAction.html | 135 + .../sendMessageHistoryImportAction.html | 150 + .../sendMessageRecordAudioAction.html | 135 + .../sendMessageRecordRoundAction.html | 135 + .../sendMessageRecordVideoAction.html | 135 + .../constructor/sendMessageTypingAction.html | 135 + .../sendMessageUploadAudioAction.html | 150 + .../sendMessageUploadDocumentAction.html | 150 + .../sendMessageUploadPhotoAction.html | 150 + .../sendMessageUploadRoundAction.html | 150 + .../sendMessageUploadVideoAction.html | 150 + .../constructor/shippingOption.html | 160 + .../speakingInGroupCallAction.html | 135 + .../constructor/sponsoredMessage.html | 193 + .../constructor/stats.broadcastStats | 223 + .../constructor/stats.megagroupStats | 233 + .../constructor/stats.messageStats | 150 + .../constructor/statsAbsValueAndPrev.html | 155 + .../constructor/statsDateRangeDays.html | 158 + .../constructor/statsGraph.html | 163 + .../constructor/statsGraphAsync.html | 155 + .../constructor/statsGraphError.html | 153 + .../constructor/statsGroupTopAdmin.html | 168 + .../constructor/statsGroupTopInviter.html | 158 + .../constructor/statsGroupTopPoster.html | 163 + .../constructor/statsPercentValue.html | 159 + .../constructor/statsURL.html | 150 + .../constructor/stickerPack.html | 159 + .../constructor/stickerSet.html | 225 + .../constructor/stickerSetCovered.html | 155 + .../constructor/stickerSetMultiCovered.html | 155 + .../constructor/stickers.suggestedShortName | 150 + .../constructor/storage.fileGif | 135 + .../constructor/storage.fileJpeg | 135 + .../constructor/storage.fileMov | 135 + .../constructor/storage.fileMp3 | 135 + .../constructor/storage.fileMp4 | 135 + .../constructor/storage.filePartial | 135 + .../constructor/storage.filePdf | 135 + .../constructor/storage.filePng | 135 + .../constructor/storage.fileUnknown | 135 + .../constructor/storage.fileWebp | 135 + .../constructor/textAnchor.html | 155 + .../constructor/textBold.html | 150 + .../constructor/textConcat.html | 150 + .../constructor/textEmail.html | 155 + .../constructor/textEmpty.html | 135 + .../constructor/textFixed.html | 150 + .../constructor/textImage.html | 160 + .../constructor/textItalic.html | 150 + .../constructor/textMarked.html | 150 + .../constructor/textPhone.html | 155 + .../constructor/textPlain.html | 150 + .../constructor/textStrike.html | 150 + .../constructor/textSubscript.html | 150 + .../constructor/textSuperscript.html | 150 + .../constructor/textUnderline.html | 150 + .../constructor/textUrl.html | 160 + .../constructor/theme.html | 205 + .../constructor/themeSettings.html | 180 + .../constructor/topPeer.html | 158 + .../topPeerCategoryBotsInline.html | 135 + .../constructor/topPeerCategoryBotsPM.html | 135 + .../constructor/topPeerCategoryChannels.html | 135 + .../topPeerCategoryCorrespondents.html | 135 + .../topPeerCategoryForwardChats.html | 135 + .../topPeerCategoryForwardUsers.html | 135 + .../constructor/topPeerCategoryGroups.html | 135 + .../constructor/topPeerCategoryPeers.html | 160 + .../topPeerCategoryPhoneCalls.html | 135 + .../constructor/true.html | 137 + .../constructor/updateBotCallbackQuery.html | 185 + .../updateBotChatInviteRequester.html | 182 + .../constructor/updateBotCommands.html | 162 + .../constructor/updateBotInlineQuery.html | 180 + .../constructor/updateBotInlineSend.html | 175 + .../updateBotPrecheckoutQuery.html | 187 + .../constructor/updateBotShippingQuery.html | 165 + .../constructor/updateBotStopped.html | 168 + .../constructor/updateBotWebhookJSON.html | 150 + .../updateBotWebhookJSONQuery.html | 160 + .../constructor/updateChannel.html | 150 + .../updateChannelAvailableMessages.html | 158 + .../updateChannelMessageForwards.html | 160 + .../updateChannelMessageViews.html | 160 + .../constructor/updateChannelParticipant.html | 195 + .../updateChannelReadMessagesContents.html | 158 + .../constructor/updateChannelTooLong.html | 164 + .../constructor/updateChannelUserTyping.html | 175 + .../constructor/updateChannelWebPage.html | 170 + .../constructor/updateChat.html | 150 + .../updateChatDefaultBannedRights.html | 163 + .../constructor/updateChatParticipant.html | 195 + .../constructor/updateChatParticipantAdd.html | 170 + .../updateChatParticipantAdmin.html | 168 + .../updateChatParticipantDelete.html | 160 + .../constructor/updateChatParticipants.html | 150 + .../constructor/updateChatUserTyping.html | 163 + .../constructor/updateConfig.html | 138 + .../constructor/updateContactsReset.html | 135 + .../constructor/updateDcOptions.html | 150 + .../updateDeleteChannelMessages.html | 170 + .../constructor/updateDeleteMessages.html | 163 + .../updateDeleteScheduledMessages.html | 158 + .../constructor/updateDialogFilter.html | 163 + .../constructor/updateDialogFilterOrder.html | 153 + .../constructor/updateDialogFilters.html | 138 + .../constructor/updateDialogPinned.html | 168 + .../constructor/updateDialogUnreadMark.html | 160 + .../constructor/updateDraftMessage.html | 158 + .../constructor/updateEditChannelMessage.html | 165 + .../constructor/updateEditMessage.html | 163 + .../updateEncryptedChatTyping.html | 150 + .../updateEncryptedMessagesRead.html | 160 + .../constructor/updateEncryption.html | 155 + .../constructor/updateFavedStickers.html | 138 + .../constructor/updateFolderPeers.html | 165 + .../constructor/updateGeoLiveViewed.html | 155 + .../constructor/updateGroupCall.html | 158 + .../updateGroupCallConnection.html | 160 + .../updateGroupCallParticipants.html | 160 + .../updateInlineBotCallbackQuery.html | 180 + .../constructor/updateLangPack.html | 150 + .../constructor/updateLangPackTooLong.html | 153 + .../constructor/updateLoginToken.html | 135 + .../constructor/updateMessageID.html | 158 + .../constructor/updateMessagePoll.html | 165 + .../constructor/updateMessagePollVote.html | 168 + .../constructor/updateMessageReactions.html | 163 + .../constructor/updateNewChannelMessage.html | 165 + .../updateNewEncryptedMessage.html | 158 + .../constructor/updateNewMessage.html | 160 + .../updateNewScheduledMessage.html | 153 + .../constructor/updateNewStickerSet.html | 150 + .../constructor/updateNotifySettings.html | 155 + .../constructor/updatePeerBlocked.html | 155 + .../constructor/updatePeerHistoryTTL.html | 160 + .../constructor/updatePeerLocated.html | 150 + .../constructor/updatePeerSettings.html | 155 + .../updatePendingJoinRequests.html | 163 + .../constructor/updatePhoneCall.html | 150 + .../updatePhoneCallSignalingData.html | 155 + .../updatePinnedChannelMessages.html | 180 + .../constructor/updatePinnedDialogs.html | 163 + .../constructor/updatePinnedMessages.html | 178 + .../constructor/updatePrivacy.html | 155 + .../constructor/updatePtsChanged.html | 138 + .../updateReadChannelDiscussionInbox.html | 180 + .../updateReadChannelDiscussionOutbox.html | 165 + .../constructor/updateReadChannelInbox.html | 182 + .../constructor/updateReadChannelOutbox.html | 158 + .../updateReadFeaturedStickers.html | 135 + .../constructor/updateReadHistoryInbox.html | 185 + .../constructor/updateReadHistoryOutbox.html | 168 + .../updateReadMessagesContents.html | 163 + .../constructor/updateRecentStickers.html | 135 + .../constructor/updateSavedGifs.html | 135 + .../updateServiceNotification.html | 186 + .../constructor/updateShort.html | 155 + .../constructor/updateShortChatMessage.html | 235 + .../constructor/updateShortMessage.html | 232 + .../constructor/updateShortSentMessage.html | 195 + .../constructor/updateStickerSets.html | 135 + .../constructor/updateStickerSetsOrder.html | 160 + .../constructor/updateTheme.html | 150 + .../constructor/updateUserName.html | 170 + .../constructor/updateUserPhone.html | 155 + .../constructor/updateUserPhoto.html | 168 + .../constructor/updateUserStatus.html | 155 + .../constructor/updateUserTyping.html | 158 + .../constructor/updateWebPage.html | 163 + .../constructor/updates.channelDifference | 188 + .../updates.channelDifferenceEmpty | 168 + .../updates.channelDifferenceTooLong | 202 + .../constructor/updates.difference | 175 + .../constructor/updates.differenceEmpty | 155 + .../constructor/updates.differenceSlice | 178 + .../constructor/updates.differenceTooLong | 153 + .../constructor/updates.html | 170 + .../constructor/updates.state | 173 + .../constructor/updatesCombined.html | 175 + .../constructor/updatesTooLong.html | 138 + .../constructor/upload.cdnFile | 152 + .../constructor/upload.cdnFileReuploadNeeded | 152 + .../constructor/upload.file | 160 + .../constructor/upload.fileCdnRedirect | 172 + .../constructor/upload.webFile | 173 + .../constructor/urlAuthResultAccepted.html | 153 + .../constructor/urlAuthResultDefault.html | 138 + .../constructor/urlAuthResultRequest.html | 168 + .../constructor/user.html | 290 + .../constructor/userEmpty.html | 150 + .../constructor/userFull.html | 247 + .../constructor/userProfilePhoto.html | 175 + .../constructor/userProfilePhotoEmpty.html | 135 + .../constructor/userStatusEmpty.html | 135 + .../constructor/userStatusLastMonth.html | 135 + .../constructor/userStatusLastWeek.html | 135 + .../constructor/userStatusOffline.html | 150 + .../constructor/userStatusOnline.html | 150 + .../constructor/userStatusRecently.html | 135 + .../constructor/users.userFull | 160 + .../constructor/vector.html | 137 + .../constructor/videoSize.html | 178 + .../constructor/wallPaper.html | 195 + .../constructor/wallPaperNoFile.html | 174 + .../constructor/wallPaperSettings.html | 190 + .../constructor/webAuthorization.html | 192 + .../constructor/webDocument.html | 170 + .../constructor/webDocumentNoProxy.html | 168 + .../constructor/webPage.html | 243 + .../constructor/webPageAttributeTheme.html | 160 + .../constructor/webPageEmpty.html | 150 + .../constructor/webPageNotModified.html | 155 + .../constructor/webPagePending.html | 155 + .../css/bootstrap-extra.css | 3274 +++++++ .../css/bootstrap.min.css | 10 + .../css/core-widgets.css | 105 + .../css/telegram-extra.css | 246 + .../blogfork.telegram.org/css/telegram.css | 5087 +++++++++++ .../a27921641b664931c6.html | 1 + .../import-stickers.html | 162 + .../blogfork.telegram.org/js/bootstrap.min.js | 11 + .../blogfork.telegram.org/js/core-widgets.js | 279 + .../blogfork.telegram.org/js/jquery-ui.min.js | 9 + .../blogfork.telegram.org/js/jquery.min.js | 4 + data/web/blogfork.telegram.org/js/main.js | 713 ++ .../js/telegram-passport2.js | 413 + .../method/account.acceptAuthorization | 173 + .../method/account.cancelPasswordEmail | 141 + .../account.changeAuthorizationSettings | 190 + .../method/account.changePhone | 198 + .../method/account.checkUsername | 170 + .../method/account.confirmPasswordEmail | 178 + .../method/account.confirmPhone | 183 + .../method/account.createTheme | 189 + .../method/account.declinePasswordReset | 158 + .../method/account.deleteAccount | 173 + .../method/account.deleteSecureValue | 156 + .../method/account.finishTakeoutSession | 175 + .../method/account.getAccountTTL | 137 + .../method/account.getAllSecureValues | 139 + .../method/account.getAuthorizationForm | 179 + .../method/account.getAuthorizations | 137 + .../method/account.getAutoDownloadSettings | 137 + .../method/account.getChatThemes | 156 + .../account.getContactSignUpNotification | 138 + .../method/account.getContentSettings | 137 + .../method/account.getGlobalPrivacySettings | 137 + .../method/account.getMultiWallPapers | 151 + .../method/account.getNotifyExceptions | 168 + .../method/account.getNotifySettings | 169 + .../method/account.getPassword | 137 + .../method/account.getPasswordSettings | 173 + .../method/account.getPrivacy | 169 + .../method/account.getSecureValue | 154 + .../method/account.getTheme | 184 + .../method/account.getThemes | 161 + .../method/account.getTmpPassword | 179 + .../method/account.getWallPaper | 170 + .../method/account.getWallPapers | 156 + .../method/account.getWebAuthorizations | 139 + .../method/account.initTakeoutSession | 207 + .../method/account.installTheme | 173 + .../method/account.installWallPaper | 175 + .../method/account.registerDevice | 220 + .../method/account.reportPeer | 185 + .../method/account.reportProfilePhoto | 168 + .../method/account.resendPasswordEmail | 141 + .../method/account.resetAuthorization | 178 + .../method/account.resetNotifySettings | 138 + .../method/account.resetPassword | 142 + .../method/account.resetWallPapers | 138 + .../method/account.resetWebAuthorization | 174 + .../method/account.resetWebAuthorizations | 140 + .../method/account.saveAutoDownloadSettings | 168 + .../method/account.saveSecureValue | 179 + .../method/account.saveTheme | 158 + .../method/account.saveWallPaper | 180 + .../method/account.sendChangePhoneCode | 189 + .../method/account.sendConfirmPhoneCode | 177 + .../method/account.sendVerifyEmailCode | 171 + .../method/account.sendVerifyPhoneCode | 176 + .../method/account.setAccountTTL | 170 + .../method/account.setAuthorizationTTL | 170 + .../account.setContactSignUpNotification | 153 + .../method/account.setContentSettings | 175 + .../method/account.setGlobalPrivacySettings | 172 + .../method/account.setPrivacy | 184 + .../method/account.unregisterDevice | 183 + .../method/account.updateDeviceLocked | 156 + .../method/account.updateNotifySettings | 195 + .../method/account.updatePasswordSettings | 215 + .../method/account.updateProfile | 190 + .../method/account.updateStatus | 158 + .../method/account.updateTheme | 199 + .../method/account.updateUsername | 180 + .../method/account.uploadTheme | 193 + .../method/account.uploadWallPaper | 185 + .../method/account.verifyEmail | 182 + .../method/account.verifyPhone | 194 + .../method/auth.acceptLoginToken | 179 + .../method/auth.bindTempAuthKey | 255 + .../method/auth.cancelCode | 183 + .../method/auth.checkPassword | 183 + .../method/auth.checkPhone | 179 + .../method/auth.checkRecoveryPassword | 177 + .../method/auth.dropTempAuthKeys | 154 + .../method/auth.exportAuthorization | 170 + .../method/auth.exportLoginToken | 186 + .../method/auth.importAuthorization | 181 + .../method/auth.importBotAuthorization | 203 + .../method/auth.importLoginToken | 190 + .../blogfork.telegram.org/method/auth.logOut | 142 + .../method/auth.recoverPassword | 190 + .../method/auth.requestPasswordRecovery | 162 + .../method/auth.resendCode | 194 + .../method/auth.resetAuthorizations | 159 + .../method/auth.sendCode | 229 + .../method/auth.sendInvites | 160 + .../blogfork.telegram.org/method/auth.signIn | 227 + .../blogfork.telegram.org/method/auth.signUp | 239 + .../method/bots.answerWebhookJSONQuery | 181 + .../method/bots.getBotCommands | 157 + .../method/bots.resetBotCommands | 159 + .../method/bots.sendCustomRequest | 180 + .../method/bots.setBotCommands | 191 + .../method/channels.checkUsername | 193 + .../method/channels.convertToGigagroup | 185 + .../method/channels.createChannel | 235 + .../method/channels.deleteChannel | 203 + .../method/channels.deleteHistory | 183 + .../method/channels.deleteMessages | 193 + .../method/channels.deleteParticipantHistory | 185 + .../method/channels.editAdmin | 304 + .../method/channels.editBanned | 234 + .../method/channels.editCreator | 228 + .../method/channels.editLocation | 193 + .../method/channels.editPhoto | 226 + .../method/channels.editTitle | 209 + .../method/channels.exportMessageLink | 207 + .../method/channels.getAdminLog | 229 + .../method/channels.getAdminedPublicChannels | 194 + .../method/channels.getChannels | 189 + .../method/channels.getFullChannel | 193 + .../method/channels.getGroupsForDiscussion | 147 + .../method/channels.getInactiveChannels | 137 + .../method/channels.getLeftChannels | 175 + .../method/channels.getMessages | 201 + .../method/channels.getParticipant | 208 + .../method/channels.getParticipants | 206 + .../method/channels.getSendAs | 170 + .../method/channels.getSponsoredMessages | 170 + .../method/channels.inviteToChannel | 265 + .../method/channels.joinChannel | 235 + .../method/channels.leaveChannel | 209 + .../method/channels.readHistory | 188 + .../method/channels.readMessageContents | 188 + .../method/channels.reportSpam | 195 + .../method/channels.setDiscussionGroup | 203 + .../method/channels.setStickers | 186 + .../method/channels.togglePreHistoryHidden | 205 + .../method/channels.toggleSignatures | 190 + .../method/channels.toggleSlowMode | 193 + .../method/channels.updateUsername | 215 + .../method/channels.viewSponsoredMessage | 177 + .../method/contacts.acceptContact | 193 + .../method/contacts.addContact | 220 + .../method/contacts.block | 185 + .../method/contacts.blockFromReplies | 181 + .../method/contacts.deleteByPhones | 153 + .../method/contacts.deleteContacts | 158 + .../method/contacts.getBlocked | 158 + .../method/contacts.getContactIDs | 154 + .../method/contacts.getContacts | 158 + .../method/contacts.getLocated | 200 + .../method/contacts.getSaved | 153 + .../method/contacts.getStatuses | 136 + .../method/contacts.getTopPeers | 229 + .../method/contacts.importContacts | 157 + .../method/contacts.resetSaved | 138 + .../method/contacts.resetTopPeerRating | 178 + .../method/contacts.resolvePhone | 152 + .../method/contacts.resolveUsername | 180 + .../method/contacts.search | 181 + .../method/contacts.toggleTopPeers | 156 + .../method/contacts.unblock | 185 + .../method/folders.deleteFolder | 183 + .../method/folders.editPeerFolders | 183 + .../method/help.acceptTermsOfService | 153 + .../method/help.dismissSuggestion | 163 + .../method/help.editUserInfo | 183 + .../method/help.getAppChangelog | 165 + .../method/help.getAppConfig | 145 + .../method/help.getAppUpdate | 153 + .../method/help.getCdnConfig | 140 + .../method/help.getConfig | 185 + .../method/help.getCountriesList | 161 + .../method/help.getDeepLinkInfo | 153 + .../method/help.getInviteText | 137 + .../method/help.getNearestDc | 137 + .../method/help.getPassportConfig | 157 + .../method/help.getPromoData | 138 + .../method/help.getRecentMeUrls | 152 + .../method/help.getSupport | 137 + .../method/help.getSupportName | 154 + .../method/help.getTermsOfServiceUpdate | 138 + .../method/help.getUserInfo | 170 + .../method/help.hidePromoData | 153 + .../method/help.saveAppLog | 153 + .../method/help.setBotUpdatesStatus | 159 + .../method/initConnection.html | 219 + .../method/invokeAfterMsg.html | 157 + .../method/invokeAfterMsgs.html | 157 + .../method/invokeWithLayer.html | 197 + .../method/invokeWithMessagesRange.html | 157 + .../method/invokeWithTakeout.html | 157 + .../method/invokeWithoutUpdates.html | 157 + .../method/langpack.getDifference | 179 + .../method/langpack.getLangPack | 174 + .../method/langpack.getLanguage | 157 + .../method/langpack.getLanguages | 168 + .../method/langpack.getStrings | 178 + .../method/messages.acceptEncryption | 193 + .../method/messages.acceptUrlAuth | 182 + .../method/messages.addChatUser | 240 + .../method/messages.checkChatInvite | 186 + .../method/messages.checkHistoryImport | 155 + .../method/messages.checkHistoryImportPeer | 180 + .../method/messages.clearAllDrafts | 141 + .../method/messages.clearRecentStickers | 158 + .../method/messages.createChat | 205 + .../method/messages.deleteChat | 183 + .../method/messages.deleteChatUser | 211 + .../method/messages.deleteExportedChatInvite | 175 + .../method/messages.deleteHistory | 224 + .../method/messages.deleteMessages | 185 + .../method/messages.deletePhoneCallHistory | 157 + .../messages.deleteRevokedExportedChatInvites | 158 + .../method/messages.deleteScheduledMessages | 163 + .../method/messages.discardEncryption | 190 + .../method/messages.editChatAbout | 219 + .../method/messages.editChatAdmin | 198 + .../messages.editChatDefaultBannedRights | 209 + .../method/messages.editChatPhoto | 206 + .../method/messages.editChatTitle | 196 + .../method/messages.editExportedChatInvite | 211 + .../method/messages.editInlineBotMessage | 209 + .../method/messages.editMessage | 341 + .../method/messages.exportChatInvite | 230 + .../method/messages.faveSticker | 175 + .../method/messages.forwardMessages | 391 + .../method/messages.getAdminsWithInvites | 179 + .../method/messages.getAllChats | 153 + .../method/messages.getAllDrafts | 146 + .../method/messages.getAllStickers | 156 + .../method/messages.getArchivedStickers | 170 + .../method/messages.getAttachedStickers | 151 + .../method/messages.getAvailableReactions | 158 + .../method/messages.getBotCallbackAnswer | 229 + .../method/messages.getChatInviteImporters | 229 + .../method/messages.getChats | 176 + .../method/messages.getCommonChats | 188 + .../method/messages.getDhConfig | 178 + .../method/messages.getDialogFilters | 139 + .../method/messages.getDialogUnreadMarks | 136 + .../method/messages.getDialogs | 216 + .../method/messages.getDiscussionMessage | 191 + .../method/messages.getDocumentByHash | 181 + .../method/messages.getEmojiKeywords | 152 + .../messages.getEmojiKeywordsDifference | 157 + .../method/messages.getEmojiKeywordsLanguages | 151 + .../method/messages.getEmojiURL | 152 + .../method/messages.getExportedChatInvite | 185 + .../method/messages.getExportedChatInvites | 212 + .../method/messages.getFavedStickers | 156 + .../method/messages.getFeaturedStickers | 156 + .../method/messages.getFullChat | 178 + .../method/messages.getGameHighScores | 190 + .../method/messages.getHistory | 230 + .../method/messages.getInlineBotResults | 229 + .../method/messages.getInlineGameHighScores | 180 + .../method/messages.getMaskStickers | 156 + .../method/messages.getMessageEditData | 189 + .../method/messages.getMessageReactionsList | 184 + .../messages.getMessageReadParticipants | 176 + .../method/messages.getMessages | 156 + .../method/messages.getMessagesReactions | 167 + .../method/messages.getMessagesViews | 202 + .../method/messages.getOldFeaturedStickers | 166 + .../method/messages.getOnlines | 179 + .../method/messages.getPeerDialogs | 184 + .../method/messages.getPeerSettings | 174 + .../method/messages.getPinnedDialogs | 172 + .../method/messages.getPollResults | 185 + .../method/messages.getPollVotes | 207 + .../method/messages.getRecentLocations | 168 + .../method/messages.getRecentStickers | 166 + .../method/messages.getReplies | 220 + .../method/messages.getSavedGifs | 156 + .../method/messages.getScheduledHistory | 185 + .../method/messages.getScheduledMessages | 182 + .../method/messages.getSearchCounters | 176 + .../method/messages.getSearchResultsCalendar | 193 + .../method/messages.getSearchResultsPositions | 175 + .../method/messages.getSplitRanges | 136 + .../method/messages.getStickerSet | 179 + .../method/messages.getStickers | 178 + .../method/messages.getSuggestedDialogFilters | 139 + .../method/messages.getUnreadMentions | 215 + .../method/messages.getUnreadReactions | 184 + .../method/messages.getWebPage | 180 + .../method/messages.getWebPagePreview | 194 + .../method/messages.hideAllChatJoinRequests | 176 + .../method/messages.hideChatJoinRequest | 194 + .../method/messages.hidePeerSettingsBar | 156 + .../method/messages.importChatInvite | 235 + .../method/messages.initHistoryImport | 194 + .../method/messages.installStickerSet | 175 + .../method/messages.markDialogUnread | 180 + .../method/messages.migrateChat | 193 + .../method/messages.readDiscussion | 188 + .../method/messages.readEncryptedHistory | 175 + .../method/messages.readFeaturedStickers | 153 + .../method/messages.readHistory | 189 + .../method/messages.readMentions | 184 + .../method/messages.readMessageContents | 152 + .../method/messages.readReactions | 156 + .../method/messages.receivedMessages | 151 + .../method/messages.receivedQueue | 173 + .../method/messages.reorderPinnedDialogs | 188 + .../method/messages.reorderStickerSets | 163 + .../method/messages.report | 190 + .../method/messages.reportEncryptedSpam | 170 + .../method/messages.reportSpam | 183 + .../method/messages.requestEncryption | 188 + .../method/messages.requestUrlAuth | 177 + .../method/messages.saveDefaultSendAs | 175 + .../method/messages.saveDraft | 205 + .../method/messages.saveGif | 175 + .../method/messages.saveRecentSticker | 185 + .../method/messages.search | 294 + .../method/messages.searchGlobal | 229 + .../method/messages.searchSentMedia | 166 + .../method/messages.searchStickerSets | 171 + .../method/messages.sendEncrypted | 218 + .../method/messages.sendEncryptedFile | 218 + .../method/messages.sendEncryptedService | 208 + .../method/messages.sendInlineBotResult | 357 + .../method/messages.sendMedia | 543 ++ .../method/messages.sendMessage | 416 + .../method/messages.sendMultiMedia | 291 + .../method/messages.sendReaction | 220 + .../method/messages.sendScheduledMessages | 185 + .../messages.sendScreenshotNotification | 190 + .../method/messages.sendVote | 223 + .../method/messages.setBotCallbackAnswer | 206 + .../method/messages.setBotPrecheckoutResults | 191 + .../method/messages.setBotShippingResults | 189 + .../method/messages.setChatAvailableReactions | 166 + .../method/messages.setChatTheme | 193 + .../method/messages.setDefaultReaction | 156 + .../method/messages.setEncryptedTyping | 180 + .../method/messages.setGameScore | 226 + .../method/messages.setHistoryTTL | 185 + .../method/messages.setInlineBotResults | 366 + .../method/messages.setInlineGameScore | 201 + .../method/messages.setTyping | 248 + .../method/messages.startBot | 232 + .../method/messages.startHistoryImport | 183 + .../method/messages.toggleDialogPin | 190 + .../method/messages.toggleNoForwards | 163 + .../method/messages.toggleStickerSets | 173 + .../method/messages.translateText | 179 + .../method/messages.uninstallStickerSet | 170 + .../method/messages.unpinAllMessages | 156 + .../method/messages.updateDialogFilter | 193 + .../method/messages.updateDialogFiltersOrder | 156 + .../method/messages.updatePinnedMessage | 241 + .../method/messages.uploadEncryptedFile | 158 + .../method/messages.uploadImportedMedia | 184 + .../method/messages.uploadMedia | 267 + .../method/payments.clearSavedInfo | 163 + .../method/payments.getBankCardData | 169 + .../method/payments.getPaymentForm | 184 + .../method/payments.getPaymentReceipt | 174 + .../method/payments.getSavedInfo | 137 + .../method/payments.sendPaymentForm | 209 + .../method/payments.validateRequestedInfo | 189 + .../method/phone.acceptCall | 201 + .../method/phone.checkGroupCall | 157 + .../method/phone.confirmCall | 191 + .../method/phone.createGroupCall | 213 + .../method/phone.discardCall | 205 + .../method/phone.discardGroupCall | 158 + .../method/phone.editGroupCallParticipant | 228 + .../method/phone.editGroupCallTitle | 163 + .../method/phone.exportGroupCallInvite | 162 + .../method/phone.getCallConfig | 137 + .../method/phone.getGroupCall | 177 + .../method/phone.getGroupCallJoinAs | 152 + .../method/phone.getGroupCallStreamChannels | 179 + .../method/phone.getGroupCallStreamRtmpUrl | 160 + .../method/phone.getGroupParticipants | 177 + .../method/phone.inviteToGroupCall | 190 + .../method/phone.joinGroupCall | 205 + .../method/phone.joinGroupCallPresentation | 183 + .../method/phone.leaveGroupCall | 163 + .../method/phone.leaveGroupCallPresentation | 158 + .../method/phone.receivedCall | 175 + .../method/phone.requestCall | 226 + .../method/phone.saveCallDebug | 180 + .../method/phone.saveDefaultGroupCallJoinAs | 158 + .../method/phone.sendSignalingData | 158 + .../method/phone.setCallRating | 195 + .../method/phone.startScheduledGroupCall | 158 + .../method/phone.toggleGroupCallRecord | 183 + .../method/phone.toggleGroupCallSettings | 190 + .../phone.toggleGroupCallStartSubscription | 163 + .../method/photos.deletePhotos | 151 + .../method/photos.getUserPhotos | 196 + .../method/photos.updateProfilePhoto | 199 + .../method/photos.uploadProfilePhoto | 224 + .../method/stats.getBroadcastStats | 197 + .../method/stats.getMegagroupStats | 194 + .../method/stats.getMessagePublicForwards | 215 + .../method/stats.getMessageStats | 197 + .../method/stats.loadAsyncGraph | 196 + .../method/stickers.addStickerToSet | 201 + .../method/stickers.changeStickerPosition | 181 + .../method/stickers.checkShortName | 175 + .../method/stickers.createStickerSet | 301 + .../method/stickers.removeStickerFromSet | 176 + .../method/stickers.setStickerSetThumb | 186 + .../method/stickers.suggestShortName | 169 + .../method/updates.getChannelDifference | 255 + .../method/updates.getDifference | 228 + .../method/updates.getState | 138 + .../method/upload.getCdnFile | 165 + .../method/upload.getCdnFileHashes | 181 + .../method/upload.getFile | 250 + .../method/upload.getFileHashes | 174 + .../method/upload.getWebFile | 179 + .../method/upload.reuploadCdnFile | 176 + .../method/upload.saveBigFilePart | 211 + .../method/upload.saveFilePart | 186 + .../method/users.getFullUser | 180 + .../method/users.getUsers | 184 + .../method/users.setSecureValueErrors | 179 + data/web/blogfork.telegram.org/methods.html | 2376 ++++++ data/web/blogfork.telegram.org/mtproto.html | 263 + .../mtproto/TL-abstract-types.html | 205 + .../mtproto/TL-combinators.html | 254 + .../mtproto/TL-dependent.html | 239 + .../mtproto/TL-formal.html | 322 + .../mtproto/TL-optargs.html | 154 + .../mtproto/TL-patterns.html | 132 + .../mtproto/TL-polymorph.html | 173 + .../blogfork.telegram.org/mtproto/TL-tl.html | 311 + .../mtproto/TL-types.html | 127 + .../web/blogfork.telegram.org/mtproto/TL.html | 213 + .../mtproto/auth_key.html | 265 + .../mtproto/description.html | 241 + .../mtproto/description_v1.html | 208 + .../mtproto/mtproto-transports.html | 297 + .../mtproto/samples-auth_key.html | 751 ++ .../mtproto/security_guidelines.html | 180 + .../mtproto/security_guidelines_v1.html | 178 + .../mtproto/serialize.html | 243 + .../mtproto/service_messages.html | 198 + .../service_messages_about_messages.html | 188 + .../web/blogfork.telegram.org/mtproto_v1.html | 232 + data/web/blogfork.telegram.org/passport.html | 693 ++ .../passport/encryption.html | 609 ++ .../passport/example.html | 588 ++ .../passport/sdk-android.html | 183 + .../passport/sdk-ios-mac.html | 249 + .../passport/sdk-javascript.html | 261 + data/web/blogfork.telegram.org/schema.html | 1874 ++++ .../schema/end-to-end-json.html | 1 + .../schema/end-to-end.html | 228 + .../blogfork.telegram.org/schema/json.html | 1 + .../schema/mtproto-json.html | 1 + .../blogfork.telegram.org/schema/mtproto.html | 207 + data/web/blogfork.telegram.org/stickers.html | 252 + data/web/blogfork.telegram.org/themes.html | 146 + .../type/AccountDaysTTL.html | 165 + .../type/Authorization.html | 165 + .../type/AutoDownloadSettings.html | 146 + .../type/AvailableReaction.html | 146 + .../type/BankCardOpenUrl.html | 146 + .../blogfork.telegram.org/type/BaseTheme.html | 166 + data/web/blogfork.telegram.org/type/Bool.html | 736 ++ .../type/BotCommand.html | 146 + .../type/BotCommandScope.html | 179 + .../blogfork.telegram.org/type/BotInfo.html | 146 + .../type/BotInlineMessage.html | 171 + .../type/BotInlineResult.html | 151 + .../blogfork.telegram.org/type/CdnConfig.html | 167 + .../type/CdnPublicKey.html | 148 + .../type/ChannelAdminLogEvent.html | 146 + .../type/ChannelAdminLogEventAction.html | 321 + .../type/ChannelAdminLogEventsFilter.html | 146 + .../type/ChannelLocation.html | 151 + .../type/ChannelMessagesFilter.html | 151 + .../type/ChannelParticipant.html | 171 + .../type/ChannelParticipantsFilter.html | 181 + data/web/blogfork.telegram.org/type/Chat.html | 166 + .../type/ChatAdminRights.html | 149 + .../type/ChatAdminWithInvites.html | 146 + .../type/ChatBannedRights.html | 149 + .../blogfork.telegram.org/type/ChatFull.html | 154 + .../type/ChatInvite.html | 175 + .../type/ChatInviteImporter.html | 146 + .../type/ChatOnlines.html | 165 + .../type/ChatParticipant.html | 156 + .../type/ChatParticipants.html | 151 + .../blogfork.telegram.org/type/ChatPhoto.html | 151 + .../type/CodeSettings.html | 146 + .../blogfork.telegram.org/type/Config.html | 165 + .../blogfork.telegram.org/type/Contact.html | 146 + .../type/ContactStatus.html | 146 + .../blogfork.telegram.org/type/DataJSON.html | 171 + .../blogfork.telegram.org/type/DcOption.html | 146 + .../type/DecryptedDataBlock.html | 131 + .../type/DecryptedMessage.html | 143 + .../type/DecryptedMessageAction.html | 148 + .../type/DecryptedMessageLayer.html | 132 + .../type/DecryptedMessageMedia.html | 152 + .../blogfork.telegram.org/type/Dialog.html | 151 + .../type/DialogFilter.html | 146 + .../type/DialogFilterSuggested.html | 146 + .../type/DialogPeer.html | 151 + .../blogfork.telegram.org/type/Document.html | 176 + .../type/DocumentAttribute.html | 176 + .../type/DraftMessage.html | 154 + .../type/EmojiKeyword.html | 151 + .../type/EmojiKeywordsDifference.html | 170 + .../type/EmojiLanguage.html | 146 + .../blogfork.telegram.org/type/EmojiURL.html | 165 + .../type/EncryptedChat.html | 190 + .../type/EncryptedFile.html | 170 + .../type/EncryptedMessage.html | 151 + .../web/blogfork.telegram.org/type/Error.html | 146 + .../type/ExportedChatInvite.html | 165 + .../type/ExportedMessageLink.html | 165 + .../blogfork.telegram.org/type/FileHash.html | 146 + .../type/FileLocation.html | 131 + .../blogfork.telegram.org/type/Folder.html | 146 + .../type/FolderPeer.html | 146 + data/web/blogfork.telegram.org/type/Game.html | 146 + .../blogfork.telegram.org/type/GeoPoint.html | 151 + .../type/GlobalPrivacySettings.html | 170 + .../blogfork.telegram.org/type/GroupCall.html | 151 + .../type/GroupCallParticipant.html | 146 + .../type/GroupCallParticipantVideo.html | 146 + .../GroupCallParticipantVideoSourceGroup.html | 146 + .../type/GroupCallStreamChannel.html | 146 + .../blogfork.telegram.org/type/HighScore.html | 146 + .../type/ImportedContact.html | 146 + .../type/InlineBotSwitchPM.html | 146 + .../type/InlineQueryPeerType.html | 166 + .../type/InputAppEvent.html | 146 + .../type/InputBotInlineMessage.html | 176 + .../type/InputBotInlineMessageID.html | 151 + .../type/InputBotInlineResult.html | 161 + .../type/InputChannel.html | 156 + .../type/InputChatPhoto.html | 156 + .../type/InputCheckPasswordSRP.html | 154 + .../type/InputClientProxy.html | 148 + .../type/InputContact.html | 146 + .../type/InputDialogPeer.html | 151 + .../type/InputDocument.html | 151 + .../type/InputEncryptedChat.html | 146 + .../type/InputEncryptedFile.html | 161 + .../blogfork.telegram.org/type/InputFile.html | 151 + .../type/InputFileLocation.html | 191 + .../type/InputFolderPeer.html | 146 + .../blogfork.telegram.org/type/InputGame.html | 151 + .../type/InputGeoPoint.html | 151 + .../type/InputGroupCall.html | 146 + .../type/InputMedia.html | 216 + .../type/InputMessage.html | 161 + .../type/InputNotifyPeer.html | 161 + .../type/InputPaymentCredentials.html | 161 + .../blogfork.telegram.org/type/InputPeer.html | 176 + .../type/InputPeerNotifySettings.html | 146 + .../type/InputPhoneCall.html | 146 + .../type/InputPhoto.html | 151 + .../type/InputPrivacyKey.html | 181 + .../type/InputPrivacyRule.html | 181 + .../type/InputSecureFile.html | 154 + .../type/InputSecureValue.html | 148 + .../type/InputSingleMedia.html | 151 + .../type/InputStickerSet.html | 171 + .../type/InputStickerSetItem.html | 146 + .../type/InputStickeredMedia.html | 151 + .../type/InputTheme.html | 151 + .../type/InputThemeSettings.html | 146 + .../blogfork.telegram.org/type/InputUser.html | 161 + .../type/InputWallPaper.html | 156 + .../type/InputWebDocument.html | 146 + .../type/InputWebFileLocation.html | 151 + .../blogfork.telegram.org/type/Invoice.html | 146 + .../type/JSONObjectValue.html | 146 + .../blogfork.telegram.org/type/JSONValue.html | 190 + .../type/KeyboardButton.html | 206 + .../type/KeyboardButtonRow.html | 146 + .../type/LabeledPrice.html | 146 + .../type/LangPackDifference.html | 170 + .../type/LangPackLanguage.html | 165 + .../type/LangPackString.html | 156 + .../type/MaskCoords.html | 146 + .../blogfork.telegram.org/type/Message.html | 156 + .../type/MessageAction.html | 291 + .../type/MessageEntity.html | 241 + .../type/MessageFwdHeader.html | 146 + .../type/MessageInteractionCounters.html | 146 + .../type/MessageMedia.html | 235 + .../type/MessagePeerReaction.html | 146 + .../type/MessageRange.html | 146 + .../type/MessageReactions.html | 149 + .../type/MessageReplies.html | 149 + .../type/MessageReplyHeader.html | 146 + .../type/MessageUserReaction.html | 131 + .../type/MessageUserVote.html | 156 + .../type/MessageViews.html | 146 + .../type/MessagesFilter.html | 226 + .../blogfork.telegram.org/type/NearestDc.html | 165 + .../type/NotifyPeer.html | 161 + data/web/blogfork.telegram.org/type/Null.html | 146 + data/web/blogfork.telegram.org/type/Page.html | 146 + .../blogfork.telegram.org/type/PageBlock.html | 286 + .../type/PageCaption.html | 146 + .../type/PageListItem.html | 151 + .../type/PageListOrderedItem.html | 151 + .../type/PageRelatedArticle.html | 146 + .../type/PageTableCell.html | 146 + .../type/PageTableRow.html | 146 + .../type/PasswordKdfAlgo.html | 154 + .../type/PaymentCharge.html | 146 + .../type/PaymentRequestedInfo.html | 146 + .../type/PaymentSavedCredentials.html | 146 + data/web/blogfork.telegram.org/type/Peer.html | 156 + .../type/PeerBlocked.html | 146 + .../type/PeerLocated.html | 151 + .../type/PeerNotifySettings.html | 165 + .../type/PeerSettings.html | 146 + .../blogfork.telegram.org/type/PhoneCall.html | 171 + .../type/PhoneCallDiscardReason.html | 161 + .../type/PhoneCallProtocol.html | 146 + .../type/PhoneConnection.html | 151 + .../web/blogfork.telegram.org/type/Photo.html | 151 + .../blogfork.telegram.org/type/PhotoSize.html | 171 + data/web/blogfork.telegram.org/type/Poll.html | 146 + .../type/PollAnswer.html | 149 + .../type/PollAnswerVoters.html | 146 + .../type/PollResults.html | 146 + .../type/PopularContact.html | 146 + .../type/PostAddress.html | 146 + .../type/PrivacyKey.html | 181 + .../type/PrivacyRule.html | 181 + .../type/ReactionCount.html | 146 + .../type/ReceivedNotifyMessage.html | 146 + .../type/RecentMeUrl.html | 166 + .../type/ReplyMarkup.html | 161 + .../type/ReportReason.html | 191 + .../type/RestrictionReason.html | 146 + .../blogfork.telegram.org/type/RichText.html | 221 + .../type/SavedContact.html | 146 + .../type/SearchResultsCalendarPeriod.html | 149 + .../type/SearchResultsPosition.html | 146 + .../type/SecureCredentialsEncrypted.html | 146 + .../type/SecureData.html | 149 + .../type/SecureFile.html | 154 + .../type/SecurePasswordKdfAlgo.html | 158 + .../type/SecurePlainData.html | 153 + .../type/SecureRequiredType.html | 151 + .../type/SecureSecretSettings.html | 148 + .../type/SecureValue.html | 165 + .../type/SecureValueError.html | 186 + .../type/SecureValueHash.html | 146 + .../type/SecureValueType.html | 206 + .../type/SendMessageAction.html | 231 + .../type/ShippingOption.html | 146 + .../type/SponsoredMessage.html | 146 + .../type/StatsAbsValueAndPrev.html | 146 + .../type/StatsDateRangeDays.html | 146 + .../type/StatsGraph.html | 175 + .../type/StatsGroupTopAdmin.html | 149 + .../type/StatsGroupTopInviter.html | 149 + .../type/StatsGroupTopPoster.html | 149 + .../type/StatsPercentValue.html | 146 + .../blogfork.telegram.org/type/StatsURL.html | 146 + .../type/StickerPack.html | 146 + .../type/StickerSet.html | 146 + .../type/StickerSetCovered.html | 151 + .../web/blogfork.telegram.org/type/Theme.html | 175 + .../type/ThemeSettings.html | 146 + .../blogfork.telegram.org/type/TopPeer.html | 146 + .../type/TopPeerCategory.html | 181 + .../type/TopPeerCategoryPeers.html | 146 + data/web/blogfork.telegram.org/type/True.html | 148 + .../blogfork.telegram.org/type/Update.html | 621 ++ .../blogfork.telegram.org/type/Updates.html | 541 ++ .../type/UrlAuthResult.html | 180 + data/web/blogfork.telegram.org/type/User.html | 180 + .../blogfork.telegram.org/type/UserFull.html | 146 + .../type/UserProfilePhoto.html | 151 + .../type/UserStatus.html | 171 + .../blogfork.telegram.org/type/Vector t.html | 146 + .../blogfork.telegram.org/type/VideoSize.html | 146 + .../blogfork.telegram.org/type/WallPaper.html | 175 + .../type/WallPaperSettings.html | 146 + .../type/WebAuthorization.html | 146 + .../type/WebDocument.html | 151 + .../blogfork.telegram.org/type/WebPage.html | 180 + .../type/WebPageAttribute.html | 146 + .../type/account.AuthorizationForm | 165 + .../type/account.Authorizations | 165 + .../type/account.AutoDownloadSettings | 165 + .../type/account.ChatThemes | 131 + .../type/account.ContentSettings | 165 + .../type/account.Password | 165 + .../type/account.PasswordInputSettings | 149 + .../type/account.PasswordSettings | 167 + .../type/account.PrivacyRules | 170 + .../type/account.ResetPasswordResult | 178 + .../type/account.SentEmailCode | 165 + .../type/account.Takeout | 165 + .../blogfork.telegram.org/type/account.Themes | 175 + .../type/account.TmpPassword | 165 + .../type/account.WallPapers | 170 + .../type/account.WebAuthorizations | 165 + .../type/auth.Authorization | 195 + .../type/auth.CheckedPhone | 131 + .../blogfork.telegram.org/type/auth.CodeType | 161 + .../type/auth.ExportedAuthorization | 165 + .../blogfork.telegram.org/type/auth.LoggedOut | 168 + .../type/auth.LoginToken | 180 + .../type/auth.PasswordRecovery | 168 + .../blogfork.telegram.org/type/auth.SentCode | 186 + .../type/auth.SentCodeType | 166 + .../web/blogfork.telegram.org/type/bytes.html | 128 + .../type/channels.AdminLogResults | 165 + .../type/channels.ChannelParticipant | 165 + .../type/channels.ChannelParticipants | 170 + .../type/channels.SendAsPeers | 165 + .../type/contacts.Blocked | 170 + .../type/contacts.Contacts | 170 + .../blogfork.telegram.org/type/contacts.Found | 165 + .../type/contacts.ImportedContacts | 165 + .../type/contacts.ResolvedPeer | 170 + .../type/contacts.TopPeers | 175 + .../blogfork.telegram.org/type/double.html | 121 + .../blogfork.telegram.org/type/help.AppUpdate | 170 + .../type/help.CountriesList | 170 + .../blogfork.telegram.org/type/help.Country | 146 + .../type/help.CountryCode | 146 + .../type/help.DeepLinkInfo | 170 + .../type/help.InviteText | 165 + .../type/help.PassportConfig | 172 + .../blogfork.telegram.org/type/help.PromoData | 170 + .../type/help.RecentMeUrls | 165 + .../blogfork.telegram.org/type/help.Support | 165 + .../type/help.SupportName | 165 + .../type/help.TermsOfService | 146 + .../type/help.TermsOfServiceUpdate | 170 + .../blogfork.telegram.org/type/help.UserInfo | 175 + data/web/blogfork.telegram.org/type/int.html | 121 + data/web/blogfork.telegram.org/type/long.html | 121 + .../type/messages.AffectedFoundMessages | 165 + .../type/messages.AffectedHistory | 186 + .../type/messages.AffectedMessages | 181 + .../type/messages.AllStickers | 175 + .../type/messages.ArchivedStickers | 165 + .../type/messages.AvailableReactions | 173 + .../type/messages.BotCallbackAnswer | 165 + .../type/messages.BotResults | 165 + .../type/messages.ChatAdminsWithInvites | 165 + .../type/messages.ChatFull | 174 + .../type/messages.ChatInviteImporters | 165 + .../blogfork.telegram.org/type/messages.Chats | 201 + .../type/messages.CheckedHistoryImportPeer | 168 + .../type/messages.DhConfig | 170 + .../type/messages.Dialogs | 175 + .../type/messages.DiscussionMessage | 165 + .../type/messages.ExportedChatInvite | 175 + .../type/messages.ExportedChatInvites | 165 + .../type/messages.FavedStickers | 170 + .../type/messages.FeaturedStickers | 175 + .../type/messages.FoundStickerSets | 170 + .../type/messages.HighScores | 170 + .../type/messages.HistoryImport | 168 + .../type/messages.HistoryImportParsed | 165 + .../type/messages.InactiveChats | 165 + .../type/messages.MessageEditData | 165 + .../type/messages.MessageReactionsList | 165 + .../type/messages.MessageViews | 165 + .../type/messages.Messages | 242 + .../type/messages.PeerDialogs | 170 + .../type/messages.PeerSettings | 165 + .../type/messages.RecentStickers | 170 + .../type/messages.SavedGifs | 170 + .../type/messages.SearchCounter | 146 + .../type/messages.SearchResultsCalendar | 165 + .../type/messages.SearchResultsPositions | 165 + .../type/messages.SentEncryptedMessage | 180 + .../type/messages.SponsoredMessages | 165 + .../type/messages.StickerSet | 196 + .../type/messages.StickerSetInstallResult | 170 + .../type/messages.Stickers | 170 + .../type/messages.TranslatedText | 170 + .../type/messages.VotesList | 165 + .../type/payments.BankCardData | 165 + .../type/payments.PaymentForm | 165 + .../type/payments.PaymentReceipt | 165 + .../type/payments.PaymentResult | 170 + .../type/payments.SavedInfo | 165 + .../type/payments.ValidatedRequestedInfo | 165 + .../type/phone.ExportedGroupCallInvite | 165 + .../type/phone.GroupCall | 165 + .../type/phone.GroupCallStreamChannels | 165 + .../type/phone.GroupCallStreamRtmpUrl | 165 + .../type/phone.GroupParticipants | 165 + .../type/phone.JoinAsPeers | 165 + .../type/phone.PhoneCall | 175 + .../blogfork.telegram.org/type/photos.Photo | 170 + .../blogfork.telegram.org/type/photos.Photos | 170 + .../type/stats.BroadcastStats | 165 + .../type/stats.MegagroupStats | 165 + .../type/stats.MessageStats | 165 + .../type/stickers.SuggestedShortName | 165 + .../type/storage.FileType | 191 + .../blogfork.telegram.org/type/string.html | 129 + .../type/updates.ChannelDifference | 175 + .../type/updates.Difference | 180 + .../blogfork.telegram.org/type/updates.State | 165 + .../blogfork.telegram.org/type/upload.CdnFile | 170 + .../blogfork.telegram.org/type/upload.File | 170 + .../blogfork.telegram.org/type/upload.WebFile | 165 + .../blogfork.telegram.org/type/users.UserFull | 165 + data/web/blogfork.telegram.org/widgets.html | 144 + .../widgets/discussion.html | 229 + .../blogfork.telegram.org/widgets/login.html | 407 + .../blogfork.telegram.org/widgets/post.html | 243 + .../blogfork.telegram.org/widgets/share.html | 253 + 1893 files changed, 344013 insertions(+) create mode 100644 data/web/blogfork.telegram.org.html create mode 100644 data/web/blogfork.telegram.org/api.html create mode 100644 data/web/blogfork.telegram.org/api/account-deletion.html create mode 100644 data/web/blogfork.telegram.org/api/animated-emojis.html create mode 100644 data/web/blogfork.telegram.org/api/auth.html create mode 100644 data/web/blogfork.telegram.org/api/bots.html create mode 100644 data/web/blogfork.telegram.org/api/bots/buttons.html create mode 100644 data/web/blogfork.telegram.org/api/bots/commands.html create mode 100644 data/web/blogfork.telegram.org/api/bots/games.html create mode 100644 data/web/blogfork.telegram.org/api/bots/inline.html create mode 100644 data/web/blogfork.telegram.org/api/channel.html create mode 100644 data/web/blogfork.telegram.org/api/config.html create mode 100644 data/web/blogfork.telegram.org/api/datacenter.html create mode 100644 data/web/blogfork.telegram.org/api/dice.html create mode 100644 data/web/blogfork.telegram.org/api/discussion.html create mode 100644 data/web/blogfork.telegram.org/api/drafts.html create mode 100644 data/web/blogfork.telegram.org/api/end-to-end.html create mode 100644 data/web/blogfork.telegram.org/api/end-to-end/pfs.html create mode 100644 data/web/blogfork.telegram.org/api/end-to-end/seq_no.html create mode 100644 data/web/blogfork.telegram.org/api/end-to-end/video-calls.html create mode 100644 data/web/blogfork.telegram.org/api/end-to-end/voice-calls.html create mode 100644 data/web/blogfork.telegram.org/api/end-to-end_v1.html create mode 100644 data/web/blogfork.telegram.org/api/entities.html create mode 100644 data/web/blogfork.telegram.org/api/errors.html create mode 100644 data/web/blogfork.telegram.org/api/file_reference.html create mode 100644 data/web/blogfork.telegram.org/api/files.html create mode 100644 data/web/blogfork.telegram.org/api/folders.html create mode 100644 data/web/blogfork.telegram.org/api/import.html create mode 100644 data/web/blogfork.telegram.org/api/invites.html create mode 100644 data/web/blogfork.telegram.org/api/invoking.html create mode 100644 data/web/blogfork.telegram.org/api/layers.html create mode 100644 data/web/blogfork.telegram.org/api/live-location.html create mode 100644 data/web/blogfork.telegram.org/api/mentions.html create mode 100644 data/web/blogfork.telegram.org/api/min.html create mode 100644 data/web/blogfork.telegram.org/api/obtaining_api_id.html create mode 100644 data/web/blogfork.telegram.org/api/offsets.html create mode 100644 data/web/blogfork.telegram.org/api/optimisation.html create mode 100644 data/web/blogfork.telegram.org/api/passport.html create mode 100644 data/web/blogfork.telegram.org/api/pattern.html create mode 100644 data/web/blogfork.telegram.org/api/payments.html create mode 100644 data/web/blogfork.telegram.org/api/pfs.html create mode 100644 data/web/blogfork.telegram.org/api/pin.html create mode 100644 data/web/blogfork.telegram.org/api/poll.html create mode 100644 data/web/blogfork.telegram.org/api/push-updates.html create mode 100644 data/web/blogfork.telegram.org/api/qr-login.html create mode 100644 data/web/blogfork.telegram.org/api/reactions.html create mode 100644 data/web/blogfork.telegram.org/api/recent-actions.html create mode 100644 data/web/blogfork.telegram.org/api/rights.html create mode 100644 data/web/blogfork.telegram.org/api/scheduled-messages.html create mode 100644 data/web/blogfork.telegram.org/api/search.html create mode 100644 data/web/blogfork.telegram.org/api/srp.html create mode 100644 data/web/blogfork.telegram.org/api/stats.html create mode 100644 data/web/blogfork.telegram.org/api/terms.html create mode 100644 data/web/blogfork.telegram.org/api/threads.html create mode 100644 data/web/blogfork.telegram.org/api/top-rating.html create mode 100644 data/web/blogfork.telegram.org/api/updates.html create mode 100644 data/web/blogfork.telegram.org/api/url-authorization.html create mode 100644 data/web/blogfork.telegram.org/api/web-events.html create mode 100644 data/web/blogfork.telegram.org/bots.html create mode 100644 data/web/blogfork.telegram.org/bots/2-0-intro.html create mode 100644 data/web/blogfork.telegram.org/bots/api-changelog.html create mode 100644 data/web/blogfork.telegram.org/bots/api.html create mode 100644 data/web/blogfork.telegram.org/bots/faq.html create mode 100644 data/web/blogfork.telegram.org/bots/games.html create mode 100644 data/web/blogfork.telegram.org/bots/inline.html create mode 100644 data/web/blogfork.telegram.org/bots/payments.html create mode 100644 data/web/blogfork.telegram.org/bots/payments/currencies.json create mode 100644 data/web/blogfork.telegram.org/bots/samples.html create mode 100644 data/web/blogfork.telegram.org/bots/samples/hellobot.html create mode 100644 data/web/blogfork.telegram.org/bots/self-signed.html create mode 100644 data/web/blogfork.telegram.org/bots/webapps.html create mode 100644 data/web/blogfork.telegram.org/bots/webhooks.html create mode 100644 data/web/blogfork.telegram.org/cdn.html create mode 100644 data/web/blogfork.telegram.org/constructor/account.authorizationForm create mode 100644 data/web/blogfork.telegram.org/constructor/account.authorizations create mode 100644 data/web/blogfork.telegram.org/constructor/account.autoDownloadSettings create mode 100644 data/web/blogfork.telegram.org/constructor/account.contentSettings create mode 100644 data/web/blogfork.telegram.org/constructor/account.password create mode 100644 data/web/blogfork.telegram.org/constructor/account.passwordInputSettings create mode 100644 data/web/blogfork.telegram.org/constructor/account.passwordSettings create mode 100644 data/web/blogfork.telegram.org/constructor/account.privacyRules create mode 100644 data/web/blogfork.telegram.org/constructor/account.resetPasswordFailedWait create mode 100644 data/web/blogfork.telegram.org/constructor/account.resetPasswordOk create mode 100644 data/web/blogfork.telegram.org/constructor/account.resetPasswordRequestedWait create mode 100644 data/web/blogfork.telegram.org/constructor/account.sentEmailCode create mode 100644 data/web/blogfork.telegram.org/constructor/account.takeout create mode 100644 data/web/blogfork.telegram.org/constructor/account.themes create mode 100644 data/web/blogfork.telegram.org/constructor/account.themesNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/account.tmpPassword create mode 100644 data/web/blogfork.telegram.org/constructor/account.wallPapers create mode 100644 data/web/blogfork.telegram.org/constructor/account.wallPapersNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/account.webAuthorizations create mode 100644 data/web/blogfork.telegram.org/constructor/accountDaysTTL.html create mode 100644 data/web/blogfork.telegram.org/constructor/auth.authorization create mode 100644 data/web/blogfork.telegram.org/constructor/auth.authorizationSignUpRequired create mode 100644 data/web/blogfork.telegram.org/constructor/auth.codeTypeCall create mode 100644 data/web/blogfork.telegram.org/constructor/auth.codeTypeFlashCall create mode 100644 data/web/blogfork.telegram.org/constructor/auth.codeTypeMissedCall create mode 100644 data/web/blogfork.telegram.org/constructor/auth.codeTypeSms create mode 100644 data/web/blogfork.telegram.org/constructor/auth.exportedAuthorization create mode 100644 data/web/blogfork.telegram.org/constructor/auth.loggedOut create mode 100644 data/web/blogfork.telegram.org/constructor/auth.loginToken create mode 100644 data/web/blogfork.telegram.org/constructor/auth.loginTokenMigrateTo create mode 100644 data/web/blogfork.telegram.org/constructor/auth.loginTokenSuccess create mode 100644 data/web/blogfork.telegram.org/constructor/auth.passwordRecovery create mode 100644 data/web/blogfork.telegram.org/constructor/auth.sentCode create mode 100644 data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeApp create mode 100644 data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeCall create mode 100644 data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeFlashCall create mode 100644 data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeMissedCall create mode 100644 data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeSms create mode 100644 data/web/blogfork.telegram.org/constructor/authorization.html create mode 100644 data/web/blogfork.telegram.org/constructor/autoDownloadSettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/availableReaction.html create mode 100644 data/web/blogfork.telegram.org/constructor/bankCardOpenUrl.html create mode 100644 data/web/blogfork.telegram.org/constructor/baseThemeArctic.html create mode 100644 data/web/blogfork.telegram.org/constructor/baseThemeClassic.html create mode 100644 data/web/blogfork.telegram.org/constructor/baseThemeDay.html create mode 100644 data/web/blogfork.telegram.org/constructor/baseThemeNight.html create mode 100644 data/web/blogfork.telegram.org/constructor/baseThemeTinted.html create mode 100644 data/web/blogfork.telegram.org/constructor/boolFalse.html create mode 100644 data/web/blogfork.telegram.org/constructor/boolTrue.html create mode 100644 data/web/blogfork.telegram.org/constructor/botCommand.html create mode 100644 data/web/blogfork.telegram.org/constructor/botCommandScopeChatAdmins.html create mode 100644 data/web/blogfork.telegram.org/constructor/botCommandScopeChats.html create mode 100644 data/web/blogfork.telegram.org/constructor/botCommandScopeDefault.html create mode 100644 data/web/blogfork.telegram.org/constructor/botCommandScopePeer.html create mode 100644 data/web/blogfork.telegram.org/constructor/botCommandScopePeerAdmins.html create mode 100644 data/web/blogfork.telegram.org/constructor/botCommandScopePeerUser.html create mode 100644 data/web/blogfork.telegram.org/constructor/botCommandScopeUsers.html create mode 100644 data/web/blogfork.telegram.org/constructor/botInfo.html create mode 100644 data/web/blogfork.telegram.org/constructor/botInlineMediaResult.html create mode 100644 data/web/blogfork.telegram.org/constructor/botInlineMessageMediaAuto.html create mode 100644 data/web/blogfork.telegram.org/constructor/botInlineMessageMediaContact.html create mode 100644 data/web/blogfork.telegram.org/constructor/botInlineMessageMediaGeo.html create mode 100644 data/web/blogfork.telegram.org/constructor/botInlineMessageMediaInvoice.html create mode 100644 data/web/blogfork.telegram.org/constructor/botInlineMessageMediaVenue.html create mode 100644 data/web/blogfork.telegram.org/constructor/botInlineMessageText.html create mode 100644 data/web/blogfork.telegram.org/constructor/botInlineResult.html create mode 100644 data/web/blogfork.telegram.org/constructor/cdnConfig.html create mode 100644 data/web/blogfork.telegram.org/constructor/cdnPublicKey.html create mode 100644 data/web/blogfork.telegram.org/constructor/channel.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEvent.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeAbout.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeAvailableReactions.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeHistoryTTL.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangePhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeTitle.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeUsername.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDeleteMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDiscardGroupCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionEditMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteDelete.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteEdit.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteRevoke.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantInvite.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoin.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByInvite.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByRequest.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantLeave.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantMute.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantUnmute.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantVolume.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionSendMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionStartGroupCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionStopPoll.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleGroupCallSetting.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleInvites.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleNoForwards.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleSignatures.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionUpdatePinned.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelAdminLogEventsFilter.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelForbidden.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelFull.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelLocationEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelMessagesFilter.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelMessagesFilterEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipant.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantAdmin.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantBanned.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantCreator.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantLeft.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantSelf.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantsAdmins.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantsBanned.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantsBots.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantsContacts.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantsKicked.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantsMentions.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantsRecent.html create mode 100644 data/web/blogfork.telegram.org/constructor/channelParticipantsSearch.html create mode 100644 data/web/blogfork.telegram.org/constructor/channels.adminLogResults create mode 100644 data/web/blogfork.telegram.org/constructor/channels.channelParticipant create mode 100644 data/web/blogfork.telegram.org/constructor/channels.channelParticipants create mode 100644 data/web/blogfork.telegram.org/constructor/channels.channelParticipantsNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/channels.sendAsPeers create mode 100644 data/web/blogfork.telegram.org/constructor/chat.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatAdminRights.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatAdminWithInvites.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatBannedRights.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatForbidden.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatFull.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatInvite.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatInviteAlready.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatInviteExported.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatInviteImporter.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatInvitePeek.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatOnlines.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatParticipant.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatParticipantAdmin.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatParticipantCreator.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatParticipants.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatParticipantsForbidden.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/chatPhotoEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/codeSettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/config.html create mode 100644 data/web/blogfork.telegram.org/constructor/contact.html create mode 100644 data/web/blogfork.telegram.org/constructor/contactStatus.html create mode 100644 data/web/blogfork.telegram.org/constructor/contacts.blocked create mode 100644 data/web/blogfork.telegram.org/constructor/contacts.blockedSlice create mode 100644 data/web/blogfork.telegram.org/constructor/contacts.contacts create mode 100644 data/web/blogfork.telegram.org/constructor/contacts.contactsNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/contacts.found create mode 100644 data/web/blogfork.telegram.org/constructor/contacts.importedContacts create mode 100644 data/web/blogfork.telegram.org/constructor/contacts.resolvedPeer create mode 100644 data/web/blogfork.telegram.org/constructor/contacts.topPeers create mode 100644 data/web/blogfork.telegram.org/constructor/contacts.topPeersDisabled create mode 100644 data/web/blogfork.telegram.org/constructor/contacts.topPeersNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/dataJSON.html create mode 100644 data/web/blogfork.telegram.org/constructor/dcOption.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionAbortKey.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionAcceptKey.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionCommitKey.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionDeleteMessages.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionFlushHistory.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionNoop.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionNotifyLayer.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionReadMessages.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionRequestKey.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionResend.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionScreenshotMessages.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionSetMessageTTL.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageActionTyping.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageLayer.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageMediaAudio.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageMediaContact.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageMediaDocument.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageMediaEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageMediaExternalDocument.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageMediaGeoPoint.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageMediaPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageMediaVenue.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageMediaVideo.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageMediaWebPage.html create mode 100644 data/web/blogfork.telegram.org/constructor/decryptedMessageService.html create mode 100644 data/web/blogfork.telegram.org/constructor/dialog.html create mode 100644 data/web/blogfork.telegram.org/constructor/dialogFilter.html create mode 100644 data/web/blogfork.telegram.org/constructor/dialogFilterSuggested.html create mode 100644 data/web/blogfork.telegram.org/constructor/dialogFolder.html create mode 100644 data/web/blogfork.telegram.org/constructor/dialogPeer.html create mode 100644 data/web/blogfork.telegram.org/constructor/dialogPeerFolder.html create mode 100644 data/web/blogfork.telegram.org/constructor/document.html create mode 100644 data/web/blogfork.telegram.org/constructor/documentAttributeAnimated.html create mode 100644 data/web/blogfork.telegram.org/constructor/documentAttributeAudio.html create mode 100644 data/web/blogfork.telegram.org/constructor/documentAttributeFilename.html create mode 100644 data/web/blogfork.telegram.org/constructor/documentAttributeHasStickers.html create mode 100644 data/web/blogfork.telegram.org/constructor/documentAttributeImageSize.html create mode 100644 data/web/blogfork.telegram.org/constructor/documentAttributeSticker.html create mode 100644 data/web/blogfork.telegram.org/constructor/documentAttributeVideo.html create mode 100644 data/web/blogfork.telegram.org/constructor/documentEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/draftMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/draftMessageEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/emojiKeyword.html create mode 100644 data/web/blogfork.telegram.org/constructor/emojiKeywordDeleted.html create mode 100644 data/web/blogfork.telegram.org/constructor/emojiKeywordsDifference.html create mode 100644 data/web/blogfork.telegram.org/constructor/emojiLanguage.html create mode 100644 data/web/blogfork.telegram.org/constructor/emojiURL.html create mode 100644 data/web/blogfork.telegram.org/constructor/encryptedChat.html create mode 100644 data/web/blogfork.telegram.org/constructor/encryptedChatDiscarded.html create mode 100644 data/web/blogfork.telegram.org/constructor/encryptedChatEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/encryptedChatRequested.html create mode 100644 data/web/blogfork.telegram.org/constructor/encryptedChatWaiting.html create mode 100644 data/web/blogfork.telegram.org/constructor/encryptedFile.html create mode 100644 data/web/blogfork.telegram.org/constructor/encryptedFileEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/encryptedMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/encryptedMessageService.html create mode 100644 data/web/blogfork.telegram.org/constructor/error.html create mode 100644 data/web/blogfork.telegram.org/constructor/exportedMessageLink.html create mode 100644 data/web/blogfork.telegram.org/constructor/fileHash.html create mode 100644 data/web/blogfork.telegram.org/constructor/fileLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/fileLocationUnavailable.html create mode 100644 data/web/blogfork.telegram.org/constructor/folder.html create mode 100644 data/web/blogfork.telegram.org/constructor/folderPeer.html create mode 100644 data/web/blogfork.telegram.org/constructor/game.html create mode 100644 data/web/blogfork.telegram.org/constructor/geoPoint.html create mode 100644 data/web/blogfork.telegram.org/constructor/geoPointEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/globalPrivacySettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/groupCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/groupCallDiscarded.html create mode 100644 data/web/blogfork.telegram.org/constructor/groupCallParticipant.html create mode 100644 data/web/blogfork.telegram.org/constructor/groupCallParticipantVideo.html create mode 100644 data/web/blogfork.telegram.org/constructor/groupCallParticipantVideoSourceGroup.html create mode 100644 data/web/blogfork.telegram.org/constructor/groupCallStreamChannel.html create mode 100644 data/web/blogfork.telegram.org/constructor/help.appUpdate create mode 100644 data/web/blogfork.telegram.org/constructor/help.countriesList create mode 100644 data/web/blogfork.telegram.org/constructor/help.countriesListNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/help.country create mode 100644 data/web/blogfork.telegram.org/constructor/help.countryCode create mode 100644 data/web/blogfork.telegram.org/constructor/help.deepLinkInfo create mode 100644 data/web/blogfork.telegram.org/constructor/help.deepLinkInfoEmpty create mode 100644 data/web/blogfork.telegram.org/constructor/help.inviteText create mode 100644 data/web/blogfork.telegram.org/constructor/help.noAppUpdate create mode 100644 data/web/blogfork.telegram.org/constructor/help.passportConfig create mode 100644 data/web/blogfork.telegram.org/constructor/help.passportConfigNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/help.promoData create mode 100644 data/web/blogfork.telegram.org/constructor/help.promoDataEmpty create mode 100644 data/web/blogfork.telegram.org/constructor/help.recentMeUrls create mode 100644 data/web/blogfork.telegram.org/constructor/help.support create mode 100644 data/web/blogfork.telegram.org/constructor/help.supportName create mode 100644 data/web/blogfork.telegram.org/constructor/help.termsOfService create mode 100644 data/web/blogfork.telegram.org/constructor/help.termsOfServiceUpdate create mode 100644 data/web/blogfork.telegram.org/constructor/help.termsOfServiceUpdateEmpty create mode 100644 data/web/blogfork.telegram.org/constructor/help.userInfo create mode 100644 data/web/blogfork.telegram.org/constructor/help.userInfoEmpty create mode 100644 data/web/blogfork.telegram.org/constructor/highScore.html create mode 100644 data/web/blogfork.telegram.org/constructor/importedContact.html create mode 100644 data/web/blogfork.telegram.org/constructor/inlineBotSwitchPM.html create mode 100644 data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeBroadcast.html create mode 100644 data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeChat.html create mode 100644 data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeMegagroup.html create mode 100644 data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypePM.html create mode 100644 data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeSameBotPM.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputAppEvent.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineMessageGame.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineMessageID.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineMessageID64.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaAuto.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaContact.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaGeo.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaInvoice.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaVenue.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineMessageText.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineResult.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineResultDocument.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineResultGame.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputBotInlineResultPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputChannel.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputChannelEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputChannelFromMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputChatPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputChatPhotoEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputChatUploadedPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputCheckPasswordEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputCheckPasswordSRP.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputClientProxy.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputDialogPeer.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputDialogPeerFolder.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputDocument.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputDocumentEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputDocumentFileLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputEncryptedChat.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputEncryptedFile.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputEncryptedFileBigUploaded.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputEncryptedFileEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputEncryptedFileLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputEncryptedFileUploaded.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputFile.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputFileBig.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputFileLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputFolderPeer.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputGameID.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputGameShortName.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputGeoPoint.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputGeoPointEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputGroupCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputGroupCallStream.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputKeyboardButtonUrlAuth.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputKeyboardButtonUserProfile.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaContact.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaDice.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaDocument.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaDocumentExternal.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaGame.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaGeoLive.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaGeoPoint.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaInvoice.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaPhotoExternal.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaPoll.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaUploadedDocument.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaUploadedPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMediaVenue.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessageCallbackQuery.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessageEntityMentionName.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessageID.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagePinned.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessageReplyTo.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterChatPhotos.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterContacts.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterDocument.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterGeo.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterGif.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterMusic.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterMyMentions.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterPhoneCalls.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterPhotoVideo.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterPhotos.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterPinned.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterRoundVideo.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterRoundVoice.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterUrl.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterVideo.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputMessagesFilterVoice.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputNotifyBroadcasts.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputNotifyChats.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputNotifyPeer.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputNotifyUsers.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPaymentCredentials.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPaymentCredentialsApplePay.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPaymentCredentialsGooglePay.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPaymentCredentialsSaved.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPeerChannel.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPeerChannelFromMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPeerChat.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPeerEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPeerNotifySettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPeerPhotoFileLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPeerSelf.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPeerUser.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPeerUserFromMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPhoneCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPhoneContact.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPhotoEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPhotoFileLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPhotoLegacyFileLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyKeyAddedByPhone.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyKeyChatInvite.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyKeyForwards.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneNumber.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneP2P.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyKeyProfilePhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowAll.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowChatParticipants.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowContacts.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowUsers.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowAll.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowContacts.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowUsers.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputReportReasonChildAbuse.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputReportReasonCopyright.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputReportReasonFake.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputReportReasonGeoIrrelevant.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputReportReasonIllegalDrugs.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputReportReasonOther.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputReportReasonPersonalDetails.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputReportReasonPornography.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputReportReasonSpam.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputReportReasonViolence.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputSecureFile.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputSecureFileLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputSecureFileUploaded.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputSecureValue.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputSingleMedia.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputStickerSetAnimatedEmoji.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputStickerSetAnimatedEmojiAnimations.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputStickerSetDice.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputStickerSetEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputStickerSetID.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputStickerSetItem.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputStickerSetShortName.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputStickerSetThumb.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputStickeredMediaDocument.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputStickeredMediaPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputTakeoutFileLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputTheme.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputThemeSettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputThemeSlug.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputUser.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputUserEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputUserFromMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputUserSelf.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputWallPaper.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputWallPaperNoFile.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputWallPaperSlug.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputWebDocument.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputWebFileGeoPointLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/inputWebFileLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/invoice.html create mode 100644 data/web/blogfork.telegram.org/constructor/jsonArray.html create mode 100644 data/web/blogfork.telegram.org/constructor/jsonBool.html create mode 100644 data/web/blogfork.telegram.org/constructor/jsonNull.html create mode 100644 data/web/blogfork.telegram.org/constructor/jsonNumber.html create mode 100644 data/web/blogfork.telegram.org/constructor/jsonObject.html create mode 100644 data/web/blogfork.telegram.org/constructor/jsonObjectValue.html create mode 100644 data/web/blogfork.telegram.org/constructor/jsonString.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButton.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButtonBuy.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButtonCallback.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButtonGame.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButtonRequestGeoLocation.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButtonRequestPhone.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButtonRequestPoll.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButtonRow.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButtonSwitchInline.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButtonUrl.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButtonUrlAuth.html create mode 100644 data/web/blogfork.telegram.org/constructor/keyboardButtonUserProfile.html create mode 100644 data/web/blogfork.telegram.org/constructor/labeledPrice.html create mode 100644 data/web/blogfork.telegram.org/constructor/langPackDifference.html create mode 100644 data/web/blogfork.telegram.org/constructor/langPackLanguage.html create mode 100644 data/web/blogfork.telegram.org/constructor/langPackString.html create mode 100644 data/web/blogfork.telegram.org/constructor/langPackStringDeleted.html create mode 100644 data/web/blogfork.telegram.org/constructor/langPackStringPluralized.html create mode 100644 data/web/blogfork.telegram.org/constructor/maskCoords.html create mode 100644 data/web/blogfork.telegram.org/constructor/message.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionBotAllowed.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionChannelCreate.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionChannelMigrateFrom.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionChatAddUser.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionChatCreate.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionChatDeletePhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionChatDeleteUser.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionChatEditPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionChatEditTitle.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionChatJoinedByLink.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionChatJoinedByRequest.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionChatMigrateTo.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionContactSignUp.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionCustomAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionGameScore.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionGeoProximityReached.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionGroupCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionGroupCallScheduled.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionHistoryClear.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionInviteToGroupCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionPaymentSent.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionPaymentSentMe.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionPhoneCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionPinMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionScreenshotTaken.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionSecureValuesSent.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionSecureValuesSentMe.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionSetChatTheme.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageActionSetMessagesTTL.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityBankCard.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityBlockquote.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityBold.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityBotCommand.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityCashtag.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityCode.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityEmail.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityHashtag.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityItalic.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityMention.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityMentionName.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityPhone.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityPre.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntitySpoiler.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityStrike.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityTextUrl.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityUnderline.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityUnknown.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageEntityUrl.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageFwdHeader.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageInteractionCounters.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaContact.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaDice.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaDocument.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaGame.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaGeo.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaGeoLive.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaInvoice.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaPoll.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaUnsupported.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaVenue.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageMediaWebPage.html create mode 100644 data/web/blogfork.telegram.org/constructor/messagePeerReaction.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageRange.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageReactions.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageReplies.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageReplyHeader.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageService.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageUserReaction.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageUserVote.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageUserVoteInputOption.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageUserVoteMultiple.html create mode 100644 data/web/blogfork.telegram.org/constructor/messageViews.html create mode 100644 data/web/blogfork.telegram.org/constructor/messages.affectedFoundMessages create mode 100644 data/web/blogfork.telegram.org/constructor/messages.affectedHistory create mode 100644 data/web/blogfork.telegram.org/constructor/messages.affectedMessages create mode 100644 data/web/blogfork.telegram.org/constructor/messages.allStickers create mode 100644 data/web/blogfork.telegram.org/constructor/messages.allStickersNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.archivedStickers create mode 100644 data/web/blogfork.telegram.org/constructor/messages.availableReactions create mode 100644 data/web/blogfork.telegram.org/constructor/messages.availableReactionsNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.botCallbackAnswer create mode 100644 data/web/blogfork.telegram.org/constructor/messages.botResults create mode 100644 data/web/blogfork.telegram.org/constructor/messages.channelMessages create mode 100644 data/web/blogfork.telegram.org/constructor/messages.chatAdminsWithInvites create mode 100644 data/web/blogfork.telegram.org/constructor/messages.chatFull create mode 100644 data/web/blogfork.telegram.org/constructor/messages.chatInviteImporters create mode 100644 data/web/blogfork.telegram.org/constructor/messages.chats create mode 100644 data/web/blogfork.telegram.org/constructor/messages.chatsSlice create mode 100644 data/web/blogfork.telegram.org/constructor/messages.checkedHistoryImportPeer create mode 100644 data/web/blogfork.telegram.org/constructor/messages.dhConfig create mode 100644 data/web/blogfork.telegram.org/constructor/messages.dhConfigNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.dialogs create mode 100644 data/web/blogfork.telegram.org/constructor/messages.dialogsNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.dialogsSlice create mode 100644 data/web/blogfork.telegram.org/constructor/messages.discussionMessage create mode 100644 data/web/blogfork.telegram.org/constructor/messages.exportedChatInvite create mode 100644 data/web/blogfork.telegram.org/constructor/messages.exportedChatInviteReplaced create mode 100644 data/web/blogfork.telegram.org/constructor/messages.exportedChatInvites create mode 100644 data/web/blogfork.telegram.org/constructor/messages.favedStickers create mode 100644 data/web/blogfork.telegram.org/constructor/messages.favedStickersNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.featuredStickers create mode 100644 data/web/blogfork.telegram.org/constructor/messages.featuredStickersNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.foundStickerSets create mode 100644 data/web/blogfork.telegram.org/constructor/messages.foundStickerSetsNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.highScores create mode 100644 data/web/blogfork.telegram.org/constructor/messages.historyImport create mode 100644 data/web/blogfork.telegram.org/constructor/messages.historyImportParsed create mode 100644 data/web/blogfork.telegram.org/constructor/messages.inactiveChats create mode 100644 data/web/blogfork.telegram.org/constructor/messages.messageEditData create mode 100644 data/web/blogfork.telegram.org/constructor/messages.messageReactionsList create mode 100644 data/web/blogfork.telegram.org/constructor/messages.messageViews create mode 100644 data/web/blogfork.telegram.org/constructor/messages.messages create mode 100644 data/web/blogfork.telegram.org/constructor/messages.messagesNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.messagesSlice create mode 100644 data/web/blogfork.telegram.org/constructor/messages.peerDialogs create mode 100644 data/web/blogfork.telegram.org/constructor/messages.peerSettings create mode 100644 data/web/blogfork.telegram.org/constructor/messages.recentStickers create mode 100644 data/web/blogfork.telegram.org/constructor/messages.recentStickersNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.savedGifs create mode 100644 data/web/blogfork.telegram.org/constructor/messages.savedGifsNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.searchCounter create mode 100644 data/web/blogfork.telegram.org/constructor/messages.searchResultsCalendar create mode 100644 data/web/blogfork.telegram.org/constructor/messages.searchResultsPositions create mode 100644 data/web/blogfork.telegram.org/constructor/messages.sentEncryptedFile create mode 100644 data/web/blogfork.telegram.org/constructor/messages.sentEncryptedMessage create mode 100644 data/web/blogfork.telegram.org/constructor/messages.sponsoredMessages create mode 100644 data/web/blogfork.telegram.org/constructor/messages.stickerSet create mode 100644 data/web/blogfork.telegram.org/constructor/messages.stickerSetInstallResultArchive create mode 100644 data/web/blogfork.telegram.org/constructor/messages.stickerSetInstallResultSuccess create mode 100644 data/web/blogfork.telegram.org/constructor/messages.stickerSetNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.stickers create mode 100644 data/web/blogfork.telegram.org/constructor/messages.stickersNotModified create mode 100644 data/web/blogfork.telegram.org/constructor/messages.translateNoResult create mode 100644 data/web/blogfork.telegram.org/constructor/messages.translateResultText create mode 100644 data/web/blogfork.telegram.org/constructor/messages.votesList create mode 100644 data/web/blogfork.telegram.org/constructor/nearestDc.html create mode 100644 data/web/blogfork.telegram.org/constructor/notifyBroadcasts.html create mode 100644 data/web/blogfork.telegram.org/constructor/notifyChats.html create mode 100644 data/web/blogfork.telegram.org/constructor/notifyPeer.html create mode 100644 data/web/blogfork.telegram.org/constructor/notifyUsers.html create mode 100644 data/web/blogfork.telegram.org/constructor/null.html create mode 100644 data/web/blogfork.telegram.org/constructor/page.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockAnchor.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockAudio.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockAuthorDate.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockBlockquote.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockChannel.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockCollage.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockCover.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockDetails.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockDivider.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockEmbed.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockEmbedPost.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockFooter.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockHeader.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockKicker.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockList.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockMap.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockOrderedList.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockParagraph.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockPreformatted.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockPullquote.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockRelatedArticles.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockSlideshow.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockSubheader.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockSubtitle.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockTable.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockTitle.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockUnsupported.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageBlockVideo.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageCaption.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageListItemBlocks.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageListItemText.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageListOrderedItemBlocks.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageListOrderedItemText.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageRelatedArticle.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageTableCell.html create mode 100644 data/web/blogfork.telegram.org/constructor/pageTableRow.html create mode 100644 data/web/blogfork.telegram.org/constructor/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.html create mode 100644 data/web/blogfork.telegram.org/constructor/passwordKdfAlgoUnknown.html create mode 100644 data/web/blogfork.telegram.org/constructor/paymentCharge.html create mode 100644 data/web/blogfork.telegram.org/constructor/paymentRequestedInfo.html create mode 100644 data/web/blogfork.telegram.org/constructor/paymentSavedCredentialsCard.html create mode 100644 data/web/blogfork.telegram.org/constructor/payments.ValidatedRequestedInfo create mode 100644 data/web/blogfork.telegram.org/constructor/payments.bankCardData create mode 100644 data/web/blogfork.telegram.org/constructor/payments.paymentForm create mode 100644 data/web/blogfork.telegram.org/constructor/payments.paymentReceipt create mode 100644 data/web/blogfork.telegram.org/constructor/payments.paymentResult create mode 100644 data/web/blogfork.telegram.org/constructor/payments.paymentVerificationNeeded create mode 100644 data/web/blogfork.telegram.org/constructor/payments.savedInfo create mode 100644 data/web/blogfork.telegram.org/constructor/peerBlocked.html create mode 100644 data/web/blogfork.telegram.org/constructor/peerChannel.html create mode 100644 data/web/blogfork.telegram.org/constructor/peerChat.html create mode 100644 data/web/blogfork.telegram.org/constructor/peerLocated.html create mode 100644 data/web/blogfork.telegram.org/constructor/peerNotifySettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/peerSelfLocated.html create mode 100644 data/web/blogfork.telegram.org/constructor/peerSettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/peerUser.html create mode 100644 data/web/blogfork.telegram.org/constructor/phone.exportedGroupCallInvite create mode 100644 data/web/blogfork.telegram.org/constructor/phone.groupCall create mode 100644 data/web/blogfork.telegram.org/constructor/phone.groupCallStreamChannels create mode 100644 data/web/blogfork.telegram.org/constructor/phone.groupCallStreamRtmpUrl create mode 100644 data/web/blogfork.telegram.org/constructor/phone.groupParticipants create mode 100644 data/web/blogfork.telegram.org/constructor/phone.joinAsPeers create mode 100644 data/web/blogfork.telegram.org/constructor/phone.phoneCall create mode 100644 data/web/blogfork.telegram.org/constructor/phoneCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneCallAccepted.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonBusy.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonDisconnect.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonHangup.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonMissed.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneCallDiscarded.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneCallEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneCallProtocol.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneCallRequested.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneCallWaiting.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneConnection.html create mode 100644 data/web/blogfork.telegram.org/constructor/phoneConnectionWebrtc.html create mode 100644 data/web/blogfork.telegram.org/constructor/photo.html create mode 100644 data/web/blogfork.telegram.org/constructor/photoCachedSize.html create mode 100644 data/web/blogfork.telegram.org/constructor/photoEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/photoPathSize.html create mode 100644 data/web/blogfork.telegram.org/constructor/photoSize.html create mode 100644 data/web/blogfork.telegram.org/constructor/photoSizeEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/photoSizeProgressive.html create mode 100644 data/web/blogfork.telegram.org/constructor/photoStrippedSize.html create mode 100644 data/web/blogfork.telegram.org/constructor/photos.photo create mode 100644 data/web/blogfork.telegram.org/constructor/photos.photos create mode 100644 data/web/blogfork.telegram.org/constructor/photos.photosSlice create mode 100644 data/web/blogfork.telegram.org/constructor/poll.html create mode 100644 data/web/blogfork.telegram.org/constructor/pollAnswer.html create mode 100644 data/web/blogfork.telegram.org/constructor/pollAnswerVoters.html create mode 100644 data/web/blogfork.telegram.org/constructor/pollResults.html create mode 100644 data/web/blogfork.telegram.org/constructor/popularContact.html create mode 100644 data/web/blogfork.telegram.org/constructor/postAddress.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyKeyAddedByPhone.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyKeyChatInvite.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyKeyForwards.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyKeyPhoneCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyKeyPhoneNumber.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyKeyPhoneP2P.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyKeyProfilePhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyKeyStatusTimestamp.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyValueAllowAll.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyValueAllowChatParticipants.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyValueAllowContacts.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyValueAllowUsers.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyValueDisallowAll.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyValueDisallowChatParticipants.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyValueDisallowContacts.html create mode 100644 data/web/blogfork.telegram.org/constructor/privacyValueDisallowUsers.html create mode 100644 data/web/blogfork.telegram.org/constructor/reactionCount.html create mode 100644 data/web/blogfork.telegram.org/constructor/receivedNotifyMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/recentMeUrlChat.html create mode 100644 data/web/blogfork.telegram.org/constructor/recentMeUrlChatInvite.html create mode 100644 data/web/blogfork.telegram.org/constructor/recentMeUrlStickerSet.html create mode 100644 data/web/blogfork.telegram.org/constructor/recentMeUrlUnknown.html create mode 100644 data/web/blogfork.telegram.org/constructor/recentMeUrlUser.html create mode 100644 data/web/blogfork.telegram.org/constructor/replyInlineMarkup.html create mode 100644 data/web/blogfork.telegram.org/constructor/replyKeyboardForceReply.html create mode 100644 data/web/blogfork.telegram.org/constructor/replyKeyboardHide.html create mode 100644 data/web/blogfork.telegram.org/constructor/replyKeyboardMarkup.html create mode 100644 data/web/blogfork.telegram.org/constructor/restrictionReason.html create mode 100644 data/web/blogfork.telegram.org/constructor/savedPhoneContact.html create mode 100644 data/web/blogfork.telegram.org/constructor/searchResultPosition.html create mode 100644 data/web/blogfork.telegram.org/constructor/searchResultsCalendarPeriod.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureCredentialsEncrypted.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureData.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureFile.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureFileEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.html create mode 100644 data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoSHA512.html create mode 100644 data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoUnknown.html create mode 100644 data/web/blogfork.telegram.org/constructor/securePlainEmail.html create mode 100644 data/web/blogfork.telegram.org/constructor/securePlainPhone.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureRequiredType.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureRequiredTypeOneOf.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureSecretSettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValue.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueError.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueErrorData.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueErrorFile.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueErrorFiles.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueErrorFrontSide.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueErrorReverseSide.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueErrorSelfie.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueErrorTranslationFile.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueErrorTranslationFiles.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueHash.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypeAddress.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypeBankStatement.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypeDriverLicense.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypeEmail.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypeIdentityCard.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypeInternalPassport.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypePassport.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypePassportRegistration.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypePersonalDetails.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypePhone.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypeRentalAgreement.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypeTemporaryRegistration.html create mode 100644 data/web/blogfork.telegram.org/constructor/secureValueTypeUtilityBill.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageCancelAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageChooseContactAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageChooseStickerAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageEmojiInteraction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageEmojiInteractionSeen.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageGamePlayAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageGeoLocationAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageHistoryImportAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageRecordAudioAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageRecordRoundAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageRecordVideoAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageTypingAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageUploadAudioAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageUploadDocumentAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageUploadPhotoAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageUploadRoundAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sendMessageUploadVideoAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/shippingOption.html create mode 100644 data/web/blogfork.telegram.org/constructor/speakingInGroupCallAction.html create mode 100644 data/web/blogfork.telegram.org/constructor/sponsoredMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/stats.broadcastStats create mode 100644 data/web/blogfork.telegram.org/constructor/stats.megagroupStats create mode 100644 data/web/blogfork.telegram.org/constructor/stats.messageStats create mode 100644 data/web/blogfork.telegram.org/constructor/statsAbsValueAndPrev.html create mode 100644 data/web/blogfork.telegram.org/constructor/statsDateRangeDays.html create mode 100644 data/web/blogfork.telegram.org/constructor/statsGraph.html create mode 100644 data/web/blogfork.telegram.org/constructor/statsGraphAsync.html create mode 100644 data/web/blogfork.telegram.org/constructor/statsGraphError.html create mode 100644 data/web/blogfork.telegram.org/constructor/statsGroupTopAdmin.html create mode 100644 data/web/blogfork.telegram.org/constructor/statsGroupTopInviter.html create mode 100644 data/web/blogfork.telegram.org/constructor/statsGroupTopPoster.html create mode 100644 data/web/blogfork.telegram.org/constructor/statsPercentValue.html create mode 100644 data/web/blogfork.telegram.org/constructor/statsURL.html create mode 100644 data/web/blogfork.telegram.org/constructor/stickerPack.html create mode 100644 data/web/blogfork.telegram.org/constructor/stickerSet.html create mode 100644 data/web/blogfork.telegram.org/constructor/stickerSetCovered.html create mode 100644 data/web/blogfork.telegram.org/constructor/stickerSetMultiCovered.html create mode 100644 data/web/blogfork.telegram.org/constructor/stickers.suggestedShortName create mode 100644 data/web/blogfork.telegram.org/constructor/storage.fileGif create mode 100644 data/web/blogfork.telegram.org/constructor/storage.fileJpeg create mode 100644 data/web/blogfork.telegram.org/constructor/storage.fileMov create mode 100644 data/web/blogfork.telegram.org/constructor/storage.fileMp3 create mode 100644 data/web/blogfork.telegram.org/constructor/storage.fileMp4 create mode 100644 data/web/blogfork.telegram.org/constructor/storage.filePartial create mode 100644 data/web/blogfork.telegram.org/constructor/storage.filePdf create mode 100644 data/web/blogfork.telegram.org/constructor/storage.filePng create mode 100644 data/web/blogfork.telegram.org/constructor/storage.fileUnknown create mode 100644 data/web/blogfork.telegram.org/constructor/storage.fileWebp create mode 100644 data/web/blogfork.telegram.org/constructor/textAnchor.html create mode 100644 data/web/blogfork.telegram.org/constructor/textBold.html create mode 100644 data/web/blogfork.telegram.org/constructor/textConcat.html create mode 100644 data/web/blogfork.telegram.org/constructor/textEmail.html create mode 100644 data/web/blogfork.telegram.org/constructor/textEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/textFixed.html create mode 100644 data/web/blogfork.telegram.org/constructor/textImage.html create mode 100644 data/web/blogfork.telegram.org/constructor/textItalic.html create mode 100644 data/web/blogfork.telegram.org/constructor/textMarked.html create mode 100644 data/web/blogfork.telegram.org/constructor/textPhone.html create mode 100644 data/web/blogfork.telegram.org/constructor/textPlain.html create mode 100644 data/web/blogfork.telegram.org/constructor/textStrike.html create mode 100644 data/web/blogfork.telegram.org/constructor/textSubscript.html create mode 100644 data/web/blogfork.telegram.org/constructor/textSuperscript.html create mode 100644 data/web/blogfork.telegram.org/constructor/textUnderline.html create mode 100644 data/web/blogfork.telegram.org/constructor/textUrl.html create mode 100644 data/web/blogfork.telegram.org/constructor/theme.html create mode 100644 data/web/blogfork.telegram.org/constructor/themeSettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/topPeer.html create mode 100644 data/web/blogfork.telegram.org/constructor/topPeerCategoryBotsInline.html create mode 100644 data/web/blogfork.telegram.org/constructor/topPeerCategoryBotsPM.html create mode 100644 data/web/blogfork.telegram.org/constructor/topPeerCategoryChannels.html create mode 100644 data/web/blogfork.telegram.org/constructor/topPeerCategoryCorrespondents.html create mode 100644 data/web/blogfork.telegram.org/constructor/topPeerCategoryForwardChats.html create mode 100644 data/web/blogfork.telegram.org/constructor/topPeerCategoryForwardUsers.html create mode 100644 data/web/blogfork.telegram.org/constructor/topPeerCategoryGroups.html create mode 100644 data/web/blogfork.telegram.org/constructor/topPeerCategoryPeers.html create mode 100644 data/web/blogfork.telegram.org/constructor/topPeerCategoryPhoneCalls.html create mode 100644 data/web/blogfork.telegram.org/constructor/true.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateBotCallbackQuery.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateBotChatInviteRequester.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateBotCommands.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateBotInlineQuery.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateBotInlineSend.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateBotPrecheckoutQuery.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateBotShippingQuery.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateBotStopped.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateBotWebhookJSON.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateBotWebhookJSONQuery.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChannel.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChannelAvailableMessages.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChannelMessageForwards.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChannelMessageViews.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChannelParticipant.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChannelReadMessagesContents.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChannelTooLong.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChannelUserTyping.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChannelWebPage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChat.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChatDefaultBannedRights.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChatParticipant.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChatParticipantAdd.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChatParticipantAdmin.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChatParticipantDelete.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChatParticipants.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateChatUserTyping.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateConfig.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateContactsReset.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateDcOptions.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateDeleteChannelMessages.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateDeleteMessages.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateDeleteScheduledMessages.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateDialogFilter.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateDialogFilterOrder.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateDialogFilters.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateDialogPinned.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateDialogUnreadMark.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateDraftMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateEditChannelMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateEditMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateEncryptedChatTyping.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateEncryptedMessagesRead.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateEncryption.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateFavedStickers.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateFolderPeers.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateGeoLiveViewed.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateGroupCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateGroupCallConnection.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateGroupCallParticipants.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateInlineBotCallbackQuery.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateLangPack.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateLangPackTooLong.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateLoginToken.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateMessageID.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateMessagePoll.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateMessagePollVote.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateMessageReactions.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateNewChannelMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateNewEncryptedMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateNewMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateNewScheduledMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateNewStickerSet.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateNotifySettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePeerBlocked.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePeerHistoryTTL.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePeerLocated.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePeerSettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePendingJoinRequests.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePhoneCall.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePhoneCallSignalingData.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePinnedChannelMessages.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePinnedDialogs.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePinnedMessages.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePrivacy.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatePtsChanged.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateReadChannelDiscussionInbox.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateReadChannelDiscussionOutbox.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateReadChannelInbox.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateReadChannelOutbox.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateReadFeaturedStickers.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateReadHistoryInbox.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateReadHistoryOutbox.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateReadMessagesContents.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateRecentStickers.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateSavedGifs.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateServiceNotification.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateShort.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateShortChatMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateShortMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateShortSentMessage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateStickerSets.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateStickerSetsOrder.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateTheme.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateUserName.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateUserPhone.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateUserPhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateUserStatus.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateUserTyping.html create mode 100644 data/web/blogfork.telegram.org/constructor/updateWebPage.html create mode 100644 data/web/blogfork.telegram.org/constructor/updates.channelDifference create mode 100644 data/web/blogfork.telegram.org/constructor/updates.channelDifferenceEmpty create mode 100644 data/web/blogfork.telegram.org/constructor/updates.channelDifferenceTooLong create mode 100644 data/web/blogfork.telegram.org/constructor/updates.difference create mode 100644 data/web/blogfork.telegram.org/constructor/updates.differenceEmpty create mode 100644 data/web/blogfork.telegram.org/constructor/updates.differenceSlice create mode 100644 data/web/blogfork.telegram.org/constructor/updates.differenceTooLong create mode 100644 data/web/blogfork.telegram.org/constructor/updates.html create mode 100644 data/web/blogfork.telegram.org/constructor/updates.state create mode 100644 data/web/blogfork.telegram.org/constructor/updatesCombined.html create mode 100644 data/web/blogfork.telegram.org/constructor/updatesTooLong.html create mode 100644 data/web/blogfork.telegram.org/constructor/upload.cdnFile create mode 100644 data/web/blogfork.telegram.org/constructor/upload.cdnFileReuploadNeeded create mode 100644 data/web/blogfork.telegram.org/constructor/upload.file create mode 100644 data/web/blogfork.telegram.org/constructor/upload.fileCdnRedirect create mode 100644 data/web/blogfork.telegram.org/constructor/upload.webFile create mode 100644 data/web/blogfork.telegram.org/constructor/urlAuthResultAccepted.html create mode 100644 data/web/blogfork.telegram.org/constructor/urlAuthResultDefault.html create mode 100644 data/web/blogfork.telegram.org/constructor/urlAuthResultRequest.html create mode 100644 data/web/blogfork.telegram.org/constructor/user.html create mode 100644 data/web/blogfork.telegram.org/constructor/userEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/userFull.html create mode 100644 data/web/blogfork.telegram.org/constructor/userProfilePhoto.html create mode 100644 data/web/blogfork.telegram.org/constructor/userProfilePhotoEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/userStatusEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/userStatusLastMonth.html create mode 100644 data/web/blogfork.telegram.org/constructor/userStatusLastWeek.html create mode 100644 data/web/blogfork.telegram.org/constructor/userStatusOffline.html create mode 100644 data/web/blogfork.telegram.org/constructor/userStatusOnline.html create mode 100644 data/web/blogfork.telegram.org/constructor/userStatusRecently.html create mode 100644 data/web/blogfork.telegram.org/constructor/users.userFull create mode 100644 data/web/blogfork.telegram.org/constructor/vector.html create mode 100644 data/web/blogfork.telegram.org/constructor/videoSize.html create mode 100644 data/web/blogfork.telegram.org/constructor/wallPaper.html create mode 100644 data/web/blogfork.telegram.org/constructor/wallPaperNoFile.html create mode 100644 data/web/blogfork.telegram.org/constructor/wallPaperSettings.html create mode 100644 data/web/blogfork.telegram.org/constructor/webAuthorization.html create mode 100644 data/web/blogfork.telegram.org/constructor/webDocument.html create mode 100644 data/web/blogfork.telegram.org/constructor/webDocumentNoProxy.html create mode 100644 data/web/blogfork.telegram.org/constructor/webPage.html create mode 100644 data/web/blogfork.telegram.org/constructor/webPageAttributeTheme.html create mode 100644 data/web/blogfork.telegram.org/constructor/webPageEmpty.html create mode 100644 data/web/blogfork.telegram.org/constructor/webPageNotModified.html create mode 100644 data/web/blogfork.telegram.org/constructor/webPagePending.html create mode 100644 data/web/blogfork.telegram.org/css/bootstrap-extra.css create mode 100644 data/web/blogfork.telegram.org/css/bootstrap.min.css create mode 100644 data/web/blogfork.telegram.org/css/core-widgets.css create mode 100644 data/web/blogfork.telegram.org/css/telegram-extra.css create mode 100644 data/web/blogfork.telegram.org/css/telegram.css create mode 100644 data/web/blogfork.telegram.org/file/464001971/11361/nCsgOjxdfxA.77184.json/a27921641b664931c6.html create mode 100644 data/web/blogfork.telegram.org/import-stickers.html create mode 100644 data/web/blogfork.telegram.org/js/bootstrap.min.js create mode 100644 data/web/blogfork.telegram.org/js/core-widgets.js create mode 100644 data/web/blogfork.telegram.org/js/jquery-ui.min.js create mode 100644 data/web/blogfork.telegram.org/js/jquery.min.js create mode 100644 data/web/blogfork.telegram.org/js/main.js create mode 100644 data/web/blogfork.telegram.org/js/telegram-passport2.js create mode 100644 data/web/blogfork.telegram.org/method/account.acceptAuthorization create mode 100644 data/web/blogfork.telegram.org/method/account.cancelPasswordEmail create mode 100644 data/web/blogfork.telegram.org/method/account.changeAuthorizationSettings create mode 100644 data/web/blogfork.telegram.org/method/account.changePhone create mode 100644 data/web/blogfork.telegram.org/method/account.checkUsername create mode 100644 data/web/blogfork.telegram.org/method/account.confirmPasswordEmail create mode 100644 data/web/blogfork.telegram.org/method/account.confirmPhone create mode 100644 data/web/blogfork.telegram.org/method/account.createTheme create mode 100644 data/web/blogfork.telegram.org/method/account.declinePasswordReset create mode 100644 data/web/blogfork.telegram.org/method/account.deleteAccount create mode 100644 data/web/blogfork.telegram.org/method/account.deleteSecureValue create mode 100644 data/web/blogfork.telegram.org/method/account.finishTakeoutSession create mode 100644 data/web/blogfork.telegram.org/method/account.getAccountTTL create mode 100644 data/web/blogfork.telegram.org/method/account.getAllSecureValues create mode 100644 data/web/blogfork.telegram.org/method/account.getAuthorizationForm create mode 100644 data/web/blogfork.telegram.org/method/account.getAuthorizations create mode 100644 data/web/blogfork.telegram.org/method/account.getAutoDownloadSettings create mode 100644 data/web/blogfork.telegram.org/method/account.getChatThemes create mode 100644 data/web/blogfork.telegram.org/method/account.getContactSignUpNotification create mode 100644 data/web/blogfork.telegram.org/method/account.getContentSettings create mode 100644 data/web/blogfork.telegram.org/method/account.getGlobalPrivacySettings create mode 100644 data/web/blogfork.telegram.org/method/account.getMultiWallPapers create mode 100644 data/web/blogfork.telegram.org/method/account.getNotifyExceptions create mode 100644 data/web/blogfork.telegram.org/method/account.getNotifySettings create mode 100644 data/web/blogfork.telegram.org/method/account.getPassword create mode 100644 data/web/blogfork.telegram.org/method/account.getPasswordSettings create mode 100644 data/web/blogfork.telegram.org/method/account.getPrivacy create mode 100644 data/web/blogfork.telegram.org/method/account.getSecureValue create mode 100644 data/web/blogfork.telegram.org/method/account.getTheme create mode 100644 data/web/blogfork.telegram.org/method/account.getThemes create mode 100644 data/web/blogfork.telegram.org/method/account.getTmpPassword create mode 100644 data/web/blogfork.telegram.org/method/account.getWallPaper create mode 100644 data/web/blogfork.telegram.org/method/account.getWallPapers create mode 100644 data/web/blogfork.telegram.org/method/account.getWebAuthorizations create mode 100644 data/web/blogfork.telegram.org/method/account.initTakeoutSession create mode 100644 data/web/blogfork.telegram.org/method/account.installTheme create mode 100644 data/web/blogfork.telegram.org/method/account.installWallPaper create mode 100644 data/web/blogfork.telegram.org/method/account.registerDevice create mode 100644 data/web/blogfork.telegram.org/method/account.reportPeer create mode 100644 data/web/blogfork.telegram.org/method/account.reportProfilePhoto create mode 100644 data/web/blogfork.telegram.org/method/account.resendPasswordEmail create mode 100644 data/web/blogfork.telegram.org/method/account.resetAuthorization create mode 100644 data/web/blogfork.telegram.org/method/account.resetNotifySettings create mode 100644 data/web/blogfork.telegram.org/method/account.resetPassword create mode 100644 data/web/blogfork.telegram.org/method/account.resetWallPapers create mode 100644 data/web/blogfork.telegram.org/method/account.resetWebAuthorization create mode 100644 data/web/blogfork.telegram.org/method/account.resetWebAuthorizations create mode 100644 data/web/blogfork.telegram.org/method/account.saveAutoDownloadSettings create mode 100644 data/web/blogfork.telegram.org/method/account.saveSecureValue create mode 100644 data/web/blogfork.telegram.org/method/account.saveTheme create mode 100644 data/web/blogfork.telegram.org/method/account.saveWallPaper create mode 100644 data/web/blogfork.telegram.org/method/account.sendChangePhoneCode create mode 100644 data/web/blogfork.telegram.org/method/account.sendConfirmPhoneCode create mode 100644 data/web/blogfork.telegram.org/method/account.sendVerifyEmailCode create mode 100644 data/web/blogfork.telegram.org/method/account.sendVerifyPhoneCode create mode 100644 data/web/blogfork.telegram.org/method/account.setAccountTTL create mode 100644 data/web/blogfork.telegram.org/method/account.setAuthorizationTTL create mode 100644 data/web/blogfork.telegram.org/method/account.setContactSignUpNotification create mode 100644 data/web/blogfork.telegram.org/method/account.setContentSettings create mode 100644 data/web/blogfork.telegram.org/method/account.setGlobalPrivacySettings create mode 100644 data/web/blogfork.telegram.org/method/account.setPrivacy create mode 100644 data/web/blogfork.telegram.org/method/account.unregisterDevice create mode 100644 data/web/blogfork.telegram.org/method/account.updateDeviceLocked create mode 100644 data/web/blogfork.telegram.org/method/account.updateNotifySettings create mode 100644 data/web/blogfork.telegram.org/method/account.updatePasswordSettings create mode 100644 data/web/blogfork.telegram.org/method/account.updateProfile create mode 100644 data/web/blogfork.telegram.org/method/account.updateStatus create mode 100644 data/web/blogfork.telegram.org/method/account.updateTheme create mode 100644 data/web/blogfork.telegram.org/method/account.updateUsername create mode 100644 data/web/blogfork.telegram.org/method/account.uploadTheme create mode 100644 data/web/blogfork.telegram.org/method/account.uploadWallPaper create mode 100644 data/web/blogfork.telegram.org/method/account.verifyEmail create mode 100644 data/web/blogfork.telegram.org/method/account.verifyPhone create mode 100644 data/web/blogfork.telegram.org/method/auth.acceptLoginToken create mode 100644 data/web/blogfork.telegram.org/method/auth.bindTempAuthKey create mode 100644 data/web/blogfork.telegram.org/method/auth.cancelCode create mode 100644 data/web/blogfork.telegram.org/method/auth.checkPassword create mode 100644 data/web/blogfork.telegram.org/method/auth.checkPhone create mode 100644 data/web/blogfork.telegram.org/method/auth.checkRecoveryPassword create mode 100644 data/web/blogfork.telegram.org/method/auth.dropTempAuthKeys create mode 100644 data/web/blogfork.telegram.org/method/auth.exportAuthorization create mode 100644 data/web/blogfork.telegram.org/method/auth.exportLoginToken create mode 100644 data/web/blogfork.telegram.org/method/auth.importAuthorization create mode 100644 data/web/blogfork.telegram.org/method/auth.importBotAuthorization create mode 100644 data/web/blogfork.telegram.org/method/auth.importLoginToken create mode 100644 data/web/blogfork.telegram.org/method/auth.logOut create mode 100644 data/web/blogfork.telegram.org/method/auth.recoverPassword create mode 100644 data/web/blogfork.telegram.org/method/auth.requestPasswordRecovery create mode 100644 data/web/blogfork.telegram.org/method/auth.resendCode create mode 100644 data/web/blogfork.telegram.org/method/auth.resetAuthorizations create mode 100644 data/web/blogfork.telegram.org/method/auth.sendCode create mode 100644 data/web/blogfork.telegram.org/method/auth.sendInvites create mode 100644 data/web/blogfork.telegram.org/method/auth.signIn create mode 100644 data/web/blogfork.telegram.org/method/auth.signUp create mode 100644 data/web/blogfork.telegram.org/method/bots.answerWebhookJSONQuery create mode 100644 data/web/blogfork.telegram.org/method/bots.getBotCommands create mode 100644 data/web/blogfork.telegram.org/method/bots.resetBotCommands create mode 100644 data/web/blogfork.telegram.org/method/bots.sendCustomRequest create mode 100644 data/web/blogfork.telegram.org/method/bots.setBotCommands create mode 100644 data/web/blogfork.telegram.org/method/channels.checkUsername create mode 100644 data/web/blogfork.telegram.org/method/channels.convertToGigagroup create mode 100644 data/web/blogfork.telegram.org/method/channels.createChannel create mode 100644 data/web/blogfork.telegram.org/method/channels.deleteChannel create mode 100644 data/web/blogfork.telegram.org/method/channels.deleteHistory create mode 100644 data/web/blogfork.telegram.org/method/channels.deleteMessages create mode 100644 data/web/blogfork.telegram.org/method/channels.deleteParticipantHistory create mode 100644 data/web/blogfork.telegram.org/method/channels.editAdmin create mode 100644 data/web/blogfork.telegram.org/method/channels.editBanned create mode 100644 data/web/blogfork.telegram.org/method/channels.editCreator create mode 100644 data/web/blogfork.telegram.org/method/channels.editLocation create mode 100644 data/web/blogfork.telegram.org/method/channels.editPhoto create mode 100644 data/web/blogfork.telegram.org/method/channels.editTitle create mode 100644 data/web/blogfork.telegram.org/method/channels.exportMessageLink create mode 100644 data/web/blogfork.telegram.org/method/channels.getAdminLog create mode 100644 data/web/blogfork.telegram.org/method/channels.getAdminedPublicChannels create mode 100644 data/web/blogfork.telegram.org/method/channels.getChannels create mode 100644 data/web/blogfork.telegram.org/method/channels.getFullChannel create mode 100644 data/web/blogfork.telegram.org/method/channels.getGroupsForDiscussion create mode 100644 data/web/blogfork.telegram.org/method/channels.getInactiveChannels create mode 100644 data/web/blogfork.telegram.org/method/channels.getLeftChannels create mode 100644 data/web/blogfork.telegram.org/method/channels.getMessages create mode 100644 data/web/blogfork.telegram.org/method/channels.getParticipant create mode 100644 data/web/blogfork.telegram.org/method/channels.getParticipants create mode 100644 data/web/blogfork.telegram.org/method/channels.getSendAs create mode 100644 data/web/blogfork.telegram.org/method/channels.getSponsoredMessages create mode 100644 data/web/blogfork.telegram.org/method/channels.inviteToChannel create mode 100644 data/web/blogfork.telegram.org/method/channels.joinChannel create mode 100644 data/web/blogfork.telegram.org/method/channels.leaveChannel create mode 100644 data/web/blogfork.telegram.org/method/channels.readHistory create mode 100644 data/web/blogfork.telegram.org/method/channels.readMessageContents create mode 100644 data/web/blogfork.telegram.org/method/channels.reportSpam create mode 100644 data/web/blogfork.telegram.org/method/channels.setDiscussionGroup create mode 100644 data/web/blogfork.telegram.org/method/channels.setStickers create mode 100644 data/web/blogfork.telegram.org/method/channels.togglePreHistoryHidden create mode 100644 data/web/blogfork.telegram.org/method/channels.toggleSignatures create mode 100644 data/web/blogfork.telegram.org/method/channels.toggleSlowMode create mode 100644 data/web/blogfork.telegram.org/method/channels.updateUsername create mode 100644 data/web/blogfork.telegram.org/method/channels.viewSponsoredMessage create mode 100644 data/web/blogfork.telegram.org/method/contacts.acceptContact create mode 100644 data/web/blogfork.telegram.org/method/contacts.addContact create mode 100644 data/web/blogfork.telegram.org/method/contacts.block create mode 100644 data/web/blogfork.telegram.org/method/contacts.blockFromReplies create mode 100644 data/web/blogfork.telegram.org/method/contacts.deleteByPhones create mode 100644 data/web/blogfork.telegram.org/method/contacts.deleteContacts create mode 100644 data/web/blogfork.telegram.org/method/contacts.getBlocked create mode 100644 data/web/blogfork.telegram.org/method/contacts.getContactIDs create mode 100644 data/web/blogfork.telegram.org/method/contacts.getContacts create mode 100644 data/web/blogfork.telegram.org/method/contacts.getLocated create mode 100644 data/web/blogfork.telegram.org/method/contacts.getSaved create mode 100644 data/web/blogfork.telegram.org/method/contacts.getStatuses create mode 100644 data/web/blogfork.telegram.org/method/contacts.getTopPeers create mode 100644 data/web/blogfork.telegram.org/method/contacts.importContacts create mode 100644 data/web/blogfork.telegram.org/method/contacts.resetSaved create mode 100644 data/web/blogfork.telegram.org/method/contacts.resetTopPeerRating create mode 100644 data/web/blogfork.telegram.org/method/contacts.resolvePhone create mode 100644 data/web/blogfork.telegram.org/method/contacts.resolveUsername create mode 100644 data/web/blogfork.telegram.org/method/contacts.search create mode 100644 data/web/blogfork.telegram.org/method/contacts.toggleTopPeers create mode 100644 data/web/blogfork.telegram.org/method/contacts.unblock create mode 100644 data/web/blogfork.telegram.org/method/folders.deleteFolder create mode 100644 data/web/blogfork.telegram.org/method/folders.editPeerFolders create mode 100644 data/web/blogfork.telegram.org/method/help.acceptTermsOfService create mode 100644 data/web/blogfork.telegram.org/method/help.dismissSuggestion create mode 100644 data/web/blogfork.telegram.org/method/help.editUserInfo create mode 100644 data/web/blogfork.telegram.org/method/help.getAppChangelog create mode 100644 data/web/blogfork.telegram.org/method/help.getAppConfig create mode 100644 data/web/blogfork.telegram.org/method/help.getAppUpdate create mode 100644 data/web/blogfork.telegram.org/method/help.getCdnConfig create mode 100644 data/web/blogfork.telegram.org/method/help.getConfig create mode 100644 data/web/blogfork.telegram.org/method/help.getCountriesList create mode 100644 data/web/blogfork.telegram.org/method/help.getDeepLinkInfo create mode 100644 data/web/blogfork.telegram.org/method/help.getInviteText create mode 100644 data/web/blogfork.telegram.org/method/help.getNearestDc create mode 100644 data/web/blogfork.telegram.org/method/help.getPassportConfig create mode 100644 data/web/blogfork.telegram.org/method/help.getPromoData create mode 100644 data/web/blogfork.telegram.org/method/help.getRecentMeUrls create mode 100644 data/web/blogfork.telegram.org/method/help.getSupport create mode 100644 data/web/blogfork.telegram.org/method/help.getSupportName create mode 100644 data/web/blogfork.telegram.org/method/help.getTermsOfServiceUpdate create mode 100644 data/web/blogfork.telegram.org/method/help.getUserInfo create mode 100644 data/web/blogfork.telegram.org/method/help.hidePromoData create mode 100644 data/web/blogfork.telegram.org/method/help.saveAppLog create mode 100644 data/web/blogfork.telegram.org/method/help.setBotUpdatesStatus create mode 100644 data/web/blogfork.telegram.org/method/initConnection.html create mode 100644 data/web/blogfork.telegram.org/method/invokeAfterMsg.html create mode 100644 data/web/blogfork.telegram.org/method/invokeAfterMsgs.html create mode 100644 data/web/blogfork.telegram.org/method/invokeWithLayer.html create mode 100644 data/web/blogfork.telegram.org/method/invokeWithMessagesRange.html create mode 100644 data/web/blogfork.telegram.org/method/invokeWithTakeout.html create mode 100644 data/web/blogfork.telegram.org/method/invokeWithoutUpdates.html create mode 100644 data/web/blogfork.telegram.org/method/langpack.getDifference create mode 100644 data/web/blogfork.telegram.org/method/langpack.getLangPack create mode 100644 data/web/blogfork.telegram.org/method/langpack.getLanguage create mode 100644 data/web/blogfork.telegram.org/method/langpack.getLanguages create mode 100644 data/web/blogfork.telegram.org/method/langpack.getStrings create mode 100644 data/web/blogfork.telegram.org/method/messages.acceptEncryption create mode 100644 data/web/blogfork.telegram.org/method/messages.acceptUrlAuth create mode 100644 data/web/blogfork.telegram.org/method/messages.addChatUser create mode 100644 data/web/blogfork.telegram.org/method/messages.checkChatInvite create mode 100644 data/web/blogfork.telegram.org/method/messages.checkHistoryImport create mode 100644 data/web/blogfork.telegram.org/method/messages.checkHistoryImportPeer create mode 100644 data/web/blogfork.telegram.org/method/messages.clearAllDrafts create mode 100644 data/web/blogfork.telegram.org/method/messages.clearRecentStickers create mode 100644 data/web/blogfork.telegram.org/method/messages.createChat create mode 100644 data/web/blogfork.telegram.org/method/messages.deleteChat create mode 100644 data/web/blogfork.telegram.org/method/messages.deleteChatUser create mode 100644 data/web/blogfork.telegram.org/method/messages.deleteExportedChatInvite create mode 100644 data/web/blogfork.telegram.org/method/messages.deleteHistory create mode 100644 data/web/blogfork.telegram.org/method/messages.deleteMessages create mode 100644 data/web/blogfork.telegram.org/method/messages.deletePhoneCallHistory create mode 100644 data/web/blogfork.telegram.org/method/messages.deleteRevokedExportedChatInvites create mode 100644 data/web/blogfork.telegram.org/method/messages.deleteScheduledMessages create mode 100644 data/web/blogfork.telegram.org/method/messages.discardEncryption create mode 100644 data/web/blogfork.telegram.org/method/messages.editChatAbout create mode 100644 data/web/blogfork.telegram.org/method/messages.editChatAdmin create mode 100644 data/web/blogfork.telegram.org/method/messages.editChatDefaultBannedRights create mode 100644 data/web/blogfork.telegram.org/method/messages.editChatPhoto create mode 100644 data/web/blogfork.telegram.org/method/messages.editChatTitle create mode 100644 data/web/blogfork.telegram.org/method/messages.editExportedChatInvite create mode 100644 data/web/blogfork.telegram.org/method/messages.editInlineBotMessage create mode 100644 data/web/blogfork.telegram.org/method/messages.editMessage create mode 100644 data/web/blogfork.telegram.org/method/messages.exportChatInvite create mode 100644 data/web/blogfork.telegram.org/method/messages.faveSticker create mode 100644 data/web/blogfork.telegram.org/method/messages.forwardMessages create mode 100644 data/web/blogfork.telegram.org/method/messages.getAdminsWithInvites create mode 100644 data/web/blogfork.telegram.org/method/messages.getAllChats create mode 100644 data/web/blogfork.telegram.org/method/messages.getAllDrafts create mode 100644 data/web/blogfork.telegram.org/method/messages.getAllStickers create mode 100644 data/web/blogfork.telegram.org/method/messages.getArchivedStickers create mode 100644 data/web/blogfork.telegram.org/method/messages.getAttachedStickers create mode 100644 data/web/blogfork.telegram.org/method/messages.getAvailableReactions create mode 100644 data/web/blogfork.telegram.org/method/messages.getBotCallbackAnswer create mode 100644 data/web/blogfork.telegram.org/method/messages.getChatInviteImporters create mode 100644 data/web/blogfork.telegram.org/method/messages.getChats create mode 100644 data/web/blogfork.telegram.org/method/messages.getCommonChats create mode 100644 data/web/blogfork.telegram.org/method/messages.getDhConfig create mode 100644 data/web/blogfork.telegram.org/method/messages.getDialogFilters create mode 100644 data/web/blogfork.telegram.org/method/messages.getDialogUnreadMarks create mode 100644 data/web/blogfork.telegram.org/method/messages.getDialogs create mode 100644 data/web/blogfork.telegram.org/method/messages.getDiscussionMessage create mode 100644 data/web/blogfork.telegram.org/method/messages.getDocumentByHash create mode 100644 data/web/blogfork.telegram.org/method/messages.getEmojiKeywords create mode 100644 data/web/blogfork.telegram.org/method/messages.getEmojiKeywordsDifference create mode 100644 data/web/blogfork.telegram.org/method/messages.getEmojiKeywordsLanguages create mode 100644 data/web/blogfork.telegram.org/method/messages.getEmojiURL create mode 100644 data/web/blogfork.telegram.org/method/messages.getExportedChatInvite create mode 100644 data/web/blogfork.telegram.org/method/messages.getExportedChatInvites create mode 100644 data/web/blogfork.telegram.org/method/messages.getFavedStickers create mode 100644 data/web/blogfork.telegram.org/method/messages.getFeaturedStickers create mode 100644 data/web/blogfork.telegram.org/method/messages.getFullChat create mode 100644 data/web/blogfork.telegram.org/method/messages.getGameHighScores create mode 100644 data/web/blogfork.telegram.org/method/messages.getHistory create mode 100644 data/web/blogfork.telegram.org/method/messages.getInlineBotResults create mode 100644 data/web/blogfork.telegram.org/method/messages.getInlineGameHighScores create mode 100644 data/web/blogfork.telegram.org/method/messages.getMaskStickers create mode 100644 data/web/blogfork.telegram.org/method/messages.getMessageEditData create mode 100644 data/web/blogfork.telegram.org/method/messages.getMessageReactionsList create mode 100644 data/web/blogfork.telegram.org/method/messages.getMessageReadParticipants create mode 100644 data/web/blogfork.telegram.org/method/messages.getMessages create mode 100644 data/web/blogfork.telegram.org/method/messages.getMessagesReactions create mode 100644 data/web/blogfork.telegram.org/method/messages.getMessagesViews create mode 100644 data/web/blogfork.telegram.org/method/messages.getOldFeaturedStickers create mode 100644 data/web/blogfork.telegram.org/method/messages.getOnlines create mode 100644 data/web/blogfork.telegram.org/method/messages.getPeerDialogs create mode 100644 data/web/blogfork.telegram.org/method/messages.getPeerSettings create mode 100644 data/web/blogfork.telegram.org/method/messages.getPinnedDialogs create mode 100644 data/web/blogfork.telegram.org/method/messages.getPollResults create mode 100644 data/web/blogfork.telegram.org/method/messages.getPollVotes create mode 100644 data/web/blogfork.telegram.org/method/messages.getRecentLocations create mode 100644 data/web/blogfork.telegram.org/method/messages.getRecentStickers create mode 100644 data/web/blogfork.telegram.org/method/messages.getReplies create mode 100644 data/web/blogfork.telegram.org/method/messages.getSavedGifs create mode 100644 data/web/blogfork.telegram.org/method/messages.getScheduledHistory create mode 100644 data/web/blogfork.telegram.org/method/messages.getScheduledMessages create mode 100644 data/web/blogfork.telegram.org/method/messages.getSearchCounters create mode 100644 data/web/blogfork.telegram.org/method/messages.getSearchResultsCalendar create mode 100644 data/web/blogfork.telegram.org/method/messages.getSearchResultsPositions create mode 100644 data/web/blogfork.telegram.org/method/messages.getSplitRanges create mode 100644 data/web/blogfork.telegram.org/method/messages.getStickerSet create mode 100644 data/web/blogfork.telegram.org/method/messages.getStickers create mode 100644 data/web/blogfork.telegram.org/method/messages.getSuggestedDialogFilters create mode 100644 data/web/blogfork.telegram.org/method/messages.getUnreadMentions create mode 100644 data/web/blogfork.telegram.org/method/messages.getUnreadReactions create mode 100644 data/web/blogfork.telegram.org/method/messages.getWebPage create mode 100644 data/web/blogfork.telegram.org/method/messages.getWebPagePreview create mode 100644 data/web/blogfork.telegram.org/method/messages.hideAllChatJoinRequests create mode 100644 data/web/blogfork.telegram.org/method/messages.hideChatJoinRequest create mode 100644 data/web/blogfork.telegram.org/method/messages.hidePeerSettingsBar create mode 100644 data/web/blogfork.telegram.org/method/messages.importChatInvite create mode 100644 data/web/blogfork.telegram.org/method/messages.initHistoryImport create mode 100644 data/web/blogfork.telegram.org/method/messages.installStickerSet create mode 100644 data/web/blogfork.telegram.org/method/messages.markDialogUnread create mode 100644 data/web/blogfork.telegram.org/method/messages.migrateChat create mode 100644 data/web/blogfork.telegram.org/method/messages.readDiscussion create mode 100644 data/web/blogfork.telegram.org/method/messages.readEncryptedHistory create mode 100644 data/web/blogfork.telegram.org/method/messages.readFeaturedStickers create mode 100644 data/web/blogfork.telegram.org/method/messages.readHistory create mode 100644 data/web/blogfork.telegram.org/method/messages.readMentions create mode 100644 data/web/blogfork.telegram.org/method/messages.readMessageContents create mode 100644 data/web/blogfork.telegram.org/method/messages.readReactions create mode 100644 data/web/blogfork.telegram.org/method/messages.receivedMessages create mode 100644 data/web/blogfork.telegram.org/method/messages.receivedQueue create mode 100644 data/web/blogfork.telegram.org/method/messages.reorderPinnedDialogs create mode 100644 data/web/blogfork.telegram.org/method/messages.reorderStickerSets create mode 100644 data/web/blogfork.telegram.org/method/messages.report create mode 100644 data/web/blogfork.telegram.org/method/messages.reportEncryptedSpam create mode 100644 data/web/blogfork.telegram.org/method/messages.reportSpam create mode 100644 data/web/blogfork.telegram.org/method/messages.requestEncryption create mode 100644 data/web/blogfork.telegram.org/method/messages.requestUrlAuth create mode 100644 data/web/blogfork.telegram.org/method/messages.saveDefaultSendAs create mode 100644 data/web/blogfork.telegram.org/method/messages.saveDraft create mode 100644 data/web/blogfork.telegram.org/method/messages.saveGif create mode 100644 data/web/blogfork.telegram.org/method/messages.saveRecentSticker create mode 100644 data/web/blogfork.telegram.org/method/messages.search create mode 100644 data/web/blogfork.telegram.org/method/messages.searchGlobal create mode 100644 data/web/blogfork.telegram.org/method/messages.searchSentMedia create mode 100644 data/web/blogfork.telegram.org/method/messages.searchStickerSets create mode 100644 data/web/blogfork.telegram.org/method/messages.sendEncrypted create mode 100644 data/web/blogfork.telegram.org/method/messages.sendEncryptedFile create mode 100644 data/web/blogfork.telegram.org/method/messages.sendEncryptedService create mode 100644 data/web/blogfork.telegram.org/method/messages.sendInlineBotResult create mode 100644 data/web/blogfork.telegram.org/method/messages.sendMedia create mode 100644 data/web/blogfork.telegram.org/method/messages.sendMessage create mode 100644 data/web/blogfork.telegram.org/method/messages.sendMultiMedia create mode 100644 data/web/blogfork.telegram.org/method/messages.sendReaction create mode 100644 data/web/blogfork.telegram.org/method/messages.sendScheduledMessages create mode 100644 data/web/blogfork.telegram.org/method/messages.sendScreenshotNotification create mode 100644 data/web/blogfork.telegram.org/method/messages.sendVote create mode 100644 data/web/blogfork.telegram.org/method/messages.setBotCallbackAnswer create mode 100644 data/web/blogfork.telegram.org/method/messages.setBotPrecheckoutResults create mode 100644 data/web/blogfork.telegram.org/method/messages.setBotShippingResults create mode 100644 data/web/blogfork.telegram.org/method/messages.setChatAvailableReactions create mode 100644 data/web/blogfork.telegram.org/method/messages.setChatTheme create mode 100644 data/web/blogfork.telegram.org/method/messages.setDefaultReaction create mode 100644 data/web/blogfork.telegram.org/method/messages.setEncryptedTyping create mode 100644 data/web/blogfork.telegram.org/method/messages.setGameScore create mode 100644 data/web/blogfork.telegram.org/method/messages.setHistoryTTL create mode 100644 data/web/blogfork.telegram.org/method/messages.setInlineBotResults create mode 100644 data/web/blogfork.telegram.org/method/messages.setInlineGameScore create mode 100644 data/web/blogfork.telegram.org/method/messages.setTyping create mode 100644 data/web/blogfork.telegram.org/method/messages.startBot create mode 100644 data/web/blogfork.telegram.org/method/messages.startHistoryImport create mode 100644 data/web/blogfork.telegram.org/method/messages.toggleDialogPin create mode 100644 data/web/blogfork.telegram.org/method/messages.toggleNoForwards create mode 100644 data/web/blogfork.telegram.org/method/messages.toggleStickerSets create mode 100644 data/web/blogfork.telegram.org/method/messages.translateText create mode 100644 data/web/blogfork.telegram.org/method/messages.uninstallStickerSet create mode 100644 data/web/blogfork.telegram.org/method/messages.unpinAllMessages create mode 100644 data/web/blogfork.telegram.org/method/messages.updateDialogFilter create mode 100644 data/web/blogfork.telegram.org/method/messages.updateDialogFiltersOrder create mode 100644 data/web/blogfork.telegram.org/method/messages.updatePinnedMessage create mode 100644 data/web/blogfork.telegram.org/method/messages.uploadEncryptedFile create mode 100644 data/web/blogfork.telegram.org/method/messages.uploadImportedMedia create mode 100644 data/web/blogfork.telegram.org/method/messages.uploadMedia create mode 100644 data/web/blogfork.telegram.org/method/payments.clearSavedInfo create mode 100644 data/web/blogfork.telegram.org/method/payments.getBankCardData create mode 100644 data/web/blogfork.telegram.org/method/payments.getPaymentForm create mode 100644 data/web/blogfork.telegram.org/method/payments.getPaymentReceipt create mode 100644 data/web/blogfork.telegram.org/method/payments.getSavedInfo create mode 100644 data/web/blogfork.telegram.org/method/payments.sendPaymentForm create mode 100644 data/web/blogfork.telegram.org/method/payments.validateRequestedInfo create mode 100644 data/web/blogfork.telegram.org/method/phone.acceptCall create mode 100644 data/web/blogfork.telegram.org/method/phone.checkGroupCall create mode 100644 data/web/blogfork.telegram.org/method/phone.confirmCall create mode 100644 data/web/blogfork.telegram.org/method/phone.createGroupCall create mode 100644 data/web/blogfork.telegram.org/method/phone.discardCall create mode 100644 data/web/blogfork.telegram.org/method/phone.discardGroupCall create mode 100644 data/web/blogfork.telegram.org/method/phone.editGroupCallParticipant create mode 100644 data/web/blogfork.telegram.org/method/phone.editGroupCallTitle create mode 100644 data/web/blogfork.telegram.org/method/phone.exportGroupCallInvite create mode 100644 data/web/blogfork.telegram.org/method/phone.getCallConfig create mode 100644 data/web/blogfork.telegram.org/method/phone.getGroupCall create mode 100644 data/web/blogfork.telegram.org/method/phone.getGroupCallJoinAs create mode 100644 data/web/blogfork.telegram.org/method/phone.getGroupCallStreamChannels create mode 100644 data/web/blogfork.telegram.org/method/phone.getGroupCallStreamRtmpUrl create mode 100644 data/web/blogfork.telegram.org/method/phone.getGroupParticipants create mode 100644 data/web/blogfork.telegram.org/method/phone.inviteToGroupCall create mode 100644 data/web/blogfork.telegram.org/method/phone.joinGroupCall create mode 100644 data/web/blogfork.telegram.org/method/phone.joinGroupCallPresentation create mode 100644 data/web/blogfork.telegram.org/method/phone.leaveGroupCall create mode 100644 data/web/blogfork.telegram.org/method/phone.leaveGroupCallPresentation create mode 100644 data/web/blogfork.telegram.org/method/phone.receivedCall create mode 100644 data/web/blogfork.telegram.org/method/phone.requestCall create mode 100644 data/web/blogfork.telegram.org/method/phone.saveCallDebug create mode 100644 data/web/blogfork.telegram.org/method/phone.saveDefaultGroupCallJoinAs create mode 100644 data/web/blogfork.telegram.org/method/phone.sendSignalingData create mode 100644 data/web/blogfork.telegram.org/method/phone.setCallRating create mode 100644 data/web/blogfork.telegram.org/method/phone.startScheduledGroupCall create mode 100644 data/web/blogfork.telegram.org/method/phone.toggleGroupCallRecord create mode 100644 data/web/blogfork.telegram.org/method/phone.toggleGroupCallSettings create mode 100644 data/web/blogfork.telegram.org/method/phone.toggleGroupCallStartSubscription create mode 100644 data/web/blogfork.telegram.org/method/photos.deletePhotos create mode 100644 data/web/blogfork.telegram.org/method/photos.getUserPhotos create mode 100644 data/web/blogfork.telegram.org/method/photos.updateProfilePhoto create mode 100644 data/web/blogfork.telegram.org/method/photos.uploadProfilePhoto create mode 100644 data/web/blogfork.telegram.org/method/stats.getBroadcastStats create mode 100644 data/web/blogfork.telegram.org/method/stats.getMegagroupStats create mode 100644 data/web/blogfork.telegram.org/method/stats.getMessagePublicForwards create mode 100644 data/web/blogfork.telegram.org/method/stats.getMessageStats create mode 100644 data/web/blogfork.telegram.org/method/stats.loadAsyncGraph create mode 100644 data/web/blogfork.telegram.org/method/stickers.addStickerToSet create mode 100644 data/web/blogfork.telegram.org/method/stickers.changeStickerPosition create mode 100644 data/web/blogfork.telegram.org/method/stickers.checkShortName create mode 100644 data/web/blogfork.telegram.org/method/stickers.createStickerSet create mode 100644 data/web/blogfork.telegram.org/method/stickers.removeStickerFromSet create mode 100644 data/web/blogfork.telegram.org/method/stickers.setStickerSetThumb create mode 100644 data/web/blogfork.telegram.org/method/stickers.suggestShortName create mode 100644 data/web/blogfork.telegram.org/method/updates.getChannelDifference create mode 100644 data/web/blogfork.telegram.org/method/updates.getDifference create mode 100644 data/web/blogfork.telegram.org/method/updates.getState create mode 100644 data/web/blogfork.telegram.org/method/upload.getCdnFile create mode 100644 data/web/blogfork.telegram.org/method/upload.getCdnFileHashes create mode 100644 data/web/blogfork.telegram.org/method/upload.getFile create mode 100644 data/web/blogfork.telegram.org/method/upload.getFileHashes create mode 100644 data/web/blogfork.telegram.org/method/upload.getWebFile create mode 100644 data/web/blogfork.telegram.org/method/upload.reuploadCdnFile create mode 100644 data/web/blogfork.telegram.org/method/upload.saveBigFilePart create mode 100644 data/web/blogfork.telegram.org/method/upload.saveFilePart create mode 100644 data/web/blogfork.telegram.org/method/users.getFullUser create mode 100644 data/web/blogfork.telegram.org/method/users.getUsers create mode 100644 data/web/blogfork.telegram.org/method/users.setSecureValueErrors create mode 100644 data/web/blogfork.telegram.org/methods.html create mode 100644 data/web/blogfork.telegram.org/mtproto.html create mode 100644 data/web/blogfork.telegram.org/mtproto/TL-abstract-types.html create mode 100644 data/web/blogfork.telegram.org/mtproto/TL-combinators.html create mode 100644 data/web/blogfork.telegram.org/mtproto/TL-dependent.html create mode 100644 data/web/blogfork.telegram.org/mtproto/TL-formal.html create mode 100644 data/web/blogfork.telegram.org/mtproto/TL-optargs.html create mode 100644 data/web/blogfork.telegram.org/mtproto/TL-patterns.html create mode 100644 data/web/blogfork.telegram.org/mtproto/TL-polymorph.html create mode 100644 data/web/blogfork.telegram.org/mtproto/TL-tl.html create mode 100644 data/web/blogfork.telegram.org/mtproto/TL-types.html create mode 100644 data/web/blogfork.telegram.org/mtproto/TL.html create mode 100644 data/web/blogfork.telegram.org/mtproto/auth_key.html create mode 100644 data/web/blogfork.telegram.org/mtproto/description.html create mode 100644 data/web/blogfork.telegram.org/mtproto/description_v1.html create mode 100644 data/web/blogfork.telegram.org/mtproto/mtproto-transports.html create mode 100644 data/web/blogfork.telegram.org/mtproto/samples-auth_key.html create mode 100644 data/web/blogfork.telegram.org/mtproto/security_guidelines.html create mode 100644 data/web/blogfork.telegram.org/mtproto/security_guidelines_v1.html create mode 100644 data/web/blogfork.telegram.org/mtproto/serialize.html create mode 100644 data/web/blogfork.telegram.org/mtproto/service_messages.html create mode 100644 data/web/blogfork.telegram.org/mtproto/service_messages_about_messages.html create mode 100644 data/web/blogfork.telegram.org/mtproto_v1.html create mode 100644 data/web/blogfork.telegram.org/passport.html create mode 100644 data/web/blogfork.telegram.org/passport/encryption.html create mode 100644 data/web/blogfork.telegram.org/passport/example.html create mode 100644 data/web/blogfork.telegram.org/passport/sdk-android.html create mode 100644 data/web/blogfork.telegram.org/passport/sdk-ios-mac.html create mode 100644 data/web/blogfork.telegram.org/passport/sdk-javascript.html create mode 100644 data/web/blogfork.telegram.org/schema.html create mode 100644 data/web/blogfork.telegram.org/schema/end-to-end-json.html create mode 100644 data/web/blogfork.telegram.org/schema/end-to-end.html create mode 100644 data/web/blogfork.telegram.org/schema/json.html create mode 100644 data/web/blogfork.telegram.org/schema/mtproto-json.html create mode 100644 data/web/blogfork.telegram.org/schema/mtproto.html create mode 100644 data/web/blogfork.telegram.org/stickers.html create mode 100644 data/web/blogfork.telegram.org/themes.html create mode 100644 data/web/blogfork.telegram.org/type/AccountDaysTTL.html create mode 100644 data/web/blogfork.telegram.org/type/Authorization.html create mode 100644 data/web/blogfork.telegram.org/type/AutoDownloadSettings.html create mode 100644 data/web/blogfork.telegram.org/type/AvailableReaction.html create mode 100644 data/web/blogfork.telegram.org/type/BankCardOpenUrl.html create mode 100644 data/web/blogfork.telegram.org/type/BaseTheme.html create mode 100644 data/web/blogfork.telegram.org/type/Bool.html create mode 100644 data/web/blogfork.telegram.org/type/BotCommand.html create mode 100644 data/web/blogfork.telegram.org/type/BotCommandScope.html create mode 100644 data/web/blogfork.telegram.org/type/BotInfo.html create mode 100644 data/web/blogfork.telegram.org/type/BotInlineMessage.html create mode 100644 data/web/blogfork.telegram.org/type/BotInlineResult.html create mode 100644 data/web/blogfork.telegram.org/type/CdnConfig.html create mode 100644 data/web/blogfork.telegram.org/type/CdnPublicKey.html create mode 100644 data/web/blogfork.telegram.org/type/ChannelAdminLogEvent.html create mode 100644 data/web/blogfork.telegram.org/type/ChannelAdminLogEventAction.html create mode 100644 data/web/blogfork.telegram.org/type/ChannelAdminLogEventsFilter.html create mode 100644 data/web/blogfork.telegram.org/type/ChannelLocation.html create mode 100644 data/web/blogfork.telegram.org/type/ChannelMessagesFilter.html create mode 100644 data/web/blogfork.telegram.org/type/ChannelParticipant.html create mode 100644 data/web/blogfork.telegram.org/type/ChannelParticipantsFilter.html create mode 100644 data/web/blogfork.telegram.org/type/Chat.html create mode 100644 data/web/blogfork.telegram.org/type/ChatAdminRights.html create mode 100644 data/web/blogfork.telegram.org/type/ChatAdminWithInvites.html create mode 100644 data/web/blogfork.telegram.org/type/ChatBannedRights.html create mode 100644 data/web/blogfork.telegram.org/type/ChatFull.html create mode 100644 data/web/blogfork.telegram.org/type/ChatInvite.html create mode 100644 data/web/blogfork.telegram.org/type/ChatInviteImporter.html create mode 100644 data/web/blogfork.telegram.org/type/ChatOnlines.html create mode 100644 data/web/blogfork.telegram.org/type/ChatParticipant.html create mode 100644 data/web/blogfork.telegram.org/type/ChatParticipants.html create mode 100644 data/web/blogfork.telegram.org/type/ChatPhoto.html create mode 100644 data/web/blogfork.telegram.org/type/CodeSettings.html create mode 100644 data/web/blogfork.telegram.org/type/Config.html create mode 100644 data/web/blogfork.telegram.org/type/Contact.html create mode 100644 data/web/blogfork.telegram.org/type/ContactStatus.html create mode 100644 data/web/blogfork.telegram.org/type/DataJSON.html create mode 100644 data/web/blogfork.telegram.org/type/DcOption.html create mode 100644 data/web/blogfork.telegram.org/type/DecryptedDataBlock.html create mode 100644 data/web/blogfork.telegram.org/type/DecryptedMessage.html create mode 100644 data/web/blogfork.telegram.org/type/DecryptedMessageAction.html create mode 100644 data/web/blogfork.telegram.org/type/DecryptedMessageLayer.html create mode 100644 data/web/blogfork.telegram.org/type/DecryptedMessageMedia.html create mode 100644 data/web/blogfork.telegram.org/type/Dialog.html create mode 100644 data/web/blogfork.telegram.org/type/DialogFilter.html create mode 100644 data/web/blogfork.telegram.org/type/DialogFilterSuggested.html create mode 100644 data/web/blogfork.telegram.org/type/DialogPeer.html create mode 100644 data/web/blogfork.telegram.org/type/Document.html create mode 100644 data/web/blogfork.telegram.org/type/DocumentAttribute.html create mode 100644 data/web/blogfork.telegram.org/type/DraftMessage.html create mode 100644 data/web/blogfork.telegram.org/type/EmojiKeyword.html create mode 100644 data/web/blogfork.telegram.org/type/EmojiKeywordsDifference.html create mode 100644 data/web/blogfork.telegram.org/type/EmojiLanguage.html create mode 100644 data/web/blogfork.telegram.org/type/EmojiURL.html create mode 100644 data/web/blogfork.telegram.org/type/EncryptedChat.html create mode 100644 data/web/blogfork.telegram.org/type/EncryptedFile.html create mode 100644 data/web/blogfork.telegram.org/type/EncryptedMessage.html create mode 100644 data/web/blogfork.telegram.org/type/Error.html create mode 100644 data/web/blogfork.telegram.org/type/ExportedChatInvite.html create mode 100644 data/web/blogfork.telegram.org/type/ExportedMessageLink.html create mode 100644 data/web/blogfork.telegram.org/type/FileHash.html create mode 100644 data/web/blogfork.telegram.org/type/FileLocation.html create mode 100644 data/web/blogfork.telegram.org/type/Folder.html create mode 100644 data/web/blogfork.telegram.org/type/FolderPeer.html create mode 100644 data/web/blogfork.telegram.org/type/Game.html create mode 100644 data/web/blogfork.telegram.org/type/GeoPoint.html create mode 100644 data/web/blogfork.telegram.org/type/GlobalPrivacySettings.html create mode 100644 data/web/blogfork.telegram.org/type/GroupCall.html create mode 100644 data/web/blogfork.telegram.org/type/GroupCallParticipant.html create mode 100644 data/web/blogfork.telegram.org/type/GroupCallParticipantVideo.html create mode 100644 data/web/blogfork.telegram.org/type/GroupCallParticipantVideoSourceGroup.html create mode 100644 data/web/blogfork.telegram.org/type/GroupCallStreamChannel.html create mode 100644 data/web/blogfork.telegram.org/type/HighScore.html create mode 100644 data/web/blogfork.telegram.org/type/ImportedContact.html create mode 100644 data/web/blogfork.telegram.org/type/InlineBotSwitchPM.html create mode 100644 data/web/blogfork.telegram.org/type/InlineQueryPeerType.html create mode 100644 data/web/blogfork.telegram.org/type/InputAppEvent.html create mode 100644 data/web/blogfork.telegram.org/type/InputBotInlineMessage.html create mode 100644 data/web/blogfork.telegram.org/type/InputBotInlineMessageID.html create mode 100644 data/web/blogfork.telegram.org/type/InputBotInlineResult.html create mode 100644 data/web/blogfork.telegram.org/type/InputChannel.html create mode 100644 data/web/blogfork.telegram.org/type/InputChatPhoto.html create mode 100644 data/web/blogfork.telegram.org/type/InputCheckPasswordSRP.html create mode 100644 data/web/blogfork.telegram.org/type/InputClientProxy.html create mode 100644 data/web/blogfork.telegram.org/type/InputContact.html create mode 100644 data/web/blogfork.telegram.org/type/InputDialogPeer.html create mode 100644 data/web/blogfork.telegram.org/type/InputDocument.html create mode 100644 data/web/blogfork.telegram.org/type/InputEncryptedChat.html create mode 100644 data/web/blogfork.telegram.org/type/InputEncryptedFile.html create mode 100644 data/web/blogfork.telegram.org/type/InputFile.html create mode 100644 data/web/blogfork.telegram.org/type/InputFileLocation.html create mode 100644 data/web/blogfork.telegram.org/type/InputFolderPeer.html create mode 100644 data/web/blogfork.telegram.org/type/InputGame.html create mode 100644 data/web/blogfork.telegram.org/type/InputGeoPoint.html create mode 100644 data/web/blogfork.telegram.org/type/InputGroupCall.html create mode 100644 data/web/blogfork.telegram.org/type/InputMedia.html create mode 100644 data/web/blogfork.telegram.org/type/InputMessage.html create mode 100644 data/web/blogfork.telegram.org/type/InputNotifyPeer.html create mode 100644 data/web/blogfork.telegram.org/type/InputPaymentCredentials.html create mode 100644 data/web/blogfork.telegram.org/type/InputPeer.html create mode 100644 data/web/blogfork.telegram.org/type/InputPeerNotifySettings.html create mode 100644 data/web/blogfork.telegram.org/type/InputPhoneCall.html create mode 100644 data/web/blogfork.telegram.org/type/InputPhoto.html create mode 100644 data/web/blogfork.telegram.org/type/InputPrivacyKey.html create mode 100644 data/web/blogfork.telegram.org/type/InputPrivacyRule.html create mode 100644 data/web/blogfork.telegram.org/type/InputSecureFile.html create mode 100644 data/web/blogfork.telegram.org/type/InputSecureValue.html create mode 100644 data/web/blogfork.telegram.org/type/InputSingleMedia.html create mode 100644 data/web/blogfork.telegram.org/type/InputStickerSet.html create mode 100644 data/web/blogfork.telegram.org/type/InputStickerSetItem.html create mode 100644 data/web/blogfork.telegram.org/type/InputStickeredMedia.html create mode 100644 data/web/blogfork.telegram.org/type/InputTheme.html create mode 100644 data/web/blogfork.telegram.org/type/InputThemeSettings.html create mode 100644 data/web/blogfork.telegram.org/type/InputUser.html create mode 100644 data/web/blogfork.telegram.org/type/InputWallPaper.html create mode 100644 data/web/blogfork.telegram.org/type/InputWebDocument.html create mode 100644 data/web/blogfork.telegram.org/type/InputWebFileLocation.html create mode 100644 data/web/blogfork.telegram.org/type/Invoice.html create mode 100644 data/web/blogfork.telegram.org/type/JSONObjectValue.html create mode 100644 data/web/blogfork.telegram.org/type/JSONValue.html create mode 100644 data/web/blogfork.telegram.org/type/KeyboardButton.html create mode 100644 data/web/blogfork.telegram.org/type/KeyboardButtonRow.html create mode 100644 data/web/blogfork.telegram.org/type/LabeledPrice.html create mode 100644 data/web/blogfork.telegram.org/type/LangPackDifference.html create mode 100644 data/web/blogfork.telegram.org/type/LangPackLanguage.html create mode 100644 data/web/blogfork.telegram.org/type/LangPackString.html create mode 100644 data/web/blogfork.telegram.org/type/MaskCoords.html create mode 100644 data/web/blogfork.telegram.org/type/Message.html create mode 100644 data/web/blogfork.telegram.org/type/MessageAction.html create mode 100644 data/web/blogfork.telegram.org/type/MessageEntity.html create mode 100644 data/web/blogfork.telegram.org/type/MessageFwdHeader.html create mode 100644 data/web/blogfork.telegram.org/type/MessageInteractionCounters.html create mode 100644 data/web/blogfork.telegram.org/type/MessageMedia.html create mode 100644 data/web/blogfork.telegram.org/type/MessagePeerReaction.html create mode 100644 data/web/blogfork.telegram.org/type/MessageRange.html create mode 100644 data/web/blogfork.telegram.org/type/MessageReactions.html create mode 100644 data/web/blogfork.telegram.org/type/MessageReplies.html create mode 100644 data/web/blogfork.telegram.org/type/MessageReplyHeader.html create mode 100644 data/web/blogfork.telegram.org/type/MessageUserReaction.html create mode 100644 data/web/blogfork.telegram.org/type/MessageUserVote.html create mode 100644 data/web/blogfork.telegram.org/type/MessageViews.html create mode 100644 data/web/blogfork.telegram.org/type/MessagesFilter.html create mode 100644 data/web/blogfork.telegram.org/type/NearestDc.html create mode 100644 data/web/blogfork.telegram.org/type/NotifyPeer.html create mode 100644 data/web/blogfork.telegram.org/type/Null.html create mode 100644 data/web/blogfork.telegram.org/type/Page.html create mode 100644 data/web/blogfork.telegram.org/type/PageBlock.html create mode 100644 data/web/blogfork.telegram.org/type/PageCaption.html create mode 100644 data/web/blogfork.telegram.org/type/PageListItem.html create mode 100644 data/web/blogfork.telegram.org/type/PageListOrderedItem.html create mode 100644 data/web/blogfork.telegram.org/type/PageRelatedArticle.html create mode 100644 data/web/blogfork.telegram.org/type/PageTableCell.html create mode 100644 data/web/blogfork.telegram.org/type/PageTableRow.html create mode 100644 data/web/blogfork.telegram.org/type/PasswordKdfAlgo.html create mode 100644 data/web/blogfork.telegram.org/type/PaymentCharge.html create mode 100644 data/web/blogfork.telegram.org/type/PaymentRequestedInfo.html create mode 100644 data/web/blogfork.telegram.org/type/PaymentSavedCredentials.html create mode 100644 data/web/blogfork.telegram.org/type/Peer.html create mode 100644 data/web/blogfork.telegram.org/type/PeerBlocked.html create mode 100644 data/web/blogfork.telegram.org/type/PeerLocated.html create mode 100644 data/web/blogfork.telegram.org/type/PeerNotifySettings.html create mode 100644 data/web/blogfork.telegram.org/type/PeerSettings.html create mode 100644 data/web/blogfork.telegram.org/type/PhoneCall.html create mode 100644 data/web/blogfork.telegram.org/type/PhoneCallDiscardReason.html create mode 100644 data/web/blogfork.telegram.org/type/PhoneCallProtocol.html create mode 100644 data/web/blogfork.telegram.org/type/PhoneConnection.html create mode 100644 data/web/blogfork.telegram.org/type/Photo.html create mode 100644 data/web/blogfork.telegram.org/type/PhotoSize.html create mode 100644 data/web/blogfork.telegram.org/type/Poll.html create mode 100644 data/web/blogfork.telegram.org/type/PollAnswer.html create mode 100644 data/web/blogfork.telegram.org/type/PollAnswerVoters.html create mode 100644 data/web/blogfork.telegram.org/type/PollResults.html create mode 100644 data/web/blogfork.telegram.org/type/PopularContact.html create mode 100644 data/web/blogfork.telegram.org/type/PostAddress.html create mode 100644 data/web/blogfork.telegram.org/type/PrivacyKey.html create mode 100644 data/web/blogfork.telegram.org/type/PrivacyRule.html create mode 100644 data/web/blogfork.telegram.org/type/ReactionCount.html create mode 100644 data/web/blogfork.telegram.org/type/ReceivedNotifyMessage.html create mode 100644 data/web/blogfork.telegram.org/type/RecentMeUrl.html create mode 100644 data/web/blogfork.telegram.org/type/ReplyMarkup.html create mode 100644 data/web/blogfork.telegram.org/type/ReportReason.html create mode 100644 data/web/blogfork.telegram.org/type/RestrictionReason.html create mode 100644 data/web/blogfork.telegram.org/type/RichText.html create mode 100644 data/web/blogfork.telegram.org/type/SavedContact.html create mode 100644 data/web/blogfork.telegram.org/type/SearchResultsCalendarPeriod.html create mode 100644 data/web/blogfork.telegram.org/type/SearchResultsPosition.html create mode 100644 data/web/blogfork.telegram.org/type/SecureCredentialsEncrypted.html create mode 100644 data/web/blogfork.telegram.org/type/SecureData.html create mode 100644 data/web/blogfork.telegram.org/type/SecureFile.html create mode 100644 data/web/blogfork.telegram.org/type/SecurePasswordKdfAlgo.html create mode 100644 data/web/blogfork.telegram.org/type/SecurePlainData.html create mode 100644 data/web/blogfork.telegram.org/type/SecureRequiredType.html create mode 100644 data/web/blogfork.telegram.org/type/SecureSecretSettings.html create mode 100644 data/web/blogfork.telegram.org/type/SecureValue.html create mode 100644 data/web/blogfork.telegram.org/type/SecureValueError.html create mode 100644 data/web/blogfork.telegram.org/type/SecureValueHash.html create mode 100644 data/web/blogfork.telegram.org/type/SecureValueType.html create mode 100644 data/web/blogfork.telegram.org/type/SendMessageAction.html create mode 100644 data/web/blogfork.telegram.org/type/ShippingOption.html create mode 100644 data/web/blogfork.telegram.org/type/SponsoredMessage.html create mode 100644 data/web/blogfork.telegram.org/type/StatsAbsValueAndPrev.html create mode 100644 data/web/blogfork.telegram.org/type/StatsDateRangeDays.html create mode 100644 data/web/blogfork.telegram.org/type/StatsGraph.html create mode 100644 data/web/blogfork.telegram.org/type/StatsGroupTopAdmin.html create mode 100644 data/web/blogfork.telegram.org/type/StatsGroupTopInviter.html create mode 100644 data/web/blogfork.telegram.org/type/StatsGroupTopPoster.html create mode 100644 data/web/blogfork.telegram.org/type/StatsPercentValue.html create mode 100644 data/web/blogfork.telegram.org/type/StatsURL.html create mode 100644 data/web/blogfork.telegram.org/type/StickerPack.html create mode 100644 data/web/blogfork.telegram.org/type/StickerSet.html create mode 100644 data/web/blogfork.telegram.org/type/StickerSetCovered.html create mode 100644 data/web/blogfork.telegram.org/type/Theme.html create mode 100644 data/web/blogfork.telegram.org/type/ThemeSettings.html create mode 100644 data/web/blogfork.telegram.org/type/TopPeer.html create mode 100644 data/web/blogfork.telegram.org/type/TopPeerCategory.html create mode 100644 data/web/blogfork.telegram.org/type/TopPeerCategoryPeers.html create mode 100644 data/web/blogfork.telegram.org/type/True.html create mode 100644 data/web/blogfork.telegram.org/type/Update.html create mode 100644 data/web/blogfork.telegram.org/type/Updates.html create mode 100644 data/web/blogfork.telegram.org/type/UrlAuthResult.html create mode 100644 data/web/blogfork.telegram.org/type/User.html create mode 100644 data/web/blogfork.telegram.org/type/UserFull.html create mode 100644 data/web/blogfork.telegram.org/type/UserProfilePhoto.html create mode 100644 data/web/blogfork.telegram.org/type/UserStatus.html create mode 100644 data/web/blogfork.telegram.org/type/Vector t.html create mode 100644 data/web/blogfork.telegram.org/type/VideoSize.html create mode 100644 data/web/blogfork.telegram.org/type/WallPaper.html create mode 100644 data/web/blogfork.telegram.org/type/WallPaperSettings.html create mode 100644 data/web/blogfork.telegram.org/type/WebAuthorization.html create mode 100644 data/web/blogfork.telegram.org/type/WebDocument.html create mode 100644 data/web/blogfork.telegram.org/type/WebPage.html create mode 100644 data/web/blogfork.telegram.org/type/WebPageAttribute.html create mode 100644 data/web/blogfork.telegram.org/type/account.AuthorizationForm create mode 100644 data/web/blogfork.telegram.org/type/account.Authorizations create mode 100644 data/web/blogfork.telegram.org/type/account.AutoDownloadSettings create mode 100644 data/web/blogfork.telegram.org/type/account.ChatThemes create mode 100644 data/web/blogfork.telegram.org/type/account.ContentSettings create mode 100644 data/web/blogfork.telegram.org/type/account.Password create mode 100644 data/web/blogfork.telegram.org/type/account.PasswordInputSettings create mode 100644 data/web/blogfork.telegram.org/type/account.PasswordSettings create mode 100644 data/web/blogfork.telegram.org/type/account.PrivacyRules create mode 100644 data/web/blogfork.telegram.org/type/account.ResetPasswordResult create mode 100644 data/web/blogfork.telegram.org/type/account.SentEmailCode create mode 100644 data/web/blogfork.telegram.org/type/account.Takeout create mode 100644 data/web/blogfork.telegram.org/type/account.Themes create mode 100644 data/web/blogfork.telegram.org/type/account.TmpPassword create mode 100644 data/web/blogfork.telegram.org/type/account.WallPapers create mode 100644 data/web/blogfork.telegram.org/type/account.WebAuthorizations create mode 100644 data/web/blogfork.telegram.org/type/auth.Authorization create mode 100644 data/web/blogfork.telegram.org/type/auth.CheckedPhone create mode 100644 data/web/blogfork.telegram.org/type/auth.CodeType create mode 100644 data/web/blogfork.telegram.org/type/auth.ExportedAuthorization create mode 100644 data/web/blogfork.telegram.org/type/auth.LoggedOut create mode 100644 data/web/blogfork.telegram.org/type/auth.LoginToken create mode 100644 data/web/blogfork.telegram.org/type/auth.PasswordRecovery create mode 100644 data/web/blogfork.telegram.org/type/auth.SentCode create mode 100644 data/web/blogfork.telegram.org/type/auth.SentCodeType create mode 100644 data/web/blogfork.telegram.org/type/bytes.html create mode 100644 data/web/blogfork.telegram.org/type/channels.AdminLogResults create mode 100644 data/web/blogfork.telegram.org/type/channels.ChannelParticipant create mode 100644 data/web/blogfork.telegram.org/type/channels.ChannelParticipants create mode 100644 data/web/blogfork.telegram.org/type/channels.SendAsPeers create mode 100644 data/web/blogfork.telegram.org/type/contacts.Blocked create mode 100644 data/web/blogfork.telegram.org/type/contacts.Contacts create mode 100644 data/web/blogfork.telegram.org/type/contacts.Found create mode 100644 data/web/blogfork.telegram.org/type/contacts.ImportedContacts create mode 100644 data/web/blogfork.telegram.org/type/contacts.ResolvedPeer create mode 100644 data/web/blogfork.telegram.org/type/contacts.TopPeers create mode 100644 data/web/blogfork.telegram.org/type/double.html create mode 100644 data/web/blogfork.telegram.org/type/help.AppUpdate create mode 100644 data/web/blogfork.telegram.org/type/help.CountriesList create mode 100644 data/web/blogfork.telegram.org/type/help.Country create mode 100644 data/web/blogfork.telegram.org/type/help.CountryCode create mode 100644 data/web/blogfork.telegram.org/type/help.DeepLinkInfo create mode 100644 data/web/blogfork.telegram.org/type/help.InviteText create mode 100644 data/web/blogfork.telegram.org/type/help.PassportConfig create mode 100644 data/web/blogfork.telegram.org/type/help.PromoData create mode 100644 data/web/blogfork.telegram.org/type/help.RecentMeUrls create mode 100644 data/web/blogfork.telegram.org/type/help.Support create mode 100644 data/web/blogfork.telegram.org/type/help.SupportName create mode 100644 data/web/blogfork.telegram.org/type/help.TermsOfService create mode 100644 data/web/blogfork.telegram.org/type/help.TermsOfServiceUpdate create mode 100644 data/web/blogfork.telegram.org/type/help.UserInfo create mode 100644 data/web/blogfork.telegram.org/type/int.html create mode 100644 data/web/blogfork.telegram.org/type/long.html create mode 100644 data/web/blogfork.telegram.org/type/messages.AffectedFoundMessages create mode 100644 data/web/blogfork.telegram.org/type/messages.AffectedHistory create mode 100644 data/web/blogfork.telegram.org/type/messages.AffectedMessages create mode 100644 data/web/blogfork.telegram.org/type/messages.AllStickers create mode 100644 data/web/blogfork.telegram.org/type/messages.ArchivedStickers create mode 100644 data/web/blogfork.telegram.org/type/messages.AvailableReactions create mode 100644 data/web/blogfork.telegram.org/type/messages.BotCallbackAnswer create mode 100644 data/web/blogfork.telegram.org/type/messages.BotResults create mode 100644 data/web/blogfork.telegram.org/type/messages.ChatAdminsWithInvites create mode 100644 data/web/blogfork.telegram.org/type/messages.ChatFull create mode 100644 data/web/blogfork.telegram.org/type/messages.ChatInviteImporters create mode 100644 data/web/blogfork.telegram.org/type/messages.Chats create mode 100644 data/web/blogfork.telegram.org/type/messages.CheckedHistoryImportPeer create mode 100644 data/web/blogfork.telegram.org/type/messages.DhConfig create mode 100644 data/web/blogfork.telegram.org/type/messages.Dialogs create mode 100644 data/web/blogfork.telegram.org/type/messages.DiscussionMessage create mode 100644 data/web/blogfork.telegram.org/type/messages.ExportedChatInvite create mode 100644 data/web/blogfork.telegram.org/type/messages.ExportedChatInvites create mode 100644 data/web/blogfork.telegram.org/type/messages.FavedStickers create mode 100644 data/web/blogfork.telegram.org/type/messages.FeaturedStickers create mode 100644 data/web/blogfork.telegram.org/type/messages.FoundStickerSets create mode 100644 data/web/blogfork.telegram.org/type/messages.HighScores create mode 100644 data/web/blogfork.telegram.org/type/messages.HistoryImport create mode 100644 data/web/blogfork.telegram.org/type/messages.HistoryImportParsed create mode 100644 data/web/blogfork.telegram.org/type/messages.InactiveChats create mode 100644 data/web/blogfork.telegram.org/type/messages.MessageEditData create mode 100644 data/web/blogfork.telegram.org/type/messages.MessageReactionsList create mode 100644 data/web/blogfork.telegram.org/type/messages.MessageViews create mode 100644 data/web/blogfork.telegram.org/type/messages.Messages create mode 100644 data/web/blogfork.telegram.org/type/messages.PeerDialogs create mode 100644 data/web/blogfork.telegram.org/type/messages.PeerSettings create mode 100644 data/web/blogfork.telegram.org/type/messages.RecentStickers create mode 100644 data/web/blogfork.telegram.org/type/messages.SavedGifs create mode 100644 data/web/blogfork.telegram.org/type/messages.SearchCounter create mode 100644 data/web/blogfork.telegram.org/type/messages.SearchResultsCalendar create mode 100644 data/web/blogfork.telegram.org/type/messages.SearchResultsPositions create mode 100644 data/web/blogfork.telegram.org/type/messages.SentEncryptedMessage create mode 100644 data/web/blogfork.telegram.org/type/messages.SponsoredMessages create mode 100644 data/web/blogfork.telegram.org/type/messages.StickerSet create mode 100644 data/web/blogfork.telegram.org/type/messages.StickerSetInstallResult create mode 100644 data/web/blogfork.telegram.org/type/messages.Stickers create mode 100644 data/web/blogfork.telegram.org/type/messages.TranslatedText create mode 100644 data/web/blogfork.telegram.org/type/messages.VotesList create mode 100644 data/web/blogfork.telegram.org/type/payments.BankCardData create mode 100644 data/web/blogfork.telegram.org/type/payments.PaymentForm create mode 100644 data/web/blogfork.telegram.org/type/payments.PaymentReceipt create mode 100644 data/web/blogfork.telegram.org/type/payments.PaymentResult create mode 100644 data/web/blogfork.telegram.org/type/payments.SavedInfo create mode 100644 data/web/blogfork.telegram.org/type/payments.ValidatedRequestedInfo create mode 100644 data/web/blogfork.telegram.org/type/phone.ExportedGroupCallInvite create mode 100644 data/web/blogfork.telegram.org/type/phone.GroupCall create mode 100644 data/web/blogfork.telegram.org/type/phone.GroupCallStreamChannels create mode 100644 data/web/blogfork.telegram.org/type/phone.GroupCallStreamRtmpUrl create mode 100644 data/web/blogfork.telegram.org/type/phone.GroupParticipants create mode 100644 data/web/blogfork.telegram.org/type/phone.JoinAsPeers create mode 100644 data/web/blogfork.telegram.org/type/phone.PhoneCall create mode 100644 data/web/blogfork.telegram.org/type/photos.Photo create mode 100644 data/web/blogfork.telegram.org/type/photos.Photos create mode 100644 data/web/blogfork.telegram.org/type/stats.BroadcastStats create mode 100644 data/web/blogfork.telegram.org/type/stats.MegagroupStats create mode 100644 data/web/blogfork.telegram.org/type/stats.MessageStats create mode 100644 data/web/blogfork.telegram.org/type/stickers.SuggestedShortName create mode 100644 data/web/blogfork.telegram.org/type/storage.FileType create mode 100644 data/web/blogfork.telegram.org/type/string.html create mode 100644 data/web/blogfork.telegram.org/type/updates.ChannelDifference create mode 100644 data/web/blogfork.telegram.org/type/updates.Difference create mode 100644 data/web/blogfork.telegram.org/type/updates.State create mode 100644 data/web/blogfork.telegram.org/type/upload.CdnFile create mode 100644 data/web/blogfork.telegram.org/type/upload.File create mode 100644 data/web/blogfork.telegram.org/type/upload.WebFile create mode 100644 data/web/blogfork.telegram.org/type/users.UserFull create mode 100644 data/web/blogfork.telegram.org/widgets.html create mode 100644 data/web/blogfork.telegram.org/widgets/discussion.html create mode 100644 data/web/blogfork.telegram.org/widgets/login.html create mode 100644 data/web/blogfork.telegram.org/widgets/post.html create mode 100644 data/web/blogfork.telegram.org/widgets/share.html diff --git a/data/web/blogfork.telegram.org.html b/data/web/blogfork.telegram.org.html new file mode 100644 index 0000000000..93de3884ec --- /dev/null +++ b/data/web/blogfork.telegram.org.html @@ -0,0 +1,261 @@ + + + + + Telegram APIs + + + + + + + + + + + + + + + + +
+ +
+
+
+
+

Telegram APIs

+ +

We offer two kinds of APIs for developers. The Bot API allows you to easily create programs that use Telegram messages for an interface. The Telegram API and TDLib allow you to build your own customized Telegram clients. You are welcome to use both APIs free of charge.

+

You can also add Telegram Widgets to your website.

+

Designers are welcome to create Animated Stickers or Custom Themes for Telegram.

+
+

Bot API

+
+ +
+ +

This API allows you to connect bots to our system. Telegram Bots are special accounts that do not require an additional phone number to set up. These accounts serve as an interface for code running somewhere on your server.

+

To use this, you don't need to know anything about how our MTProto encryption protocol works — our intermediary server will handle all encryption and communication with the Telegram API for you. You communicate with this server via a simple HTTPS-interface that offers a simplified version of the Telegram API.

+
+

Learn more about the Bot API here »

+
+

Bot developers can also make use of our Payments API to accept payments from Telegram users around the world.

+
+

TDLib – build your own Telegram

+

Even if you're looking for maximum customization, you don't have to create your app from scratch. Try our Telegram Database Library (or simply TDLib), a tool for third-party developers that makes it easy to build fast, secure and feature-rich Telegram apps.

+

TDLib takes care of all network implementation details, encryption and local data storage, so that you can dedicate more time to design, responsive interfaces and beautiful animations.

+

TDLib supports all Telegram features and makes developing Telegram apps a breeze on any platform. It can be used on Android, iOS, Windows, macOS, Linux and virtually any other system. The library is open source and compatible with virtually any programming language.

+
+

Learn more about TDLib here »

+
+
+

Telegram API

+

This API allows you to build your own customized Telegram clients. It is 100% open for all developers who wish to create Telegram applications on our platform. Feel free to study the open source code of existing Telegram applications for examples of how things work here. Don't forget to register your application in our system.

+ +

Getting started

+

Creating an application

+

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

+

User authorization

+

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

+

Two-factor authentication

+

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

+

QR code login

+

QR code login flow

+

Error handling

+

How to handle API return errors correctly.

+

Handling different data centers

+

How to connect to the closest DC access point for faster interaction with the API, and things to watch out for when developing a client.

+

Handling updates

+

How to subscribe to updates and handle them properly.

+

Handling PUSH-notifications

+

How to subscribe and handle them properly.

+

Channels, supergroups, gigagroups and basic groups

+

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

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+

Calling methods

+

Additional options for calling methods.

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+

Pagination

+

How to fetch results from large lists of objects.

+

Client configuration

+

The MTProto API has multiple client configuration parameters that can be fetched with the appropriate methods.

+

Security

+

Secret chats, end-to-end encryption

+

End-to-end-encrypted messaging.

+

Security guidelines

+

Important checks required in your client application.

+

Perfect Forward Secrecy

+

Binding temporary authorization key to permanent ones.

+

End-to-End Encryption in Voice and Video Calls

+

End-to-end-encrypted calls.

+

Optimization

+

Client optimization

+

Ways to boost API interactions.

+

API methods

+

Available method list

+

A list of available high-level methods.

+

API TL-schema, as JSON

+

Text and JSON-presentation of types and methods used in API.

+

Available layer list

+

A list of available schema versions.

+

Other articles

+

Working with bots, using the MTProto API

+

How to work with bots using the MTProto API.

+

Commands

+

Bots offer a set of commands that can be used by users in private, or in a chat.

+

Buttons

+

Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.

+

Inline queries

+

Users can interact with your bot via inline queries, straight from the text input field in any chat.

+

Games

+

Bots can offer users HTML5 games to play solo or to compete against each other in groups and one-on-one chats; how to work with games in the MTProto API.

+

Search & filters

+

Telegram allows applying detailed message filters while looking for messages in chats.
This allows the server to filter messages based on a text query, and even on their type, and this feature is often used by graphical clients to implement features like the chat gallery, chat profile pictures and more.

+

Polls

+

Telegram allows sending polls and quizzes, that can be voted on by thousands, if not millions of users in chats and channels.

+

Reactions

+

Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.

+

Invite links and join requests

+

Channels, basic groups and supergroups may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.

+

Admin, banned and default rights for channels, supergroups and groups

+

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

+

Discussion groups

+

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

+

Channel comments and message threads

+

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

+

Admin log

+

Both supergroups and channels offer a so-called admin log, a log of recent relevant supergroup and channel actions, like the modification of group/channel settings or information on behalf of an admin, user kicks and bans, and more.

+

Pinned messages

+

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

+

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.

+

Live geolocations

+

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

+

Min constructors

+

Sometimes, user and channel constructors met in group chat updates may not contain full info about the user: how to handle such constructors.

+

Account deletion

+

How to reset an account if the 2FA password was forgotten.

+

Imported messages

+

Telegram allows importing messages and media from foreign chat apps.

+

Telegram Passport

+

How to work with Telegram Passport directly using the MTProto API.

+

Telegram Payments

+

How to work with Telegram Payments directly using the MTProto API.

+

Styled text with message entities

+

How to create styled text with message entities

+

Working with animated emojis

+

Graphical telegram clients should transform emojis into their respective animated version.

+

Working with animated dice

+

Telegram supports sending animated dice emojis.

+

Message drafts

+

How to handle message drafts

+

Folders

+

Working with folders

+

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).

+

Handling file references

+

How to handle file references.

+

Seamless Telegram Login

+

Handle Seamless Telegram Login URL authorization requests.

+

Web events

+

When interacting with HTML5 games and the websites of payment gateways, Telegram apps should expose the following JS APIs.

+
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api.html b/data/web/blogfork.telegram.org/api.html new file mode 100644 index 0000000000..93de3884ec --- /dev/null +++ b/data/web/blogfork.telegram.org/api.html @@ -0,0 +1,261 @@ + + + + + Telegram APIs + + + + + + + + + + + + + + + + +
+ +
+
+
+
+

Telegram APIs

+ +

We offer two kinds of APIs for developers. The Bot API allows you to easily create programs that use Telegram messages for an interface. The Telegram API and TDLib allow you to build your own customized Telegram clients. You are welcome to use both APIs free of charge.

+

You can also add Telegram Widgets to your website.

+

Designers are welcome to create Animated Stickers or Custom Themes for Telegram.

+
+

Bot API

+
+ +
+ +

This API allows you to connect bots to our system. Telegram Bots are special accounts that do not require an additional phone number to set up. These accounts serve as an interface for code running somewhere on your server.

+

To use this, you don't need to know anything about how our MTProto encryption protocol works — our intermediary server will handle all encryption and communication with the Telegram API for you. You communicate with this server via a simple HTTPS-interface that offers a simplified version of the Telegram API.

+
+

Learn more about the Bot API here »

+
+

Bot developers can also make use of our Payments API to accept payments from Telegram users around the world.

+
+

TDLib – build your own Telegram

+

Even if you're looking for maximum customization, you don't have to create your app from scratch. Try our Telegram Database Library (or simply TDLib), a tool for third-party developers that makes it easy to build fast, secure and feature-rich Telegram apps.

+

TDLib takes care of all network implementation details, encryption and local data storage, so that you can dedicate more time to design, responsive interfaces and beautiful animations.

+

TDLib supports all Telegram features and makes developing Telegram apps a breeze on any platform. It can be used on Android, iOS, Windows, macOS, Linux and virtually any other system. The library is open source and compatible with virtually any programming language.

+
+

Learn more about TDLib here »

+
+
+

Telegram API

+

This API allows you to build your own customized Telegram clients. It is 100% open for all developers who wish to create Telegram applications on our platform. Feel free to study the open source code of existing Telegram applications for examples of how things work here. Don't forget to register your application in our system.

+ +

Getting started

+

Creating an application

+

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

+

User authorization

+

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

+

Two-factor authentication

+

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

+

QR code login

+

QR code login flow

+

Error handling

+

How to handle API return errors correctly.

+

Handling different data centers

+

How to connect to the closest DC access point for faster interaction with the API, and things to watch out for when developing a client.

+

Handling updates

+

How to subscribe to updates and handle them properly.

+

Handling PUSH-notifications

+

How to subscribe and handle them properly.

+

Channels, supergroups, gigagroups and basic groups

+

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

+

Channel statistics

+

Telegram offers detailed channel statistics for channels and supergroups.

+

Calling methods

+

Additional options for calling methods.

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+

Pagination

+

How to fetch results from large lists of objects.

+

Client configuration

+

The MTProto API has multiple client configuration parameters that can be fetched with the appropriate methods.

+

Security

+

Secret chats, end-to-end encryption

+

End-to-end-encrypted messaging.

+

Security guidelines

+

Important checks required in your client application.

+

Perfect Forward Secrecy

+

Binding temporary authorization key to permanent ones.

+

End-to-End Encryption in Voice and Video Calls

+

End-to-end-encrypted calls.

+

Optimization

+

Client optimization

+

Ways to boost API interactions.

+

API methods

+

Available method list

+

A list of available high-level methods.

+

API TL-schema, as JSON

+

Text and JSON-presentation of types and methods used in API.

+

Available layer list

+

A list of available schema versions.

+

Other articles

+

Working with bots, using the MTProto API

+

How to work with bots using the MTProto API.

+

Commands

+

Bots offer a set of commands that can be used by users in private, or in a chat.

+

Buttons

+

Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.

+

Inline queries

+

Users can interact with your bot via inline queries, straight from the text input field in any chat.

+

Games

+

Bots can offer users HTML5 games to play solo or to compete against each other in groups and one-on-one chats; how to work with games in the MTProto API.

+

Search & filters

+

Telegram allows applying detailed message filters while looking for messages in chats.
This allows the server to filter messages based on a text query, and even on their type, and this feature is often used by graphical clients to implement features like the chat gallery, chat profile pictures and more.

+

Polls

+

Telegram allows sending polls and quizzes, that can be voted on by thousands, if not millions of users in chats and channels.

+

Reactions

+

Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.

+

Invite links and join requests

+

Channels, basic groups and supergroups may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.

+

Admin, banned and default rights for channels, supergroups and groups

+

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

+

Discussion groups

+

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

+

Channel comments and message threads

+

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

+

Admin log

+

Both supergroups and channels offer a so-called admin log, a log of recent relevant supergroup and channel actions, like the modification of group/channel settings or information on behalf of an admin, user kicks and bans, and more.

+

Pinned messages

+

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

+

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.

+

Live geolocations

+

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

+

Min constructors

+

Sometimes, user and channel constructors met in group chat updates may not contain full info about the user: how to handle such constructors.

+

Account deletion

+

How to reset an account if the 2FA password was forgotten.

+

Imported messages

+

Telegram allows importing messages and media from foreign chat apps.

+

Telegram Passport

+

How to work with Telegram Passport directly using the MTProto API.

+

Telegram Payments

+

How to work with Telegram Payments directly using the MTProto API.

+

Styled text with message entities

+

How to create styled text with message entities

+

Working with animated emojis

+

Graphical telegram clients should transform emojis into their respective animated version.

+

Working with animated dice

+

Telegram supports sending animated dice emojis.

+

Message drafts

+

How to handle message drafts

+

Folders

+

Working with folders

+

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).

+

Handling file references

+

How to handle file references.

+

Seamless Telegram Login

+

Handle Seamless Telegram Login URL authorization requests.

+

Web events

+

When interacting with HTML5 games and the websites of payment gateways, Telegram apps should expose the following JS APIs.

+
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/account-deletion.html b/data/web/blogfork.telegram.org/api/account-deletion.html new file mode 100644 index 0000000000..4f28a589ac --- /dev/null +++ b/data/web/blogfork.telegram.org/api/account-deletion.html @@ -0,0 +1,132 @@ + + + + + Account deletion + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Account deletion

+ +

If the user has successfully provided the login code, but they forgot the 2FA password, the account should be reset: this can be done using account.deleteAccount.

+

If the account's 2FA password was modified more than 7 days ago and was active in the last 7 days, account deletion will be delayed for 7 days, and a service message will be sent to the user, containing a link in one of the following formats:

+
    +
  • https://telegram.me/confirmphone?phone=XXX&hash=YYYY
  • +
  • tg://confirmphone?phone=XXX&hash=YYYY
  • +
+

When clicked, account.sendConfirmPhoneCode must be called with the specified hash, using the account with the specified phone number. +This will send a phone number verification code to the phone number associated with the account. +The phone code settings are the same as for the login code, and auth.cancelCode with auth.resendCode can be used as well, to resend or cancel the phone code as for the login code.

+

Once the SMS code is received, the account.confirmPhone method will have to be called with the SMS code and the phone hash received from the account.sendConfirmPhoneCode method.

+

This will cancel deletion of the account and will log out the user that tried to reset it. +Otherwise, if the number isn't confirmed in 7 days, the account will be deleted and the user will be free to recreate it.

+

Related articles

+

User Authorization

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/animated-emojis.html b/data/web/blogfork.telegram.org/api/animated-emojis.html new file mode 100644 index 0000000000..1602bfeceb --- /dev/null +++ b/data/web/blogfork.telegram.org/api/animated-emojis.html @@ -0,0 +1,191 @@ + + + + + Animated Emojis + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Animated Emojis

+ +

Graphical telegram clients should transform emojis into their respective animated version.

+
inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;
+
+messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
+
+---functions---
+
+messages.getStickerSet#c8a0ec74 stickerset:InputStickerSet hash:int = messages.StickerSet;
+

On startup, clients should fetch the animated emoji stickerset by calling the messages.getStickerSet method, providing inputStickerSetAnimatedEmoji to the stickerset field.
+The returned stickerset will contain a set of animated stickers, one for each of the supported emojis.

+

Clients should substitute messages containing only one instance of one of the allowed emojis with the respective animated sticker.

+

Animated emojis should loop only once when first sent or received, or when clicked.
+For supported emojis, clients on both sides of private chats with users are supposed to show a reaction animation when any of the two users clicks on the animated emoji: click here for more info ».

+

For special dice emojis like 🎲, 🎯, or 🏀, clients are supposed to behave differently both when sending and receiving such emojis: click here for more info ».

+

Emojis with sounds

+

Certain animated emojis should play sound when clicked, as specified by server-side configuration.

+

The returned JSON object will contain the following map, with a list of file IDs to download:

+
    "emojies_sounds": {
+        "\ud83c\udf83": {
+            "id": "4956223179606458539",
+            "access_hash": "-2107001400913062971",
+            "file_reference_base64": "AF-4ApC7ukC0UWEPZN0TeSJURe7T"
+        },
+        "\u26b0": {
+            "id": "4956223179606458540",
+            "access_hash": "-1498869544183595185",
+            "file_reference_base64": "AF-4ApCLKMGt96WCvLm58kbqZHd3"
+        },
+        "\ud83e\udddf\u200d\u2642": {
+            "id": "4960929110848176331",
+            "access_hash": "3986395821757915468",
+            "file_reference_base64": "AF-4ApAedNln3IMEHH-SUQuH8L9g"
+        },
+    }
+

The file reference field should be base64-decoded before downloading the file.

+

Emoji reactions

+
inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;
+
+messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
+
+stickerPack#12b299d4 emoticon:string documents:Vector<long> = StickerPack;
+
+sendMessageEmojiInteraction#25972bcb emoticon:string msg_id:int interaction:DataJSON = SendMessageAction;
+sendMessageEmojiInteractionSeen#b665902e emoticon:string = SendMessageAction;
+
+updateUserTyping#c01e857f user_id:long action:SendMessageAction = Update;
+
+---functions---
+
+messages.getStickerSet#c8a0ec74 stickerset:InputStickerSet hash:int = messages.StickerSet;
+
+messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool;
+

Not to be confused with message reactions ».

+

On startup, clients should fetch the animated reaction emoji stickerset by calling the messages.getStickerSet method, providing inputStickerSetAnimatedEmojiAnimations to the stickerset field.
+The returned stickerset will contain a set of animated emoji reactions, one or more for each of the supported emojis.
+If a set of reactions for the ❤ emoji is returned, the same reactions should also be assigned to the 🧡, 💛, 💚, 💙, 💜, 🖤, 🤍 and 🤎 emojis.

+

Clients on both sides of private chats with users should overlay one of the appropriate reaction animations over the animated sticker when any of the two users clicks on a supported animated emoji.
+The reaction animation for each separate tap should be chosen randomly from all the available reactions for a given emoji, and multiple taps should be aggregated and sent to the other user as follows:

+

At each tap, clients should store all occurred taps in a local list.
+After 1 second has elapsed with no more taps, the local list should be cleared and stored taps should be sent using messages.setTyping, passing a sendMessageEmojiInteraction constructor with the following fields:

+
    +
  • emoticon - The emoji we're reacting to
  • +
  • msg_id - Message ID of the animated emoji that was clicked
  • +
  • interaction - A JSON object with interaction info, containing the following keys:
      +
    • v - An integer indicating the object version, currently 1
    • +
    • a - An array of JSON objects, each containing the following keys:
        +
      • t - float, number of seconds that passed since the previous tap in the array, the first tap uses a value of 0.0.
      • +
      • i - integer, 1-based index of the randomly chosen animation for the tap (equivalent to the index of a specific emoji-related animation in stickerPack + 1).
      • +
      +
    • +
    +
  • +
+

1 second after the receiving user has seen the last reaction animation for a specific emoji, an acknowledgement must be sent using messages.setTyping, passing a sendMessageEmojiInteractionSeen with that emoji.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/auth.html b/data/web/blogfork.telegram.org/api/auth.html new file mode 100644 index 0000000000..957cd7a84e --- /dev/null +++ b/data/web/blogfork.telegram.org/api/auth.html @@ -0,0 +1,221 @@ + + + + + User Authorization + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

User Authorization

+ +
+ +

Authorization is associated with a client's encryption key identifier: auth_key_id. No additional parameters need to be passed into methods following authorization.

+

To log in as a bot, follow these instructions ».

+

Sending a verification code

+

Example implementations: telegram for android, tdlib.

+

To show a nicely formatted and validated phone number field, the help.countriesList constructor can be obtained using the help.getCountriesList method.
+The help.countriesList config is then used as described here ».

+

Then, a text message containing an authorization code is sent to the user's phone using auth.sendCode.
+However, this is not always the case, if logout tokens are used:

+

Logout tokens

+

When invoking auth.logOut on a previously authorized session with 2FA enabled, the server may return a future_auth_token, which should be stored in the local database.
+At all times, the logout token database should contain at most 20 tokens: evict older tokens as new tokens are added.
+When invoking auth.sendCode, all logout tokens present in the database should be provided to codeSettings.logout_tokens.
+If any of the logout tokens matches the account we're trying to login into and the token hasn't expired, auth.sendCode will directly return a SESSION_PASSWORD_NEEDED RPC error, directly asking the user to enter the 2FA password, without sending any authorization code.

+

Otherwise, the system will send an authorization code using the following logic:

+

Code types

+

The system will automatically choose how to send the authorization code; there are multiple possible ways the code can arrive:

+
    +
  • Logout tokens »
  • +
  • Telegram code
  • +
  • SMS code
  • +
  • Phone call: a synthesized voice will tell the user which verification code to input.
  • +
  • Flash phone call: the code will be sent via a flash phone call, that will be closed immediately. +In the last case, the phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern (see auth.sentCodeTypeFlashCall).
  • +
  • Missed phone call: the code will be sent via a flash phone call, that will be closed immediately. The last digits of the phone number that calls are the code that must be entered manually by the user.
  • +
+

The auth.sendCode method also has parameters for enabling/disabling use of flash calls and missed calls, and allows passing an SMS token that will be included in the sent SMS. +For example, the latter is required in newer versions of android, to use the android SMS receiver APIs.

+

The returned auth.SentCode object will contain multiple parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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
+

If the message takes too long (timeout seconds) to arrive at the phone, the auth.resendCode method may be invoked to resend a code of type next_type. +If the same happens again, you can use auth.resendCode with the next_type returned by the previous call to auth.resendCode. +To cancel the verification code use auth.cancelCode.

+

Sign in/sign up

+

When user enters verification code, the auth.signIn method must be used to validate it and possibly sign user in.

+

If the code was entered correctly, but the method returns auth.authorizationSignUpRequired, it means that account with this phone number doesn't exist yet: user needs to provide basic information, accept terms of service and then the new user registration method (auth.signUp) must be invoked.

+

2FA

+

When trying to sign in using auth.signIn, an error 400 SESSION_PASSWORD_NEEDED may be returned, if the user has two-factor authentication enabled. +In this case, instructions for SRP 2FA authentication must be followed.

+

To set up two-factor authorization on an already authorized account, follow the SRP 2FA authentication docs.

+

Test Accounts

+

Each phone number is limited to only a certain amount of logins per day (e.g. 5, but this is subject to change) after which the API will return a FLOOD error until the next day. This might not be enough for testing the implementation of User Authorization flows in client applications.

+

There are several reserved phone number prefixes for testing that your application handles redirects between DCs, sign up, sign in and 2FA flows correctly. These numbers are only available on Test DCs (their IP addresses for TCP transport are available in API development tools panel after api_id was obtained, URI format for HTTPS/Websocket transport).

+

If you wish to emulate an application of a user associated with DC number X, it is sufficient to specify the phone number as 99966XYYYY, where YYYY are random numbers, when registering the user. A user like this would always get XXXXX as the login confirmation code (the DC number, repeated five times). Note that the value of X must be in the range of 1-3 because there are only 3 Test DCs. When the flood limit is reached for any particular test number, just choose another number (changing the YYYY random part).

+

Do not store any important or private information in the messages of such test accounts; anyone can make use of the simplified authorization mechanism – and we periodically wipe all information stored there.

+

Proceed with User Authorization flows in Production DCs only after you make sure everything works correctly on Test DCs first to avoid reaching flood limits.

+
+

To help you with working on production DCs, logins with the same phone number with which the api_id was registered have more generous flood limits.

+
+

We are authorized

+

As a result of authorization, the client key, auth_key_id, becomes associated with the user, and each subsequent API call with this key will be executed with that user's identity. The authorization method itself returns the relevant user. It is best to immediately store the User ID locally in a binding with the key.

+

Only a small portion of the API methods are available to unauthorized users:

+ +

Other methods will result in an error: 401 UNAUTHORIZED.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/bots.html b/data/web/blogfork.telegram.org/api/bots.html new file mode 100644 index 0000000000..a306deecec --- /dev/null +++ b/data/web/blogfork.telegram.org/api/bots.html @@ -0,0 +1,145 @@ + + + + + Bots + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Bots

+ +
+ +

Working with bots, using the MTProto API.

+

See here for more info about bots.

+

Please note that you can also use the simplified HTTP Bot API to use bots, see here for more info ».

+

Login

+
---functions---
+
+auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;
+

In order to login as a bot, instead of using the standard login code flow, simply provide the bot token generated by @botfather.
+You must still provide your API ID, as per user logins.

+

After successful authorization, you will be able to use most MTProto API methods, just as any normal user.
+Methods that can be called by bots will have a Bots can use this method notice.

+

Commands

+

Bots offer a set of commands that can be used by users in private, or in a chat.

+

Buttons

+

Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.

+

Inline queries

+

Users can interact with your bot via inline queries, straight from the text input field in any chat.

+

Games

+

Bots can offer users HTML5 games to play solo or to compete against each other in groups and one-on-one chats; how to work with games in the MTProto API.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/bots/buttons.html b/data/web/blogfork.telegram.org/api/bots/buttons.html new file mode 100644 index 0000000000..bab8d760f8 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/bots/buttons.html @@ -0,0 +1,245 @@ + + + + + Buttons + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Buttons

+ +
+ +

Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.
+This article describes the full button flow, using the MTProto API.

+

For a simplified description using the HTTP bot API, see here ».

+

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;
+
+keyboardButtonRow#77608b83 buttons:Vector<KeyboardButton> = KeyboardButtonRow;
+
+replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup;
+replyKeyboardForceReply#86b40b08 flags:# single_use:flags.1?true selective:flags.2?true placeholder:flags.3?string = ReplyMarkup;
+replyKeyboardMarkup#85dd99d1 flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector<KeyboardButtonRow> placeholder:flags.3?string = ReplyMarkup;
+replyInlineMarkup#48a30254 rows:Vector<KeyboardButtonRow> = ReplyMarkup;
+
+message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
+
+---functions---
+
+messages.sendMessage#d9d75a4 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = Updates;
+

Bots can attach a ReplyMarkup constructor to outgoing messages, to attach an inline keyboard or a custom reply keyboard:

+ +

Pressing 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;
+keyboardButtonRequestPoll#bbc7515d flags:# quiz:flags.0?Bool 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;
+
+// Used by bots to send a keyboardButtonUrlAuth
+inputKeyboardButtonUrlAuth#d02e7fd4 flags:# request_write_access:flags.0?true text:string fwd_text:flags.1?string url:string bot:InputUser = KeyboardButton;
+
+keyboardButtonRow#77608b83 buttons:Vector<KeyboardButton> = KeyboardButtonRow;
+

Both reply and inline keyboards are composed of a vector of rows, each row containing a vector of buttons, for each column.
+Each row can have a different number of columns, and user clients should properly handle clicking buttons of every type.

+

Buttons available only in reply keyboards:

+ +

Buttons available only in inline keyboards:

+ +

Callback queries

+

keyboardButtonCallback buttons can be used to send the specified data payload back to the bot, when they are clicked.
+Additionally, a bot can verify a user's identity by requiring they verify their 2FA password with SRP.

+

Sending a callback query

+
keyboardButtonGame#50f41ccf text:string = KeyboardButton;
+keyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton;
+
+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;
+

When the user clicks on a keyboardButtonCallback in a message sent by a bot, or generated by an inline query, messages.getBotCallbackAnswer should be called, passing the peer and ID of the message.
+The same should happen when clicking on keyboardButtonGame buttons, with the difference that the game flag must be set instead of the data parameter.

+

Make sure to properly handle bot timeouts in the form of BOT_RESPONSE_TIMEOUT RPC errors, as the bot may be offline and unable to reply.

+

The returned messages.botCallbackAnswer constructor contains:

+
    +
  • message if specified, a message that should be shown in a non-blocking toast notification
  • +
  • alert indicates whether the message should be shown as a dismissible prompt, instead of a simple toast notification
  • +
  • has_url Whether an URL is present
  • +
  • url if specified, the client should open the URL, without showing a confirmation prompt.
    This is safe and allowed, because here, bots can only return:
      +
    • URLs to themselves with added query parameters (t.me/bot?start=aaa)
    • +
    • URLs to a valid game, if the bot has manually configured games, and the clicked button was a keyboardButtonGame.
    • +
    +
  • +
  • native_ui whether to open game URLs in a WebView or in native UI.
  • +
  • cache_time specifies for how long should this answer be cached, client-side
  • +
+
SRP verification
+

If the requires_password flag is set, the SRP 2FA payload must also be generated and attached to the query, to verify the identity of the user.

+

Note that the bot will NOT be able to access your password or the SRP payload.

+

The SRP payload will be processed exclusively on the Telegram's servers, simply returning an RPC error without passing the query to the bot if the verification fails.
+This is just a way of verifying the identity of the user, mainly used by the official @botfather bot to allow securely transferring the ownership of a bot to another user.

+

Answering a callback query

+
updateBotCallbackQuery#b9cfc48d flags:# query_id:long user_id:long peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update;
+
+updateInlineBotCallbackQuery#691e9052 flags:# query_id:long user_id:long msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update;
+
+---functions---
+
+messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool;
+

After the user invokes messages.getBotCallbackAnswer, an updateBotCallbackQuery or updateInlineBotCallbackQuery is generated and sent to the bot, depending on whether the query originated from a normal message sent by the bot, or from a message sent from an inline query.

+

Either way, bots must reply to the query as quickly as possible using messages.setBotCallbackAnswer:

+ +

If a game_short_name is present in the update, the bot should return the URL of the game with the specified name.
+The messages.setBotCallbackAnswer method must be called anyway, even if no message or url is returned, to avoid timeouts on the client.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/bots/commands.html b/data/web/blogfork.telegram.org/api/bots/commands.html new file mode 100644 index 0000000000..1af3a91006 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/bots/commands.html @@ -0,0 +1,143 @@ + + + + + Commands + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Commands

+ +
+ +

Bots offer a set of commands that can be used by users in private, or in a chat.

+

For a simplified description using the HTTP bot API, see here ».

+

Getting commands

+
botCommand#c27ac8c7 command:string description:string = BotCommand;
+
+botInfo#1b74b335 user_id:long description:string commands:Vector<BotCommand> = BotInfo;
+
+channelFull#e13c3d20 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:long 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:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long 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?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?Vector<string> = ChatFull;
+userFull#cf366521 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 id:long 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 ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string = UserFull;
+
+user#3ff6ecb0 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 fake:flags.26?true id:long 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;
+

The botInfo constructors contained in the userFull, chatFull, channelFull contain a list of commands, and for groups, the ID and a description of each bot.

+

In graphical clients, when users begin a message with a /, a list of commands supported by all bots present in the current chat should be shown; the same should be done for one-to-one chats with the bot itself.

+

If the command list of a bot changes, the bot_info_version contained in the user constructor received in updates will change; this indicates that the client should refetch full bot information using users.getFullUser.

+

Setting commands

+
botCommand#c27ac8c7 command:string description:string = BotCommand;
+
+---functions---
+
+bots.setBotCommands#517165a scope:BotCommandScope lang_code:string commands:Vector<BotCommand> = Bool;
+

The command list can be changed by the owner of the bot through @botfather, but bots can also change their own command list by invoking bots.setBotCommands.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/bots/games.html b/data/web/blogfork.telegram.org/api/bots/games.html new file mode 100644 index 0000000000..83eb027e7a --- /dev/null +++ b/data/web/blogfork.telegram.org/api/bots/games.html @@ -0,0 +1,174 @@ + + + + + Games + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Games

+ +
+ +

Bots can offer users HTML5 games to play solo or to compete against each other in groups and one-on-one chats.

+

Sending a game

+
inputUserSelf#f7c1b13f = InputUser;
+
+inputGameID#32c3e77 id:long access_hash:long = InputGame;
+inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame;
+
+inputMediaGame#d33f43f3 id:InputGame = InputMedia;
+
+game#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game;
+messageMediaGame#fdb19008 game:Game = MessageMedia;
+
+---functions---
+
+messages.sendMedia#e25ff8e0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = Updates;
+

Bots can directly send a game using messages.sendMedia, providing:

+
    +
  • The bot's shortname obtained from @BotFather to inputGameShortName.short_name
  • +
  • The current bot's info to inputGameShortName.bot_id
  • +
+

The sent message will contain a messageMediaGame with a game, that can then be used by users to forward the game using sendMedia with inputGameID.

+

Starting a game

+

Games are started clicking on the button, which triggers an callback query that returns the game URL, for more info see here ».
+The game should then be opened in a WebView or in native UI (specified by the native_ui flag), exposing the appropriate HTML5 APIs in order to receive various JS game events directly from the code of the game, as described here ».

+

Setting highscores

+
---functions---
+
+messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates;
+messages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:flags.1?true id:InputBotInlineMessageID user_id:InputUser score:int = Bool;
+

Games are supposed to report back to the MTProto API every time the user looses a game with a new highscore.
+Since games run in the browser, they cannot directly report data to the API using the bot token, which must be kept secret.
+Instead, they should send highscores to an intermediate server, that will then report scores using messages.setGameScore or messages.setInlineGameScore, depending on the source of the game.

+
    +
  • The edit_message flag should be set if the game message should be automatically edited to include the current scoreboard
  • +
  • The force flag should be set if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters.
  • +
+

Getting highscores

+
messageActionGameScore#92a72876 game_id:long score:int = MessageAction;
+
+messageService#2b085862 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 ttl_period:flags.25?int = Message;
+
+highScore#73a379eb pos:int user_id:long score:int = HighScore;
+
+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;
+

Every time a highscore is reached, and the edit_message flag is set when reporting the score, a messageService with a messageActionGameScore is generated, indicating that the highscore of a certain game has changed, thanks to a certain user_id.
+Our own current position of the scoreboard is also reported as pos.

+

When receiving such an update, graphical clients should refetch the scoreboard using messages.getGameHighScores or messages.getInlineGameHighScores.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/bots/inline.html b/data/web/blogfork.telegram.org/api/bots/inline.html new file mode 100644 index 0000000000..77f7b4523d --- /dev/null +++ b/data/web/blogfork.telegram.org/api/bots/inline.html @@ -0,0 +1,218 @@ + + + + + Inline + + + + + + + + + + + + + + + + +
+ +
+
+
+
+

Inline

+ +
+ +

Users can interact with your bot via inline queries, straight from the text input field in any chat.
+This article describes the full inline bot flow, using the MTProto API.

+

For a simplified description using the HTTP bot API, see here ».

+

Making an inline query

+
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;
+

When, in a graphical client, the user starts a message with an @, clients should:

+
    +
  • Use the cached top peer rating for inline bots to show a list of frequently used inline bots.
  • +
  • If the user chooses a bot from the recent bot list or:
  • +
  • Finishes typing a full username followed by a whitespace, and if the username resolves to a valid bot
  • +
  • messages.getInlineBotResults is called, with the following parameters:
      +
    • bot - The bot peer
    • +
    • peer - The chat where the user made the query
    • +
    • geo_point - The user's current geolocation, if the bot requires location-based inline results (the bot_inline_geo flag of the bot's user constructor will be set)
    • +
    • query - What the user typed after the bot's username
    • +
    • offset - If the user scrolls past the first len(results) results, and next_offset field is set, the inline query should be repeated with this offset.
    • +
    +
  • +
+

Answering to an inline query

+
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;
+
+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;
+
+updateBotInlineQuery#496f379c flags:# query_id:long user_id:long query:string geo:flags.0?GeoPoint peer_type:flags.1?InlineQueryPeerType offset:string = Update;
+
+---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;
+

Bots can answer to incoming updateBotInlineQuery updates using messages.setInlineBotResults.
+Just like its bot API counterpart, the method can be used to send a set of inline results to the user; see the constructor page for more info on the MTProto method parameters ».

+

In general, the method accepts a vector of InputBotInlineResult constructors, that when chosen, generates a message with optionally attached media, and even inline buttons.

+

Sending the inline query result

+
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;
+
+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;
+
+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.sendInlineBotResult#7aa11297 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 send_as:flags.13?InputPeer = Updates;
+

The user client should display the results obtained during querying in a list, making sure to handle eventual bot timeouts in the form of a BOT_RESPONSE_TIMEOUT RPC error, by simply not displaying anything.

+

If the user then chooses a specific BotInlineResult, the messages.sendInlineBotResult method should be invoked, passing:

+
    +
  • The query_id from messages.botResults
  • +
  • The id of the chosen result
  • +
  • The peer where to send the chosen result
  • +
+

The resulting message will have the via_bot_id field set, to indicate that the result was generated by the bot that generated the inline result.
+Graphical clients should display the bot @username in the header of the message, allowing the user to click on it, automatically starting an inline query by inserting @username in the text bar.

+

Inline feedback

+
inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID;
+
+updateBotInlineSend#12f12a07 flags:# user_id:long query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update;
+

If feedback collection is enabled, the bot may receive an updateBotInlineSend when the user chooses and sends an inline result.

+

Even if the probability setting is set to 100%, not all inline results may be reported due to caching (see the cache_time parameter in Answering a callback query).
+Feedback collection can also create load issues for popular bots, so adjust the probability setting to a lower value in such cases.

+

Either way, feedback collection should only be used for statistical purposes rather than functional.

+

The updateBotInlineSend will contain:

+
    +
  • id - The ID of the chosen result
  • +
  • msg_id - The ID of the sent inline message
  • +
  • user_id - The ID of the user that chose the result
  • +
  • query - The query string that was used to obtain the result
  • +
  • geo - For bots requiring location-based inline results, the user's location
  • +
+

Editing sent inline messages

+
updateInlineBotCallbackQuery#691e9052 flags:# query_id:long user_id:long msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update;
+
+inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID;
+
+---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;
+

Sent inline messages can be edited by the bot, for example in response to a button press callback query.

+

Simply pass the inputBotInlineMessageID specified in the updateInlineBotCallbackQuery to messages.editInlineBotMessage along with the new message, making sure to send the query to the datacenter specified in inputBotInlineMessageID.dc_id.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/channel.html b/data/web/blogfork.telegram.org/api/channel.html new file mode 100644 index 0000000000..392edd336e --- /dev/null +++ b/data/web/blogfork.telegram.org/api/channel.html @@ -0,0 +1,165 @@ + + + + + Channels, supergroups, gigagroups and basic groups + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Channels, supergroups, gigagroups and basic groups

+ +
+ +

Channels

+

Channels are a tool for broadcasting your messages to large audiences. They can have an unlimited number of subscribers, they can be public with a permanent URL and each post in a channel has its own view counter.
+Technically, they are represented by channel constructors.

+

Channels can be created using the channels.createChannel method, by setting the broadcast flag.

+

Supergroups

+

Supergroups are a powerful tool for building communities and can support up to 200,000 members each.
+Technically, supergroups are actually channels: they are represented by channel constructors, with the megagroup flag set to true.

+

Channels can be created using the channels.createChannel method, by setting the megagroup flag.
+Supergroups can also be assigned a geo_point to become geochats.

+

Gigagroups

+

Gigagroups are something between a channel and a supergroup.
+An admin, when prompted by the API using suggestions », can convert a megagroup into a gigagroup using channels.convertToGigagroup (one way only).
+After that, only admins will be able to write in the group (like when send_messages rights are disabled for all group participants by default), but the participant limit is removed and the group can become much bigger than a supergroup (e.g. >200,000 currently).
+Also, one can't invite people into gigagroups and participants of voice chats in gigagroups are muted by default.

+

Basic groups

+

In previous versions of telegram, only basic groups (represented by chat constructors) could be created using messages.createChat: these groups have fewer features, and can only have 200 members at max.
+Messages from all basic groups are stored in the user's message box »: this means that all basic groups and all private chats share the same, single message ID and PTS sequence.

+

Migration

+

To upgrade a basic group to a supergroup, messages.migrateChat can be used. +The chats field of the result will have two objects:

+
    +
  • A chat constructor with a migrated_to field, indicating the address of the new supergroup
  • +
  • The new channel megagroup constructor
  • +
+

When getting full info about the migrated channel, the channelFull object will have migrated_from_chat_id and migrated_from_max_id fields indicating the original ID of the chat, and the message ID in the original chat at which the group was migrated.

+

All users of the chat will receive an updateNewMessage from the old chat with a messageService containing a messageActionChatMigrateTo constructor.

+

All new messages have to be sent to the new supergroup.

+

When working with migrated groups clients need to handle loading of the message history (as well as search results et cetera) from both the basic group and the new supergroup. This is done by merging the two messages lists (requested with different Peer values) client side.

+

Invite links and join requests

+

Channels, basic groups and supergroups may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.

+

For more info on how to work with public usernames, invite links and join requests, see here ».

+

Rights

+

Channels, basic groups and supergroups allow setting granular permissions both for admins and specific users; channels, supergroups and basic groups also allow setting global granular permissions for users.

+

For more info on how to set and modify rights, see here ».

+

Pinned messages

+

Telegram allows pinning multiple messages on top in a chat, group, supergroup or channel.

+

See here » for more info on pinning and unpinning messages.

+

Discussion

+

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

+

For more info on how to set a discussion group in channel, see here »

+

Recent actions

+

Both supergroups and channels offer a so-called admin log, a log of recent relevant supergroup and channel actions, like the modification of group/channel settings or information on behalf of an admin, user kicks and bans, and more.

+

See here » for more info.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/config.html b/data/web/blogfork.telegram.org/api/config.html new file mode 100644 index 0000000000..db658052f1 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/config.html @@ -0,0 +1,431 @@ + + + + + Client configuration + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Client configuration

+ +
+ +

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

+

MTProto 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;
+nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc;
+
+---functions---
+
+help.getConfig#c4f9186b = Config;
+help.getNearestDc#1fb33026 = NearestDc;
+

The huge config constructor contains lots of useful information, from chat and message size limitations, to privacy settings, online status refresh interval and timeout, VoIP configuration, default inline bot usernames for GIF, image and venue lookup, and lots of other global and user-specific information, check out the constructor page for more information.

+

Client configuration

+
jsonObjectValue#c0de1bd9 key:string value:JSONValue = JSONObjectValue;
+
+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;
+

The help.getAppConfig method returns a JSON object containing rapidly evolving, client-specific configuration parameters.
+While help.getConfig returns MTProto-specific configuration with information about server-side limitations and other MTProto-related information, help.getAppConfig returns configuration parameters useful for graphical Telegram clients.

+

Typical fields included in the resulting JSON object are:

+
    +
  • emojies_animated_zoom - Animated emojis and animated dice should be scaled by this factor before being shown to the user (float)
  • +
  • keep_alive_service - Whether app clients should start a keepalive service to keep the app running and fetch updates even when the app is closed (boolean)
  • +
  • background_connection - Whether app clients should start a background TCP connection for MTProto update fetching (boolean)
  • +
  • emojies_send_dice - A list of supported animated dice stickers (array of strings).
  • +
  • emojies_send_dice_success - For animated dice emojis other than the basic 🎲, indicates the winning dice value and the final frame of the animated sticker, at which to show the fireworks 🎆 (object with emoji keys and object values, containing value and frame_start float values)
  • +
  • emojies_sounds - A map of soundbites to be played when the user clicks on the specified animated emoji; the file reference field should be base64-decoded before downloading the file (map of file IDs, with emoji string keys)
  • +
  • gif_search_branding - Specifies the name of the service providing GIF search through gif_search_username (string)
  • +
  • gif_search_emojies - Specifies a list of emojies that should be suggested as search term in a bar above the GIF search box (array of string emojis)
  • +
  • stickers_emoji_suggest_only_api - Specifies that the app should not display local sticker suggestions for emojis at all and just use the result of messages.getStickers (bool)
  • +
  • stickers_emoji_cache_time - Specifies the validity period of the local cache of messages.getStickers, also relevant when generating the pagination hash when invoking the method. (int)
  • +
  • qr_login_camera - Whether the Settings->Devices menu should show an option to scan a QR login code (boolean)
  • +
  • qr_login_code - Whether the login screen should show a QR code login option, possibly as default login method (string, "disabled", "primary" or "secondary")
  • +
  • dialog_filters_enabled - Whether clients should show an option for managing dialog filters AKA folders (boolean)
  • +
  • dialog_filters_tooltip - Whether clients should actively show a tooltip, inviting the user to configure dialog filters AKA folders; typically this happens when the chat list is long enough to start getting cluttered. (boolean)
  • +
  • autoarchive_setting_available - Whether clients can invoke account.setGlobalPrivacySettings with globalPrivacySettings.archive_and_mute_new_noncontact_peers = boolTrue, to automatically archive and mute new incoming chats from non-contacts. (boolean)
  • +
  • pending_suggestions - Contains a list of suggestions that should be actively shown as a tooltip to the user. (Array of strings, possible values shown in the suggestions section ».
  • +
  • url_auth_domains - A list of domains that support automatic login with manual user confirmation, click here for more info on URL authorization ». (array of strings)
  • +
  • autologin_domains - A list of Telegram domains that support automatic login with no user confirmation, click here for more info on URL authorization ». (array of strings)
  • +
  • autologin_token - Autologin token, click here for more info on URL authorization ». (string)
  • +
  • round_video_encoding - Contains a set of recommended codec parameters for round videos.
  • +
  • chat_read_mark_size_threshold - Per-user read receipts, fetchable using messages.getMessageReadParticipants, will be available in groups with an amount of participants less or equal to chat_read_mark_size_threshold. (int)
  • +
  • chat_read_mark_expire_period - To protect user privacy, read receipts are only stored for chat_read_mark_expire_period seconds after the message was sent. (int)
  • +
  • groupcall_video_participants_max - Maximum number of participants in a group call (livestreams allow ∞ participants) (int)
  • +
  • reactions_default - Default emoji reaction to use in the quick reaction menu, this value can be changed using messages.setDefaultReaction (string)
  • +
  • reactions_uniq_max - Maximum number of unique reaction-emojis for any given message: for example, if there are 2000 👍 and 1000 😁 reactions and reactions_uniq_max = 2, you can't add a 👎 reaction, because that would raise the number of unique reaction-emojis to 3 > 2. (integer)
  • +
+

Example value:

+
{
+    "test": 1,
+    "emojies_animated_zoom": 0.625,
+    "keep_alive_service": true,
+    "background_connection": true,
+    "emojies_send_dice": [
+        "\ud83c\udfb2",
+        "\ud83c\udfaf",
+        "\ud83c\udfc0",
+        "\u26bd",
+        "\u26bd\ufe0f",
+        "\ud83c\udfb0",
+        "\ud83c\udfb3"
+    ],
+    "emojies_send_dice_success": {
+        "\ud83c\udfaf": {
+            "value": 6,
+            "frame_start": 62
+        },
+        "\ud83c\udfc0": {
+            "value": 5,
+            "frame_start": 110
+        },
+        "\u26bd": {
+            "value": 5,
+            "frame_start": 110
+        },
+        "\u26bd\ufe0f": {
+            "value": 5,
+            "frame_start": 110
+        },
+        "\ud83c\udfb0": {
+            "value": 64,
+            "frame_start": 110
+        },
+        "\ud83c\udfb3": {
+            "value": 6,
+            "frame_start": 110
+        }
+    },
+    "emojies_sounds": {
+        "\ud83c\udf83": {
+            "id": "4956223179606458539",
+            "access_hash": "-2107001400913062971",
+            "file_reference_base64": "AGIaeBZckszt-s71DzCHhSkfZI_l"
+        },
+        "\u26b0": {
+            "id": "4956223179606458540",
+            "access_hash": "-1498869544183595185",
+            "file_reference_base64": "AGIaeBZRfKxsAgnaLEDh5XIa8Gri"
+        },
+        "\ud83e\udddf\u200d\u2642": {
+            "id": "4960929110848176331",
+            "access_hash": "3986395821757915468",
+            "file_reference_base64": "AGIaeBZcFga_bS9BsPvVNA2zuYCI"
+        },
+        "\ud83e\udddf": {
+            "id": "4960929110848176332",
+            "access_hash": "-8929417974289765626",
+            "file_reference_base64": "AGIaeBbUbidUDCl4nImJXPTl2wWj"
+        },
+        "\ud83e\udddf\u200d\u2640": {
+            "id": "4960929110848176333",
+            "access_hash": "9161696144162881753",
+            "file_reference_base64": "AGIaeBb-ulJ2E-rSI2B8EKyAXs-8"
+        },
+        "\ud83c\udf51": {
+            "id": "4963180910661861548",
+            "access_hash": "-7431729439735063448",
+            "file_reference_base64": "AGIaeBa940aXpIVLThj0J2ctxYFe"
+        },
+        "\ud83c\udf8a": {
+            "id": "5094064004578410732",
+            "access_hash": "8518192996098758509",
+            "file_reference_base64": "AGIaeBZFqTTp5drt0JZ86DGDAu1t"
+        },
+        "\ud83c\udf84": {
+            "id": "5094064004578410733",
+            "access_hash": "-4142643820629256996",
+            "file_reference_base64": "AGIaeBbEqu-gV0qAUdP5lD3MxLSK"
+        },
+        "\ud83e\uddbe": {
+            "id": "5094064004578410734",
+            "access_hash": "-8934384022571962340",
+            "file_reference_base64": "AGIaeBZ0YCp8_Zl_cmP4nvKkkSfF"
+        }
+    },
+    "gif_search_branding": "tenor",
+    "gif_search_emojies": [
+        "\ud83d\udc4d",
+        "\ud83d\ude18",
+        "\ud83d\ude0d",
+        "\ud83d\ude21",
+        "\ud83e\udd73",
+        "\ud83d\ude02",
+        "\ud83d\ude2e",
+        "\ud83d\ude44",
+        "\ud83d\ude0e",
+        "\ud83d\udc4e"
+    ],
+    "stickers_emoji_suggest_only_api": false,
+    "stickers_emoji_cache_time": 86400,
+    "groupcall_video_participants_max": 1000,
+    "qr_login_camera": true,
+    "qr_login_code": "primary",
+    "dialog_filters_enabled": true,
+    "dialog_filters_tooltip": true,
+    "autoarchive_setting_available": false,
+    "pending_suggestions": [
+        "AUTOARCHIVE_POPULAR",
+        "VALIDATE_PASSWORD",
+        "VALIDATE_PHONE_NUMBER",
+        "NEWCOMER_TICKS"
+    ],
+    "autologin_token": "string",
+    "autologin_domains": [
+        "instantview.telegram.org",
+        "translations.telegram.org",
+        "contest.dev",
+        "contest.com",
+        "bugs.telegram.org",
+        "suggestions.telegram.org",
+        "themes.telegram.org",
+        "promote.telegram.org"
+    ],
+    "round_video_encoding": {
+        "diameter": 384,
+        "video_bitrate": 1000,
+        "audio_bitrate": 64,
+        "max_size": 12582912
+    },
+    "chat_read_mark_expire_period": 604800,
+    "chat_read_mark_size_threshold": 100,
+    "reactions_default": "\ud83d\udc4d",
+    "reactions_uniq_max": 11
+}
+

Suggestions

+

The API can return a set of useful suggestions for users of graphical clients.

+

Basic suggestions

+
jsonObjectValue#c0de1bd9 key:string value:JSONValue = JSONObjectValue;
+
+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;
+

The help.getAppConfig method returns a JSON object containing rapidly evolving, client-specific configuration parameters.
+A full list of these parameters can be seen in the Client Configuration section », but we're mostly interested in the pending_suggestions and autoarchive_setting_available fields of the returned JSON object:

+ +

Channel suggestions

+
messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;
+
+channelFull#e13c3d20 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:long 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:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long 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?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?Vector<string> = ChatFull;
+
+---functions---
+
+channels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull;
+

Some channel/supergroup-related suggestions can also be contained in the pending_suggestions field of the channelFull constructor, returned by channels.getFullChannel.
+Here's a list of possible suggestions:

+ +

Dismissing suggestions

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+
+---functions---
+
+help.dismissSuggestion#f50dbaa1 peer:InputPeer suggestion:string = Bool;
+

help.dismissSuggestion can be used to dismiss a suggestion.
+Pass inputPeerEmpty to peer for basic suggestions and the channel/supergroup's peer for channel suggestions.

+

App-specific configuration

+
help.appUpdate#ccbbce30 flags:# can_not_skip:flags.0?true id:int version:string text:string entities:Vector<MessageEntity> document:flags.1?Document url:flags.2?string sticker:flags.3?Document = help.AppUpdate;
+help.noAppUpdate#c45a6536 = help.AppUpdate;
+
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector<MessageEntity> = Update;
+
+help.inviteText#18cb9f78 message:string = help.InviteText;
+
+---functions---
+
+help.getAppUpdate#522d5a7d source:string = help.AppUpdate;
+help.getAppChangelog#9010ef6f prev_app_version:string = Updates;
+
+help.getInviteText#4d392343 = help.InviteText;
+
    +
  • help.getAppUpdate - Get info about an application update, can contain the updated application binary in the attached document
  • +
  • help.getAppChangelog - Get a list of service messages with app-specific changelogs
  • +
  • help.getInviteText - Returns a localized invitation message that can be sent via SMS to contacts that haven't signed up to Telegram yet
  • +
+

Terms of service

+
help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate;
+help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate;
+
+help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector<MessageEntity> min_age_confirm:flags.1?int = help.TermsOfService;
+
+auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization;
+
+---functions---
+
+help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate;
+help.acceptTermsOfService#ee72f79a id:DataJSON = Bool;
+
+auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization;
+
+account.deleteAccount#418d4e0b reason:string = Bool;
+

These methods can be used for managing consent to Telegram's Terms Of Service.

+

Typically, before a user signs up by invoking auth.signUp, apps should show a pop-up (if the popup flag of the help.termsOfService method is set), asking the user to accept Telegram's terms of service; in case of denial, the user is to be returned to the initial page of the login flow.

+

When signing up for the first time, the help.termsOfService is to be obtained from the auth.authorizationSignUpRequired constructor returned by the auth.signIn.

+

After signing up, or when logging in as an existing user, apps are supposed to call help.getTermsOfServiceUpdate to check for any updates to the Terms of Service; this call should be repeated after expires seconds have elapsed.
+If an update to the Terms Of Service is available, clients are supposed to show a consent popup; if accepted, clients should call help.acceptTermsOfService, providing the termsOfService id JSON object; in case of denial, clients are to delete the account using account.deleteAccount, providing Decline ToS update as deletion reason.

+

Example implementation: android (signup), android (after login)

+

Telegram support info

+
user#3ff6ecb0 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 fake:flags.26?true id:long 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;
+
+help.support#17c6b5f6 phone_number:string user:User = help.Support;
+help.supportName#8c05f1c9 name:string = help.SupportName;
+
+---functions---
+
+help.getSupport#9cdf08cd = help.Support;
+help.getSupportName#d360e72c = help.SupportName;
+

These methods can be used for fetching info about Telegram's support user, that users can use to get support and ask questions about the app.

+ +

Country information and login phone patterns

+
help.countryCode#4203c5ef flags:# country_code:string prefixes:flags.0?Vector<string> patterns:flags.1?Vector<string> = help.CountryCode;
+
+help.country#c3878e23 flags:# hidden:flags.0?true iso2:string default_name:string name:flags.1?string country_codes:Vector<help.CountryCode> = help.Country;
+
+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;
+

help.getCountriesList can be used to fetch a list of localized names for all available countries and phone code patterns for logging in.

+

The phone code pattern should be used when showing the login screen, or when changing phone number: for example, a pattern value of XXX XXX XXX with country_code +39 indicates that the phone field for login should accept a spaced pattern like +39 123 456 789.
+Also, the beginning of the national part of the phone number (123 456 789) should match one of the prefixes, if any were returned.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/datacenter.html b/data/web/blogfork.telegram.org/api/datacenter.html new file mode 100644 index 0000000000..811d0d90e4 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/datacenter.html @@ -0,0 +1,155 @@ + + + + + Working with Different Data Centers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Working with Different Data Centers

+ +

The servers are divided into several data centers (hereinafter “DCs”) in different parts of the world. +A complete list of proxy access points for these DCs may be obtained using help.getConfig:

+
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;
+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;
+

In this context, this_dc is the number of the current DC, dc_options is a list of all DCs available at the moment, each of which has an id, ip, and port for establishing a connection. Please note that ip and port may change frequently, based on proxy server load and the user's current location.
+Typically, each DC has at least one IPv4 and one IPv6 endpoint available.

+

To optimize client communication with the API, each client must use the connection to the closest access point for its main queries (sending messages, getting contacts, etc.). Therefore, knowing how to select a DC is required before communicating with the API.

+

Registration/Authorization

+

The auth.sendCode method is the basic entry point when registering a new user or authorizing an existing user. 95% of all redirection cases to a different DC will occur when invoking this method.

+

The client does not yet know which DC it will be associated with; therefore, it establishes an encrypted connection to a random address and sends its query to that address. +Having received a phone_number from a client, we can find out whether or not it is registered in the system. If it is, then, if necessary, instead of sending a text message, we request that it establish a connection with a different DC first (PHONE_MIGRATE_X error). +If we do not yet have a user with this number, we examine its IP-address. We can use it to identify the closest DC. Again, if necessary, we redirect the user to a different DC (NETWORK_MIGRATE_X error).

+

Testing Redirects

+

There are reserved phone number prefixes to test the correctness of the application's handling of redirects between DCs. Read more in User Authorization article.

+

File Access

+

A file saved by a user with upload.saveFilePart will be available for direct download only from the DC where the query was executed. That is why each file has a dc_id parameter:

+
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;
+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;
+
+encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile;
+
+userProfilePhoto#82d1f706 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto;
+chatPhoto#1c6e1c11 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = ChatPhoto;
+

To download the file, an encrypted connection to DC dc_id must be established and used to execute the upload.getFile query. +If an attempt is made to download the file over a wrong connection, the FILE_MIGRATE_X error will be returned.

+

Please note that encryption keys are not copied between DCs; therefore, the process of establishing an encrypted connection is started from the very beginning for each new DC. An issued auth_key can be associated with the current authorized user by using an authorization transfer.

+

User Migration

+

During the process of working with the API, user information is accumulated in the DC with which the user is associated. This is the reason a user cannot be associated with a different DC by means of the client. However, in the future, during prolonged communication from an unusual location, we may decide that the user's data must be moved to a different DC. After some time, the data will be copied and the association will be updated. Once this happens, when executing any query transmitted to the old DC, the API will return the USER_MIGRATE_X error. The client will then have to establish a connection with the new DC and repeat the query.

+

Authorization Transfer

+

The following methods can be used to eliminate the need for users to enter the code from a text message every time:

+
auth.exportedAuthorization#b434e2b8 id:long bytes:bytes = auth.ExportedAuthorization;
+auth.authorization#33fb7bb8 flags:# setup_password_required:flags.1?true otherwise_relogin_days:flags.1?int tmp_sessions:flags.0?int user:User = auth.Authorization;
+---functions---
+auth.importAuthorization#a57a7dad id:long bytes:bytes = auth.Authorization;
+auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization;
+

auth.exportAuthorization must be executed in the current DC (the DC with which a connection has already been established), passing in dc_id as the value for the new DC. The method should return the user identifier and a long string of random data. An import operation can be performed at the new DC by sending it what was received. Queries requiring authorization can then be successfully executed in the new DC.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/dice.html b/data/web/blogfork.telegram.org/api/dice.html new file mode 100644 index 0000000000..262dc3b371 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/dice.html @@ -0,0 +1,152 @@ + + + + + Dice + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Dice

+ +

Telegram supports sending animated dice emojis.
+This is implemented by using the dice constructors:

+
inputMediaDice#e66fbf7b emoticon:string = InputMedia;
+messageMediaDice#3f7ee58b value:int emoticon:string = MessageMedia;
+
+inputStickerSetDice#e67f520e emoticon:string = InputStickerSet;
+
+messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
+
+---functions---
+
+messages.sendMedia#e25ff8e0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = Updates;
+
+messages.getStickerSet#c8a0ec74 stickerset:InputStickerSet hash:int = messages.StickerSet;
+
+help.getAppConfig#98914110 = JSONValue;
+

On startup, clients should fetch app configuration using help.getAppConfig.
+Then, for each dice emoji contained in the emojies_send_dice field, clients should fetch the dice emoji stickerset by calling the messages.getStickerSet method, providing the properly populated inputStickerSetDice to the stickerset field.
+The returned stickerset will contain a set of animated stickers, one for each of the dice outcomes, plus a first looping sticker that should be shown as preview to the user before actually sending the dice.

+

If a user attempts to send a single emoji from the ones specified in emojies_send_dice, the dice should be sent using messages.sendMedia, providing the dice emoji to the emoticon field.

+

Incoming dice stickers will be received as a messageMediaDice constructor, along with a randomly generated server-side value, ranging from 1 to the maximum allowed value for this type of dice.
+Clients should display the correct dice animated sticker for the specified value: since dice values start from 1, and the first animated sticker in dice stickerset is the preview, value can be used to directly index the documents sticker array from the animated stickerset.

+

The emojies_send_dice_success configuration parameter contains more info about dice emojis other than the basic 🎲:

+
    "emojies_send_dice_success": {
+        "\ud83c\udfaf": {
+            "value": 6,
+            "frame_start": 62
+        },
+        "\ud83c\udfc0": {
+            "value": 5,
+            "frame_start": 110
+        }
+    }
+

For each of the dice emojis, a maximum "winning" value is specified, along with the frame number at which to show the fireworks 🎆.
+Please note that dice animated stickers should loop only once, right after being sent/received for the first time; clicking on the dice sticker should bring up a popup, inviting the user to send a new dice of the same type.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/discussion.html b/data/web/blogfork.telegram.org/api/discussion.html new file mode 100644 index 0000000000..c78d75c5bb --- /dev/null +++ b/data/web/blogfork.telegram.org/api/discussion.html @@ -0,0 +1,155 @@ + + + + + Discussion groups + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Discussion groups

+ +
+ +

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

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+
+channelFull#e13c3d20 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:long 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:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long 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?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?Vector<string> = ChatFull;
+
+messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
+
+---functions---
+
+channels.setDiscussionGroup#40582bb2 broadcast:InputChannel group:InputChannel = Bool;
+channels.getGroupsForDiscussion#f5dad378 = messages.Chats;
+

A discussion group can be associated to a channel using channels.setDiscussionGroup.
+The discussion group can be accessed in the client by clicking on the discuss button of the channel, or by accessing the comment section of a specific post; the discussion group ID is also present in the linked_chat_id field of the channelFull constructor.

+

All messages sent to the channel will also be sent to the linked group (with sender peer from_id equal to the peer of the linked channel); those messages will also be automatically pinned in the group.
+The comment section of a particular post can be disabled by removing the channel post message from the discussion group.

+

Linking a discussion group

+

To obtain a list of admined supergroups that a channel admin can possibly associate to a channel, use channels.getGroupsForDiscussion.
+Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group.
+Before linking a supergroup to a channel, access to the supergroup's old messages must also be enabled using channels.togglePreHistoryHidden.

+

To set a returned supergroup as a discussion group use channels.setDiscussionGroup.

+

Schema:

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+
+messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
+
+---functions---
+
+channels.setDiscussionGroup#40582bb2 broadcast:InputChannel group:InputChannel = Bool;
+channels.getGroupsForDiscussion#f5dad378 = messages.Chats;
+
+channels.togglePreHistoryHidden#eabbb94c channel:InputChannel enabled:Bool = Updates;
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/drafts.html b/data/web/blogfork.telegram.org/api/drafts.html new file mode 100644 index 0000000000..679d54eeb8 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/drafts.html @@ -0,0 +1,134 @@ + + + + + Message drafts + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Message drafts

+ +
+ +

Message drafts in Telegram allow syncing the text typed into message fields between devices.

+

Drafts

+

Drafts are represented by the DraftMessage constructors. +The parameters of the peer-specific draft should be used as defaults when composing a message to be sent to a certain peer (in the case of media, the same draft should still be used as base, the message will become the caption). +If the user exits the app before sending the message, the message should be saved as a draft:

+

Saving drafts

+

Drafts can be saved using the messages.saveDraft method.

+

Downloading drafts

+

New drafts are automatically sent to all devices via updateDraftMessage updates.

+

Dialog objects fetched via the API also contain the draft associated with the dialog.

+

Clearing drafts

+

Drafts can be cleared by setting the clear_draft flag when sending messages or media using messages.sendMessage, messages.sendMedia, messages.sendMultiMedia, messages.sendInlineBotResult and similar or manually by passing empty values to messages.saveDraft.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/end-to-end.html b/data/web/blogfork.telegram.org/api/end-to-end.html new file mode 100644 index 0000000000..85518f78df --- /dev/null +++ b/data/web/blogfork.telegram.org/api/end-to-end.html @@ -0,0 +1,247 @@ + + + + + End-to-End Encryption, Secret Chats + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

End-to-End Encryption, Secret Chats

+ +
+ +
+

This article on MTProto's End-to-End encryption is meant for advanced users. +If you want to learn more about Secret Chats from a less intimidating source, kindly see our general FAQ.

+
+
+

Note that as of version 4.6, major Telegram clients are using MTProto 2.0. +MTProto v.1.0 is deprecated and is currently being phased out.

+
+
+
Related articles
+

+
+

Secret Chats are one-on-one chats wherein messages are encrypted with a key held only by the chat's participants. Note that the schema for these end-to-end encrypted Secret Chats is different from what is used for cloud chats:

+
+ +
+

A note on MTProto 2.0

+

This article describes the end-to-end encryption layer in the MTProto protocol version 2.0. +The principal differences from version 1.0 (described here for reference) are as follows:

+
    +
  • SHA-256 is used instead of SHA-1;
  • +
  • Padding bytes are involved in the computation of msg_key;
  • +
  • msg_key depends not only on the message to be encrypted, but on a portion of the secret chat key as well;
  • +
  • 12..1024 padding bytes are used instead of 0..15 padding bytes in v.1.0.
  • +
+

See also: MTProto 2.0: Cloud Chats, server-client encryption

+

Key Generation

+

Keys are generated using the Diffie-Hellman protocol.

+

Let us consider the following scenario: User A would like to initiate end-to-end encrypted communication with User B.

+

Sending a Request

+

User A executes messages.getDhConfig to obtain the Diffie-Hellman parameters: a prime p, and a high order element g.

+

Executing this method before each new key generation procedure is of vital importance. It makes sense to cache the values of the parameters together with the version in order to avoid having to receive all of the values every time. If the version stored on the client is still up-to-date, the server will return the constructor messages.dhConfigNotModified.

+

Client is expected to check whether p is a safe 2048-bit prime (meaning that both p and (p-1)/2 are prime, and that 2^2047 < p < 2^2048), and that g generates a cyclic subgroup of prime order (p-1)/2, i.e. is a quadratic residue mod p. Since g is always equal to 2, 3, 4, 5, 6 or 7, this is easily done using quadratic reciprocity law, yielding a simple condition on p mod 4g -- namely, p mod 8 = 7 for g = 2; p mod 3 = 2 for g = 3; no extra condition for g = 4; p mod 5 = 1 or 4 for g = 5; p mod 24 = 19 or 23 for g = 6; and p mod 7 = 3, 5 or 6 for g = 7. After g and p have been checked by the client, it makes sense to cache the result, so as to avoid repeating lengthy computations in future. This cache might be shared with one used for Authorization Key generation.

+

If the client needs additional entropy for the random number generator, it can pass the random_length parameter (random_length> 0) so the server generates its own random sequence random of the appropriate length. +Important: using the server's random sequence in its raw form may be unsafe, it must be combined with a client sequence.

+

Client A computes a 2048-bit number a (using sufficient entropy or the server's random; see above) and executes messages.requestEncryption after passing in g_a := pow(g, a) mod dh_prime.

+

User B receives the update updateEncryption for all associated authorization keys (all authorized devices) with the chat constructor encryptedChatRequested. The user must be shown basic information about User A and must be prompted to accept or reject the request.

+

Both clients are to check that g, g_a and g_b are greater than one and smaller than p-1. We recommend checking that g_a and g_b are between 2^{2048-64} and p - 2^{2048-64} as well.

+

Accepting a Request

+

After User B confirms the creation of a secret chat with A in the client interface, Client B also receives up-to-date configuration parameters for the Diffie-Hellman method. Thereafter, it generates a random 2048-bit number, b, using rules similar to those for a.

+

Having received g_a from the update with encryptedChatRequested, it can immediately generate the final shared key: key = (pow(g_a, b) mod dh_prime). If key length < 256 bytes, add several leading zero bytes as padding — so that the key is exactly 256 bytes long. Its fingerprint, key_fingerprint, is equal to the 64 last bits of SHA1 (key).

+

Note 1: in this particular case SHA1 is used here even for MTProto 2.0 secret chats.

+

Note 2: this fingerprint is used as a sanity check for the key exchange procedure to detect bugs when developing client software — it is not connected to the key visualization used on the clients as means of external authentication in secret chats. Key visualizations on the clients are generated using the first 128 bits of SHA1(initial key) followed by the first 160 bits of SHA256(key used when secret chat was updated to layer 46).

+

Client B executes messages.acceptEncryption after passing it g_b := pow(g, b) mod dh_prime and key_fingerprint.

+

For all of Client B's authorized devices, except the current one, updateEncryption updates are sent with the constructor encryptedChatDiscarded. Thereafter, the only device that will be able to access the secret chat is Device B, which made the call to messages.acceptEncryption.

+

User A will be sent an updateEncryption update with the constructor encryptedChat, for the authorization key that initiated the chat.

+

With g_b from the update, Client A can also compute the shared key key = (pow(g_b, a) mod dh_prime). If key length < 256 bytes, add several leading zero bytes as padding — so that the key is exactly 256 bytes long. If the fingerprint for the received key is identical to the one that was passed to encryptedChat, incoming messages can be sent and processed. Otherwise, messages.discardEncryption must be executed and the user notified.

+

Perfect Forward Secrecy

+

In order to keep past communications safe, official Telegram clients will initiate re-keying once a key has been used to decrypt and encrypt more than 100 messages, or has been in use for more than one week, provided the key has been used to encrypt at least one message. Old keys are then securely discarded and cannot be reconstructed, even with access to the new keys currently in use.

+
+

The re-keying protocol is further described in this article: Perfect Forward Secrecy in Secret Chats.

+
+

Please note that your client must support Forward Secrecy in Secret Chats to be compatible with official Telegram clients.

+

Sending and Receiving Messages in a Secret Chat

+

Serialization and Encryption of Outgoing Messages

+

A TL object of type DecryptedMessage is created and contains the message in plain text. For backward compatibility, the object must be wrapped in the constructor decryptedMessageLayer with an indication of the supported layer (starting with 46).

+
+

The TL-Schema for the contents of end-to-end encrypted messages is available here »

+
+

The resulting construct is serialized as an array of bytes using generic TL rules. The resulting array is prepended by 4 bytes containing the array length not counting these 4 bytes.

+

The byte array is padded with 12 to 1024 random padding bytes to make its length divisible by 16 bytes. (In the older MTProto 1.0 encryption, only 0 to 15 padding bytes were used.)

+

Message key, msg_key, is computed as the 128 middle bits of the SHA256 of the data obtained in the previous step, prepended by 32 bytes from the shared key key. (For the older MTProto 1.0 encryption, msg_key was computed differently, as the 128 lower bits of SHA1 of the data obtained in the previous steps, excluding the padding bytes.)

+

For MTProto 2.0, the AES key aes_key and initialization vector aes_iv are computed ( key is the shared key obtained during Key Generation ) as follows:

+
    +
  • msg_key_large = SHA256 (substr (key, 88+x, 32) + plaintext + random_padding);
  • +
  • msg_key = substr (msg_key_large, 8, 16);
  • +
  • sha256_a = SHA256 (msg_key + substr (key, x, 36));
  • +
  • sha256_b = SHA256 (substr (key, 40+x, 36) + msg_key);
  • +
  • aes_key = substr (sha256_a, 0, 8) + substr (sha256_b, 8, 16) + substr (sha256_a, 24, 8);
  • +
  • aes_iv = substr (sha256_b, 0, 8) + substr (sha256_a, 8, 16) + substr (sha256_b, 24, 8);
  • +
+

For MTProto 2.0, x=0 for messages from the originator of the secret chat, x=8 for the messages in the opposite direction.

+

For the obsolete MTProto 1.0, msg_key, aes_key, and aes_iv were computed differently (see this document for reference).

+

Data is encrypted with a 256-bit key, aes_key, and a 256-bit initialization vector, aes-iv, using AES-256 encryption with infinite garble extension (IGE). Encryption key fingerprint key_fingerprint and the message key msg_key are added at the top of the resulting byte array.

+

Encrypted data is embedded into a messages.sendEncrypted API call and passed to Telegram server for delivery to the other party of the Secret Chat.

+

Upgrading to MTProto 2.0 from MTProto 1.0

+

As soon as both parties in a secret chat are using at least Layer 73, they should only use MTProto 2.0 for all outgoing messages. Some of the first received messages may use MTProto 1.0, if a sufficiently high starting layer has not been negotiated during the creation of the secret chat. After the first message encrypted with MTProto 2.0 (or the first message with Layer 73 or higher) is received, all messages with higher sequence numbers must be encrypted with MTProto 2.0 as well.

+

As long as the current layer is lower than 73, each party should try to decrypt received messages with MTProto 1.0, and if this is not successful (msg_key does not match), try MTProto 2.0. Once the first MTProto 2.0-encrypted message arrives (or the layer is upgraded to 73), there is no need to try MTProto 1.0 decryption for any of the further messages (unless the client is still waiting for some gaps to be closed).

+

Decrypting an Incoming Message

+

The steps above are performed in reverse order. +When an encrypted message is received, you must check that msg_key is in fact equal to the 128 middle bits of the SHA256 hash of the decrypted message, prepended by 32 bytes taken from the shared key. +If the message layer is greater than the one supported by the client, the user must be notified that the client version is out of date and prompted to update.

+

Sequence numbers

+

It is necessary to interpret all messages in their original order to protect against possible manipulations. Secret chats support a special mechanism for handling seq_no counters independently from the server.

+
+

Proper handling of these counters is further described in this article: Sequence numbers in Secret Chats.

+
+

Please note that your client must support sequence numbers in Secret Chats to be compatible with official Telegram clients.

+

Sending Encrypted Files

+

All files sent to secret chats are encrypted with one-time keys that are in no way related to the chat's shared key. Before an encrypted file is sent, it is assumed that the encrypted file's address will be attached to the outside of an encrypted message using the file parameter of the messages.sendEncryptedFile method and that the key for direct decryption will be sent in the body of the message (the key parameter in the constructors decryptedMessageMediaPhoto, decryptedMessageMediaVideo and decryptedMessageMediaFile.

+

Prior to a file being sent to a secret chat, 2 random 256-bit numbers are computed which will serve as the AES key and initialization vector used to encrypt the file. AES-256 encryption with infinite garble extension (IGE) is used in like manner.

+

The key fingerprint is computed as follows:

+
    +
  • digest = md5(key + iv)
  • +
  • fingerprint = substr(digest, 0, 4) XOR substr(digest, 4, 4)
  • +
+

The encrypted contents of a file are stored on the server in much the same way as those of a file in cloud chats: piece by piece using calls to upload.saveFilePart. +A subsequent call to messages.sendEncryptedFile will assign an identifier to the stored file and send the address together with the message. The recipient will receive an update with encryptedMessage, and the file parameter will contain file information.

+

Incoming and outgoing encrypted files can be forwarded to other secret chats using the constructor inputEncryptedFile to avoid saving the same content on the server twice.

+

Working with an Update Box

+

Secret chats are associated with specific devices (or rather with authorization keys), not users. A conventional message box, which uses pts to describe the client's status, is not suitable, because it is designed for long-term message storage and message access from different devices.

+

An additional temporary message queue is introduced as a solution to this problem. When an update regarding a message from a secret chat is sent, a new value of qts is sent, which helps reconstruct the difference if there has been a long break in the connection or in case of loss of an update.

+

As the number of events increases, the value of qts increases by 1 with each new event. The initial value may not (and will not) be equal to 0.

+

The fact that events from the temporary queue have been received and stored by the client is acknowledged explicitly by a call to the messages.receivedQueue method or implicitly by a call to updates.getDifference (the value of qts passed, not the final state). All messages acknowledged as delivered by the client, as well as any messages older than 7 days, may (and will) be deleted from the server.

+

Upon de-authorization, the event queue of the corresponding device will be forcibly cleared, and the value of qts will become irrelevant.

+

Updating to new layers

+

Your client should always store the maximal layer that is known to be supported by the client on the other side of a secret chat. When the secret chat is first created, this value should be initialized to 46. This remote layer value must always be updated immediately after receiving any packet containing information of an upper layer, i.e.:

+
    +
  • any secret chat message containing layer_no in its decryptedMessageLayer with layer>=46, or
  • +
  • a decryptedMessageActionNotifyLayer service message, wrapped as if it were the decryptedMessageService constructor of the obsolete layer 8 (constructor decryptedMessageService#aa48327d).
  • +
+

Notifying the remote client about your local layer

+

In order to notify the remote client of your local layer, your client must send a message of the decryptedMessageActionNotifyLayer type. This notification must be wrapped in a constructor of an appropriate layer.

+

There are two cases when your client must notify the remote client about its local layer:

+
    +
  1. As soon as a new secret chat has been created, immediately after the secret key has been successfully exchanged.
  2. +
  3. Immediately after the local client has been updated to support a new secret chat layer. In this case notifications must be sent to all currently existing secret chats. Note that this is only necessary when updating to new layers that contain changes in the secret chats implementation (e.g. you don't need to do this when your client is updated from Layer 46 to Layer 47).
  4. +
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/end-to-end/pfs.html b/data/web/blogfork.telegram.org/api/end-to-end/pfs.html new file mode 100644 index 0000000000..354ce6b360 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/end-to-end/pfs.html @@ -0,0 +1,179 @@ + + + + + Perfect Forward Secrecy + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Perfect Forward Secrecy

+ +
+

Telegram supports Perfect Forward Secrecy (PFS) in Secret Chats as of Layer 20. See updating to new layers.

+
+

In order to keep past communications safe, official Telegram clients will initiate re-keying once a key has been used to decrypt and encrypt more than 100 messages, or has been in use for more than one week, provided the key has been used to encrypt at least one message. Old keys are then securely discarded and cannot be reconstructed, even with access to the new keys currently in use.

+

Any client participating in a Secret Chat can initiate re-keying as soon as it perceives that the current key has been used for too long or for encrypting too many messages. Please note that you should never initiate a new instance of the re-keying protocol if an uncompleted instance exists, initiated by either party.

+

Note: third-party developers are required to maintain the same level of security. All clients with secret chat support must be able to initiate re-keying and accept relevant service messages. See Security Guidelines.

+

Re-keying protocol

+

New keys are generated by exchanging special messages, using previously established keys for encryption. The re-keying protocol between parties A and B normally consists of four steps:

+
1. decryptedMessageActionRequestKey
+

A (re-keying initiator) generates a new value of a, subject to the same limitations as for the initial Diffie-Hellman key exchange, and sends the value of pow(g,a) to B, embedded in a decryptedMessageService:

+
decryptedMessageActionRequestKey exchange_id:long g_a:string = DecryptedMessageAction;
+
    +
  • exchange_id is a random number identifying this instance of the Re-Keying Protocol for both parties
  • +
  • g_a is the value of pow(g,a) mod p
  • +
+

Note that the same Diffie--Hellman parameters (p,g) as for the initial Diffie--Hellman key exchange in this secret chat are used. They do not need to be re-transmitted explicitly.

+
2. decryptedMessageActionAcceptKey
+

Upon receipt of the above service message, B checks its content, and generates a response with same exchange_id, for a newly generated value of b:

+
decryptedMessageActionAcceptKey exchange_id:long g_b:string key_fingerprint:long = DecryptedMessageAction;
+
    +
  • exchange_id is the same as in the received decryptedMessageActionRequestKey
  • +
  • g_b is the value of pow(g,b) mod p
  • +
  • key_fingerprint is the 64-bit fingerprint of the newly generated key = pow(g_a, b) mod p, used as a sanity check of the implementation
  • +
+

At this stage, B can already compute the new key key = pow(g_a, b) mod p and its key_fingerprint (last 64 bits of its SHA-1). However, it continues using the previous key until the completion of the exchange.

+

Once side B sends decryptedMessageActionAcceptKey, it cannot abort the key exchange; it must be ready to switch to the new key immediately after a decryptedMessageActionCommitKey is received. Therefore, if side B wishes to delay the usage of new key, for example in order to fill some seq_no gaps first, it must delay the decryptedMessageActionAcceptKey answer accordingly.

+
3. decryptedMessageActionCommitKey
+

Once A receives a valid decryptedMessageActionAcceptKey, it performs all necessary checks, and "commits" the new key by means of the following service message:

+
decryptedMessageActionCommitKey exchange_id:long key_fingerprint:long = DecryptedMessageAction;
+
    +
  • exchange_id is the same as in the two previous messages
  • +
  • key_fingerprint is the value of the hash (last 64 bits of SHA-1) of the new key computed by A, for implementation sanity check
  • +
+

After that, A can (and must) encrypt all following messages with the new key.

+

If side A wishes to delay installation of the new key, for example because there are some seq_no gaps that it wants to fill first, it must delay decryptedMessageActionCommitKey answer accordingly.

+
4. Final step
+

When B receives either a decryptedMessageActionCommitKey or a message encrypted by the new key, recognized by the value of key_fingerprint prepended to the encrypted message (it may happen that the decryptedMessageActionCommitKey has been lost and will be re-requested later), it assumes that A has started using the new key for encryption, and does the same.

+

However, the previous key may be kept until there are no gaps in received messages up to the switch to the new key. Once all the gaps have been filled, the old key must be securely discarded.

+

There is one exception to this rule — the SHA-1 of the original key (generated during the establishment of Secret Chat in question) is always stored, in order to show key visualizations on the clients.

+

Aborting protocol

+

Any of the parties may abort any instance of an uncompleted re-keying protocol, unless decryptedMessageActionCommitKey or decryptedMessageActionAcceptKey has been already sent by the party in question. In order to abort re-keying, send

+
decryptedMessageActionAbortKey exchange_id:long = DecryptedMessageAction;
+

This could be done, for example, if the party is already participating in a different instance of the re-keying protocol, or if the received values of g_a, g_b and other parameters do not pass security checks. In the latter case, it might be advisable to abort the Secret Chat altogether.

+

Discarding Previous Keys

+

Once B receives decryptedMessageActionCommitKey, it can safely discard the previous key provided there are no gaps. However, A may only discard the previous key after a message encrypted with the new key has been received. If no ordinary messages are scheduled to be sent, a special no-op message should sent by B for this purpose:

+
decryptedMessageActionNoop = DecryptedMessageAction;
+

Concurrent Re-Keying

+

It may happen that both parties concurrently initiate re-keying by sending decryptedMessageActionRequestKey without knowing that the other party has already done so. If each side aborts re-keying because it is already participating in another instance of the protocol initiated by itself, the re-keying will never happen.

+

Because of this possibility, we suggest that only the instance with the smaller exchange_id is aborted, with the option to re-use its (a,g_a) for the re-keying protocol instance with the larger exchange_id (when compared as a long, i.e. signed little-endian 64-bit integer).

+

In other words, if a decryptedMessageActionRequestKey is received after A has sent its decryptedMessageActionRequestKey, but has not yet received decryptedMessageActionAcceptKey, the following is to be done:

+
    +
  • if exchange_id in the sent decryptedMessageActionRequestKey was larger than that in the decryptionActionRequestKey just received, abort the newly-suggested re-keying protocol instance without sending explicit decryptedMessageActionAbortKey (the other side will do the same according to the next rule).
  • +
  • if exchange_id in our decryptedMessageActionRequestKey was smaller, respond to the newly-received decryptedMessageActionRequestKey with a decryptedMessageActionAcceptKey, and participate only in the re-keying protocol instance initiated by the other side. It is possible to re-use at this stage the value of g_a (now called g_b) that was generated for the original decryptedMessageActionRequestKey, now abandoned, or totally new (b,g_b) can be generated.
  • +
  • in the unlikely (2^{-64}) case both exchange_id are equal, abort both instances without sending an explicit decryptedMessageActionAbortKey. The other side will do the same.
  • +
+
Key Visualization
+

Since all re-keying instances are carried over the secure channel established when the secret chat is created, it is necessary for the user to confirm that no MITM attack had taken place during the initial exchange. The key visualization on the clients uses the first 128-bits of the SHA-1 of the original key created when the Secret Chat was first established, followed by the first 160 bits of the SHA-256 of the key in use when the secret chat was updated to layer 46 (coincides with the original key if chat was created using layer 46).

+
+

Please note that the key_fingerprint parameter was introduced as a maintenance tool (with a misleading name) and is not related to key visualization on the clients.

+
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/end-to-end/seq_no.html b/data/web/blogfork.telegram.org/api/end-to-end/seq_no.html new file mode 100644 index 0000000000..b798114841 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/end-to-end/seq_no.html @@ -0,0 +1,176 @@ + + + + + Sequence numbers in Secret Chats + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Sequence numbers in Secret Chats

+ +

It is necessary to interpret all messages in their original order to protect against reordering, reflection, replay, omission and other manipulations (decryptedMessageActionResend messages are the only exception to this rule, see avoiding concurrent gaps). Secret chats support a special mechanism for handling seq_no counters independently from the server. Note that any service messages in secret chats must also increment the seq_no.

+

All Secret Chats messages in clients using Layer 17 or higher are wrapped in decryptedMessageLayer and have seq_no (sequence number) counters attached to them. The seq_no counters in their raw form are initialized with (out_seq_no, in_seq_no) := (0,0), and incremented strictly by 1 after any message (service or not) is sent/received and processed. They must be protected from mirroring before being sent to the remote client by transformation according to formula 2*raw_seq_no+x, where x is 0 or 1, determined by the following rule:

+ + + + + + + + + + + + + + + + + +
in_seq_noout_seq_no
secret chat initiated by sender01
secret chat initiated by recipient10
+

In this way the least significant bit of each seq_no field included in the message is different for incoming and outgoing messages. This is done to prevent a possible attacker from mirroring the messages. If any of the received in_seq_no or out_seq_no are not consistent in terms of parity (see table above), the client is required to immediately abort the secret chat.

+
+

E.g., the first message the local client sends to any secret chat will have out_seq_no of 0+x_out, the second one will have out_seq_no of 2*1+x_out, and so on, where x_out is 0 if the chat was initiated by the remote client, 1 otherwise; similarly for the received messages, but there x_in is used instead of x_out and is equal to 0 if the chat was initiated by the local client, 1 otherwise.

+
+

Raw sequence numbers will be used in the remaining part of this text, unless otherwise specified.

+

Preventing gaps

+

Your client must ensure that all outgoing secret chat messages are queued on the server in the correct order. This is achieved by correctly placing them into the invokeAfterMsgs chain. Failure to do this may result in gaps on the remote client, which may in turn lead to aborted secret chats. The local client must maintain the correct sequence of in_seq_no for the remote client. To achieve this, assign in_seq_no and out_seq_no to each message at the exact moment when the message is created, and never change them in the future.

+

Security checks

+

Checking out_seq_no

+

Your client must check that it has received each message with the sequence number out_seq_no starting from 0 to some current point C. It should then expect the next message to have the sequence number out_seq_no=C+1. If the out_seq_no in the received message does not match this, the following needs to be done:

+
    +
  • If the received out_seq_no<=C, the local client must drop the message (repeated message). The client should not check the contents of the message because the original message could have been deleted (see Deleting unacknowledged messages).
  • +
  • If the received out_seq_no>C+1, it most likely means that the server left out some messages due to a technical failure or due to the messages becoming obsolete. A temporary solution to this is to simply abort the secret chat. But since this may cause some existing older secret chats to be aborted, it is strongly recommended for the client to properly handle such seq_no gaps. Note that in_seq_no is not increased upon receipt of such a message; it is advanced only after all preceding gaps are filled.
  • +
+

Proper handling of gaps

+

In order to correctly handle incoming messages after a hole has been identified (when received out_seq_no>C+1), it is necessary to put received messages with the wrong seq_no into a "waiting queue" on the local client, and to re-request the missing messages using the special constructor decryptedMessageActionResend start_seq_no:int end_seq_no:int = DecryptedMessageAction;. The sequence numbers used in this constructor must be ready for interpretation by the remote client and therefore cannot be in their raw form: you can easily get the necessary start_seq_no by adding 2 to the out_seq_no of the last message before the hole and the end_seq_no by subtracting 2 from the out_seq_no of the received message with the wrong sequence number.

+

Each hole normally requires only one request to resend messages — if the remote client keeps sending out of sync messages, they should be put into the queue without sending a new request. Having received the missing messages, the local client must first interpret these messages in the right order by their seq_no. Once this is done, the client can proceed to interpret messages from the queue (again, in the right seq_no order).

+

Special cases:

+
    +
  • Note that having two gaps simultaneously is very rare (provided that the remote client and server are operating normally) and it is acceptable to abort the secret chat in this situation.
  • +
  • If a local client receives decryptedMessageActionResend but is unable to satisfy the request, it must abort the secret chat.
  • +
+

Avoiding concurrent gaps

+

In order to avoid getting stuck with concurrent gaps on both sides, decryptedMessageActionResend must always be interpreted immediately upon receipt in all cases, even if its out_seq_no>=C+1. Note that each decryptedMessageActionResend must only be handled once, it must not be interpreted again when we interpret messages in the queue.

+

Checking and handling in_seq_no

+

in_seq_no of all received messages must be valid. To ensure this, perform the following checks:

+
    +
  • in_seq_no must form a non-decreasing sequence of non-negative integer numbers.
  • +
  • in_seq_no must be valid at the moment of receiving the message, that is, if D is the out_seq_no of last message we sent, the received in_seq_no should not be greater than D + 1. This also allows us to insert the received message into its correct place in the secret chat. For example, imagine that the local client has sent 5 secret chat messages, and then receives a secret chat message with the text "Yes" and in_seq_no=2. In this situation the local client must place that message after the second message it sent. This makes manipulations with delayed messages impossible.
  • +
+

If in_seq_no contradicts these criteria, the local client is required to immediately abort the secret chat. This could happen only in case of malicious or buggy behaviour on either server or remote client side.

+

Deleting unacknowledged messages

+

In case the user on the local client has deleted a message before the server (or the remote client, if decryptedMessageActionResend is handled correctly) could acknowledge the message, for security reasons, you must:

+
    +
  • securely destroy the contents of the message (as in case of any other deleted Secret Chat message);
  • +
  • change the local copy of the original message to decryptedMessageActionDeleteMessages with random_id equal to its own random_id;
  • +
  • create a new outgoing message deleting the original message.
  • +
+

This must be done because your client doesn't know whether the remote client really received the message or not. In the case the message was already received, it will be deleted by the second message; otherwise it must arrive as a "self-delete" message to maintain the correct sequence of seq_no.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/end-to-end/video-calls.html b/data/web/blogfork.telegram.org/api/end-to-end/video-calls.html new file mode 100644 index 0000000000..11c1c7f194 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/end-to-end/video-calls.html @@ -0,0 +1,218 @@ + + + + + End-to-End Encrypted Voice and Video Calls + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

End-to-End Encrypted Voice and Video Calls

+ +

This article describes the end-to-end encryption used for Telegram voice and video calls.

+
Related Articles
+

+ +
+

Establishing Calls

+

Before a call is ready, some preliminary actions have to be performed. The calling party needs to contact the party to be called and check whether it is ready to accept the call. Besides that, the parties have to negotiate the protocols to be used, learn the IP addresses of each other or of the Telegram relay servers to be used (so-called reflectors), and generate a one-time encryption key for this voice call with the aid of Diffie--Hellman key exchange. All of this is accomplished in parallel with the aid of several Telegram API methods and related notifications. This document covers details related to key generation, encryption and security.

+

Key Generation

+

The Diffie-Hellman key exchange, as well as the whole protocol used to create a new voice call, is quite similar to the one used for Secret Chats. We recommend studying the linked article before proceeding.

+

However, we have introduced some important changes to facilitate the key verification process. Below is the entire exchange between the two communicating parties, the Caller (A) and the Callee (B), through the Telegram servers (S).

+
    +
  • A executes messages.getDhConfig to find out the 2048-bit Diffie-Hellman prime p and generator g. The client is expected to check whether p is a safe prime and perform all the security checks necessary for secret chats.
  • +
  • A chooses a random value of a, 1 < a < p-1, and computes g_a:=power(g,a) mod p (a 256-byte number) and g_a_hash:=SHA256(g_a) (32 bytes long).
  • +
  • A invokes (sends to server S) phone.requestCall, which has the field g_a_hash:bytes, among others. For this call, this field is to be filled with g_a_hash, not g_a itself.
  • +
  • The Server S performs privacy checks and sends an updatePhoneCall update with a phoneCallRequested constructor to all of B's active devices. This update, apart from the identity of A and other relevant parameters, contains the g_a_hash field, filled with the value obtained from A.
  • +
  • B accepts the call on one of their devices, stores the received value of g_a_hash for this instance of the voice call creation protocol, chooses a random value of b, 1 < b < p-1, computes g_b:=power(g,b) mod p, performs all the required security checks, and invokes the phone.acceptCall method, which has a g_b:bytes field (among others), to be filled with the value of g_b itself (not its hash).
  • +
  • The Server S sends an updatePhoneCall with the phoneCallDiscarded constructor to all other devices B has authorized, to prevent accepting the same call on any of the other devices. From this point on, the server S works only with that of B's devices which has invoked phone.acceptCall first.
  • +
  • The Server S sends to A an updatePhoneCall update with phoneCallAccepted constructor, containing the value of g_b received from B.
  • +
  • A performs all the usual security checks on g_b and a, computes the Diffie--Hellman key key:=power(g_b,a) mod p and its fingerprint key_fingerprint:long, equal to the lower 64 bits of SHA1(key), the same as with secret chats. Then A invokes the phone.confirmCall method, containing g_a:bytes and key_fingerprint:long.
  • +
  • The Server S sends to B an updatePhoneCall update with the phoneCall constructor, containing the value of g_a in g_a_or_b:bytes field, and key_fingerprint:long
  • +
  • At this point B receives the value of g_a. It checks that SHA256(g_a) is indeed equal to the previously received value of g_a_hash, performs all the usual Diffie-Hellman security checks, and computes the key key:=power(g_a,b) mod p and its fingerprint, equal to the lower 64 bits of SHA1(key). Then it checks that this fingerprint equals the value of key_fingerprint:long received from the other side, as an implementation sanity check.
  • +
+

At this point, the Diffie--Hellman key exchange is complete, and both parties have a 256-byte shared secret key key which is used to encrypt all further exchanges between A and B.

+

It is of paramount importance to accept each update only once for each instance of the key generation protocol, discarding any duplicates or alternative versions of already received and processed messages (updates).

+

Encryption

+
+

This document describes encryption in voice and video calls as implemented in Telegram apps with versions 7.0 and above. See this document for details on encryption used in voice calls in app versions released before August 14, 2020.

+
+

The Telegram Voice and Video Call Library uses an optimized version of MTProto 2.0 to send and receive packets, consisting of one or more end-to-end encrypted messages of various types (ice candidates list, video formats, remote video status, audio stream data, video stream data, message ack or empty).

+

This document describes only the encryption process, leaving out encoding and network-dependent parts.

+

The library starts working with:

+
    +
  • An encryption key key shared between the parties, as generated above.
  • +
  • Information whether the call is outgoing or incoming.
  • +
  • Two data transfer channels: signaling, offered by the Telegram API, and transport based on WebRTC.
  • +
+

Both data transfer channels are unreliable (messages may get lost), but signaling is slower and more reliable.

+

Encrypting Call Data

+

The body of a packet (decrypted_body) consists of several messages and their respective seq numbers concatenated together.

+
    +
  • decrypted_body = message_seq1 + message_body1 + message_seq2 + message_body2
  • +
+

Each decrypted_body is unique because no two seq numbers of the first message can be the same. If only old messages need to be re-sent, an empty message with new unique seq is added to the packet first.

+

The encryption key key is used to compute a 128-bit msg_key and then a 256-bit aes_key and a 128-bit aes_iv:

+
    +
  • msg_key_large = SHA256 (substr(key, 88+x, 32) + decrypted_body);
  • +
  • msg_key = substr (msg_key_large, 8, 16);
  • +
  • sha256_a = SHA256 (msg_key + substr (key, x, 36));
  • +
  • sha256_b = SHA256 (substr (key, 40+x, 36) + msg_key);
  • +
  • aes_key = substr (sha256_a, 0, 8) + substr (sha256_b, 8, 16) + substr (sha256_a, 24, 8);
  • +
  • aes_iv = substr (sha256_b, 0, 4) + substr (sha256_a, 8, 8) + substr (sha256_b, 24, 4);
  • +
+

x depends on whether the call is outgoing or incoming and on the connection type:

+
    +
  • x = 0 for outgoing + transport
  • +
  • x = 8 for incoming + transport
  • +
  • x = 128 for outgoing + signaling
  • +
  • x = 136 for incoming + signaling
  • +
+

This allows apps to decide which packet types will be sent to which connections and work in these connections independently (with each having its own seq counter).

+

The resulting aes_key and aes_iv are used to encrypt decrypted_body:

+
    +
  • encrypted_body = AES_CTR (decrypted_body, aes_key, aes_iv)
  • +
+

The packet that gets sent consists of msg_key and encrypted_body:

+
    +
  • packet_bytes = msg_key + encrypted_body
  • +
+

When received, the packet gets decrypted using key and msg_key, after which msg_key is checked against the relevant SHA256 substring. If the check fails, the packet must be discarded.

+

Protecting Against Replay Attacks

+

Each of the peers maintains its own 32-bit monotonically increasing counter for outgoing messages, seq, starting with 1. This seq counter is prepended to each sent message and increased by 1 for each new message. No two seq numbers of the first message in a packet can be the same. If only old messages need to be re-sent, an empty message with a new unique seq is added to the packet first. When the seq counter reaches 2^30, the call must be aborted. Each peer stores seq values of all the messages it has received (and processed) which are larger than max_received_seq - 64, where max_received_seq is the largest seq number received so far.

+

If a packet is received, the first message of which has a seq that is smaller or equal to max_received_seq - 64 or its seq had already been received, the message is discarded. Otherwise, the seq values of all incoming messages are memorized and max_received_seq is adjusted. This guarantees that no two packets will be processed twice.

+

Key Verification

+

To verify the key, and ensure that no MITM attack is taking place, both parties concatenate the secret key key with the value g_a of the Caller ( A ), compute SHA256 and use it to generate a sequence of emoticons. More precisely, the SHA256 hash is split into four 64-bit integers; each of them is divided by the total number of emoticons used (currently 333), and the remainder is used to select specific emoticons. The specifics of the protocol guarantee that comparing four emoticons out of a set of 333 is sufficient to prevent eavesdropping (MiTM attack on DH) with a probability of 0.9999999999.

+

This is because instead of the standard Diffie-Hellman key exchange which requires only two messages between the parties:

+
    +
  • A->B : (generates a and) sends g_a := g^a
  • +
  • B->A : (generates b and true key (g_a)^b, then) sends g_b := g^b
  • +
  • A : computes key (g_b)^a
  • +
+

we use a three-message modification thereof that works well when both parties are online (which also happens to be a requirement for voice calls):

+
    +
  • A->B : (generates a and) sends g_a_hash := hash(g^a)
  • +
  • B->A : (stores g_a_hash, generates b and) sends g_b := g^b
  • +
  • A->B : (computes key (g_b)^a, then) sends g_a := g^a
  • +
  • B : checks hash(g_a) == g_a_hash, then computes key (g_a)^b
  • +
+

The idea here is that A commits to a specific value of a (and of g_a) without disclosing it to B. B has to choose its value of b and g_b without knowing the true value of g_a, so that it cannot try different values of b to force the final key (g_a)^b to have any specific properties (such as fixed lower 32 bits of SHA256(key)). At this point, B commits to a specific value of g_b without knowing g_a. Then A has to send its value g_a; it cannot change it even though it knows g_b now, because the other party B would accept only a value of g_a that has a hash specified in the very first message of the exchange.

+

If some impostor is pretending to be either A or B and tries to perform a Man-in-the-Middle Attack on this Diffie--Hellman key exchange, the above still holds. Party A will generate a shared key with B -- or whoever pretends to be B -- without having a second chance to change its exponent a depending on the value g_b received from the other side; and the impostor will not have a chance to adapt his value of b depending on g_a, because it has to commit to a value of g_b before learning g_a. The same is valid for the key generation between the impostor and the party B.

+

The use of hash commitment in the DH exchange constrains the attacker to only one guess to generate the correct visualization in their attack, which means that using just over 33 bits of entropy represented by four emoji in the visualization is enough to make a successful attack highly improbable.

+
+

For a slightly more user-friendly explanation of the above see: How are calls authenticated?

+
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/end-to-end/voice-calls.html b/data/web/blogfork.telegram.org/api/end-to-end/voice-calls.html new file mode 100644 index 0000000000..191ff65134 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/end-to-end/voice-calls.html @@ -0,0 +1,181 @@ + + + + + End-to-End Encrypted Voice Calls + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

End-to-End Encrypted Voice Calls

+ +
+

This document describes encryption in voice calls as implemented in Telegram apps with versions < 7.0. See this document for details on encryption used in voice and video calls in app versions released on August 14, 2020 and later.

+
+
Related articles
+

+ +

Establishing voice calls

+

Before a voice call is ready, some preliminary actions have to be performed. The calling party needs to contact the party to be called and check whether it is ready to accept the call. Besides that, the parties have to negotiate the protocols to be used, learn the IP addresses of each other or of the Telegram relay servers to be used (so-called reflectors), and generate a one-time encryption key for this voice call with the aid of Diffie--Hellman key exchange. All of this is accomplished in parallel with the aid of several Telegram API methods and related notifications. This document details the generation of the encryption key. Other negotiations will be eventually documented elsewhere.

+

Key Generation

+

The Diffie-Hellman key exchange, as well as the whole protocol used to create a new voice call, is quite similar to the one used for Secret Chats. We recommend studying the linked article before proceeding.

+

However, we have introduced some important changes to facilitate the key verification process. Below is the entire exchange between the two communicating parties, the Caller (A) and the Callee (B), through the Telegram servers (S).

+
    +
  • A executes messages.getDhConfig to find out the 2048-bit Diffie-Hellman prime p and generator g. The client is expected to check whether p is a safe prime and perform all the security checks necessary for secret chats.
  • +
  • A chooses a random value of a, 1 < a < p-1, and computes g_a:=power(g,a) mod p (a 256-byte number) and g_a_hash:=SHA256(g_a) (32 bytes long).
  • +
  • A invokes (sends to server S) phone.requestCall, which has the field g_a_hash:bytes, among others. For this call, this field is to be filled with g_a_hash, not g_a itself.
  • +
  • The Server S performs privacy checks and sends an updatePhoneCall update with a phoneCallRequested constructor to all of B's active devices. This update, apart from the identity of A and other relevant parameters, contains the g_a_hash field, filled with the value obtained from A.
  • +
  • B accepts the call on one of their devices, stores the received value of g_a_hash for this instance of the voice call creation protocol, chooses a random value of b, 1 < b < p-1, computes g_b:=power(g,b) mod p, performs all the required security checks, and invokes the phone.acceptCall method, which has a g_b:bytes field (among others), to be filled with the value of g_b itself (not its hash).
  • +
  • The Server S sends an updatePhoneCall with the phoneCallDiscarded constructor to all other devices B has authorized, to prevent accepting the same call on any of the other devices. From this point on, the server S works only with that of B's devices which has invoked phone.acceptCall first.
  • +
  • The Server S sends to A an updatePhoneCall update with phoneCallAccepted constructor, containing the value of g_b received from B.
  • +
  • A performs all the usual security checks on g_b and a, computes the Diffie--Hellman key key:=power(g_b,a) mod p and its fingerprint key_fingerprint:long, equal to the lower 64 bits of SHA1(key), the same as with secret chats. Then A invokes the phone.confirmCall method, containing g_a:bytes and key_fingerprint:long.
  • +
  • The Server S sends to B an updatePhoneCall update with the phoneCall constructor, containing the value of g_a in g_a_or_b:bytes field, and key_fingerprint:long
  • +
  • At this point B receives the value of g_a. It checks that SHA256(g_a) is indeed equal to the previously received value of g_a_hash, performs all the usual Diffie-Hellman security checks, and computes the key key:=power(g_a,b) mod p and its fingerprint, equal to the lower 64 bits of SHA1(key). Then it checks that this fingerprint equals the value of key_fingerprint:long received from the other side, as an implementation sanity check.
  • +
+

At this point, the Diffie--Hellman key exchange is complete, and both parties have a 256-byte shared secret key key which is used to encrypt all further exchanges between A and B.

+

It is of paramount importance to accept each update only once for each instance of the key generation protocol, discarding any duplicates or alternative versions of already received and processed messages (updates).

+

Encryption of voice data

+

Both parties A (the Caller) and B (the Callee) transform the voice information into a sequence of small chunks or packets, not more than 1 kilobyte each. This information is to be encrypted using the shared key key generated during the initial exchange, and sent to the other party, either directly (P2P) or through Telegram's relay servers (so-called reflectors). This document describes only the encryption process for each chunk, leaving out voice encoding and the network-dependent parts.

+

Encapsulation of low-level voice data

+

The low-level data chunk raw_data:string, obtained from voice encoder, is first encapsulated into one of the two constructors for the DecryptedDataBlock type, similar to DecryptedMessage used in secret chats:

+
decryptedDataBlock#dbf948c1 random_id:long random_bytes:string flags:# voice_call_id:flags.2?int128 in_seq_no:flags.4?int out_seq_no:flags.4?int recent_received_mask:flags.5?int proto:flags.3?int extra:flags.1?string raw_data:flags.0?string = DecryptedDataBlock;
+simpleDataBlock#cc0d0e76 random_id:long random_bytes:string raw_data:string = DecryptedDataBlock;
+

Here out_seq_no is the chunk's sequence number among all sent by this party (starting from one), in_seq_no -- the highest known out_seq_no from the received packets. The parameter recent_received_mask is a 32-bit mask, used to track delivery of the last 32 packets sent by the other party. The bit i is set if a packet with out_seq_no equal to in_seq_no-i has been received.

+

The higher 8 bits in flags are reserved for use by the lower-level protocol (the one which generates and interprets raw_data), and will never be used for future extensions of decryptedDataBlock.

+

The parameters voice_call_id and proto are mandatory until the other side confirms reception of at least one packet by sending a packet with a non-zero in_seq_no. After that, they become optional, and the simpleDataBlock constructor can be used if the lower level protocol wants to.

+

The parameter voice_call_id is computed from the key key and equals the lower 128 bits of its SHA-256.

+

The random_bytes string should contain at least 7 bytes of random data. The field random_id also contains 8 random bytes, which can be used as a unique packet identifier if necessary.

+

MTProto encryption

+

Once the data is encapsulated in DecryptedDataBlock, it is TL-serialized and encrypted with MTProto, using key instead of auth_key; the parameter x is to be set to 0 for messages from A to B, and to 8 for messages in the opposite direction. Encrypted data are prepended by the 128-bit msg_key (usual for MTProto); before that, either the 128-bit voice_call_id (if P2P is used) or the peer_tag (if reflectors are used) is prepended. The resulting data packet is sent by UDP either directly to the other party (if P2P is possible) or to the Telegram relay servers (reflectors).

+

Key Verification

+

To verify the key, both parties concatenate the secret key key with the value g_a of the Caller ( A ), compute SHA256 and use it to generate a sequence of emoticons. More precisely, the SHA256 hash is split into four 64-bit integers; each of them is divided by the total number of emoticons used (currently 333), and the remainder is used to select specific emoticons. The specifics of the protocol guarantee that comparing four emoticons out of a set of 333 is sufficient to prevent eavesdropping (MiTM attack on DH) with a probability of 0.9999999999.

+

This is because instead of the standard Diffie-Hellman key exchange which requires only two messages between the parties:

+
    +
  • A->B : (generates a and) sends g_a := g^a
  • +
  • B->A : (generates b and true key (g_a)^b, then) sends g_b := g^b
  • +
  • A : computes key (g_b)^a
  • +
+

we use a three-message modification thereof that works well when both parties are online (which also happens to be a requirement for voice calls):

+
    +
  • A->B : (generates a and) sends g_a_hash := hash(g^a)
  • +
  • B->A : (stores g_a_hash, generates b and) sends g_b := g^b
  • +
  • A->B : (computes key (g_b)^a, then) sends g_a := g^a
  • +
  • B : checks hash(g_a) == g_a_hash, then computes key (g_a)^b
  • +
+

The idea here is that A commits to a specific value of a (and of g_a) without disclosing it to B. B has to choose its value of b and g_b without knowing the true value of g_a, so that it cannot try different values of b to force the final key (g_a)^b to have any specific properties (such as fixed lower 32 bits of SHA256(key)). At this point, B commits to a specific value of g_b without knowing g_a. Then A has to send its value g_a; it cannot change it even though it knows g_b now, because the other party B would accept only a value of g_a that has a hash specified in the very first message of the exchange.

+

If some impostor is pretending to be either A or B and tries to perform a Man-in-the-Middle Attack on this Diffie--Hellman key exchange, the above still holds. Party A will generate a shared key with B -- or whoever pretends to be B -- without having a second chance to change its exponent a depending on the value g_b received from the other side; and the impostor will not have a chance to adapt his value of b depending on g_a, because it has to commit to a value of g_b before learning g_a. The same is valid for the key generation between the impostor and the party B.

+

The use of hash commitment in the DH exchange constrains the attacker to only one guess to generate the correct visualization in their attack, which means that using just over 33 bits of entropy represented by four emoji in the visualization is enough to make a successful attack highly improbable.

+
+

For a slightly more user-friendly explanation of the above see: How are calls authenticated?

+
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/end-to-end_v1.html b/data/web/blogfork.telegram.org/api/end-to-end_v1.html new file mode 100644 index 0000000000..4e02068c0e --- /dev/null +++ b/data/web/blogfork.telegram.org/api/end-to-end_v1.html @@ -0,0 +1,228 @@ + + + + + Secret chats, end-to-end encryption (v. 1.0, DEPRECATED) + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Secret chats, end-to-end encryption (v. 1.0, DEPRECATED)

+ +
+

This document describes end-to-end encrypted Secret Chats in MTProto 1.0, its status is DEPRECATED. +For information on end-to-end encryption used in up-to-date Telegram clients, kindly see this document.

+
+
Related articles
+

+
+

Secret Chats are one-on-one chats wherein messages are encrypted with a key held only by the chat's participants. Please note that the schema for end-to-end encrypted Secret Chats is different from what is used for cloud chats:

+
+ +
+

Key Generation

+

The Diffie-Hellman protocol is used for key generation. For more information, see Wikipedia.

+

Let us consider the following scenario: User A would like to initiate encrypted communication with User B.

+

Sending a Request

+

User A executes messages.getDhConfig to obtain the Diffie-Hellman parameters: a prime p, and a high order element g.

+

Executing this method before each new key generation procedure is of vital importance. It makes sense to cache the values of the parameters together with the version in order to avoid having to receive all of the values every time. If the version stored on the client is still up-to-date, the server will return the constructor messages.dhConfigNotModified.

+

Client is expected to check whether p is a safe 2048-bit prime (meaning that both p and (p-1)/2 are prime, and that 2^2047 < p < 2^2048), and that g generates a cyclic subgroup of prime order (p-1)/2, i.e. is a quadratic residue mod p. Since g is always equal to 2, 3, 4, 5, 6 or 7, this is easily done using quadratic reciprocity law, yielding a simple condition on p mod 4g -- namely, p mod 8 = 7 for g = 2; p mod 3 = 2 for g = 3; no extra condition for g = 4; p mod 5 = 1 or 4 for g = 5; p mod 24 = 19 or 23 for g = 6; and p mod 7 = 3, 5 or 6 for g = 7. After g and p have been checked by the client, it makes sense to cache the result, so as to avoid repeating lengthy computations in future. This cache might be shared with one used for Authorization Key generation.

+

If the client has an inadequate random number generator, it makes sense to pass the random_length parameter (random_length> 0) so the server generates its own random sequence random of the appropriate length. +Important: using the server's random sequence in its raw form may be unsafe. It must be combined with a client sequence, for example, by generating a client random number of the same length (client_random) and using final_random := random XOR client_random.

+

Client A computes a 2048-bit number a (using sufficient entropy or the server's random; see above) and executes messages.requestEncryption after passing in g_a := pow(g, a) mod dh_prime.

+

User B receives the update updateEncryption for all associated authorization keys (all authorized devices) with the chat constructor encryptedChatRequested. The user must be shown basic information about User A and must be prompted to accept or reject the request.

+

Both clients are to check that g, g_a and g_b are greater than one and smaller than p-1. We recommend checking that g_a and g_b are between 2^{2048-64} and p - 2^{2048-64} as well.

+

Accepting a Request

+

After User B confirms the creation of a secret chat with A in the client interface, Client B also receives up-to-date configuration parameters for the Diffie-Hellman method. Thereafter, it generates a random 2048-bit number, b, using rules similar to those for a.

+

Having received g_a from the update with encryptedChatRequested, it can immediately generate the final shared key: key = (pow(g_a, b) mod dh_prime). If key length < 256 bytes, add several leading zero bytes as padding — so that the key is exactly 256 bytes long. Its fingerprint, key_fingerprint, is equal to the 64 last bits of SHA1 (key).

+

Note: this fingerprint is used as a sanity check for the key exchange procedure to detect bugs while developing client software — it is not connected to the key visualization used on the clients as means of external authentication in secret chats. Key visualizations on the clients are generated using the first 128 bits of SHA1(initial key) followed by the first 160 bits of SHA256(key used when secret chat was updated to layer 46).

+

Client B executes messages.acceptEncryption after passing it g_b := pow(g, b) mod dh_prime and key_fingerprint.

+

For all of Client B's authorized devices, except the current one, updateEncryption updates are sent with the constructor encryptedChatDiscarded. Thereafter, the only device that will be able to access the secret chat is Device B, which made the call to messages.acceptEncryption.

+

User A will be sent an updateEncryption update with the constructor encryptedChat, for the authorization key that initiated the chat.

+

With g_b from the update, Client A can also receive the shared key key = (pow(g_b, a) mod dh_prime). If key length < 256 bytes, add several leading zero bytes as padding — so that the key is exactly 256 bytes long. If the fingerprint for the received key is identical to the one that was passed to encryptedChat, incoming messages can be sent and processed. Otherwise, messages.discardEncryption must be executed and the user notified.

+

Perfect Forward Secrecy

+

In order to keep past communications safe, official Telegram clients will initiate re-keying once a key has been used to decrypt and encrypt more than 100 messages, or has been in use for more than one week, provided the key has been used to encrypt at least one message. Old keys are then securely discarded and cannot be reconstructed, even with access to the new keys currently in use.

+
+

The re-keying protocol is further described in this article: Perfect Forward Secrecy in Secret Chats.

+
+

Please note that your client must support Forward Secrecy in Secret Chats to be compatible with official Telegram clients.

+

Sending and Receiving Messages in a Secret Chat

+

Serialization and Encryption of Outgoing Messages

+

A TL object of type DecryptedMessage is created and contains the message in plain text. For backward compatibility, the object must be wrapped in the constructor decryptedMessageLayer with an indication of the supported layer (starting with 8). +The TL-Schema for end-to-end encrypted messages contents is represented here ».

+

The resulting construct is serialized as an array of bytes using generic TL rules. The resulting array is padded at the top with 4 bytes of the array length not counting these 4 bytes. +A message key, msg_key, is computed as the 128 low-order bits of the SHA1 of the data obtained in the previous step. +The byte array is padded with random data until its length is divisible by 16 bytes. +An AES key and an initialization vector are computed ( key is the shared key obtained during Key Generation; in MTProto 1.0, x = 0 ):

+
    +
  • msg_key = substr (SHA1 (plaintext), 4, 16);
  • +
  • sha1_a = SHA1 (msg_key + substr (key, x, 32));
  • +
  • sha1_b = SHA1 (substr (key, 32+x, 16) + msg_key + substr (key, 48+x, 16));
  • +
  • sha1_с = SHA1 (substr (key, 64+x, 32) + msg_key);
  • +
  • sha1_d = SHA1 (msg_key + substr (key, 96+x, 32));
  • +
  • aes_key = substr (sha1_a, 0, 8) + substr (sha1_b, 8, 12) + substr (sha1_c, 4, 12);
  • +
  • aes_iv = substr (sha1_a, 8, 12) + substr (sha1_b, 0, 8) + substr (sha1_c, 16, 4) + substr (sha1_d, 0, 8);
  • +
+

Data is encrypted with a 256-bit key, aes_key, and a 256-bit initialization vector, aes-iv, using AES-256 encryption with infinite garble extension (IGE). Encryption key fingerprint key_fingerprint and the message key msg_key are added at the top of the resulting byte array.

+

Encrypted data is embedded into a messages.sendEncrypted API call and passed to Telegram server for delivery to the other party of the Secret Chat.

+

Decrypting an Incoming Message

+

The steps above are performed in reverse order. +When an encrypted message is received, you must check that msg_key is in fact equal to the 128 low-order bits of the SHA1 hash of the decrypted message. +If the message layer is greater than the one supported by the client, the user must be notified that the client version is out of date and prompted to update.

+

Sequence numbers

+

It is necessary to interpret all messages in their original order to protect against possible manipulations. Secret chats support a special mechanism for handling seq_no counters independently from the server.

+
+

Proper handling of these counters is further described in this article: Sequence numbers in Secret Chats.

+
+

Please note that your client must support sequence numbers in Secret Chats to be compatible with official Telegram clients.

+

Sending Encrypted Files

+

All files sent to secret chats are encrypted with one-time keys that are in no way related to the chat's shared key. Before an encrypted file is sent, it is assumed that the encrypted file's address will be attached to the outside of an encrypted message using the file parameter of the messages.sendEncryptedFile method and that the key for direct decryption will be sent in the body of the message (the key parameter in the constructors decryptedMessageMediaPhoto, decryptedMessageMediaVideo and decryptedMessageMediaFile.

+

Prior to a file being sent to a secret chat, 2 random 256-bit numbers are computed which will serve as the AES key and initialization vector used to encrypt the file. AES-256 encryption with infinite garble extension (IGE) is used in like manner.

+

The key fingerprint is computed as follows:

+
    +
  • digest = md5(key + iv)
  • +
  • fingerprint = substr(digest, 0, 4) XOR substr(digest, 4, 4)
  • +
+

The encrypted contents of a file are stored on the server in much the same way as those of a file in cloud chats: piece by piece using calls to upload.saveFilePart. +A subsequent call to messages.sendEncryptedFile will assign an identifier to the stored file and send the address together with the message. The recipient will receive an update with encryptedMessage, and the file parameter will contain file information.

+

Incoming and outgoing encrypted files can be forwarded to other secret chats using the constructor inputEncryptedFile to avoid saving the same content on the server twice.

+

Working with an Update Box

+

Secret chats are associated with specific devices (or rather with authorization keys), not users. A conventional message box, which uses pts to describe the client's status, is not suitable, because it is designed for long-term message storage and message access from different devices.

+

An additional temporary message queue is introduced as a solution to this problem. When an update regarding a message from a secret chat is sent, a new value of qts is sent, which helps reconstruct the difference if there has been a long break in the connection or in case of loss of an update.

+

As the number of events increases, the value of qts increases monotonically (not always by 1). The initial value may not (and will not) be equal to 0.

+

The fact that events from the temporary queue have been received and stored by the client is acknowledged explicitly by a call to the messages.receivedQueue method or implicitly by a call to updates.getDifference (the value of qts passed, not the final state). All messages acknowledged as delivered by the client, as well as any messages older than 7 days, may (and will) be deleted from the server.

+

Upon de-authorization, the event queue of the corresponding device will be forcibly cleared, and the value of qts will become irrelevant.

+

Updating to new layers

+

Your client should always store the maximal layer that is known to be supported by the client on the other side of a secret chat. When the secret chat is first created, this value should be initialized to 8, the first layer where Secret Chats became available. This remote layer value must always be updated immediately after receiving any packet containing information of an upper layer, i.e.:

+
    +
  • any secret chat message containing layer_no in its decryptedMessageLayer with layer>=17, or
  • +
  • a decryptedMessageActionNotifyLayer service message, wrapped as if it were the decryptedMessageService constructor of the obsolete layer 8 (constructor decryptedMessageService#aa48327d).
  • +
+

Notifying the remote client about your local layer

+

In order to notify the remote client of your local layer, your client must send a message of the decryptedMessageActionNotifyLayer type. This notification must be wrapped in a constructor of an appropriate layer. For instance, if the remote layer for the chat in question is deemed to be lower than 17, the notification must be wrapped as if it were the decryptedMessageService constructor of the obsolete layer 8 (constructor decryptedMessageService#aa48327d), despite the fact that the decryptedMessageActionNotifyLayer constructor is actually not present in Layer 8.

+

There are three cases when your client must notify the remote client about its local layer:

+
    +
  1. As soon as a new secret chat has been created, immediately after the secret key has been successfully exchanged.
  2. +
  3. Immediately after the remote layer value is updated to layer 17 or higher. An exception to this case is when the secret chat in question has been created less than 15 seconds ago. In this case the notification was already sent (see 1).
  4. +
  5. Immediately after the local client has been updated to support a new secret chat layer. In this case notifications must be sent to all currently existing secret chats. Note that this is only necessary when updating to new layers that contain changes in the secret chats implementation (e.g. you don't need to do this when your client is updated from Layer 17 to Layer 18).
  6. +
+
+

Note that all pending obsolete layer messages must be sent prior to the layer update notification (more on this in Handling Sequence numbers).

+
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/entities.html b/data/web/blogfork.telegram.org/api/entities.html new file mode 100644 index 0000000000..c53f71cb82 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/entities.html @@ -0,0 +1,141 @@ + + + + + Styled text with message entities + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Styled text with message entities

+ +

Telegram supports styled text using message entities.

+

A client that wants to send styled messages would simply have to integrate a Markdown/HTML parser, and generate an array of message entities by iterating through the parsed tags.

+

Special care must be taken to consider the UTF-8 length of strings when generating message entities, see example implementations: tdlib, MadelineProto.

+

Nested entities are supported.
+For example the following HTML/Markdown aliases for message entities can be used:

+ +
+```c++
+code
+```
+
+

The following entities can also be used to mention users:

+ +

A number of other entities are also available, see the type page for the full list ».

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/errors.html b/data/web/blogfork.telegram.org/api/errors.html new file mode 100644 index 0000000000..af8b609fb2 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/errors.html @@ -0,0 +1,237 @@ + + + + + Error handling + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Error handling

+ +

There will be errors when working with the API, and they must be correctly handled on the client.

+

An error is characterized by several parameters:

+

Error Code

+

Numerical value similar to HTTP status. Contains information on the type of error that occurred: for example, a data input error, privacy error, or server error. This is a required parameter.

+

Error Type

+

A string literal in the form of /[A-Z_0-9]+/, which summarizes the problem. For example, AUTH_KEY_UNREGISTERED. This is an optional parameter.

+

Error Database

+

A full machine-readable JSON list of RPC errors that can be returned by all methods in the API can be found here », what follows is a description of its fields:

+
    +
  • errors - All error messages and codes for each method (object).
      +
    • Keys: Error codes as strings (numeric strings)
    • +
    • Values: All error messages for each method (object)
        +
      • Keys: Error messages (string)
      • +
      • Values: An array of methods which may emit this error (array of strings)
      • +
      +
    • +
    +
  • +
  • descriptions - Descriptions for every error mentioned in errors (and a few other errors not related to a specific method)
      +
    • Keys: Error messages
    • +
    • Values: Error descriptions
    • +
    +
  • +
  • user_only - A list of methods that can only be used by users, not bots.
  • +
+

Error messages and error descriptions may contain printf placeholders in key positions, for now only %d is used to map durations contained in error messages to error descriptions.

+

Example:

+
{
+    "errors": {
+        "420": {
+            "2FA_CONFIRM_WAIT_%d": [
+                "account.deleteAccount"
+            ],
+            "SLOWMODE_WAIT_%d": [
+                "messages.forwardMessages",
+                "messages.sendInlineBotResult",
+                "messages.sendMedia",
+                "messages.sendMessage",
+                "messages.sendMultiMedia"
+            ]
+        }
+    },
+    "descriptions": {
+        "2FA_CONFIRM_WAIT_%d": "Since 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 %d seconds.",
+        "SLOWMODE_WAIT_%d": "Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.",
+        "FLOOD_WAIT_%d": "Please wait %d seconds before repeating the action."
+    },
+    "user_only": {
+        "account.deleteAccount"
+    }
+}
+
+

Error Constructors

+

There should be a way to handle errors that are returned in rpc_error constructors.

+

Below is a list of error codes and their meanings:

+

303 SEE_OTHER

+

The request must be repeated, but directed to a different data center.

+

Examples of Errors:

+
    +
  • FILE_MIGRATE_X: the file to be accessed is currently stored in a different data center.
  • +
  • PHONE_MIGRATE_X: the phone number a user is trying to use for authorization is associated with a different data center.
  • +
  • NETWORK_MIGRATE_X: the source IP address is associated with a different data center (for registration)
  • +
  • USER_MIGRATE_X: the user whose identity is being used to execute queries is associated with a different data center (for registration)
  • +
+

In all these cases, the error description's string literal contains the number of the data center (instead of the X) to which the repeated query must be sent. +More information about redirects between data centers »

+

400 BAD_REQUEST

+

The query contains errors. In the event that a request was created using a form and contains user generated data, the user should be notified that the data must be corrected before the query is repeated.

+

Examples of Errors:

+
    +
  • FIRSTNAME_INVALID: The first name is invalid
  • +
  • LASTNAME_INVALID: The last name is invalid
  • +
  • PHONE_NUMBER_INVALID: The phone number is invalid
  • +
  • PHONE_CODE_HASH_EMPTY: phone_code_hash is missing
  • +
  • PHONE_CODE_EMPTY: phone_code is missing
  • +
  • PHONE_CODE_EXPIRED: The confirmation code has expired
  • +
  • API_ID_INVALID: The api_id/api_hash combination is invalid
  • +
  • PHONE_NUMBER_OCCUPIED: The phone number is already in use
  • +
  • PHONE_NUMBER_UNOCCUPIED: The phone number is not yet being used
  • +
  • USERS_TOO_FEW: Not enough users (to create a chat, for example)
  • +
  • USERS_TOO_MUCH: The maximum number of users has been exceeded (to create a chat, for example)
  • +
  • TYPE_CONSTRUCTOR_INVALID: The type constructor is invalid
  • +
  • FILE_PART_INVALID: The file part number is invalid
  • +
  • FILE_PARTS_INVALID: The number of file parts is invalid
  • +
  • FILE_PART_Х_MISSING: Part X (where X is a number) of the file is missing from storage
  • +
  • MD5_CHECKSUM_INVALID: The MD5 checksums do not match
  • +
  • PHOTO_INVALID_DIMENSIONS: The photo dimensions are invalid
  • +
  • FIELD_NAME_INVALID: The field with the name FIELD_NAME is invalid
  • +
  • FIELD_NAME_EMPTY: The field with the name FIELD_NAME is missing
  • +
  • MSG_WAIT_FAILED: A request that must be completed before processing the current request returned an error
  • +
  • MSG_WAIT_TIMEOUT: A request that must be completed before processing the current request didn't finish processing yet
  • +
+

401 UNAUTHORIZED

+

There was an unauthorized attempt to use functionality available only to authorized users.

+

Examples of Errors:

+
    +
  • AUTH_KEY_UNREGISTERED: The key is not registered in the system
  • +
  • AUTH_KEY_INVALID: The key is invalid
  • +
  • USER_DEACTIVATED: The user has been deleted/deactivated
  • +
  • SESSION_REVOKED: The authorization has been invalidated, because of the user terminating all sessions
  • +
  • SESSION_EXPIRED: The authorization has expired
  • +
  • AUTH_KEY_PERM_EMPTY: The method is unavailable for temporary authorization key, not bound to permanent
  • +
+

403 FORBIDDEN

+

Privacy violation. For example, an attempt to write a message to someone who has blacklisted the current user.

+

404 NOT_FOUND

+

An attempt to invoke a non-existent object, such as a method.

+

406 NOT_ACCEPTABLE

+

Similar to 400 BAD_REQUEST, but the app should not display any error messages to user in UI as a result of this response. The error message will be delivered via updateServiceNotification instead.

+

420 FLOOD

+

The maximum allowed number of attempts to invoke the given method with the given input parameters has been exceeded. For example, in an attempt to request a large number of text messages (SMS) for the same phone number.

+

Error Example:

+
    +
  • FLOOD_WAIT_X: A wait of X seconds is required (where X is a number)
  • +
+

500 INTERNAL

+

An internal server error occurred while a request was being processed; for example, there was a disruption while accessing a database or file storage.

+

If a client receives a 500 error, or you believe this error should not have occurred, please collect as much information as possible about the query and error and send it to the developers.

+

Other Error Codes

+

If a server returns an error with a code other than the ones listed above, it may be considered the same as a 500 error and treated as an internal server error.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/file_reference.html b/data/web/blogfork.telegram.org/api/file_reference.html new file mode 100644 index 0000000000..e1be962e32 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/file_reference.html @@ -0,0 +1,128 @@ + + + + + File references + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

File references

+ +

File references are strings of bytes, that can be encountered in the file_reference fields of document and photo objects.

+

They must be cached by the client, along with the origin context where the document/photo object was found, in order to be refetched when the file reference expires.

+

Example implementation of a reference database: MadelineProto, android, telegram desktop, tdlib.

+

Another example:

+

Assume you receive a message from your friend: that message contains a messageMediaPhoto with a photo.

+

Your client has to cache not only the file_reference field of the photo, but also the context in which the file reference was seen (in this case, a message coming from a specific user).

+

The context info is in this case, an origin context of type message, containing the message ID and the peer ID of the chat/channel/user where the message was seen.

+

The context info has to be associated with the file reference: when downloading a file using upload.getFile, a FILE_REFERENCE_EXPIRED error (or another error starting with FILE_REFERENCE_) may be returned.
+If this happens, the context info must be used to refetch the object that contained the file reference: in this example, the peer info and the message ID have to be used with channels.getMessages or messages.getMessages to refetch the message, recache the file reference and use it in a new file download request.

+

More than one origin context can be associated to one file reference, for greater resilience (in the case of a message that was deleted in one chat but was also forwarded in another chat, the file reference can be refetched from the second chat, instead).

+

Origin contexts for objects returned by method calls with certain parameters can be considered, too (for example, in the case of favorited sticker sets returned by messages.getFavedStickers).

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/files.html b/data/web/blogfork.telegram.org/api/files.html new file mode 100644 index 0000000000..f41750f0ac --- /dev/null +++ b/data/web/blogfork.telegram.org/api/files.html @@ -0,0 +1,571 @@ + + + + + Uploading and Downloading Files + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Uploading and Downloading Files

+ +
+ +

When working with the API, it is sometimes necessary to send a relatively large file to the server. For example, when sending a message with a photo/video attachment or when setting the current user's profile picture.

+

Uploading files

+

There are a number of API methods to save files. The schema of the types and methods used is presented below:

+
inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile;
+inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile;
+
+
+inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile;
+inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile;
+
+inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile;
+inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile;
+
+inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = 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;
+
+inputChatUploadedPhoto#c642724e flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = InputChatPhoto;
+
+
+---functions---
+
+messages.sendMedia#e25ff8e0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = Updates;
+messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia;
+messages.sendEncryptedFile#5559481d flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes file:InputEncryptedFile = messages.SentEncryptedMessage;
+
+photos.uploadProfilePhoto#89f30f69 flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = photos.Photo;    
+
+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;
+

Before transmitting the contents of the file itself, the file has to be assigned a unique 64-bit client identifier: file_id.

+

The file's binary content is then split into parts. All parts must have the same size ( part_size ) and the following conditions must be met:

+
    +
  • part_size % 1024 = 0 (divisible by 1KB)
  • +
  • 524288 % part_size = 0 (512KB must be evenly divisible by part_size)
  • +
+

The last part does not have to satisfy these conditions, provided its size is less than part_size.

+

Each part should have a sequence number, file_part, with a value ranging from 0 to 2,999.

+

After the file has been partitioned you need to choose a method for saving it on the server. Use upload.saveBigFilePart in case the full size of the file is more than 10 MB and upload.saveFilePart for smaller files.

+

Each call saves a portion of the data in a temporary location on the server to be used later. The storage life of each portion of data is between several minutes and several hours (depending on how busy the storage area is). After this time, the file part will become unavailable. To increase the time efficiency of a file save operation, we recommend using a call queue, so X pieces of the file are being saved at any given moment in time. Each successful operation to save a part invokes the method call to save the next part. The value of X can be tuned to achieve maximum performance.

+

When using one of the methods mentioned above to save file parts, one of the following data input errors may be returned:

+
    +
  • FILE_PARTS_INVALID - Invalid number of parts. The value is not between 1..3000
  • +
  • FILE_PART_INVALID: The file part number is invalid. The value is not between 0 and 2,999.
  • +
  • FILE_PART_TOO_BIG: The size limit (512 KB) for the content of the file part has been exceeded
  • +
  • FILE_PART_EMPTY: The file part sent is empty
  • +
  • FILE_PART_SIZE_INVALID - 512KB cannot be evenly divided by part_size
  • +
  • FILE_PART_SIZE_CHANGED - The part size is different from the size of one of the previous parts in the same file
  • +
+

While the parts are being uploaded, an MD5 hash of the file contents can also be computed to be used later as the md5_checksum parameter in the inputFile constructor (since it is checked only by the server, for encrypted secret chat files it must be generated from the encrypted file). +After the entire file is successfully saved, the final method may be called and passed the generated inputFile object. In case the upload.saveBigFilePart method is used, the inputFileBig constructor must be passed, in other cases use inputFile.

+ +

The file save operation may return one of the following data input errors:

+
    +
  • FILE_PARTS_INVALID: The number of file parts is invalid The value is not between 1 and 3,000.
  • +
  • FILE_PART_Х_MISSING: Part X (where X is a number) of the file is missing from storage. Try repeating the method call to resave the part.
  • +
  • MD5_CHECKSUM_INVALID: The file's checksum did not match the md5_checksum parameter
  • +
+

Albums, grouped media

+
inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = 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;
+
+inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector<MessageEntity> = InputSingleMedia;
+
+---functions---
+
+messages.sendMultiMedia#f803138f flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector<InputSingleMedia> schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates;
+

Telegram allows grouping photos into albums and generic files (audio, docuemnts) into media groups.

+

To do this, messages.sendMultiMedia is used, wrapping each InputMedia constructor (uploaded or pre-existing, maximum 10 per media group) into an inputSingleMedia constructor, optionally providing a custom per-file caption in message.

+

For photo albums, clients should display an album caption only if exactly one photo in the group has a caption, otherwise no album caption should be displayed, and only when viewing in detail a specific photo of the group the caption should be shown.
+Other grouped media can display a caption under each file.

+

Re-using pre-uploaded files

+
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;
+

For some types of documents like GIFs, messages.getDocumentByHash can be used to search for the document on Telegram servers. +The SHA256 hash of the file is computed, and it is passed along with the file's mime type and size to the method: if the file type is correct and the file is found, a document is returned.

+

Uploading profile or chat pictures

+
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;
+
+photos.photo#20212ca8 photo:Photo users:Vector<User> = photos.Photo;
+
+inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto;
+
+inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile;
+
+inputChatUploadedPhoto#c642724e flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = InputChatPhoto;
+inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto;
+
+---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;
+
+messages.editChatPhoto#35ddd674 chat_id:long photo:InputChatPhoto = Updates;
+
+channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates;
+

User profile pictures can be uploaded using the photos.uploadProfilePhoto method: the actual profile picture has to be uploaded as for normal files.
+photos.uploadProfilePhoto can also be used to reupload previously uploaded profile pictures.

+

Animated profile pictures

+

Animated profile pictures are also supported, by populating the video constructor: square MPEG4 videos up to 1080x1080 are supported, 800x800 is the recommended resolution.
+The video_start_ts is a floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview.

+

Chat, channel and supergroup profile photos and videos can be uploaded using messages.editChatPhoto (basic groups) or channels.editPhoto (channels, supergroups).
+Use the inputChatPhoto to reuse previously uploaded profile pictures.

+

Downloading files

+

There are methods available to download files which have been successfully uploaded. The schema of the types and methods used is presented below:

+
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;
+
+storage.fileUnknown#aa963b05 = storage.FileType;
+storage.fileJpeg#7efe0e = storage.FileType;
+storage.fileGif#cae1aadf = storage.FileType;
+storage.filePng#a4f63c0 = storage.FileType;
+storage.fileMp3#528a0677 = storage.FileType;
+storage.fileMov#4b09ebbc = storage.FileType;
+storage.filePartial#40bc6f52 = storage.FileType;
+storage.fileMp4#b3cea0e4 = storage.FileType;
+storage.fileWebp#1081464c = storage.FileType;
+
+---functions---
+
+upload.getFile#b15a9afc flags:# precise:flags.0?true cdn_supported:flags.1?true location:InputFileLocation offset:int limit:int = upload.File;
+

Any file can be downloaded by calling upload.getFile. +The data for the input parameter of the InputFileLocation type is generated as follows:

+
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#37257e99 flags:# big:flags.0?true peer:InputPeer photo_id:long = InputFileLocation;
+inputStickerSetThumb#9d84f3db stickerset:InputStickerSet thumb_version:int = InputFileLocation;
+inputGroupCallStream#598a92a flags:# call:InputGroupCall time_ms:long scale:int video_channel:flags.0?int video_quality:flags.0?int = InputFileLocation;
+
+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;
+inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;
+
+inputPeerSelf#7da07ec9 = InputPeer;
+inputPeerChat#35a95cb9 chat_id:long = InputPeer;
+inputPeerUser#dde8a54c user_id:long access_hash:long = InputPeer;
+inputPeerChannel#27bcbbfc channel_id:long access_hash:long = InputPeer;
+
+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;
+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;
+
+photoSize#75c78e60 type:string w:int h:int size:int = PhotoSize;
+photoCachedSize#21e1ad6 type:string w:int h:int bytes:bytes = PhotoSize;
+
+chatPhoto#1c6e1c11 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = ChatPhoto;
+userProfilePhoto#82d1f706 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto;
+
    +
  • +

    For photos, inputPhotoFileLocation is used:

    +
      +
    • id, file_reference and access_hash taken from the photo constructor
    • +
    • thumb_size taken from the type field of the desired PhotoSize of the photo
    • +
    +
  • +
  • +

    For profile pictures of users, channels, supergroups and groups, inputPeerPhotoFileLocation has to be used:

    +
      +
    • peer is the identifier of the peer whose photo we want to download
    • +
    • big is used to choose whether to download the full-resolution picture, or just the thumbnail
    • +
    • photo_id is extracted from the chatPhoto or userProfilePhoto of the desired profile photo
    • +
    +
  • +
  • +

    For documents, inputDocumentFileLocation is used:

    +
      +
    • id, file_reference and access_hash taken from the document constructor
    • +
    • If downloading the thumbnail of a document, thumb_size should be taken from the type field of the desired PhotoSize of the photo; otherwise, provide an empty string.
    • +
    +
  • +
  • +

    For previews of sticker sets, inputStickerSetThumb is used (note: to download stickers and previews of stickers use the document method described above for documents):

    + +
  • +
  • +

    For encrypted secret chat and telegram passport documents, respectively inputEncryptedFileLocation and inputSecureFileLocation have to be used, with parameters extracted from encryptedFile and secureFile (passport docs).

    +
  • +
  • +

    For livestream chunks, inputGroupCallStream is used:

    +
      +
    • call contains the related group call ID+access hash, taken from the groupCall constructor.
    • +
    • time_ms specifies the timestamp to fetch
    • +
    • scale specifies the duration of the video segment to fetch in milliseconds, by bitshifting 1000 to the right scale times: duration_ms := 1000 >> scale
    • +
    • video_channel specifies the video channel to fetch
    • +
    • video_quality specifies the selected video quality (0 = lowest, 1 = medium, 2 = best)
    • +
    +
  • +
  • +

    For old deprecated photos, if the client has cached some old fileLocations with the deprecated secret identifier, inputFileLocation or inputPhotoLegacyFileLocation is used (this is mainly used for backwards compatibility with bot API file IDs, all user clients must use the modern inputPhotoFileLocation file IDs):

    +
      +
    • All fields are taken from the previously cached fileLocation except for file_reference, access_hash and id, which are taken from the photo constructor (the last two fields are used only if available, in which case inputPhotoLegacyFileLocation is used instead of inputFileLocation).
    • +
    +
  • +
+

The size of each file in bytes is available, which makes it possible to download the file in parts using the parameters offset and limit, similar to the way files are uploaded.

+

If precise flag is not specified, then

+
    +
  • The parameter offset must be divisible by 4 KB.
  • +
  • The parameter limit must be divisible by 4 KB.
  • +
  • 1048576 (1 MB) must be divisible by limit.
  • +
+

If precise is specified, then

+
    +
  • The parameter offset must be divisible by 1 KB.
  • +
  • The parameter limit must be divisible by 1 KB.
  • +
  • limit must not exceed 1048576 (1 MB).
  • +
+

In any case the requested part should be within one 1 MB chunk from the beginning of the file, i. e.

+
    +
  • offset / (1024 * 1024) == (offset + limit - 1) / (1024 * 1024).
  • +
+

The file download operation may return a FILE_REFERENCE_EXPIRED error (or another error starting with FILE_REFERENCE_): in this case, the file_reference field of the input location must be refreshed. +The file download operation may return an upload.fileCdnRedirect constructor: in this case, these instructions must be followed for downloading CDN files. +The file download operation may also return one of the following data input errors:

+
    +
  • FILE_ID_INVALID: The file address is invalid
  • +
  • OFFSET_INVALID: The offset value is invalid
  • +
  • LIMIT_INVALID: The limit value is invalid
  • +
  • FILE_MIGRATE_X: The file is in the datacenter No. X
  • +
+

Verifying downloaded chunks

+
fileHash#6242c773 offset:int limit:int hash:bytes = FileHash;
+
+---functions---
+
+upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector<FileHash>;
+

In order to confirm the integrity of the downloaded file, clients are recommended to verify hashes for each downloaded part, as for CDN DCs. +upload.getFileHashes contain FileHash constructors. Each of these constructors contains the SHA-256 hash of a part of the file that starts with offset and takes limit bytes.

+

Before saving each portion of the data received from the DC into the file, the client can confirm that its hash matches the hash that was received from the master DC. If missing a hash for any file part, client developers must use the upload.getFileHashes method to obtain the missing hash.

+

Handling audio, video and vector previews

+

Schema:

+
photoSizeEmpty#e17e23c type:string = PhotoSize;
+photoSize#75c78e60 type:string w:int h:int size:int = PhotoSize;
+photoCachedSize#21e1ad6 type:string w:int h:int bytes:bytes = PhotoSize;
+photoStrippedSize#e0b0bc2e type:string bytes:bytes = PhotoSize;
+photoSizeProgressive#fa3efb95 type:string w:int h:int sizes:Vector<int> = PhotoSize;
+photoPathSize#d8214d41 type:string bytes:bytes = PhotoSize;
+
+videoSize#de33b094 flags:# type:string w:int h:int size:int video_start_ts:flags.0?double = VideoSize;
+
+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;
+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;
+
+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;
+

Telegram attaches a vector of thumbnails with reduced resolution to all uploaded media.
+The server also generates a trimmed and scaled down video preview for videos, GIFs and animated profile pictures.

+

Image thumbnail types

+

Each photo preview has a specific type, indicating the resolution and image transform that was applied server-side.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeImage filterSize
sbox100x100
mbox320x320
xbox800x800
ybox1280x1280
wbox2560x2560
acrop160x160
bcrop320x320
ccrop640x640
dcrop1280x1280
+

Special types:

+ + + + + + + + + + + + + + + + + +
TypeImage filter
istrip
joutline
+

Stripped thumbnails

+
photoStrippedSize#e0b0bc2e type:string bytes:bytes = PhotoSize;
+

A photoStrippedSize (with type i) is an extremely low-res thumbnail, embedded directly inside media location objects.
+It should be shown to the user in chat message previews, or while still downloading the most appropriately sized photoSize through the media DCs as described above.

+

The stripped bytes payload should be inflated to a JPG payload as seen here ».

+

Vector thumbnails

+
photoPathSize#d8214d41 type:string bytes:bytes = PhotoSize;
+

Messages with animated, video, normal stickers can have a compressed svg (< 300 bytes) to show the outline of the sticker before fetching the actual sticker. +Sticker outlines will have a j type photoPathSize thumbnail.

+

This specific vector thumbnail consists of an SVG path, specially encoded to save space.
+This path will be the outline of the animated sticker, and should be shown to the user while downloading the actual sticker.

+

As for stripped sizes, the payload should be inflated using the following algorithm:

+
encoded := photoPathSize.bytes
+
+lookup := "AACAAAAHAAALMAAAQASTAVAAAZaacaaaahaaalmaaaqastava.az0123456789-,"
+
+path := "M"
+
+len := strlen(encoded)
+for (i = 0; i < len; i++) {
+  num := ord(encoded[i])
+  if (num >= 128 + 64) {
+    path += lookup[num - 128 - 64]
+  } else {
+    if (num >= 128) {
+      path += ','
+    } else if (num >= 64) {
+      path += '-'
+    }
+    path += itoa(num & 63)
+  }
+}
+path += "z"
+

path will contain the actual SVG path that can be directly inserted in the d attribute of an svg <path> element:

+
<?xml version="1.0" encoding="utf-8"?>
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+   viewBox="0 0 512 512" xml:space="preserve">
+<path d="{$path}"/>
+</svg>
+

Video types

+
videoSize#de33b094 flags:# type:string w:int h:int size:int video_start_ts:flags.0?double = VideoSize;
+

A videoSize constructor is typically used for animated profile pictures and video previews.

+ + + + + + + + + + + + + + + + + + + + +
TypeDescriptionFormat
uAnimated profile pictureMPEG4
vVideo previewMPEG4
+

Downloading webfiles

+

Remote HTTP files sent by inline bots in response to inline queries and in other places are represented by WebDocument constructors. +When forwarding such remote HTTP files, they should be sent using external InputMedia constructors. +Remote HTTP files can only be downloaded directly by the client if contained in a webDocumentNoProxy constructor: in this case, the file is deemed safe to download (this is the case for HTTPS files from certain trusted domains).

+

However, if the remote file is contained in a webDocument, to avoid leaking sensitive information the file must be downloaded through telegram's servers. +This can be done in a manner similar to normal files, with the difference that upload.getWebFile must be used, instead.

+
upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile;
+
+storage.fileUnknown#aa963b05 = storage.FileType;
+storage.fileJpeg#7efe0e = storage.FileType;
+storage.fileGif#cae1aadf = storage.FileType;
+storage.filePng#a4f63c0 = storage.FileType;
+storage.fileMp3#528a0677 = storage.FileType;
+storage.fileMov#4b09ebbc = storage.FileType;
+storage.filePartial#40bc6f52 = storage.FileType;
+storage.fileMp4#b3cea0e4 = storage.FileType;
+storage.fileWebp#1081464c = storage.FileType;
+
+ ---functions---
+
+upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile;
+

The InputWebFileLocation constructor is generated as follows.

+
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;
+
+webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector<DocumentAttribute> = WebDocument;
+
+inputGeoPoint#48222faf flags:# lat:double long:double accuracy_radius:flags.0?int = InputGeoPoint;
+
+geoPoint#b2a2f663 flags:# long:double lat:double access_hash:long accuracy_radius:flags.0?int = GeoPoint;
+
    +
  • inputWebFileLocation is simply generated by taking the url and access_hash fields of the webDocument constructor.
  • +
  • inputWebFileGeoPointLocation is used to download a server-generated image with the map preview from a geoPoint.
      +
    • geo_point is generated from the lat, long accuracy_radius parameters of the geoPoint
    • +
    • access_hash is the access hash of the geoPoint
    • +
    • w - Map width in pixels before applying scale; 16-1024
    • +
    • h - Map height in pixels before applying scale; 16-1024
    • +
    • zoom - Map zoom level; 13-20
    • +
    • scale - Map scale; 1-3
    • +
    +
  • +
+

General Considerations

+

It is recommended that large queries (upload.getFile, upload.saveFilePart, upload.getWebFile) be handled through a separate session and a separate connection, in which no methods other than these should be executed. If this is done, then data transfer will cause less interference with getting updates and other method calls.

+

Related articles

+

Handling file references

+

How to handle file references.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/folders.html b/data/web/blogfork.telegram.org/api/folders.html new file mode 100644 index 0000000000..2b6049510d --- /dev/null +++ b/data/web/blogfork.telegram.org/api/folders.html @@ -0,0 +1,182 @@ + + + + + Folders + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Folders

+ +
+ +

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.
+In the API, folders are called "dialog filters"; in the UI, they are typically represented as tabs.

+

Schema:

+
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;
+
+dialogFilterSuggested#77744d4a filter:DialogFilter description:string = DialogFilterSuggested;
+
+updateDialogFilter#26ffde7d flags:# id:int filter:flags.0?DialogFilter = Update;
+updateDialogFilterOrder#a5d72105 order:Vector<int> = Update;
+updateDialogFilters#3504914f = Update;
+
+---functions---
+
+messages.getDialogFilters#f19ed96d = Vector<DialogFilter>;
+messages.getSuggestedDialogFilters#a29cd42c = Vector<DialogFilterSuggested>;
+messages.updateDialogFilter#1ad4a04a flags:# id:int filter:flags.0?DialogFilter = Bool;
+messages.updateDialogFiltersOrder#c563c1e4 order:Vector<int> = Bool;
+
+help.getAppConfig#98914110 = JSONValue;
+

Folders

+

On startup, clients call:

+ +

The boolean under the dialog_filters_tooltip JSON key in the result of help.getAppConfig can be used to determine whether a folder tooltip should be presented to the user right away.
+The UI should then show a list of suggested folder combinations.

+

Once configuration is finished, apps call messages.updateDialogFilter to create or update existing folders.
+As per the dialogFilter constructor, folders have multiple flags that can be combined to determine which chats should be included in (or excluded from) the folder.
+Folders can also have unlimited pinned chats, as determined by the pinned_peers field.

+

To reorder existing folders, messages.updateDialogFiltersOrder should be used with the IDs of the various dialog filters.

+

To delete folders, use messages.updateDialogFilter without populating the filter flag field.

+

Clients can receive updateDialogFilter, updateDialogFilterOrder updates with new filter information, generated by other clients when modifying folder info.
+Clients can also receive updateDialogFilters, in which case folder info should be refetched manually using messages.getDialogFilters.

+

Peer folders

+

The API also has another method for identifying groups of peers, typically used only by archived chats.

+

Schema:

+
inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer;
+inputDialogPeerFolder#64600527 folder_id:int = InputDialogPeer;
+
+dialogPeer#e56dbf05 peer:Peer = DialogPeer;
+dialogPeerFolder#514519e2 folder_id:int = DialogPeer;
+
+updateFolderPeers#19360dc0 folder_peers:Vector<FolderPeer> pts:int pts_count:int = Update;
+
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+
+---functions---
+
+folders.editPeerFolders#6847d0ab folder_peers:Vector<InputFolderPeer> = Updates;
+folders.deleteFolder#1c295881 folder_id:int = Updates;
+

API peer folders are typically used only by archived chats, and are really handy for distinguishing groups of peers, since most peer-related constructors (updates, chat info) will contain the folder_id assigned the the specified chat.

+

In Telegram apps, API peer folders are used only to implement the chat archive, identified by folder_id 1; all other peers are in folder_id 0 by default; no other folder_id is allowed at the moment.

+
    +
  • folders.editPeerFolders can be used to add and remove peers from peer folders.
  • +
  • folders.deleteFolder can be used to delete peer folders, moving all peers previously present in that folder to the default 0 folder.
  • +
+

Both methods return an updates constructor, containing a single updateFolderPeers with the new folder_id of moved peers.
+Clients can also receive updateFolderPeers as a normal update, generated by other clients when modifying peer folders.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/import.html b/data/web/blogfork.telegram.org/api/import.html new file mode 100644 index 0000000000..093f2b1ea7 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/import.html @@ -0,0 +1,176 @@ + + + + + Imported messages + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Imported messages

+ +
+ +

Telegram allows importing messages and media from foreign chat apps.

+
+

Note: This article is intended for MTProto API developers. If you're looking for a way to move history from other chat apps into Telegram, check out the related Telegram blog post.

+
+

1. Validate the chat export file

+
messages.historyImportParsed#5e0fb7b9 flags:# pm:flags.0?true group:flags.1?true title:flags.2?string = messages.HistoryImportParsed;
+
+---functions---
+
+messages.checkHistoryImport#43fe19f3 import_head:string = messages.HistoryImportParsed;
+

The import process begins by calling messages.checkHistoryImport, passing to import_head up to 100 lines of the chat export file, starting from the beginning of the file.

+

The returned constructor contains information about the exported chat, including its title or type. +If the pm flag is set, the chat export file was generated from a private chat. +If the group flag is set, the chat export file was generated from a group chat. +If neither the pm or group flags are set, the specified chat export was generated from a chat of unknown type.

+

2. Choosing a destination Telegram chat

+
messages.checkedHistoryImportPeer#a24de717 confirm_text:string = messages.CheckedHistoryImportPeer;
+
+---functions---
+
+messages.checkHistoryImportPeer#5dc60f03 peer:InputPeer = messages.CheckedHistoryImportPeer;
+

Using messages.checkHistoryImportPeer, check whether chat history exported from another chat app can be imported into a specific Telegram peer, chosen by the user.
+Typically, history imports are allowed for private chats with a mutual contact or supergroups with change_info administrator rights ».

+

If the check succeeds, and no RPC errors are returned, a messages.CheckedHistoryImportPeer constructor will be returned, with a confirmation text to be shown to the user in a confirmation prompt.
+Upon final user confirmation, the import process is initialized.

+

3. Initialize the import

+
messages.historyImport#1662af0b id:long = messages.HistoryImport;
+
+---functions---
+
+messages.initHistoryImport#34090c3b peer:InputPeer file:InputFile media_count:int = messages.HistoryImport;
+

Use messages.initHistoryImport to initialize the import process, passing the following parameters:

+
    +
  • peer - The Telegram chat where the history should be imported.
  • +
  • file - The chat export file.
  • +
  • media_count - The number of media files associated with the export, to be uploaded in the next step.
  • +
+

4. Uploading media

+
---functions---
+
+messages.uploadImportedMedia#2a862092 peer:InputPeer import_id:long file_name:string media:InputMedia = MessageMedia;
+

Use messages.uploadImportedMedia to upload media files eventually associated with the chat export.
+import_id is the id contained in the messages.historyImport constructor, returned by messages.initHistoryImport in the previous step.

+

5. Finalize the import

+
message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = 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;
+
+---functions---
+
+messages.startHistoryImport#b43df344 peer:InputPeer import_id:long = Bool;
+

Finally, invoke messages.startHistoryImport to complete the history import process, importing all messages into the chat.
+As usual, import_id is the id contained in the messages.historyImport constructor, returned by messages.initHistoryImport.

+

Imported messages will show in the chat history as messages containing a fwd_from messageFwdHeader constructor with the imported flag, and should be appropriately marked in the UI as messages imported from a foreign chat app.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/invites.html b/data/web/blogfork.telegram.org/api/invites.html new file mode 100644 index 0000000000..6e596ab9de --- /dev/null +++ b/data/web/blogfork.telegram.org/api/invites.html @@ -0,0 +1,216 @@ + + + + + Invites + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Invites

+ +
+ +

Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.

+

Public usernames

+
contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector<Chat> users:Vector<User> = contacts.ResolvedPeer;
+
+---functions---
+
+contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer;
+channels.joinChannel#24b524c5 channel:InputChannel = Updates;
+
+channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool;
+channels.updateUsername#3514b3de channel:InputChannel username:string = Bool;
+

Only supergroups and channels may have a public usernames: normal groups must be migrated to a supergroup before they can be assigned a username, see the migration docs » for more info.

+

channels.updateUsername can be used to directly assign or change the public username of a supergroup or channel.
+You can use channels.checkUsername before assigning the username to make sure that the specified username is valid and available.

+

channels.joinChannel can be used to join a supergroup or channel using peer information obtained using contacts.resolveUsername.

+

Invite links

+
chatInviteExported#ab4a819 flags:# revoked:flags.0?true permanent:flags.5?true request_needed:flags.6?true link:string admin_id:long date:int start_date:flags.4?int expire_date:flags.1?int usage_limit:flags.2?int usage:flags.3?int requested:flags.7?int title:flags.8?string = ExportedChatInvite;
+
+messages.exportedChatInvites#bdc62dcc count:int invites:Vector<ExportedChatInvite> users:Vector<User> = messages.ExportedChatInvites;
+
+messages.exportedChatInvite#1871be50 invite:ExportedChatInvite users:Vector<User> = messages.ExportedChatInvite;
+messages.exportedChatInviteReplaced#222600ef invite:ExportedChatInvite new_invite:ExportedChatInvite users:Vector<User> = messages.ExportedChatInvite;
+
+
+chatInviteImporter#8c5adfd9 flags:# requested:flags.0?true user_id:long date:int about:flags.2?string approved_by:flags.1?long = ChatInviteImporter;
+
+messages.chatInviteImporters#81b6b00a count:int importers:Vector<ChatInviteImporter> users:Vector<User> = messages.ChatInviteImporters;
+
+
+chatAdminWithInvites#f2ecef23 admin_id:long invites_count:int revoked_invites_count:int = ChatAdminWithInvites;
+
+messages.chatAdminsWithInvites#b69b72d7 admins:Vector<ChatAdminWithInvites> users:Vector<User> = messages.ChatAdminsWithInvites;
+
+chatInviteAlready#5a686d7c chat:Chat = ChatInvite;
+chatInvite#300c44c1 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true request_needed:flags.6?true title:string about:flags.5?string photo:Photo participants_count:int participants:flags.4?Vector<User> = ChatInvite;
+chatInvitePeek#61695cb0 chat:Chat expires:int = ChatInvite;
+
+---functions---
+
+messages.exportChatInvite#a02ce5d5 flags:# legacy_revoke_permanent:flags.2?true request_needed:flags.3?true peer:InputPeer expire_date:flags.0?int usage_limit:flags.1?int title:flags.4?string = ExportedChatInvite;
+
+messages.getExportedChatInvites#a2b5a3f6 flags:# revoked:flags.3?true peer:InputPeer admin_id:InputUser offset_date:flags.2?int offset_link:flags.2?string limit:int = messages.ExportedChatInvites;
+messages.getExportedChatInvite#73746f5c peer:InputPeer link:string = messages.ExportedChatInvite;
+
+messages.editExportedChatInvite#bdca2f75 flags:# revoked:flags.2?true peer:InputPeer link:string expire_date:flags.0?int usage_limit:flags.1?int request_needed:flags.3?Bool title:flags.4?string = messages.ExportedChatInvite;
+
+messages.deleteRevokedExportedChatInvites#56987bd5 peer:InputPeer admin_id:InputUser = Bool;
+messages.deleteExportedChatInvite#d464a42b peer:InputPeer link:string = Bool;
+
+messages.getAdminsWithInvites#3920e6ef peer:InputPeer = messages.ChatAdminsWithInvites;
+messages.getChatInviteImporters#df04dd4e flags:# requested:flags.0?true peer:InputPeer link:flags.1?string q:flags.2?string offset_date:int offset_user:InputUser limit:int = messages.ChatInviteImporters;
+
+messages.checkChatInvite#3eadb1bb hash:string = ChatInvite;
+messages.importChatInvite#6c50051c hash:string = Updates;
+

Private invite links can optionally have an expiration date, a usage limit, and can even be set to only allow users into the channel, supergroup or group upon explicit approval of an admin: see join requests » for more info.

+

Invite links match the following regex: @(?:t|telegram)\.(?:me|dog)/(joinchat/|\+)?([\w-]+)@i.
+The first matching group can be passed to the hash parameter of messages.checkChatInvite to get info about the chat, and messages.importChatInvite to join the chat.
+messages.checkChatInvite may return chatInvitePeek only for supergroups and channels, in which case the user may directly fetch chat messages using updates, messages.getHistory and channels.getMessages until the time indicated by the expires unixtime field.

+

Newly created groups, supergroups and channel already have a default invite link.
+To generate a new one, use messages.exportChatInvite.
+To get info about existing chat invites, optionally filtering only links created by a given admin, use messages.getExportedChatInvites.
+messages.getExportedChatInvite can be used to obtain info about a specific invite link.

+

messages.editExportedChatInvite is used to edit or revoke existing invite links: revoked links cannot be used by users to join the group, but info about revoked links can still be fetched using messages.getExportedChatInvites with the revoked flag set.
+Use messages.deleteExportedChatInvite to permanently remove an invite link, and messages.deleteRevokedExportedChatInvites to permanently remove a revoked invite link.

+

messages.getChatInviteImporters can be used to fetch info about users that joined using a specific invite link.

+

Some basic stats about the number of invite links generated by a given admin can be fetched using messages.getAdminsWithInvites.

+

Join requests

+
chatInvite#300c44c1 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true request_needed:flags.6?true title:string about:flags.5?string photo:Photo participants_count:int participants:flags.4?Vector<User> = ChatInvite;
+
+updatePendingJoinRequests#7063c3db peer:Peer requests_pending:int recent_requesters:Vector<long> = Update;
+updateBotChatInviteRequester#11dfa986 peer:Peer date:int user_id:long about:string invite:ExportedChatInvite qts:int = Update;
+
+messages.chatInviteImporters#81b6b00a count:int importers:Vector<ChatInviteImporter> users:Vector<User> = messages.ChatInviteImporters;
+
+peerSettings#a518110d 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 request_chat_broadcast:flags.10?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int = PeerSettings;
+
+messageActionChatJoinedByRequest#ebbca3cb = MessageAction;
+
+channelAdminLogEventActionParticipantJoinByRequest#afb6144a invite:ExportedChatInvite approved_by:long = ChannelAdminLogEventAction;
+
+---functions---
+
+messages.checkChatInvite#3eadb1bb hash:string = ChatInvite;
+messages.importChatInvite#6c50051c hash:string = Updates;
+
+messages.getChatInviteImporters#df04dd4e flags:# requested:flags.0?true peer:InputPeer link:flags.1?string q:flags.2?string offset_date:int offset_user:InputUser limit:int = messages.ChatInviteImporters;
+
+messages.hideChatJoinRequest#7fe7e815 flags:# approved:flags.0?true peer:InputPeer user_id:InputUser = Updates;
+messages.hideAllChatJoinRequests#e085f4ea flags:# approved:flags.0?true peer:InputPeer link:flags.1?string = Updates;
+

If the request_needed flag is set when generating or editing an invite link, users importing the invite link using messages.importChatInvite will receive an INVITE_REQUEST_SENT RPC error, indicating that an join request was successfully sent to the chat admins.

+

Bot administrators will receive a updateBotChatInviteRequester update for each separate join request.
+User administrators will receive an updatePendingJoinRequests, and should invoke messages.getChatInviteImporters with the requested flag set to obtain a list of users waiting to be admitted into the group.

+

Administrators can then use messages.hideChatJoinRequest to approve or dismiss a join request, and messages.hideAllChatJoinRequests to approve or dismiss in bulk multiple join requests.

+

Administrators can also choose send a message to the user before admitting them into the group: in this case, graphical clients on the user side should display a message on the dialog bar of the chat with the admin, indicating that the chat was initiated by the admin of a chat/channel they have recently requested to join, according to the information contained in the peerSettings ».

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/invoking.html b/data/web/blogfork.telegram.org/api/invoking.html new file mode 100644 index 0000000000..0d768ebf0c --- /dev/null +++ b/data/web/blogfork.telegram.org/api/invoking.html @@ -0,0 +1,157 @@ + + + + + Calling API Methods + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Calling API Methods

+ +
+ +

Layers

+

Versioning in the API is supported by so-called TL layers.

+

The need to add a new object constructor or to add/remove a field in a constructor creates a backwards compatibility problem for previous versions of API clients. After all, simply changing a constructor in a schema also changes its number. To address this problem, each schema update is separated into a layer.

+

A layer is a collection of updated methods or constructors in a TL schema. Each layer is numbered with sequentially increasing numbers starting with 2. The first layer is the base layer -- the TL schema without any changes.

+

There is a helper method to let the API know that a client supports the Layer layer:

+
invokeWithLayer#da9b0d0d {X:Type} layer:int query:!X = X;
+

The helper method invokeWithLayer can be used only together with initConnection: the present layer will be saved with all other parameters of the client and any future requests will be using this saved value. See more below.

+

List of Available Layers

+

Saving Client Info

+

It is possible to save information about the current client on the server in conjunction with an authorization key. This may help eliminate client-side problems with certain releases on certain devices or with certain localizations, as well as eliminate the need for sending layer information in each request.

+

The helper method initConnection accepts client parameters. This method must be called when first calling the API after the application has restarted or in case the value of one of the parameters could have changed.

+

initConnection must also be called after each auth.bindTempAuthKey.

+

When calling this method, the current layer used by the client is also saved (the layer in which initConnection was wrapped is used). After a successful call to initConnection it is no longer necessary to wrap each API call in invokeWithLayerN.

+

Disabling updates

+
invokeWithoutUpdates#bf9459b7 {X:Type} query:!X = X;
+

invokeWithoutUpdates can be used to invoke a request without subscribing the used connection for updates (this is enabled by default for file queries).

+

Sequential Requests

+

By default, the server processes parallel requests in arbitrary order. Two helper methods exist for cases when the client needs certain requests to be processed in a certain order and intends to send a new request before the previous one is completed:

+
+

invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
+invokeAfterMsgs#3dc4b4f0 {X:Type} msg_ids:Vector query:!X = X;

+
+

They may be used, for example, when a client attempts to send messages that accumulated while waiting for the Internet connection to be restored for a long time. In this case, the 32-bit number 0xcb9f372d must be added before the method number in each request, followed by a 64-bit message identifier, msg_id, which contains the previous request in the queue.

+

The second method is similar, except it takes several messages that must be successfully processed before the current one.

+

If the waiting period exceeds 0.5 seconds (this value may change in the future) and no result has appeared, the method will return the 400 MSG_WAIT_TIMEOUT error.

+

Helper Method Sequence

+

Important: if the helper methods invokeAfterMsg / invokeAfterMsgs are used together with invokeWithLayerN or other helper methods, invokeAfterMsg / invokeAfterMsgs must always be the outermost wrapper.

+

Data Compression

+

We recommend using gzip compression when calling methods to reduce the amount of network traffic.

+

The schema and constructor information are given in the protocol documentation.

+

Data Compression when Making a Request

+

Before transmitting a query, the string containing the entire body of the serialized high-level query (starting with the method number) must be compressed using gzip. If the resulting string is smaller than the original, it makes sense to transmit the gzip_packed constructor.

+

There is no point in doing the above when transmitting binary multimedia data (photos, videos) or small messages (up to 255 bytes).

+

Decompressing Data

+

By default, the server compresses the response to any request as well as updates, in accordance with the rules stated above. If the gzip_packed constructor is received as a response in rpc_result, then the string that follows must be extracted and uncompressed. Processing then continues on the resulting new string.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/layers.html b/data/web/blogfork.telegram.org/api/layers.html new file mode 100644 index 0000000000..cea178dba4 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/layers.html @@ -0,0 +1,510 @@ + + + + + Layers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Layers

+ +
+ +

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

+

Layer 139

+

RTMP streams in group calls and livestreams, link to users by their phone number, browse recently sent media and new report options for illegal drugs and personal details.

+

The RPC error database » was also updated.

+

Schema changes

+
New Methods
+ +
Changed Methods
+ +
New Constructors
+ +
Changed Constructors
+
    +
  • Added rtmp_stream, listeners_hidden parameters in groupCall
  • +
+

Schema

+
groupCall#d597650c flags:# join_muted:flags.1?true can_change_join_muted:flags.2?true join_date_asc:flags.6?true schedule_start_subscribed:flags.8?true can_start_video:flags.9?true record_video_active:flags.11?true rtmp_stream:flags.12?true listeners_hidden:flags.13?true id:long access_hash:long participants_count:int title:flags.3?string stream_dc_id:flags.4?int record_start_date:flags.5?int schedule_date:flags.7?int unmuted_video_count:flags.10?int unmuted_video_limit:int version:int = GroupCall;
+groupCallStreamChannel#80eb48af channel:int scale:int last_timestamp_ms:long = GroupCallStreamChannel;
+phone.groupCallStreamChannels#d0e482b2 channels:Vector<GroupCallStreamChannel> = phone.GroupCallStreamChannels;
+inputReportReasonIllegalDrugs#0a8eb2be = ReportReason; +inputReportReasonPersonalDetails#9ec7863d = ReportReason;
+phone.groupCallStreamRtmpUrl#2dbf3432 url:string key:string = phone.GroupCallStreamRtmpUrl;
+---functions---
+phone.createGroupCall#48cdc6d8 flags:# rtmp_stream:flags.2?true peer:InputPeer random_id:int title:flags.0?string schedule_date:flags.1?int = Updates;
+contacts.resolvePhone#8af94344 phone:string = contacts.ResolvedPeer;
+phone.getGroupCallStreamChannels#1ab21940 call:InputGroupCall = phone.GroupCallStreamChannels; +phone.getGroupCallStreamRtmpUrl#deb3abbf peer:InputPeer revoke:Bool = phone.GroupCallStreamRtmpUrl;
+messages.searchSentMedia#107e31a0 q:string filter:MessagesFilter limit:int = messages.Messages;
+

Layer 138

+

Video stickers, better reactions.

+

Schema changes

+
New Methods
+ +
Changed Methods
+ +
New Constructors
+ +
Changed Constructors
+
    +
  • Added unread_reactions_count parameter in dialog
  • +
  • Added videos parameter in stickerSet
  • +
  • Added recent_reactions parameter, removed recent_reactons parameter in messageReactions
  • +
  • Added chats parameter, changed type of reactions from Vector<MessageUserReaction> to Vector<MessagePeerReaction> in messages.messageReactionsList
  • +
+
Deleted Constructors
+
    +
  • Removed messageUserReaction
  • +
+

Schema

+
dialog#a8edd0f5 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 unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;
+stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector<PhotoSize> thumb_dc_id:flags.4?int thumb_version:flags.4?int count:int hash:int = StickerSet;
+messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions; +messages.messageReactionsList#31bd492d flags:# count:int reactions:Vector<MessagePeerReaction> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList; +messagePeerReaction#51b67eff flags:# big:flags.0?true unread:flags.1?true peer_id:Peer reaction:string = MessagePeerReaction;
+---functions---
+stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true animated:flags.1?true videos:flags.4?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> software:flags.3?string = messages.StickerSet;
+messages.getUnreadReactions#e85bae1a peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; +messages.readReactions#82e251d7 peer:InputPeer = messages.AffectedHistory;
+

Layer 137

+

Message translation.

+

Schema changes

+
New Methods
+ +
New Constructors
+ +
Changed Constructors
+ +

Schema

+
availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;
+messages.translateNoResult#67ca4737 = messages.TranslatedText; +messages.translateResultText#a214f7d0 text:string = messages.TranslatedText;
+---functions---
+messages.translateText#24ce6dee flags:# peer:flags.0?InputPeer msg_id:flags.0?int text:flags.1?string from_lang:flags.2?string to_lang:string = messages.TranslatedText;
+

Layer 136

+

Reactions, spoilers and sponsored message improvements.

+

Schema changes

+
New Methods
+ +
New Constructors
+ +
Changed Constructors
+
    +
  • Added available_reactions parameter in chatFull
  • +
  • Added reactions parameter in message
  • +
  • Added available_reactions parameter in channelFull
  • +
  • Added chat_invite, chat_invite_hash parameters, changed type of from_id from Peer to flags.3?Peer in sponsoredMessage
  • +
+

PUSH notification changes

+
New PUSH notifications
+ +

Schema

+
chatFull#d18ee226 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:long about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string requests_pending:flags.17?int recent_requesters:flags.17?Vector<long> available_reactions:flags.18?Vector<string> = ChatFull;
+message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
+channelFull#e13c3d20 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:long 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:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long 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?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?Vector<string> = ChatFull;
+sponsoredMessage#3a836df8 flags:# random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string message:string entities:flags.1?Vector<MessageEntity> = SponsoredMessage;
+updateMessageReactions#154798c3 peer:Peer msg_id:int reactions:MessageReactions = Update;
+reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;
+messageReactions#087b6e36 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactons:flags.1?Vector<MessageUserReaction> = MessageReactions; +messageUserReaction#932844fa user_id:long reaction:string = MessageUserReaction; +messages.messageReactionsList#a366923c flags:# count:int reactions:Vector<MessageUserReaction> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;
+availableReaction#021d7c4b flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document = AvailableReaction;
+messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions; +messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions; +messageEntitySpoiler#32ca960f offset:int length:int = MessageEntity;
+channelAdminLogEventActionChangeAvailableReactions#9cf7f76a prev_value:Vector<string> new_value:Vector<string> = ChannelAdminLogEventAction;
+---functions---
+messages.sendReaction#25690ce4 flags:# big:flags.1?true peer:InputPeer msg_id:int reaction:flags.0?string = Updates; +messages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector<int> = Updates; +messages.getMessageReactionsList#e0ee6b77 flags:# peer:InputPeer id:int reaction:flags.0?string offset:flags.1?string limit:int = messages.MessageReactionsList; +messages.setChatAvailableReactions#14050ea6 peer:InputPeer available_reactions:Vector<string> = Updates; +messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions; +messages.setDefaultReaction#d960c4d4 reaction:string = Bool;
+

Layer 135

+

Anonymous posting in public groups, protected content, device management, login via missed call, mention users in inline buttons even if they don't have a username, logout tokens, improvements to join requests and stickers.

+

Schema changes

+
New Methods
+ +
Changed Methods
+ +
Deleted Methods
+
    +
  • Removed channels.deleteUserHistory
  • +
+
New Constructors
+ +
Changed Constructors
+
    +
  • Added noforwards parameter in chat
  • +
  • Added noforwards parameter in message
  • +
  • Added setup_password_required, otherwise_relogin_days parameters in auth.authorization
  • +
  • Added request_chat_broadcast, request_chat_title, request_chat_date parameters in peerSettings
  • +
  • Added id, private_forward_name parameters, removed user parameter in userFull
  • +
  • Added encrypted_requests_disabled, call_requests_disabled parameters in authorization
  • +
  • Added authorization_ttl_days parameter in account.authorizations
  • +
  • Added noforwards parameter in channel
  • +
  • Added default_send_as parameter in channelFull
  • +
  • Added allow_missed_call, logout_tokens parameters in codeSettings
  • +
+

Schema

+
chat#41cbf256 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 noforwards:flags.25?true id:long 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;
+message#85d6cbe2 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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> ttl_period:flags.25?int = Message;
+auth.authorization#33fb7bb8 flags:# setup_password_required:flags.1?true otherwise_relogin_days:flags.1?int tmp_sessions:flags.0?int user:User = auth.Authorization;
+peerSettings#a518110d 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 request_chat_broadcast:flags.10?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int = PeerSettings;
+userFull#cf366521 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 id:long 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 ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string = UserFull;
+authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?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; +account.authorizations#4bff8ea0 authorization_ttl_days:int authorizations:Vector<Authorization> = account.Authorizations;
+channel#8261ac61 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 fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true id:long access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date: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; +channelFull#56662e2e 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:long 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:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long 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?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer = ChatFull; +codeSettings#8a6469c2 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true allow_missed_call:flags.5?true logout_tokens:flags.6?Vector<bytes> = CodeSettings;
+inputKeyboardButtonUserProfile#e988037b text:string user_id:InputUser = KeyboardButton;
+keyboardButtonUserProfile#308660c1 text:string user_id:long = KeyboardButton;
+channels.sendAsPeers#8356cda9 peers:Vector<Peer> chats:Vector<Chat> users:Vector<User> = channels.SendAsPeers; +channelAdminLogEventActionToggleNoForwards#cb2ac766 new_value:Bool = ChannelAdminLogEventAction;
+messages.stickerSetNotModified#d3f924eb = messages.StickerSet;
+users.userFull#3b6d152e full_user:UserFull chats:Vector<Chat> users:Vector<User> = users.UserFull;
+messages.peerSettings#6880b94d settings:PeerSettings chats:Vector<Chat> users:Vector<User> = messages.PeerSettings;
+channelAdminLogEventActionSendMessage#278f2868 message:Message = ChannelAdminLogEventAction;
+auth.codeTypeMissedCall#d61ad6ee = auth.CodeType; +auth.sentCodeTypeMissedCall#82006484 prefix:string length:int = auth.SentCodeType; +auth.loggedOut#c3a2835f flags:# future_auth_token:flags.0?bytes = auth.LoggedOut;
+---functions---
+auth.logOut#3e72ba19 = auth.LoggedOut;
+users.getFullUser#b60f5918 id:InputUser = users.UserFull;
+messages.sendMessage#0d9d75a4 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = Updates; +messages.sendMedia#e25ff8e0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = Updates; +messages.forwardMessages#cc30290b flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector<int> random_id:Vector<long> to_peer:InputPeer schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.getPeerSettings#efd9a6a2 peer:InputPeer = messages.PeerSettings; +messages.getStickerSet#c8a0ec74 stickerset:InputStickerSet hash:int = messages.StickerSet;
+channels.reportSpam#f44a8315 channel:InputChannel participant:InputPeer id:Vector<int> = Bool;
+messages.sendInlineBotResult#7aa11297 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 send_as:flags.13?InputPeer = Updates; +messages.sendMultiMedia#f803138f flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector<InputSingleMedia> schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.hideAllChatJoinRequests#e085f4ea flags:# approved:flags.0?true peer:InputPeer link:flags.1?string = Updates; +messages.toggleNoForwards#b11eafa2 peer:InputPeer enabled:Bool = Updates; +messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool;
+channels.getSendAs#0dc770ee peer:InputPeer = channels.SendAsPeers;
+account.setAuthorizationTTL#bf899aa0 authorization_ttl_days:int = Bool; +account.changeAuthorizationSettings#40f48462 flags:# hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;
+channels.deleteParticipantHistory#367544db channel:InputChannel participant:InputPeer = messages.AffectedHistory;
+

Layer 134

+

Join requests, delete by date, global chat themes, hyper-speed scrolling and calendar view for shared media, sponsored channel posts.

+

Schema changes

+
New Methods
+ +
Changed Methods
+ +
New Constructors
+ +
Changed Constructors
+ +
Deleted Constructors
+
    +
  • Removed chatTheme
  • +
  • Removed account.chatThemesNotModified
  • +
  • Removed account.chatThemes
  • +
+

PUSH notification changes

+
New PUSH notifications
+ +

Schema

+
chatFull#46a6ffb4 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:long about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string requests_pending:flags.17?int recent_requesters:flags.17?Vector<long> = ChatFull;
+chatInviteExported#0ab4a819 flags:# revoked:flags.0?true permanent:flags.5?true request_needed:flags.6?true link:string admin_id:long date:int start_date:flags.4?int expire_date:flags.1?int usage_limit:flags.2?int usage:flags.3?int requested:flags.7?int title:flags.8?string = ExportedChatInvite;
+chatInvite#300c44c1 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true request_needed:flags.6?true title:string about:flags.5?string photo:Photo participants_count:int participants:flags.4?Vector<User> = ChatInvite;
+channelFull#59cff963 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:long 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:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long 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?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> = ChatFull;
+channelParticipantSelf#35a8bfa7 flags:# via_request:flags.0?true user_id:long inviter_id:long date:int = ChannelParticipant;
+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 send:flags.16?true = ChannelAdminLogEventsFilter;
+theme#a00e67d6 flags:# creator:flags.0?true default:flags.1?true for_chat:flags.5?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?Vector<ThemeSettings> emoticon:flags.6?string installs_count:flags.4?int = Theme;
+chatInviteImporter#8c5adfd9 flags:# requested:flags.0?true user_id:long date:int about:flags.2?string approved_by:flags.1?long = ChatInviteImporter;
+sponsoredMessage#d151e19a flags:# random_id:bytes from_id:Peer channel_post:flags.2?int start_param:flags.0?string message:string entities:flags.1?Vector<MessageEntity> = SponsoredMessage; +searchResultsCalendarPeriod#c9b0539f date:int min_msg_id:int max_msg_id:int count:int = SearchResultsCalendarPeriod;
+messages.searchResultsCalendar#147ee23c flags:# inexact:flags.0?true count:int min_date:int min_msg_id:int offset_id_offset:flags.1?int periods:Vector<SearchResultsCalendarPeriod> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.SearchResultsCalendar;
+searchResultPosition#7f648b67 msg_id:int date:int offset:int = SearchResultsPosition;
+messages.searchResultsPositions#53b22baf count:int positions:Vector<SearchResultsPosition> = messages.SearchResultsPositions; +messageActionChatJoinedByRequest#ebbca3cb = MessageAction;
+updatePendingJoinRequests#7063c3db peer:Peer requests_pending:int recent_requesters:Vector<long> = Update; +updateBotChatInviteRequester#11dfa986 peer:Peer date:int user_id:long about:string invite:ExportedChatInvite qts:int = Update;
+channelAdminLogEventActionParticipantJoinByRequest#afb6144a invite:ExportedChatInvite approved_by:long = ChannelAdminLogEventAction;
+---functions---
+messages.deleteHistory#b08f922a flags:# just_clear:flags.0?true revoke:flags.1?true peer:InputPeer max_id:int min_date:flags.2?int max_date:flags.3?int = messages.AffectedHistory; +messages.exportChatInvite#a02ce5d5 flags:# legacy_revoke_permanent:flags.2?true request_needed:flags.3?true peer:InputPeer expire_date:flags.0?int usage_limit:flags.1?int title:flags.4?string = ExportedChatInvite;
+account.createTheme#652e4400 flags:# slug:string title:string document:flags.2?InputDocument settings:flags.3?Vector<InputThemeSettings> = Theme; +account.updateTheme#2bf40ccc flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument settings:flags.3?Vector<InputThemeSettings> = Theme; +account.installTheme#c727bb3b flags:# dark:flags.0?true theme:flags.1?InputTheme format:flags.2?string base_theme:flags.3?BaseTheme = Bool;
+messages.editExportedChatInvite#bdca2f75 flags:# revoked:flags.2?true peer:InputPeer link:string expire_date:flags.0?int usage_limit:flags.1?int request_needed:flags.3?Bool title:flags.4?string = messages.ExportedChatInvite; +messages.getChatInviteImporters#df04dd4e flags:# requested:flags.0?true peer:InputPeer link:flags.1?string q:flags.2?string offset_date:int offset_user:InputUser limit:int = messages.ChatInviteImporters;
+account.getChatThemes#d638de89 hash:long = account.Themes;
+messages.getSearchResultsCalendar#49f0bde9 peer:InputPeer filter:MessagesFilter offset_id:int offset_date:int = messages.SearchResultsCalendar; +messages.getSearchResultsPositions#6e9583a3 peer:InputPeer filter:MessagesFilter offset_id:int limit:int = messages.SearchResultsPositions; +messages.hideChatJoinRequest#7fe7e815 flags:# approved:flags.0?true peer:InputPeer user_id:InputUser = Updates;
+

Layer 133

+

Group message receipts, animated emoji reactions » and switch to 64-bit identifiers for users, groups, supergroups and channels.

+

Over 160 constructors and methods were changed, changing parameter types from int to long, including user, chat and channel: the full changelog is elided for space reasons.
+You can visit the schema for an updated list of constructors.

+

Also note that the hashing algorithm for pagination was also changed to account for 64-bit IDs.

+

All layers 1-132 are deprecated due to impossible backwards compatibility between 32-bit and 64-bit IDs.

+

Changes

+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/live-location.html b/data/web/blogfork.telegram.org/api/live-location.html new file mode 100644 index 0000000000..867c8719bf --- /dev/null +++ b/data/web/blogfork.telegram.org/api/live-location.html @@ -0,0 +1,181 @@ + + + + + Live geolocation + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Live geolocation

+ +
+ +

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

+

Sending live locations

+
inputGeoPointEmpty#e4c123d6 = InputGeoPoint;
+
+inputGeoPoint#48222faf flags:# lat:double long:double accuracy_radius:flags.0?int = InputGeoPoint;
+
+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;
+
+---functions---
+
+messages.sendMedia#e25ff8e0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = 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;
+

To send a live geolocation, use messages.sendMedia with an inputMediaGeoLive media .

+

The inputMediaGeoLive allows sending the geolocation as an inputGeoPoint with floating point latitude and longitude, with an optional accuracy_radius in meters.
+Clients can also provide a heading, a direction in degrees (1-360) that can be used to indicate the direction of the user, a validity period for the current location, and a proximity_notification_radius .

+

The sent geolocation should be updated periodically using messages.editMessage at most every period seconds, in order to implement the "live" part of live geolocations.

+

To stop sharing the location, pass inputGeoPointEmpty as location and set the stopped flag to true in a last messages.editMessage call.

+

Receiving live locations

+
geoPoint#b2a2f663 flags:# long:double lat:double access_hash:long accuracy_radius:flags.0?int = GeoPoint;
+messageMediaGeoLive#b940c666 flags:# geo:GeoPoint heading:flags.0?int period:int proximity_notification_radius:flags.1?int = MessageMedia;
+
+updateGeoLiveViewed#871fb939 peer:Peer msg_id:int = Update;
+

Clients will receive a message with a messageMediaGeoLive, containing the information passed by the sender; when the geolocation message is marked as read, an updateGeoLiveViewed is generated.

+

Periodically, the geolocation will be updated with updateEditMessage/updateEditChannelMessage updates.

+

Live location previews

+
inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation;
+
+inputGeoPoint#48222faf flags:# lat:double long:double accuracy_radius:flags.0?int = InputGeoPoint;
+
+---functions---
+
+upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile;
+

A map preview can be generated by passing the received geoPoint to upload.getWebFile, to download an image preview of the map.

+
    +
  • geo_point is generated from the lat , long accuracy_radius parameters of the geoPoint
  • +
  • access_hash is the access hash of the geoPoint
  • +
  • w - Map width in pixels before applying scale; 16-1024
  • +
  • h - Map height in pixels before applying scale; 16-1024
  • +
  • zoom - Map zoom level; 13-20
  • +
  • scale - Map scale; 1-3
  • +
+

The image is then downloaded as specified here »

+

Proximity alert

+
messageActionGeoProximityReached#98e0d697 from_id:Peer to_id:Peer distance:int = MessageAction;
+
+messageService#2b085862 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 ttl_period:flags.25?int = Message;
+

If:

+
    +
  • A user sets a proximity_notification_radius when sending a location
  • +
  • Multiple users share their location within the same chat
  • +
  • One of the other users comes within proximity_notification_radius meters of the first user, and updates their location accordingly
  • +
+

An updateNewMessage/updateNewChannelMessage is generated for all chat members, containing a messageService with action messageActionGeoProximityReached:

+
    +
  • messageActionGeoProximityReached.to_id is the peer that enabled proximity alerts
  • +
  • messageActionGeoProximityReached.from_id is the peer that is now in proximity of messageActionGeoProximityReached.to_id
  • +
  • messageActionGeoProximityReached.distance is the distance between them, in meters
  • +
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/mentions.html b/data/web/blogfork.telegram.org/api/mentions.html new file mode 100644 index 0000000000..8e85447434 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/mentions.html @@ -0,0 +1,155 @@ + + + + + Mentions + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

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.

+
messageEntityMention#fa04579d offset:int length:int = MessageEntity;
+messageEntityMentionName#dc7b1140 offset:int length:int user_id:long = MessageEntity;
+inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity;
+
+message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
+
+channelParticipantsMentions#e04b5ceb flags:# q:flags.0?string top_msg_id:flags.1?int = ChannelParticipantsFilter;
+
+---functions---
+
+messages.sendMessage#d9d75a4 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = Updates;
+
+channels.getParticipants#77ced9d0 channel:InputChannel filter:ChannelParticipantsFilter offset:int limit:int hash:long = channels.ChannelParticipants;
+

Mentions are implemented as message entities, passed to the messages.sendMessage method:

+ +

Incoming messages mentioning to the current user will have the mentioned flag set, and will contain one or more messageEntityMention and messageEntityMentionName constructors.

+

Graphical clients can show a list of mentionable users when the user starts entering an @ in the text bar; for this purpose, the channelParticipantsMentions filter can be used in channels.getParticipants.
+This filter can be enhanced by providing an additional query string q (anything the user enters after @); it will also return non-participant users, in case of channel users commenting in post comment sections.

+

Dialog mentions

+
dialog#a8edd0f5 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 unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog;
+
+---functions---
+
+messages.getUnreadMentions#46578472 peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;
+messages.readMentions#f0189d3 peer:InputPeer = messages.AffectedHistory;
+

Graphical clients are supposed to show a blue mention indicator next to the message counter of chats in the dialog list.
+The dialog constructor contains an unread_mentions_count field to isolate chats with unread mentions; the actual mention counter should be shown inside of the chat itself, above an @ button that can be used, by clicking multiple times, to navigate back (using messages.getUnreadMentions) through the mention history.

+

When the last unread mention is read, or when long-clicking on the @ button, all mentions for a chat should marked as read using messages.readMentions.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/min.html b/data/web/blogfork.telegram.org/api/min.html new file mode 100644 index 0000000000..f20d4e3fe1 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/min.html @@ -0,0 +1,145 @@ + + + + + Min constructors + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Min constructors

+ +

In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set. This is done for performance and privacy reasons.

+

When receiving said constructors, the client must first check if user or chat object without min flag is already present in local cache. If it is present, then the client should just ignore constructors with min flag and use local one instead.

+

The rest of article assumes the client receives min-constructor without full object in local cache.

+

The client must store the context (similar to file references) in which the user/channel was seen. Later, when the client needs to pass the user/channel as input argument (e.g. fetch profile, mute, ban etc), the context is used to generate the input*FromMessage constructor, instead of normal inputUser, inputChannel or inputPeer.

+ +

The access_hash value, if present, is only suitable to use in inputPeerPhotoFileLocation, to directly download the profile pictures of channels and users without having to generate an inputPeer*FromMessage, simply using inputPeer* with the specified access hash.

+

Usually min constructors are encountered in messages inside of groups or channels. +When a message mentioning (sender, forwarder or forwardee, et cetera) such a user or channel is found, the constuctor must be associated with the message ID of the message and with the chat where the message was seen.

+

Example

+

Assume a message with id 34 is received from supergroup (actually channel) 123456789. +Said message was sent by from_id 102424212. +The updates container that contained the message has a user with ID 102424212 in the users field, but it has the min flag set, and the provided access_hash may be absent, or otherwise can't be used to generate a typical inputPeerUser constructor to send messages or do other actions.

+

What the client does is associate 102424212 with the channel 123456789 and message ID 34. +When and if the client will need to interact with user 102424212, it will generate one of the *FromMessage constructors mentioned above, setting:

+
    +
  • msg_id to 34
  • +
  • peer to the InputPeer associated with channel 123456789
  • +
  • user_id to 102424212
  • +
+

user_id can also be set to the IDs of users met in the fwd_header (messages forwarded from a user can be used to interact with the original sender, if they don't have privacy settings for forwards enabled). +Users mentioned via messageEntityMentionName in a message can also be used.

+

The same can be done with min channels.

+

Example implementations: Telegram for iOS, tdlib.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/obtaining_api_id.html b/data/web/blogfork.telegram.org/api/obtaining_api_id.html new file mode 100644 index 0000000000..71683833c7 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/obtaining_api_id.html @@ -0,0 +1,143 @@ + + + + + Creating your Telegram Application + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Creating your Telegram Application

+ +

We welcome all developers to use our API and source code to create Telegram-like messaging applications on our platform free of charge.

+
+

In order to ensure consistency and security across the Telegram ecosystem, +all third-party client apps must comply with the API Terms of Service.

+
+

Obtaining api_id

+

In order to obtain an API id and develop your own application using the Telegram API you need to do the following:

+
    +
  • Sign up for Telegram using any application.
  • +
  • Log in to your Telegram core: https://my.telegram.org.
  • +
  • Go to "API development tools" and fill out the form.
  • +
  • You will get basic addresses as well as the api_id and api_hash parameters required for user authorization.
  • +
  • For the moment each number can only have one api_id connected to it.
  • +
+

We will be sending important developer notifications to the phone number that you use in this process, so please use an up-to-date number connected to your active Telegram account.

+

Using the api_id

+

Before using the MTProto Telegram API, please note that all API client libraries are strictly monitored to prevent abuse.

+

If you use the Telegram API for flooding, spamming, faking subscriber and view counters of channels, you will be banned forever.

+

Due to excessive abuse of the Telegram API, all accounts that sign up or log in using unofficial Telegram API clients are automatically put under observation to avoid violations of the Terms of Service.

+

If you didn't violate the Terms of Service but your account does get banned after using the API, write to recover@telegram.org explaining what you intend to do with the API, asking to unban your account.
+Please note that emails are checked by a human, so automatically generated emails will be detected and banned.

+

Using Telegram's open source code

+

Everyone is welcome to use our open source code. We have included a sample API id with the code. This API id is limited on the server side and is not suitable for apps released to end-users — using it for anything but testing purposes will result in the API_ID_PUBLISHED_FLOOD error for your users. It is necessary that you obtain your own API id before you publish your app.

+
+

Please remember to publish your code as well in order to comply with the GNU GPL licences.

+
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/offsets.html b/data/web/blogfork.telegram.org/api/offsets.html new file mode 100644 index 0000000000..ef6b490bd7 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/offsets.html @@ -0,0 +1,173 @@ + + + + + Pagination in the API + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Pagination in the API

+ +
+ +

Lots of Telegram API methods provide access to potentially large lists of objects, which requires pagination.

+

In order to fetch only relevant subset of results for each request there is a number of available input parameters. Here is a list in order how they are applied in API.

+

Typically, results are returned in reverse chronological order with descending object ID values.

+

limit parameter

+

A limit on the number of objects to be returned, typically between 1 and 100. When 0 is provided the limit will often default to an intermediate value like ~20.

+

offset-based pagination

+

For a few methods with mostly static data this parameter allows to skip offset elements from the beginning of list; negative values are ignored.

+

offset_id-based pagination

+

For most methods where results are real-time data (e.g. any chat history) offset value is not passed directly. Instead it is calculated from the passed offset_id and add_offset parameter values as offsetFromID(offset_id) + add_offset, where offsetFromID(offset_id) is a number of results from the beginning of list up to the result with ID offset_id, inclusive.

+

Sample use cases:

+
    +
  • +

    Loading 20 messages, older than message with ID MSGID:

    +

    messages.getHistory({offset_id: MSGID, add_offset: 0, limit: 20})

    +
  • +
  • +

    Loading 20 messages, newer than message with ID MSGID:

    +

    messages.getHistory({offset_id: MSGID, add_offset: -20, limit: 20})

    +
  • +
  • +

    Loading 20 messages around message with ID MSGID:

    +

    messages.getHistory({offset_id: MSGID, add_offset: -10, limit: 20})

    +
  • +
+

Additional filtering

+

There is a number of parameters, which are applied to the list after slicing with offset and limit, to reduce the result subset even more:

+
    +
  • max_id: Can be used to only return results with ID strictly smaller than max_id (e.g. message ID)
  • +
  • min_id: Can be used to only return results with ID strictly greater than min_id(e.g. message ID)
  • +
  • max_date: Can be used to only return results that are older than max_date:
  • +
  • min_date: Can be used to only return results with are newer than min_date:
  • +
  • hash: See below.
  • +
+

Hash generation

+

To further reduce the result subset, there is a mechanism to avoid fetching data if the resulting list hasn't changed from the one stored on client, similar to ETag.

+

When the client has cached results for API request, it can calculate the hash value for it by taking the result IDs (message IDs or other fields with name id) and using them to compute a 64-bit hash with the following algorithm:

+
# Here, ^ indicates a bitwise XOR
+
+hash = 0
+for id in ids:
+    hash = hash ^ (id >> 21)
+    hash = hash ^ (id << 35)
+    hash = hash ^ (id >> 4)
+    hash = hash + id
+

In some cases, the result container already has a hash field, that can be used instead.

+

When the client passes a correct value, the API will return one of *NotModified constructors, e.g. messages.messagesNotModified instead of the actual results.

+

Example methods

+
    +
  • messages.getHistory supports all result navigation parameters including message ID hashes and except filters
  • +
  • channels.getParticipants supports simple navigation using limit and offset, along with filtering and hash reducing using the user IDs of returned participants
  • +
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/optimisation.html b/data/web/blogfork.telegram.org/api/optimisation.html new file mode 100644 index 0000000000..f6ff4ed2cf --- /dev/null +++ b/data/web/blogfork.telegram.org/api/optimisation.html @@ -0,0 +1,153 @@ + + + + + Client-Side Optimization + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Client-Side Optimization

+ +

Simplified Acknowledgment of Message Delivery

+

An outgoing message may be considered sent once the server has assigned it an identifier. Normally, a client would learn of this from the result of the messages.sendMessage method. +The MTProto server provides a mechanism for “quick acknowledgments". Upon receiving such an acknowledgment, the client may be certain that the call to the send message method has at least been fully received by the server and placed in a processing queue, and can inform the user that the delivery was successful. +It is possible that the server's actual response will never be received by the client (an interrupted connection; or the app restarts at exactly the wrong time). To correctly handle these situations, you can use a special type of notification generated by the server when updates.getDifference is called: updateMessageID. When processing this notification, the client can use the random_id identifier to associate the previously transmitted message with the one delivered to the server. +If such a notification is not issued when updates.getDifference is called for one of the previously sent messages, the message must be marked as undelivered.

+

Server Salt

+

Server salt is a 64-bit number added to every outgoing and incoming message. At present, a single salt's lifespan is 1 hour, following which it is considered invalid and the server will return an error for all the messages that contain it. The error message will contain the correct salt, which may be immediately used for sending. Given this approach, there will always be a period of waiting before the client receives a new salt if it connects to the server less frequently than once an hour. +For improved performance, there is a special get_future_salts method, which fetches in advance a list of the salts that will be valid during the course of a specified period of time following the call (1 day, for example). A start time and an end time are specified for each salt. The salts overlap one another by half an hour. We recommend always using the record with the longest remaining lifespan.

+

Downloading Files and Uploading Data to the Server

+

We recommend that separate connections and sessions be created for these tasks. Remember that the extra sessions must be deleted when no longer needed. +It makes sense to download files over several connections (optimally to have a pool). When uploading data to a server one connection is enough to achieve the best results.

+

The file handling API is designed to perform data operations in parts. In its simplest implementation, the process of uploading files to a server looks like this: send a query, wait for a response, send the next query, etc. This approach does not optimize the use of network resources and the ping time has a huge effect. +The upload and download process is optimal when two or more queries are continuously being executed through one connection. In this arrangement, uploading to the server would look like this:

+
    +
  1. Send Query 1
  2. +
  3. Send Query 2
  4. +
  5. Wait for a response to Query 1
  6. +
  7. Send Query 3
  8. +
  9. Wait for a response to Query 2
  10. +
  11. Send Query 4
  12. +
  13. etc.
  14. +
+

This will help reduce the effect of ping latency and maximize the channel workload.

+

Sending Messages in Bulk

+

Sometimes a client needs to transmit several send message method calls to the server all at once in a single message or in several consecutive messages. However, the server may execute these requests out of order (queries are handled by different servers to improve performance, which introduces a degree of randomness to the process). +This requires that dependencies be explicitly stated when processing queries by using the function

+
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
+

Actually, this means padding the beginning of the query with the 32-bit number 0xcb9f372d and the 64-bit message identifier of the query on which the current query is dependent.

+

Grouping Updates

+

Generating updates (notifications about various server events) and delivering them to the client form two different parts of the system (respectively, the messenger API and MTProto). By itself, MTProto cannot modify in any way the data transmitted to the client, and the server API cannot respond to client-MTProto connection events. +Imagine the situation where a client loses its connection (or is intentionally disconnected from the network) for some time. If lots of different events occur before a new connection is established (contacts come online, typing event messages are sent), then when a connection is established the client will receive lots of data containing all of the intervening events, despite the fact that most of the data is obsolete. +The grouping of messages has been introduced to optimize such situations. If new events occur and the client has not managed to “collect” the previously generated updates, then the server API can combine them into a single package.

+

A client is able to control when the MTProto server begins to consider that the connection has been lost and grouping can begin (the earlier this occurs when there is no connection, the better for the client). This functionality is implemented through a special type of Ping message, ping_delay_disconnect, which specifies a time delay following which the server will close the current connection and start grouping messages.

+

It makes sense to combine the transmission of ping_delay_disconnect with that of other recurring tasks, such as updating the user status (account.updateStatus).

+

Setting the Typing Status

+

If a contact is not online, there is no need to invoke messages.setTyping.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/passport.html b/data/web/blogfork.telegram.org/api/passport.html new file mode 100644 index 0000000000..c2496a9d77 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/passport.html @@ -0,0 +1,677 @@ + + + + + Telegram passport + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Telegram passport

+ +
+ +

Telegram Passport is a unified authorization method for services that require personal identification. Users can upload their documents once, then instantly share their data with services that require real-world ID (finance, ICOs, etc.). Telegram doesn't have access to the users' personal information thanks to end-to-end encryption.

+

This page describes the request flow that client apps must used to send the requested data to the service.

+

Overview

+

From the perspective of a service that requires real-world ID, the process looks like this:

+
    +
  • A user presses “Log in with Telegram” on your website or in your app.
  • +
  • You request the data you need.
  • +
  • The user accepts your privacy policy and agrees to share their data.
  • +
  • The user's Telegram app downloads and decrypts the data you requested from the end-to-end encrypted storage on Telegram.
  • +
  • If some of the data you requested is missing, the user can add it to their Telegram Passport at this point.
  • +
  • The user's app encrypts the data with your public key and sends it to you.
  • +
  • You decrypt the data, check it for errors and re-request any missing or invalid information.
  • +
  • You sign the user up for your service. Tada!
  • +
+

See As a bot to see how to request passport data using a bot, through the MTProto API. +Look at the Passport Manual to see how to request passport data using a bot, through the simplified bot API.

+

From the perspective of a user, the process looks something like this:

+
    +
  • Your app receives an event/intent from one of the SDKs, or from a custom source.
  • +
  • The user accepts your privacy policy and agrees to share their data.
  • +
  • The user's Telegram app downloads the data you requested from the end-to-end encrypted storage on Telegram.
  • +
  • If some of the data you requested is missing, the user can add it to their Telegram Passport at this point.
  • +
  • The user's app encrypts the data with your public key and sends it to the service.
  • +
  • You sign the user up for your service. Tada!
  • +
+

See As a user to see how user client apps should send passport data to a service, through the MTProto API.

+

As a bot

+

A simplified version of this process can be used using the bot API, for more info see the Passport Manual.

+

Using the MTProto API, the process is pretty much the same, up until the actual API calls.

+
+

Note that all binary fields are in raw binary format, unlike in the bot API where they are base64-encoded

+
+

Setting Up Telegram Passport

+

As per the bot API.

+

Requesting Information

+

As per the bot API.

+

Receiving information

+

Schema:

+
secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData;
+
+securePlainPhone#7d6099dd phone:string = SecurePlainData;
+securePlainEmail#21ec5a5f email:string = SecurePlainData;
+
+secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile;
+
+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;
+
+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;
+
+secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted;
+
+messageActionSecureValuesSentMe#1b287353 values:Vector<SecureValue> credentials:SecureCredentialsEncrypted = MessageAction; 
+messageService#2b085862 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 ttl_period:flags.25?int = Message;
+
+updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update;
+

When the user confirms your request by pressing the "Authorize" button, the MTProto API sends an updateNewMessage from the user, with a messageService constructor, containing a messageActionSecureValuesSentMe constructor that contains the encrypted Telegram Passport data.

+

Decrypting data

+
secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted;
+
+messageActionSecureValuesSentMe#1b287353 values:Vector<SecureValue> credentials:SecureCredentialsEncrypted = MessageAction; 
+

To decrypt the received data, first, decrypt the credentials contained in secureCredentialsEncrypted.

+
    +
  1. +

    Decrypt the credentials secret ( secret field in secureCredentialsEncrypted) using your private key (set OAEP padding option, e.g. OPENSSL_PKCS1_OAEP_PADDING in PHP)

    +
  2. +
  3. +

    Use this secret and the credentials hash ( hash field in secureCredentialsEncrypted) to calculate credentials_key and credentials_iv as described below:

    +
     credentials_secret_hash = SHA512( credentials_secret + credentials_hash )
    + credentials_key = slice( credentials_secret_hash, 0, 32 )
    + credentials_iv = slice( credentials_secret_hash, 32, 16 )
    +
  4. +
  5. +

    Decrypt the credentials data ( data field in secureCredentialsEncrypted) by AES256-CBC using these credentials_key and credentials_iv. IMPORTANT: At this step, make sure that the credentials hash is equal to SHA256( credentials_data )

    +
  6. +
  7. +

    Credentials data is padded with 32 to 255 random padding bytes to make its length divisible by 16 bytes. The first byte contains the length of this padding (including this byte). Remove the padding to get the data.

    +
  8. +
+
+

Note that all hashes are raw binary data, not hexits

+
+

Credentials

+

The credentials are a JSON-serialized object, structured exactly as in the bot API ». +Since decryption credentials are E2E encrypted, apps have to store the decryption credentials as JSON and not TL payloads.

+

The credentials are used as described in the Passport Manual to decrypt the files attached to the secureValue. +In this case, the container for the E2E encrypted data is in TL, while the encrypted data itself is in JSON.

+
secureValue
+
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;
+
+messageActionSecureValuesSentMe#1b287353 values:Vector<SecureValue> credentials:SecureCredentialsEncrypted = MessageAction; 
+

The schema for the secureValue constructor defines the constructor that can be found in each field.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
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
+

Here's a list of possible SecureValueTypes, and the parameters that can be set/requested when using each type.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeAllowed fields
secureValueTypeEmailplain_data
secureValueTypePhoneplain_data
secureValueTypePersonalDetailsdata
secureValueTypePassportdata, front_side, selfie, translation
secureValueTypeDriverLicensedata, front_side, reverse_side, selfie, translation
secureValueTypeIdentityCarddata, front_side, reverse_side, selfie, translation
secureValueTypeInternalPassportdata, front_side, selfie, translation
secureValueTypeAddressdata
secureValueTypeUtilityBillfiles, translation
secureValueTypeBankStatementfiles, translation
secureValueTypeRentalAgreementfiles, translation
secureValueTypePassportRegistrationfiles, translation
secureValueTypeTemporaryRegistrationfiles, translation
+
SecureData
+
secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData;
+

Data is an encrypted and padded JSON-serialized object of one of the specified JSON types, depending on the chosen type.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Chosen typeJSON object
secureValueTypePersonalDetailsPersonalDetails
secureValueTypePassportIdDocumentData
secureValueTypeDriverLicenseIdDocumentData
secureValueTypeIdentityCardIdDocumentData
secureValueTypeInternalPassportIdDocumentData
secureValueTypeAddressResidentialAddress
+

DataCredentials extracted from the credentials can then be used to decrypt encrypted data from the data field in secureData. +For more info on how to decrypt the data field, see the passport manual.

+
SecureFile
+
secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile; 
+
+inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation;
+
+---functions---
+
+upload.getFile#b15a9afc flags:# precise:flags.0?true cdn_supported:flags.1?true location:InputFileLocation offset:int limit:int = upload.File;
+

Files (JPG format when decrypted, max. 10 MB) are downloaded chunk by chunk as described in files », except that instead of generating an inputFileLocation, an inputFileLocation should be generated, instead.

+
    +
  • The id field is the id of the secureFile
  • +
  • The access_hash field is the access_hash of the secureFile
  • +
+

FileCredentials extracted from the credentials can then be used to decrypt downloaded encrypted data. +For more info on how to decrypt passport files, see the passport manual.

+
SecurePlainData
+
securePlainPhone#7d6099dd phone:string = SecurePlainData;
+securePlainEmail#21ec5a5f email:string = SecurePlainData;
+

The email/phone is passed in plaintext using the respective SecurePlainData constructor. +Emails and phone numbers sent using telegram passport are already verified as described in the passport manual.

+

Fixing errors

+
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;
+
+inputUser#f21158c6 user_id:long access_hash:long = InputUser;
+
+
+---functions---
+
+users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector<SecureValueError> = Bool;
+

If the data you received contains errors, the bot can use the users.setSecureValueErrors method to inform the user and request information again. The user will not be able to resend the data, until all errors are fixed.

+

Descriptions of the method parameters can be found in the method's documentation page ».

+

As a user

+

Receiving requests

+

The process starts when your app receives an event from one of the SDKs, or from a custom source.

+

URI format

+

The SDKs trigger a passport authorization request by opening the following Telegram-specific URI:

+
tg://resolve?params
+

With the following query string parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersTypeRequired
domainStringYes
bot_idIntegerYes
scopeUriPassportScopeYes
public_keyStringYes
nonceStringYes
callback_urlStringOptional
payloadStringOptional
+

Example URI, generated by the Telegram Passport Example page:

+
tg://resolve?domain=telegrampassport&bot_id=543260180&scope=%7B%22v%22%3A1%2C%22d%22%3A%5B%7B%22_%22%3A%22pd%22%2C%22n%22%3A1%7D%2C%22ad%22%2C%22pn%22%2C%22em%22%2C%7B%22_%22%3A%5B%7B%22_%22%3A%22pp%22%2C%22s%22%3A1%2C%22t%22%3A1%7D%2C%22ip%22%2C%22dl%22%2C%22ic%22%5D%7D%2C%7B%22_%22%3A%5B%22ub%22%2C%22bs%22%2C%22ra%22%2C%22pr%22%2C%22tr%22%5D%7D%5D%7D&public_key=-----BEGIN%20PUBLIC%20KEY-----%0AMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv6m1zBF8lZOCqcxf8hnj%0AkvHwuWdU8s4rBWaxKXH%2FvDDUklcCS5uhSnmjhxWca9suubaG3lW4HxlCilkeJPVf%0Ajimg5Q8ZqWrR3OoOihEpcG9iJZTOEpsEk7VtEiabgacBG3Quv9JslTrDe95Fn801%0At9d21HXwgMrHeHpWDOn31Dr%2BwoEH%2BkwySUWa6L%2FZbnGwSNP7eeDTE7Amz1RMDk3t%0A8EWGq58u0IQatPcEH09aUQlKzk6MIiALkZ9ILBKCBk6d2WCokKnsdBctovNbxwSx%0AhP1qst1r%2BYc8iPBZozsDC0ZsC5jXCkcODI3OC0tkNtYzN2XKalW5R0DjDRUDmGhT%0AzQIDAQAB%0A-----END%20PUBLIC%20KEY-----%0A&nonce=b8e892dc2e0afe63424d101b964f1256_32858210_708614a4585b84872e&callback_url=https%3A%2F%2Fcore.telegram.org%2Fpassport%2Fexample%3Fpassport_ssid%3Db8e892dc2e0afe63424d101b964f1256_32858210_db259b427f200751ce&payload=b8e892dc2e0afe63424d101b964f1256_32858210_708614a4585b84872e
+

UriPassportScope

+

This object represents the data to be requested.

+ + + + + + + + + + + + + + + + + + +
FieldTypeDescription
dArray of UriPassportScopeElementList of requested elements, each type may be used only once in the entire array of UriPassportScopeElement objects
vIntegerScope version, must be 1
+
UriPassportScopeElement
+

This object represents a requested element, should be one of:

+ +

Passport document type identifiers are aliased with the following reduced type identifiers:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FullAlias
personal_detailspd
passportpp
driver_licensedl
identity_cardic
internal_passportip
id_documentidd
addressad
utility_billub
bank_statementbs
rental_agreementra
passport_registrationpr
temporary_registrationtr
address_documentadd
phone_numberpn
emailem
+

You can use the special type "idd" as an alias for one of "pp", "dl", "ic" and the special type "add" as an alias for one of "ub", "bs", "ra".

+

UriPassportScopeElementOneOfSeveral

+

This object represents several elements one of which must be provided.

+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
_Array of UriPassportScopeElementOneList of elements one of which must be provided; must contain either several of “pp”, “dl”, “ic”, “ip” or several of “ub”, “bs”, “ra”, “pr”, “tr”
sBooleanOptional. Use this parameter if you want to request a selfie with the document from this list that the user chooses to upload.
tBooleanOptional. Use this parameter if you want to request a translation of the document from this list that the user chooses to upload. Note: We suggest to only request translations after you have received a valid document that requires one.
+

UriPassportScopeElementOne

+

This object represents one particular element that must be provided. If no options are needed, String can be used instead of this object to specify the type of the element.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
_StringElement type. One of "pd", "pp", "dl", "ic", "ip", "ad", "ub", "bs", "ra", "pr", "tr", "pn", "em"
sBooleanOptional. Use this parameter if you want to request a selfie with the document as well. Available for "pp", "dl", "ic" and "ip"
tBooleanOptional. Use this parameter if you want to request a translation of the document as well. Available for "pp", "dl", "ic", "ip", "ub", "bs", "ra", "pr" and "tr". Note: We suggest to only request translations after you have received a valid document that requires one.
nBooleanOptional. Use this parameter to request the first, last and middle name of the user in the language of the user's country of residence. Available for "pd"
+

You can also use the special type "idd" as an alias for one of "pp", "dl", "ic" and the special type "add" as an alias for one of "ub", "bs", "ra".

+

Setting up Telegram Passport

+

The next step for the client app is to request the user's 2FA passport, and configure Telegram Passport/fetch and decrypt remotely saved Telegram Passport parameters as described in the Encryption article ».

+

Fetching the passport 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#a929597a bot_id:long scope:string public_key:string = account.AuthorizationForm;
+

Then, the client app passes the bot ID, scope and public key from the passport authorization request to the Telegram servers using the account.getAuthorizationForm method.

+

The response will be an account.authorizationForm constructor, with info about the required document types, the URL of the service's privacy policy, as well as info about the bot to which the form should be sent. +If the form was already submitted at least once, the constructor will also contain a list of already submitted data, along with eventual errors.

+

The user should accept the privacy policy and proceed to fill in the required data, and the client should encrypt and upload it as described in the Encryption article ».

+

Submitting the passport form

+
secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted;
+
+secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash;
+
+---functions---
+
+account.acceptAuthorization#f3ed4c73 bot_id:long scope:string public_key:string value_hashes:Vector<SecureValueHash> credentials:SecureCredentialsEncrypted = Bool;
+

Once the user finishes uploading the required documents and clicks on the submit button, the client calls account.acceptAuthorization, submitting the documents to the bot associated to the service.

+
    +
  • As before, bot_id, scope and public_key are taken from the authorization request URI.
  • +
  • value_hashes is used by the server to choose which document of which type to send to the bot: the type field should be set to the document type, and the hash field should be set to the data_hash/file_hash generated when uploading encrypting the data ».
  • +
  • credentials contains the encrypted credentials required by the service to decrypt the sent E2E encrypted secure values: it is generated as described in Passport Credentials ».
  • +
+

Finally, the client opens the callback URL (if present).

+

Handling invalid forms

+
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;
+
+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#a929597a bot_id:long scope:string public_key:string = account.AuthorizationForm;
+

If any of the values of the submitted form are rejected by the service, the bot calls the appropriate method to set information about errors.

+

The user can find out about these errors directly from the service, or, if they decide to restart the process and resend the corrected data, directly from the authorization form (errors field).

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/pattern.html b/data/web/blogfork.telegram.org/api/pattern.html new file mode 100644 index 0000000000..4a97907180 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/pattern.html @@ -0,0 +1,125 @@ + + + + + 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 asterisk, 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/web/blogfork.telegram.org/api/payments.html b/data/web/blogfork.telegram.org/api/payments.html new file mode 100644 index 0000000000..828d54dc72 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/payments.html @@ -0,0 +1,369 @@ + + + + + Payments API + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Payments API

+ +
+ +

You can accept payments from Telegram users via Telegram Bots.

+
+

Note: This article is intended for MTProto API developers. If you're looking for a general overview of Telegram Payments, check out the Telegram blog and the bot API payment manual.

+
+

Introducing Payments

+

Telegram bots can accept payments for goods and services from users. +For more info on how payments work, check out the Telegram Blog and the bot API payment manual.

+

This page will elaborate on the actions required to work with payments using the MTProto API.

+
+

A simplified version of the process is available only for bots using the bot API.

+
+

The first step for bots is enable payments as described here ».

+

Then, we work with payments as follows.

+

1. Create Invoice

+
inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector<DocumentAttribute> = InputWebDocument;
+
+labeledPrice#cb296bf8 label:string amount:long = LabeledPrice;
+
+invoice#cd886e0 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> max_tip_amount:flags.8?long suggested_tip_amounts:flags.8?Vector<long> = Invoice;
+
+inputMediaInvoice#d9799874 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:flags.1?string = InputMedia;
+
+---functions---
+
+messages.sendMedia#e25ff8e0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = Updates;
+

The user contacts the bot and requests to purchase something. +The bot forms an inputMediaInvoice with an invoice constructor with a description of the goods or service, amount to be paid, as well as requested shipping info. +The provider parameter of the inputMediaInvoice constructor is where you put the token value that you've obtained earlier via Botfather. It is possible for one merchant bot to use several different tokens for different users or different goods and services.

+

Use the messages.sendMedia method to send the invoice. +You can also attach an inline keyboard to the message using the reply_markup field: if provided, the first button must be a keyboardButtonBuy button. Otherwise, an inline keyboard will be generated automatically, with a Pay 'total price' keyboardButtonBuy as only button.

+

An invoice message with a pay button can only be sent to a private chat with the user. Groups and channels are not supported.

+

2. Order information

+

2.1 Invoice message

+
keyboardButtonBuy#afd93fbb text:string = KeyboardButton;
+
+keyboardButtonRow#77608b83 buttons:Vector<KeyboardButton> = KeyboardButtonRow;
+replyInlineMarkup#48a30254 rows:Vector<KeyboardButtonRow> = ReplyMarkup;
+
+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;
+
+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;
+
+message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
+
+updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update;
+

The user receives an updateNewMessage constructor from the bot, containing a messageMediaInvoice constructor with basic info about the product.

+

The message will also have a replyInlineMarkup keyboard attached to it. +The the first button of the keyboard will always be a keyboardButtonBuy button.

+

2.2 Getting invoice info about the product

+
invoice#cd886e0 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> max_tip_amount:flags.8?long suggested_tip_amounts:flags.8?Vector<long> = Invoice;
+
+paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo;
+
+paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials;
+
+payments.paymentForm#1694761b flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long invoice:Invoice provider_id:long 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#8a333c8d flags:# peer:InputPeer msg_id:int theme_params:flags.0?DataJSON = payments.PaymentForm;
+

If the user clicks on the keyboardButtonBuy button, the client proceeds to call payments.getPaymentForm with the message ID of the invoice preview message to get the payment form.

+

The returned form will contain fields that should be passed to the payment provider along with the full invoice. +The payment form also contains info about previously saved payment credentials and order information (name, phone number, email, shipping address & so on).

+

The full invoice contains info about the information required for the order, the price and the currency, and whether this is a test order.

+

2.3 Verifying information

+
invoice#cd886e0 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> max_tip_amount:flags.8?long suggested_tip_amounts:flags.8?Vector<long> = Invoice;
+
+postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress;
+
+paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo;
+
+payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = payments.ValidatedRequestedInfo;
+
+---functions---
+
+payments.validateRequestedInfo#db103170 flags:# save:flags.0?true peer:InputPeer msg_id:int info:PaymentRequestedInfo = payments.ValidatedRequestedInfo;
+

If any data at all is requested by the invoice (name_requested, phone_requested, email_requested, shipping_address_requested), the user must call payments.validateRequestedInfo, providing the required data (as usual, msg_id is the ID of the invoice message). +The user can choose to save order information for future use by setting the save flag. +Data can be autofilled as described in autofill.

+

If no errors are found in the submitted info, the response of the method will contain an id flag, to be used later to complete the payment.

+

If the flexible flag of the invoice is set, calling the payments.validateRequestedInfo method will send a shipping query update to the bot, to which the bot will reply with the available shipping options for the specified address as described here ». +The return value in this case will also contain a shipping_options field with the available shipping options.

+

If any errors are found in the submitted data, a service notification will be sent to the user, with a description of the error from the bot.

+

2.3.1 Autofill

+
payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo;
+
+---functions---
+
+payments.getSavedInfo#227d824b = payments.SavedInfo;
+payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool;
+

The requested fields can be autofilled with the info provided in the saved_info field of the payment form, or with the info fetched manually using payments.getSavedInfo.

+

Saved order information can also be cleared using payments.clearSavedInfo.

+

2.4 Select delivery option

+
labeledPrice#cb296bf8 label:string amount:long = LabeledPrice;
+
+shippingOption#b6213cdf id:string title:string prices:Vector<LabeledPrice> = ShippingOption;
+
+updateBotShippingQuery#b5aefd7d query_id:long user_id:long payload:bytes shipping_address:PostAddress = Update;
+
+---functions---
+
+messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = Bool;
+

If a shipping address was requested and the bot included the parameter flexible, when the user validates order information the Telegram API will send an updateBotShippingQuery to the bot. +The bot must respond using messages.setBotShippingResults either with a list of possible delivery options and the relevant delivery prices, or with an error (for example, if delivery to the specified address is not possible).

+

The returned shipping options or the shipping error will be returned to the user while validating order information.

+

3. Payment

+
inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials;
+inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials;
+inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials;
+inputPaymentCredentialsGooglePay#8ac32801 payment_token:DataJSON = InputPaymentCredentials;
+
+
+payments.paymentForm#1694761b flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long invoice:Invoice provider_id:long 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;
+

3.1 Web payment

+
inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials;
+
+payments.paymentForm#1694761b flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long invoice:Invoice provider_id:long 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;
+

Typically, payment takes place by opening the url in the specified payment form, which leads to a payment form on the website of the payment gateway. +Once the user finishes entering their payment credentials, a payment_form_submit web event is generated by the payment gateway, containing data and title JSON fields.

+

The title is used by the client app to represent the payment credentials (typically a censored version of credit card information). +The data is used to generate an inputPaymentCredentials constructor. +Eventually, you can set the save flag to save the credit card info for future use, only if 2FA is enabled.

+

Telegram does not have access to your card information. Credit card details will be handled only by the payment system.

+

3.2 Native payment

+
inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials;
+
+payments.paymentForm#1694761b flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long invoice:Invoice provider_id:long 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;
+

Most telegram apps support working natively with the native APIs of some payment providers, without opening the website of the payment and receiving a JS event.

+

This is done using the JSON native_params parameters field of the payments.paymentForm constructor, which contains an object, which can contain one or more of 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
  • +
+

The payment gateway to use is decided based on the value of the native_provider field.

+
3.2.1 Stripe
+
inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials;
+
+payments.paymentForm#1694761b flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long invoice:Invoice provider_id:long 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;
+

If the native_provider field is set and equal to stripe, the client can make use of the native Stripe token APIs with the publishable_key from the native_params to add a payment method to Stripe, and then use the token type and id to generate a JSON object:

+
{"type":"token.type", "id":"token.id"}"
+

The generated JSON object can then be passed to the data field of the inputPaymentCredentials. +Eventually, you can set the save flag to save the credit card info for future use, only if 2FA is enabled.

+

Telegram does not have access to your card information. Credit card details will be handled only by the payment system.

+

Example implementation: Telegram for Android.

+

3.3 Apple pay

+
inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials;
+

On iOS devices, Apple Pay can be used to generate payment data, which is then sent using the inputPaymentCredentialsApplePay constructor.

+

Example implementation: Telegram for iOS.

+

3.4 Android pay

+
inputPaymentCredentialsGooglePay#8ac32801 payment_token:DataJSON = InputPaymentCredentials;
+

On Android devices, Google Pay can be used to generate payment data, which is then sent using the inputPaymentCredentialsGooglePay constructor.

+

Example implementation: Telegram for Android.

+

3.5 Using saved payment credentials

+
inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials;
+
+paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials;
+
+payments.paymentForm#1694761b flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long invoice:Invoice provider_id:long 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;
+
+account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword;
+
+---functions---
+
+account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword;
+

To reuse saved payment methods, the saved_credentials field of the payment form is used. +The title of the paymentSavedCredentialsCard can be used to preview a censored version of credit card info. +The id field is provided by the payment provider directly to the Telegram servers when saving the payment method, and identifies the payment method. +Full credit card info is not saved on Telegram Servers, and cannot be fetched by the user.

+

In order to use the saved payment method, 2FA must be enabled: the user must verify their identity by entering their 2FA password, which is then used as described in the SRP docs to generate SRP parameters which must be passed to account.getTmpPassword.

+

The generated temporary password can then be used to make payments using the saved credentials using the inputPaymentCredentialsSaved constructor.

+ +

Example implementation: Telegram for Android.

+

4. Pre-Checkout

+
inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials;
+inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials;
+inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials;
+inputPaymentCredentialsGooglePay#8ac32801 payment_token:DataJSON = InputPaymentCredentials;
+
+payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult;
+payments.paymentVerificationNeeded#d8411139 url:string = payments.PaymentResult;
+
+---functions---
+
+payments.sendPaymentForm#30c3bc9d flags:# form_id:long peer:InputPeer msg_id:int requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials tip_amount:flags.2?long = payments.PaymentResult;
+

After verifying order information, the final step for the client is to call payments.sendPaymentForm, with the following parameters:

+
    +
  • The msg_id is set to the ID of the invoice message
  • +
  • requested_info_id is set to the id of the verified order information, if it was requested
  • +
  • shipping_option_id is set to the selected delivery option, if shipping was requested.
  • +
  • credentials are the payment credentials generated by the payment provider, required to complete the order.
  • +
+

Payment method info can also be saved to the Telegram Servers and reused, by setting the save flag of inputPaymentCredentials when sending the form. +This is only possible on accounts with 2FA enabled.

+

The bot then replies to the received precheckout query, finally the user proceeds to checkout.

+

Please note that if the result of the method is a payments.paymentVerificationNeeded, before proceeding to checkout the payment provider requires the user to verify his identity by opening the provided url and following instructions. +Once the user finishes working with the webpage, the client can proceed to checkout.

+

Eventual errors are returned in the form of RPC errors, with the description of the error by the bot contained in service updates.

+

4.1 Receiving pre-checkout query

+
paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo;
+
+updateBotPrecheckoutQuery#8caa9a96 flags:# query_id:long user_id:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update;
+
+---functions---
+
+messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool;
+

The user enters their payment information as described above and presses the final pay button. +At this moment the Telegram API sends an updateBotPrecheckoutQuery constructor that contains all the available information about the order to the bot. +The bot must reply using messages.setBotPrecheckoutResults within 10 seconds after receiving this update or the transaction is canceled.

+

The bot may return an error if it can't process the order for any reason. We highly recommend specifying a reason for failure to complete the order in human readable form (e.g. "Sorry, we're all out of rubber ducks! Would you be interested in a steel bear instead?"). Telegram will display this reason to the user.

+

5. Checkout

+
keyboardButtonBuy#afd93fbb text:string = KeyboardButton;
+
+keyboardButtonRow#77608b83 buttons:Vector<KeyboardButton> = KeyboardButtonRow;
+replyInlineMarkup#48a30254 rows:Vector<KeyboardButtonRow> = ReplyMarkup;
+
+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;
+
+message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
+
+updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update;
+
+payments.paymentReceipt#70c4fe03 flags:# date:int bot_id:long provider_id:long title:string description:string photo:flags.2?WebDocument invoice:Invoice info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption tip_amount:flags.3?long currency:string total_amount:long credentials_title:string users:Vector<User> = payments.PaymentReceipt;
+
+---functions---
+
+payments.getPaymentReceipt#2478d1cc peer:InputPeer msg_id:int = payments.PaymentReceipt;
+

In case the bot confirms the order, Telegram requests the payment provider to complete the transaction. If the payment information was entered correctly and the payment goes through, the Telegram API will modify the invoice message and send a service message as described below. Once your bot receives this message, it should proceed with delivering the goods or services purchased by the user.

+

If all is OK, the user receives a payments.paymentResult in reply to the payments.sendPaymentForm query, containing info about the updated invoice message in the form of an updateEditMessage.

+

The invoice message will be updated as follows: the attached messageMediaInvoice will now have a receipt_msg_id field. +Clients should treat invoice messages with a receipt_msg_id field as receipt messages, locally modifying the label of the keyboardButtonBuy button to a localized version of the word Receipt. +From this point, clicking on the Receipt button should trigger a call to payments.getPaymentReceipt, providing the receipt_msg_id to the msg_id field, which will return info about the transaction.

+

The payment will also generate one service message of type messageActionPaymentSent or messageActionPaymentSentMe, replying to the invoice. +For bots, the service message will be of type messageActionPaymentSentMe, for users it will be a messageActionPaymentSent.

+
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;
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/pfs.html b/data/web/blogfork.telegram.org/api/pfs.html new file mode 100644 index 0000000000..4482addc2d --- /dev/null +++ b/data/web/blogfork.telegram.org/api/pfs.html @@ -0,0 +1,141 @@ + + + + + Perfect Forward Secrecy + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Perfect Forward Secrecy

+ +
Related articles
+

+
+

This article is about Perfect Forward Secrecy in cloud chats, see also PFS in Secret Chats.

+
+
+

Telegram supports Perfect Forward Secrecy (PFS).

+

To make this possible, the client generates a permanent authorization key using p_q_inner_data and a temporary key using p_q_inner_data_temp. (See Creating an Authorization Key for more info.) These 2 operations may be done in parallel and even using the same connection. The client must save an expires_at unix timestamp expires_at = time + expires_in.

+

Important: in order to achieve PFS, the client must never use the permanent auth_key_id directly. Every message that is sent to MTProto, must be encrypted by a temp_auth_key_id, that was bound to the perm_auth_key_id.

+

An unbound temp_auth_key_id may only be used with the following methods:

+ +

In order to bind a temporary authorization key to the permanent key the client creates a special binding message and executes the auth.bindTempAuthKey method using temp_auth_key. Once auth.bindTempAuthKey has been executed successfully, the client may signUp / signIn using other auth.* methods and continue using the API as usual; the client must also rewrite client info using initConnection after each binding. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one.

+

Once the temporary key expires, the client needs to generate a new temporary key using p_q_inner_data_temp. Then it needs to re-bind that new temporary key to the initial permanent key. A new key can also be generated in advance, so that the client has a new key ready by the time the old one has expired.

+

For additional security, the client can store the temporary authorization key in RAM only and never save it in persistent storage.

+

A temporary authorization key may expire at any moment before expires_at, since such keys are also stored only in the RAM on the server-side. Be prepared to handle resulting MTProto errors correctly (non-existent auth_key_id results in a 404 error).

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/pin.html b/data/web/blogfork.telegram.org/api/pin.html new file mode 100644 index 0000000000..c4cc5583f1 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/pin.html @@ -0,0 +1,152 @@ + + + + + Pinned messages + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Pinned messages

+ +
+ +

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

+
message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
+
+updatePinnedMessages#ed85eab5 flags:# pinned:flags.0?true peer:Peer messages:Vector<int> pts:int pts_count:int = Update;
+updatePinnedChannelMessages#5bb98608 flags:# pinned:flags.0?true channel_id:long messages:Vector<int> pts:int pts_count:int = Update;
+
+---functions---
+
+messages.updatePinnedMessage#d2aaf7ec flags:# silent:flags.0?true unpin:flags.1?true pm_oneside:flags.2?true peer:InputPeer id:int = Updates;
+messages.unpinAllMessages#f025bc8b peer:InputPeer = messages.AffectedHistory;
+
+messages.getMessages#63c66506 id:Vector<InputMessage> = messages.Messages;
+channels.getMessages#ad8c9a23 channel:InputChannel id:Vector<InputMessage> = messages.Messages;
+

The messages.updatePinnedMessage method can be used to pin or unpin a specific message in an arbitrary chat.
+The unpin flags specifies whether to unpin or pin the message, and pm_oneside specifies whether the message should only be pinned on the local side of a one-to-one chat.

+

messages.unpinAllMessages can be used to unpin all messages in a chat.

+

When (un)pinning messages, a updatePinnedMessages or updatePinnedChannelMessages update will be emitted, containing IDs of pinned or unpinned messages.

+

Pinned messages will also have the will also have the pinned flag of message set.

+

Getting pinned messages

+
userFull#cf366521 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 id:long 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 ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string = UserFull;
+chatFull#d18ee226 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:long about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string requests_pending:flags.17?int recent_requesters:flags.17?Vector<long> available_reactions:flags.18?Vector<string> = ChatFull;
+channelFull#e13c3d20 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:long 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:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long 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?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?Vector<string> = ChatFull;
+
+inputMessagesFilterPinned#1bb00451 = MessagesFilter;
+
+---functions---
+
+messages.search#a0fda762 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:long = messages.Messages;
+

The pinned_msg_id of userFull, chatFull, channelFull contains the ID of only the latest pinned message.
+To obtain a full list, use messages.search with inputMessagesFilterPinned filter.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/poll.html b/data/web/blogfork.telegram.org/api/poll.html new file mode 100644 index 0000000000..fdc2aeef46 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/poll.html @@ -0,0 +1,202 @@ + + + + + Poll + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Poll

+ +
+ +

Telegram allows sending polls and quizzes, that can be voted on by thousands, if not millions of users in chats and channels.

+

Sending a poll

+
pollAnswer#6ca9c2e9 text:string option:bytes = PollAnswer;
+
+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;
+
+inputMediaPoll#f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector<bytes> solution:flags.1?string solution_entities:flags.1?Vector<MessageEntity> = InputMedia;
+
+---functions---
+
+messages.sendMedia#e25ff8e0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = Updates;
+

To send a poll in a chat, call messages.sendMedia, providing an inputMediaPoll:

+
    +
  • +

    poll is the actual poll constructor, containing:

    +
      +
    • question - The poll title, aka the poll's title
    • +
    • answers - A vector of possible answers (2-10), each with a visible title text , and a unique option identifier (1-100 bytes)
    • +
    • closed - Whether the poll is closed
    • +
    • public_voters - Whether cast votes are publicly visible to all users (non-anonymous poll)
    • +
    • multiple_choice - Whether multiple options can be chosen as answer
    • +
    • quiz - Whether this is a quiz with correct answer IDs specified in inputMediaPoll.correct_answers
    • +
    • close_period - Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date .
    • +
    • close_date - Point 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 .
      +These last two parameters are exactly the same, except that one uses absolute, the other relative unixtime.
    • +
    +
  • +
  • +

    correct_answers - For quizzes, option ID of the only correct answer

    +
  • +
  • +

    solution - Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds

    +
  • +
  • +

    solution_entities - Styled text message entities for the solution explanation

    +
  • +
+

In order to prematurely close the poll, preventing further votes, use messages.editMessage, setting the poll.closed flag to true.

+

Voting in polls

+
pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters;
+
+pollResults#dcb82ea3 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<long> solution:flags.4?string solution_entities:flags.4?Vector<MessageEntity> = PollResults;
+
+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;
+
+messageMediaPoll#4bd6e798 poll:Poll results:PollResults = MessageMedia;
+
+updateMessagePoll#aca1657b flags:# poll_id:long poll:flags.0?Poll results:PollResults = Update;
+
+---functions---
+
+messages.sendVote#10ea6184 peer:InputPeer msg_id:int options:Vector<bytes> = Updates;
+

When receiving a message with a messageMediaPoll, users can vote in it using messages.sendVote, specifying the chosen option identifiers.

+

The method will return an updateMessagePoll, containing an updated pollResults constructor, with the chosen flag set on the options we chose, and the correct flag set on the correct answers.

+

Getting poll votes

+
pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters;
+
+pollResults#dcb82ea3 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<long> solution:flags.4?string solution_entities:flags.4?Vector<MessageEntity> = PollResults;
+
+updateMessagePoll#aca1657b flags:# poll_id:long poll:flags.0?Poll results:PollResults = Update;
+
+---functions---
+
+messages.getPollResults#73bb643b peer:InputPeer msg_id:int = Updates;
+

Regularly, if new users have voted in polls available to the user, they will receive an updateMessagePoll, with updated pollResults.

+

The same constructor can also be fetched manually using messages.getPollResults.

+

Getting poll voters in non-anonymous polls

+
messageUserVote#34d247b4 user_id:long option:bytes date:int = MessageUserVote;
+messageUserVoteInputOption#3ca5b0ec user_id:long date:int = MessageUserVote;
+messageUserVoteMultiple#8a65e557 user_id:long options:Vector<bytes> date:int = MessageUserVote;
+
+messages.votesList#823f649 flags:# count:int votes:Vector<MessageUserVote> users:Vector<User> next_offset:flags.0?string = messages.VotesList; 
+
+updateMessagePollVote#106395c9 poll_id:long user_id:long options:Vector<bytes> qts:int = Update;
+
+---functions---
+
+messages.getPollVotes#b86e380e flags:# peer:InputPeer id:int option:flags.0?bytes offset:flags.1?string limit:int = messages.VotesList; 
+

messages.getPollVotes can be used to get poll results for non-anonymous polls, to see how each user voted for a poll option.
+Bots will also receive an updateMessagePollVote every time a user their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/push-updates.html b/data/web/blogfork.telegram.org/api/push-updates.html new file mode 100644 index 0000000000..c9d880c87d --- /dev/null +++ b/data/web/blogfork.telegram.org/api/push-updates.html @@ -0,0 +1,1066 @@ + + + + + Handling PUSH-notifications + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Handling PUSH-notifications

+ +
+ +

Configuring the application

+

To be able to send APNS notifications to Apple servers or GCM notifications to Google servers, application certificates (APNS) or an application key (GCM) must be specified in the application settings.

+

Subscribing to notifications

+

To subscribe to notifications, the client must invoke the account.registerDevice query, passing in token_type and token as parameters that identify the current device. It is useful to repeat this query at least once every 24 hours or when restarting the application. Use account.unregisterDevice to unsubscribe.

+

The following modes are supported:

+
    +
  • 1 - APNS (device token for apple push)
  • +
  • 2 - FCM (firebase token for google firebase)
  • +
  • 3 - MPNS (channel URI for microsoft push)
  • +
  • 4 - Deprecated: Simple push (endpoint for firefox's simple push API)
  • +
  • 5 - Ubuntu phone (token for ubuntu push)
  • +
  • 6 - Blackberry (token for blackberry push)
  • +
  • 7 - MTProto separate session
  • +
  • 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 with the following keys:

+
    +
  • endpoint: Absolute URL exposed by the push service where the application server can send push messages
  • +
  • keys: P-256 elliptic curve Diffie-Hellman parameters in the following object
      +
    • p256dh: Base64url-encoded P-256 elliptic curve Diffie-Hellman public key
    • +
    • auth: Base64url-encoded authentication secret
    • +
    +
  • +
+

Notification encryption

+

For FCM and APNS VoIP, an optional encryption key used to encrypt push notifications can be passed to account.registerDevice (secret). This key (auth_key) is used to encrypt the payloads using MTProto v2.

+

The FCM payload will be a JSON payload, containing a p field with the base64url-encoded encrypted MTProto payload. After decryption, the result will be a JSON object, prefixed by a 32-bit little-endian integer with the length of the JSON payload. As usual, make sure to follow all security checks as described in the MTProto docs.

+

Example implementation.

+

As mentioned above, payloads can also be encrypted using P-256 Elliptic Curve Diffie-Hellman when using web push.

+

Notification structure

+

An (optionally encrypted) notification is provided as a JSON object in the following format:

+
{
+  "data": {
+    "loc_key": "CHAT_MESSAGE_CONTACT",
+    "loc_args": ["John Doe", "My magical group", "Contact Exchange"],
+    "user_id": 14124122,
+    "custom": {
+      "chat_id": 241233,
+      "msg_id": 123
+    },
+    "sound": "sound1.mp3",
+  }
+}
+

Each notification has several parameters that describe it.

+
    +
  • loc_key - Notification type: a string literal in the form /[A-Z_0-9]+/, which summarizes the notification. For example, CHAT_MESSAGE_TEXT.
  • +
  • loc_args - Notification placeholder arguments: a list or arguments which, when inserted into a template, produce a readable notification.
  • +
  • custom - Custom parameters to be passed into the application when a notification is opened. Possible fields:
      +
    • attachb64 - For notifications about media, base64url-encoded TL-serialization of the corresponding Photo / Document object
    • +
    • updates - base64url-encoded TL-serialization of the Updates object, currently sent only for PHONE_CALL_REQUEST (with updatePhoneCall inside)
    • +
    • call_id - Call ID, used in PHONE_CALL_REQUEST
    • +
    • call_ah - Call access hash, used in PHONE_CALL_REQUEST
    • +
    • encryption_id - Secret chat id for ENCRYPTION_REQUEST, ENCRYPTION_ACCEPT, ENCRYPTED_MESSAGE
    • +
    • random_id - Random id for message in ENCRYPTED_MESSAGE
    • +
    • contact_id - Telegram user identifier of contact that joined Telegram in CONTACT_JOINED
    • +
    • msg_id - Message ID for new message event or reaction event
    • +
    • channel_id - Identifier of the channel/supergroup where the event occurred
    • +
    • chat_id - Identifier of the basic group where the event occurred
    • +
    • from_id - User ID where the event occurred
    • +
    • chat_from_broadcast_id - If the group message was sent as a channel, this field will contain the sender channel ID
    • +
    • chat_from_group_id - If the group message was sent as a supergroup, this field will contain the sender supergroup ID
    • +
    • chat_from_id - Groups only, message author identifier (ignore if any of chat_from_broadcast_id / chat_from_group_id was present)
    • +
    • mention - Whether the current user was mentioned/replied to in this new message
    • +
    • silent - Whether the message was posted silently (no sound should be played for this notification)
    • +
    • schedule - Whether the message is outgoing and was sent via scheduled messages
    • +
    • edit_date - When was the message last edited
    • +
    • top_msg_id - thread_id for new mentions/replies in threads
    • +
    +
  • +
  • sound - The name of an audio file to be played.
  • +
  • user_id - ID of the account to which the PUSH notification should be delivered, in case of clients with multiple accounts active and running.
  • +
  • announcement - Roughly equivalent to a message received from the service notifications (Telegram Notifications, id 777000) user, but must be delivered via push notifications, without contacting the API.
  • +
+

Processing notifications

+

In principle, data.loc_key, data.custom, and an Internet connection are sufficient to generate a notification. Obviously, if possible, when generating a visual notification you need not use all of the transmitted data and may rely on the information already stored on the client. But if a user or a chat is not cached locally, the values passed in loc_args may also be used. data.user_id is the ID of the account to which the PUSH notification should be delivered, in case of clients with multiple accounts active and running.

+

Service notifications

+

The following notifications can be used to update app settings.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeExtra custom argumentsDescription
DC_UPDATEdata.custom.dc - number of the data-center
data.custom.addr - server address with port number in the format 111.112.113.114:443
In case the client gets this notification, it is necessary to add the received server address to the list of possible addresses. In case the address of the first DC was passed (dc=1), it is recommended to call it immediately using help.getConfig to update dc-configuration.
MESSAGE_DELETEDdata.custom.channel_id: For channels and supergroups, Channel/supergroup identifier
data.custom.chat_id: For chats, Chat identifier
data.custom.from_id: For PMs, Author identifier
data.custom.messages: Comma-separated IDs of messages that were deleted
Messages were deleted, remove multiple notifications for this chat
READ_HISTORYdata.custom.channel_id: For channels and supergroups, Channel/supergroup identifier
data.custom.chat_id: For chats, Chat identifier
data.custom.from_id: For PMs, Author identifier
data.custom.max_id: Maximum ID of read messages
Message history was read, remove multiple notifications for this chat
GEO_LIVE_PENDING Any of the live locations currently being shared should be updated
SESSION_REVOKE Logout and remove DB for specified session by data.user_id, only apply if coming from an MTProto-encrypted payload
MESSAGE_MUTED Sent rarely, every 10th message in chats or once per 15 sec in PM, to update badge or download messages
MESSAGE_ANNOUNCEMENTdata.announcement: AnnouncementRoughly equivalent to a message received from the service notifications (Telegram Notifications, id 777000) user, but must be delivered via push notifications, without contacting the API.
+

Possible Notifications

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeTemplate exampleArguments
AUTH_REGIONNew login from unrecognized device {1}, location: {2}1. Device name
2. Location
AUTH_UNKNOWNNew login from unrecognized device {1}1. Device name
CHANNEL_MESSAGES{1} posted an album1. Message author
CHANNEL_MESSAGE_AUDIO{1} posted a voice message1. Message author
CHANNEL_MESSAGE_CONTACT{1} posted a contact {2}1. Message author
2. Contact name
CHANNEL_MESSAGE_DOC{1} posted a file1. Message author
CHANNEL_MESSAGE_DOCS{1} posted {2} files1. Channel name
2. Number of documents that were posted
CHANNEL_MESSAGE_FWDS{1} posted {2} forwarded messages1. Message author
2. Number of forwarded messages
CHANNEL_MESSAGE_GAME{1} invited you to play {2}1. Message author
2. Game name
CHANNEL_MESSAGE_GAME_SCORE{1} scored {3} in game {2}1. User
2. Game name
3. Score
CHANNEL_MESSAGE_GEO{1} posted a location1. Channel name
CHANNEL_MESSAGE_GEOLIVE{1} posted a live location1. Channel name
CHANNEL_MESSAGE_GIF{1} posted a GIF1. Channel name
CHANNEL_MESSAGE_NOTEXT{1} posted a message1. Channel name
CHANNEL_MESSAGE_PHOTO{1} posted a photo1. Channel name
CHANNEL_MESSAGE_PHOTOS{1} posted {2} photos1. Channel name
2. Number of photos that was sent
CHANNEL_MESSAGE_PLAYLIST{1} posted {2} music files1. Channel name
2. Number of audio files that were posted
CHANNEL_MESSAGE_POLL{1} posted a poll {2}1. Channel name
2. Poll name
CHANNEL_MESSAGE_QUIZ{1} posted a quiz {2}1. Channel name
2. Quiz name
CHANNEL_MESSAGE_ROUND{1} posted a video message1. Channel name
CHANNEL_MESSAGE_STICKER{1} posted a {2} sticker1. Channel name
2. Sticker emoji
CHANNEL_MESSAGE_TEXT{1}: {2}1. Channel name
2. Message body
CHANNEL_MESSAGE_VIDEO{1} posted a video1. Channel name
CHANNEL_MESSAGE_VIDEOS{1} posted {2} videos1. Channel name
2. Number of videos that were posted
CHAT_ADD_MEMBER{1} invited {3} to the group {2}1. Message author
2. Chat name
3. New participant name
CHAT_ADD_YOU{1} invited you to the group {2}1. User name
2. Group name
CHAT_CREATED{1} invited you to the group {2}1. Message author
2. Chat name
CHAT_DELETE_MEMBER{1} removed {3} from the group {2}1. Message author
2. Chat name
3. Dropped participant name
CHAT_DELETE_YOU{1} removed you from the group {2}1. Message author
2. Chat name
CHAT_JOINED{1} joined the group {2}1. User name
2. Group name
CHAT_LEFT{1} left the group {2}1. Message author
2. Chat name
CHAT_MESSAGES{1} sent an album to the group {2}1. User name
2. Group name
CHAT_MESSAGE_AUDIO{1} sent a voice message to the group {2}1. Message author
2. Chat name
CHAT_MESSAGE_CONTACT{1} shared a contact {3} in the group {2}1. User name
2. Group name
3. Contact name
CHAT_MESSAGE_DOC{1} sent a file to the group {2}1. User name
2. Group name
CHAT_MESSAGE_DOCS{1} sent {3} files to the group {2}1. User name
2. Group name
3. Number of documents that were sent
CHAT_MESSAGE_FWDS{1} forwarded {3} messages to the group {2}1. User name
2. Group name
3. Number of messages that were forwarded
CHAT_MESSAGE_GAME{1} invited the group {2} to play {3}1. User name
2. Group name
3. Game name
CHAT_MESSAGE_GAME_SCORE{1} scored {4} in game {3} in the group {2}1. User name
2. Group name
3. Game name
4. Score
CHAT_MESSAGE_GEO{1} sent a location to the group {2}1. Message author
2. Chat name
CHAT_MESSAGE_GEOLIVE{1} shared a live location with the group {2}1. User name
2. Group name
CHAT_MESSAGE_GIF{1} sent a GIF to the group {2}1. User name
2. Group name
CHAT_MESSAGE_INVOICE{1} sent an invoice to the group {2} for {3}1. User name
2. Group name
3. Product name
CHAT_MESSAGE_NOTEXT{1} sent a message to the group {2}1. Message author
2. Chat name
CHAT_MESSAGE_PHOTO{1} sent a photo to the group {2}1. Message author
2. Chat name
CHAT_MESSAGE_PHOTOS{1} sent {3} photos to the group {2}1. User name
2. Group name
3. Number of photos that were sent
CHAT_MESSAGE_PLAYLIST{1} sent {3} music files to the group {2}1. User name
2. Group name
3. Number of audio files that were sent
CHAT_MESSAGE_POLL{1} sent a poll {3} to the group {2}1. User name
2. Group name
3. Poll name
CHAT_MESSAGE_QUIZ{1} sent a quiz {3} to the group {2}1. User name
2. Group name
3. Quiz name
CHAT_MESSAGE_ROUND{1} sent a video message to the group {2}1. User name
2. Group name
CHAT_MESSAGE_STICKER{1} sent a {3} sticker to the group {2}1. User name
2. Group name
3. Sticker emoji
CHAT_MESSAGE_TEXT{1} @ {2}: {3}1. Message author
2. Chat name
3. Message body
CHAT_MESSAGE_VIDEO{1} sent a video to the group {2}1. Message author
2. Chat name
CHAT_MESSAGE_VIDEOS{1} sent {3} videos to the group {2}1. User name
2. Group name
3. Number of videos that were sent
CHAT_PHOTO_EDITED{1} changed the group photo for {2}1. Message author
2. Chat name
CHAT_REACT_AUDIO{1}: {3} to your voice message in {2}1. User name
2. Group name
3. Reaction
CHAT_REACT_CONTACT{1}: {3} to your contact {4} in {2}1. User name
2. Group name
3. Reaction
4. Contact name
CHAT_REACT_DOC{1}: {3} to your file in {2}1. User name
2. Group name
3. Reaction
CHAT_REACT_GAME{1}: {3} to your game in {2}1. User name
2. Group name
3. Reaction
CHAT_REACT_GEO{1}: {3} to your map in {2}1. User name
2. Group name
3. Reaction
CHAT_REACT_GEOLIVE{1}: {3} to your live location in {2}1. User name
2. Group name
3. Reaction
CHAT_REACT_GIF{1}: {3} to your GIF in {2}1. User name
2. Group name
3. Reaction
CHAT_REACT_INVOICE{1}: {3} to your invoice in {2}1. User name
2. Group name
3. Reaction
CHAT_REACT_NOTEXT{1}: {3} to your message in {2}1. User name
2. Group name
3. Reaction
CHAT_REACT_PHOTO{1}: {3} to your photo in {2}1. User name
2. Group name
3. Reaction
CHAT_REACT_POLL{1}: {3} to your poll {4} in {2}1. User name
2. Group name
3. Reaction
4. Poll name
CHAT_REACT_QUIZ{1}: {3} to your quiz {4} in {2}1. User name
2. Group name
3. Reaction
4. Quiz name
CHAT_REACT_ROUND{1}: {3} to your video message in {2}1. User name
2. Group name
3. Reaction
CHAT_REACT_STICKER{1}: {3} to your {4} sticker in {2}1. User name
2. Group name
3. Reaction
4. Sticker emoji
CHAT_REACT_TEXT{1}: {3} in {2} to your "{4}"1. User name
2. Group name
3. Reaction
4. Message body
CHAT_REACT_VIDEO{1}: {3} to your video in {2}1. User name
2. Group name
3. Reaction
CHAT_REQ_JOINED{2}|{1} was accepted into the group1. User name
2. Chat name
CHAT_RETURNED{1} returned to the group {2}1. Message author
2. Chat name
CHAT_TITLE_EDITED{1} renamed the group {2}1. User name
2. Group name
CHAT_VOICECHAT_END{1} ended a voice chat in the group {2}1. User name
2. Chat name
CHAT_VOICECHAT_INVITE{1} invited {3} to a voice chat in the group {2}1. User name
2. Chat name
3. Invited users
CHAT_VOICECHAT_INVITE_YOU{1} invited you to a voice chat in the group {2}1. User name
2. Chat name
CHAT_VOICECHAT_START{1} started a voice chat in the group {2}1. User name
2. Chat name
CONTACT_JOINED{1} joined Telegram!1. Contact name
ENCRYPTED_MESSAGEYou have a new message 
ENCRYPTION_ACCEPTYou have a new message 
ENCRYPTION_REQUESTYou have a new message 
LOCKED_MESSAGEYou have a new message 
MESSAGES{1} sent you an album1. User name
MESSAGE_AUDIO{1} sent you a voice message1. Message author
MESSAGE_CONTACT{1} shared a contact {2} with you1. User name
2. Contact name
MESSAGE_DOC{1} sent you a file1. User name
MESSAGE_DOCS{1} sent you {2} files1. User name
2. Number of documents that were sent
MESSAGE_FWDS{1} forwarded you {2} messages1. User name
2. Number of messages that were forwarded
MESSAGE_GAME{1} invited you to play {2}1. User name
2. Game name
MESSAGE_GAME_SCORE{1} scored {3} in game {2}1. User name
2. Game name
3. Score
MESSAGE_GEO{1} sent you a location1. Message author
MESSAGE_GEOLIVE{1} sent you a live location1. User name
MESSAGE_GIF{1} sent you a GIF1. User name
MESSAGE_INVOICE{1} sent you an invoice for {2}1. User name
2. Product
MESSAGE_NOTEXT{1} sent you a message1. Message author
MESSAGE_PHOTO{1} sent you a photo1. Message author
MESSAGE_PHOTOS{1} sent you {2} photos1. User name
2. Number of photos that were sent
MESSAGE_PHOTO_SECRET{1} sent you a self-destructing photo1. User name
MESSAGE_PLAYLIST{1} sent you {2} music files1. User name
2. Number of audio files that were sent
MESSAGE_POLL{1} sent you a poll {2}1. User name
2. Poll name
MESSAGE_QUIZ{1} sent you a quiz {2}1. User name
2. Quiz name
MESSAGE_ROUND{1} sent you a video message1. User name
MESSAGE_SCREENSHOT{1} took a screenshot1. User name
MESSAGE_STICKER{1} sent you a {2} sticker1. User name
2. Sticker emoji
MESSAGE_TEXT{1}: {2}1. Message author
2. Message body
MESSAGE_VIDEO{1} sent you a video1. Message author
MESSAGE_VIDEOS{1} sent you {2} videos1. User name
2. Number of videos that were sent
MESSAGE_VIDEO_SECRET{1} sent you a self-destructing video1. User name
PHONE_CALL_MISSEDYou missed a call from {1}1. User name
PHONE_CALL_REQUEST{1} is calling you!1. User name
PINNED_AUDIO{1} pinned a voice message1. User name
PINNED_AUDIO{1} pinned a voice message in the group {2}1. User name
2. Group name
PINNED_CONTACT{1} pinned a contact {2}1. User name
2. Contact name
PINNED_CONTACT{1} pinned a contact {3} in the group {2}1. User name
2. Group name
3. Contact name
PINNED_DOC{1} pinned a file1. User name
PINNED_DOC{1} pinned a file in the group {2}1. User name
2. Group name
PINNED_GAME{1} pinned a game1. User name
PINNED_GAME{1} pinned a game in the group {2}1. User name
2. Group name
PINNED_GAME_SCORE{1} pinned a game score1. User name
PINNED_GAME_SCORE{1} pinned a game score in the group {2}1. User name
2. Group name
PINNED_GEO{1} pinned a map1. User name
PINNED_GEO{1} pinned a map in the group {2}1. User name
2. Group name
PINNED_GEOLIVE{1} pinned a live location1. User name
PINNED_GEOLIVE{1} pinned a live location in the group {2}1. User name
2. Group name
PINNED_GIF{1} pinned a GIF1. User name
PINNED_GIF{1} pinned a GIF in the group {2}1. User name
2. Group name
PINNED_INVOICE{1} pinned an invoice1. User name
PINNED_INVOICE{1} pinned an invoice in the group {2}1. User name
2. Group name
PINNED_NOTEXT{1} pinned a message1. User name
PINNED_NOTEXT{1} pinned a message in the group {2}1. User name
2. Group name
PINNED_PHOTO{1} pinned a photo1. User name
PINNED_PHOTO{1} pinned a photo in the group {2}1. User name
2. Group name
PINNED_POLL{1} pinned a poll {2}1. User name
2. Poll name
PINNED_POLL{1} pinned a poll {3} in the group {2}1. User name
2. Group name
3. Poll name
PINNED_QUIZ{1} pinned a quiz {2}1. User name
2. Quiz name
PINNED_QUIZ{1} pinned a quiz {3} in the group {2}1. User name
2. Group name
3. Quiz name
PINNED_ROUND{1} pinned a video message1. User name
PINNED_ROUND{1} pinned a video message in the group {2}1. User name
2. Group name
PINNED_STICKER{1} pinned a {2} sticker1. User name
2. Sticker emoji
PINNED_STICKER{1} pinned a {3} sticker in the group {2}1. User name
2. Group name
3. Sticker emoji
PINNED_TEXT{1} pinned "{2}"1. User name
2. Message body
PINNED_TEXT{1} pinned "{3}" in the group {2}1. User name
2. Group name
3. Message body
PINNED_VIDEO{1} pinned a video1. User name
PINNED_VIDEO{1} pinned a video in the group {2}1. User name
2. Group name
REACT_AUDIO{1}: {2} to your voice message1. User name
2. Reaction
REACT_CONTACT{1}: {2} to your contact {3}1. User name
2. Reaction
3. Contact name
REACT_DOC{1}: {2} to your file1. User name
2. Reaction
REACT_GAME{1}: {2} to your game1. User name
2. Reaction
REACT_GEO{1}: {2} to your map1. User name
2. Reaction
REACT_GEOLIVE{1}: {2} to your live location1. User name
2. Reaction
REACT_GIF{1}: {2} to your GIF1. User name
2. Reaction
REACT_INVOICE{1}: {2} to your invoice1. User name
2. Reaction
REACT_NOTEXT{1}: {2} to your message1. User name
2. Reaction
REACT_PHOTO{1}: {2} to your photo1. User name
2. Reaction
REACT_POLL{1}: {2} to your poll {3}1. User name
2. Reaction
3. Poll name
REACT_QUIZ{1}: {2} to your quiz {3}1. User name
2. Reaction
3. Quiz name
REACT_ROUND{1}: {2} to your video message1. User name
2. Reaction
REACT_STICKER{1}: {2} to your {3} sticker1. User name
2. Reaction
3. Sticker emoji
REACT_TEXT{1}: {2} to your "{3}"1. User name
2. Reaction
3. Message body
REACT_VIDEO{1}: {2} to your video1. User name
2. Reaction
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/qr-login.html b/data/web/blogfork.telegram.org/api/qr-login.html new file mode 100644 index 0000000000..2d4f865510 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/qr-login.html @@ -0,0 +1,157 @@ + + + + + Login via QR code + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Login via QR code

+ +
+ +

QR code login flow.

+

Related TL schema:

+
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;
+
+updateLoginToken#564fe691 = Update;
+
+authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?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.exportLoginToken#b7e085fe api_id:int api_hash:string except_ids:Vector<long> = auth.LoginToken;
+auth.acceptLoginToken#e894ad4d token:bytes = Authorization;
+auth.importLoginToken#95ac5ce4 token:bytes = auth.LoginToken;
+

Exporting a login token

+

First of all, auth.exportLoginToken must be called by the app that wants to log in to an existing Telegram account.
+The method will return an auth.loginToken constructor, containing a binary login token and an expiry date (usually 30 seconds).

+

The login token must be encoded using base64url, embedded in a tg://login?token=base64encodedtoken URL and shown in the form of a QR code to the user.
+After the expiration of the current QR code, the auth.exportLoginToken method must be recalled and a new QR code must be generated automatically.

+

Accepting a login token

+

In order to log in, the QR code must be scanned and accepted by an already logged-in Telegram app using auth.acceptLoginToken.
+The token must be extracted from the tg://login URI and base64url-decoded before using it in the method.

+

Possible errors returned by the method are:

+
    +
  • 400 - AUTH_TOKEN_INVALID, an invalid authorization token was provided
  • +
  • 400 - AUTH_TOKEN_EXPIRED, the provided authorization token has expired and the updated QR-code must be re-scanned
  • +
  • 400 - AUTH_TOKEN_ALREADY_ACCEPTED, the authorization token was already used
  • +
+

The method will return an authorization object, containing info about the app and session that we just authorized.

+

Confirming (importing) the login token

+

After the logged-in app calls auth.acceptLoginToken and accepts the login token, the app that is trying to login will receive an updateLoginToken update, which should trigger a second call to the auth.exportLoginToken method.

+

This second call should then return an auth.loginTokenSuccess constructor, indicating successful login, essentially allowing further authorized interaction with the API.

+

If, however, there is a DC mismatch between the two apps, auth.loginTokenMigrateTo is returned instead, to which the app that is trying to login should respond by calling auth.importLoginToken with the specified token, to the specified DC.

+

This call should then finally return a auth.loginTokenSuccess constructor.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/reactions.html b/data/web/blogfork.telegram.org/api/reactions.html new file mode 100644 index 0000000000..90cb639629 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/reactions.html @@ -0,0 +1,182 @@ + + + + + Message reactions + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Message reactions

+ +
+ +

Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.

+

React to a message

+
message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
+
+updateMessageReactions#154798c3 peer:Peer msg_id:int reactions:MessageReactions = Update;
+
+messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions;
+
+reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;
+
+messagePeerReaction#51b67eff flags:# big:flags.0?true unread:flags.1?true peer_id:Peer reaction:string = MessagePeerReaction;
+
+messages.messageReactionsList#31bd492d flags:# count:int reactions:Vector<MessagePeerReaction> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;
+
+---functions---
+
+messages.sendReaction#25690ce4 flags:# big:flags.1?true peer:InputPeer msg_id:int reaction:flags.0?string = Updates;
+messages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector<int> = Updates;
+messages.getMessageReactionsList#e0ee6b77 flags:# peer:InputPeer id:int reaction:flags.0?string offset:flags.1?string limit:int = messages.MessageReactionsList;
+
+messages.getUnreadReactions#e85bae1a peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;
+messages.readReactions#82e251d7 peer:InputPeer = messages.AffectedHistory;
+

Users can react to a message using messages.sendReaction: the big flag can be optionally set to elicit a bigger reaction.
+Message authors will receive an updateMessageReactions update when a user reacts to their message.

+

messages.getMessagesReactions can be used to fetch a full list of reactions for one or more messages.
+Apps should short-poll reactions for visible messages (that weren't sent by the user) once every 15-30 seconds, but only if message.reactions is set.

+

In groups, messages.getMessageReactionsList can be used to fetch the reaction list, along with the sender of each reaction.

+

messages.getUnreadReactions is used to fetch messages with unread reactions.
+Use messages.readReactions to mark all reactions as read in a certain chat.

+

Fetch globally available reactions

+
availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;
+
+messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;
+messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;
+
+---functions---
+
+messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions;
+

messages.getAvailableReactions can be used to fetch the full list of reactions that can be used on Telegram.
+The returned vector of availableReaction contains multiple fields with lottie animated stickers and simple images that should be positioned, displayed and played appropriately in the UI, as described in the constructor page ».

+

Set default reaction

+
jsonString#b71e767a value:string = JSONValue;
+jsonObjectValue#c0de1bd9 key:string value:JSONValue = JSONObjectValue;
+jsonObject#99c1d49d value:Vector<JSONObjectValue> = JSONValue;
+
+---functions---
+
+messages.setDefaultReaction#d960c4d4 reaction:string = Bool;
+
+help.getAppConfig#98914110 = JSONValue;
+

messages.setDefaultReaction can be used to change the default emoji reaction to use in the quick reaction menu.
+This value is synced across devices and can be fetched using help.getAppConfig, reactions_default field.

+

Change available reactions in group or channel

+
channelAdminLogEventActionChangeAvailableReactions#9cf7f76a prev_value:Vector<string> new_value:Vector<string> = ChannelAdminLogEventAction;
+
+---functions---
+
+messages.setChatAvailableReactions#14050ea6 peer:InputPeer available_reactions:Vector<string> = Updates;
+

messages.getUnreadReactions can be used to

+

Chat and channel administrators can use messages.setChatAvailableReactions to restrict the set of reactions that can be used in the chat or channel.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/recent-actions.html b/data/web/blogfork.telegram.org/api/recent-actions.html new file mode 100644 index 0000000000..d9b4254d63 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/recent-actions.html @@ -0,0 +1,157 @@ + + + + + Admin log + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Admin log

+ +
+ +

Both supergroups and channels offer a so-called admin log, a log of recent relevant supergroup and channel actions, like the modification of group/channel settings or information on behalf of an admin, user kicks and bans, and more.

+
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#50c7ac8 prev_value:long new_value:long = ChannelAdminLogEventAction;
+channelAdminLogEventActionChangeLocation#e6b76ae prev_value:ChannelLocation new_value:ChannelLocation = ChannelAdminLogEventAction;
+channelAdminLogEventActionToggleSlowMode#53909779 prev_value:int new_value:int = ChannelAdminLogEventAction;
+
+channelAdminLogEvent#1fad68cd id:long date:int user_id:long action:ChannelAdminLogEventAction = ChannelAdminLogEvent;
+
+channels.adminLogResults#ed8af74d events:Vector<ChannelAdminLogEvent> chats:Vector<Chat> users:Vector<User> = channels.AdminLogResults;
+
+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 send:flags.16?true = ChannelAdminLogEventsFilter;
+
+---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;
+

channels.getAdminLog can be used to list recent admin activity.
+A channelAdminLogEventsFilter can be used to filter out actions of a certain type, and the admins field can be used to show only actions by certain admins.
+q can also be used to filter only logs matching a query string.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/rights.html b/data/web/blogfork.telegram.org/api/rights.html new file mode 100644 index 0000000000..3240f8c294 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/rights.html @@ -0,0 +1,136 @@ + + + + + Admin, banned, default rights + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Admin, banned, default rights

+ +
+ +

Channels and supergroups allow setting granular permissions both for admins and specific users. +Channels, supergroups and basic groups also allow setting global granular permissions for users.

+

They can be modified as follows:

+

Admin rights

+

channels.editAdmin can be used to modify the admin rights of a user in a channel or supergroup. +Basic groups do not allow setting granular admin permissions, messages.editChatAdmin has to be used, instead.

+

Permissions are defined by the chatAdminRights constructor, some admin rights can only be used for channels, others both for channels and supergroups (see the constructor page).

+

Banned rights

+

channels.editBanned can be used to modify the rights of a user in a channel or supergroup, to ban/kick a user from the group, or restrict the user from doing certain things. +Basic groups do not allow setting granular user permissions for single users, single users can only be removed from groups using messages.deleteChatUser: however, setting global granular permissions with basic groups is supported.

+

Permissions are defined by the chatBannedRights constructor, for more info see the constructor page.

+

Default rights

+

messages.editChatDefaultBannedRights can be used to modify the rights of all users in a channel, supergroup or basic group, to restrict them from doing certain things.

+

Permissions are defined by the chatBannedRights constructor: all flags can be used except for view_messages, for more info see the constructor page.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/scheduled-messages.html b/data/web/blogfork.telegram.org/api/scheduled-messages.html new file mode 100644 index 0000000000..253e0bcf1c --- /dev/null +++ b/data/web/blogfork.telegram.org/api/scheduled-messages.html @@ -0,0 +1,159 @@ + + + + + Scheduled messages + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Scheduled messages

+ +

Telegram allows scheduling messages.

+
message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
+
+updateNewScheduledMessage#39a51dfb message:Message = Update;
+updateDeleteScheduledMessages#90866cee peer:Peer messages:Vector<int> = Update;
+
+---functions---
+
+messages.sendMessage#d9d75a4 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = Updates;
+
+messages.sendMedia#e25ff8e0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?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 send_as:flags.13?InputPeer = Updates;
+

To schedule a message, simply provide a future unixtime in the schedule_date flag of messages.sendMessage or messages.sendMedia.

+

The specified message or media will be added to a server-side schedule queue for the current chat, and will be automatically sent at the specified time.
+The method call generates the following updates:

+
    +
  • Immediately, an updateNewScheduledMessage, with ID equal to the ID of the message in the schedule queue for the current chat (each PM, chat, supergroup and channel has its own schedule queue and ID sequence).
  • +
  • At schedule_date, an updateNewMessage or updateNewChannelMessage with the from_scheduled flag set, indicating to the sender that the specified scheduled message was sent.
  • +
  • At schedule_date, an updateDeleteScheduledMessages, indicating that the message was flushed from the schedule queue.
  • +
+

If the schedule_date is less than 10 seconds in the future, the message will be sent immediately, generating a normal updateNewMessage/updateNewChannelMessage .

+

Manipulating the schedule queue

+
updateNewScheduledMessage#39a51dfb message:Message = Update;
+updateDeleteScheduledMessages#90866cee peer:Peer messages:Vector<int> = Update;
+
+---functions---
+
+messages.getScheduledHistory#f516760b peer:InputPeer hash:long = messages.Messages;
+messages.getScheduledMessages#bdbb0464 peer:InputPeer id:Vector<int> = messages.Messages;
+messages.sendScheduledMessages#bd38850a peer:InputPeer id:Vector<int> = Updates;
+messages.deleteScheduledMessages#59ae2b16 peer:InputPeer id:Vector<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;
+

Clients can manually edit the schedule queue of a certain chat, providing the scheduled message ID obtained from updateNewScheduledMessage.

+ +

Modifying scheduled messages will generate an updateNewScheduledMessage with the same ID, and updated information.
+Deleting scheduled messages will generate an updateDeleteScheduledMessages.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/search.html b/data/web/blogfork.telegram.org/api/search.html new file mode 100644 index 0000000000..f2ffb4cd14 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/search.html @@ -0,0 +1,182 @@ + + + + + Search + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Search

+ +
+ +

Telegram allows applying detailed message filters while looking for messages in chats.

+

Search filters

+
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;
+
+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#a0fda762 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:long = 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;
+

When using messages.search or messages.searchGlobal, a certain message filter may be applied.
+This allows the server to filter messages based on a text query, and even on their type, and this feature is often used by graphical clients to implement features like the chat gallery, chat profile pictures and more. +Available filters:

+ +

The returned messages.Messages constructors contain parameters for pagination, the messages themselves and two offset_id_offset/count parameters that can be used to display a progress/total counter like photo 134 of 200.
+For example, when displaying the chat photo gallery, we could display a photo ${offset_id_offset} of ${count} indicator on top.

+

Search counters

+
messages.searchCounter#e844ebff flags:# inexact:flags.1?true filter:MessagesFilter count:int = messages.SearchCounter;
+
+---functions---
+
+messages.getSearchCounters#732eef00 peer:InputPeer filters:Vector<MessagesFilter> = Vector<messages.SearchCounter>;
+

Chat counters with filters can also be returned without fetching the actual messages, as seen in the schema above.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/srp.html b/data/web/blogfork.telegram.org/api/srp.html new file mode 100644 index 0000000000..2b7d00b476 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/srp.html @@ -0,0 +1,310 @@ + + + + + Two-factor authentication + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Two-factor authentication

+ +
+ +

Telegram uses the Secure Remote Password protocol version 6a to implement 2FA.

+

Example implementation: tdlib.

+

Checking the password with SRP

+

To login to an account protected by a 2FA password or to perform some other actions (like changing channel owner), you will need to verify the user's knowledge of the current 2FA account password.

+

To do this, first the client needs to obtain SRP parameters and the KDF algorithm to use to check the validity of the password via account.getPassword method. For now, only the passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow algorithm is supported, so we'll only explain that.

+

Then, after the user provides a password, the client should generate an InputCheckPasswordSRP object using SRP and a specific KDF algorithm as shown below and pass it to appropriate method (e.g. auth.checkPassword in case of authorization).

+

This extension of the SRP protocol uses the password-based PBKDF2 with 100000 iterations using sha512 (PBKDF2HMACSHA512iter100000). +PBKDF2 is used to additionally rehash the x parameter, obtained using a method similar to the one described in RFC 2945 (H(s | H ( I | password | I) | s) instead of H(s | H ( I | ":" | password)) (see below).

+

Here, | denotes concatenation and + denotes the arithmetical operator +. +In all cases where concatenation of numbers passed to hashing functions is done, the numbers must be used in big-endian form, padded to 2048 bits; all math is modulo p. +Instead of I, salt1 will be used (see SRP protocol). +Instead of s, salt2 will be used (see SRP protocol).

+

The main hashing function H is sha256:

+
    +
  • H(data) := sha256(data)
  • +
+

The salting hashing function SH is defined as follows:

+
    +
  • SH(data, salt) := H(salt | data | salt)
  • +
+

The primary password hashing function is defined as follows:

+
    +
  • PH1(password, salt1, salt2) := SH(SH(password, salt1), salt2)
  • +
+

The secondary password hashing function is defined as follows:

+
    +
  • PH2(password, salt1, salt2) := SH(pbkdf2(sha512, PH1(password, salt1, salt2), salt1, 100000), salt2)
  • +
+

Client-side, the following parameters are extracted from the passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow object, contained in the account.password object.

+
    +
  • +

    g := algo.g

    +
  • +
  • +

    p := algo.p +The client is expected to check whether p is a safe 2048-bit prime (meaning that both p and (p-1)/2 are prime, and that 2^2047 < p < 2^2048), and that g generates a cyclic subgroup of prime order (p-1)/2, i.e. is a quadratic residue mod p. Since g is always equal to 2, 3, 4, 5, 6 or 7, this is easily done using quadratic reciprocity law, yielding a simple condition on p mod 4g -- namely, p mod 8 = 7 for g = 2; p mod 3 = 2 for g = 3; no extra condition for g = 4; p mod 5 = 1 or 4 for g = 5; p mod 24 = 19 or 23 for g = 6; and p mod 7 = 3, 5 or 6 for g = 7. After g and p have been checked by the client, it makes sense to cache the result, so as to avoid repeating lengthy computations in future. This cache might be shared with one used for Authorization Key generation.

    +

    If the client has an inadequate random number generator, it makes sense to use the secure_random of account.password as additional seed.

    +
  • +
  • +

    password := (user-provided password)

    +
  • +
  • +

    salt1 := algo.salt1

    +
  • +
  • +

    salt2 := algo.salt2

    +
  • +
  • +

    g_b := srp_B +srp_B and srp_id are extracted from the account.password object.

    +
  • +
+

The k parameter is generated, both on client and server:

+
    +
  • k := H(p | g)
  • +
+

The shared param u is generated: the client does this, and the server does the same with the g_a we will send him later (see below)

+
    +
  • u := H(g_a | g_b)
  • +
+

The final parameters are generated client-side only:

+
    +
  • x := PH2(password, salt1, salt2)
  • +
  • v := pow(g, x) mod p
  • +
+

The server already has v, from when we set the password.

+

A final shared param is generated, for commodity:

+
    +
  • k_v := (k * v) mod p
  • +
+

Finally, the key exchange process starts on both parties.

+

The client computes a 2048-bit number a (using sufficient entropy or the server's random; see above) and generates:

+
    +
  • g_a := pow(g, a) mod p.
  • +
+

The server computes a 2048-bit number b using sufficient entropy and generates the g_b parameter that was sent to us (see above).

+
    +
  • g_b := (k_v + (pow(g, b) mod p)) mod p
  • +
+

Finally, the SRP session keys are generated:

+

Client side:

+
    +
  • t := (g_b - k_v) mod p (positive modulo, if the result is negative increment by p)
  • +
  • s_a := pow(t, a + u * x) mod p
  • +
  • k_a := H(s_a)
  • +
+

Server side:

+
    +
  • s_b := pow(g_a * (pow(v, u) mod p), b) mod p
  • +
  • k_b := H(s_b)
  • +
+

Since:

+
    +
  • g_b := (k_v + (pow(g, b) mod p)) mod p
  • +
  • t := (g_b - k_v) mod p
  • +
  • t := ((k_v + (pow(g, b) mod p)) - k_v) mod p
  • +
  • t := pow(g, b) mod p
  • +
  • s_a := pow(t, a + u * x) mod p
  • +
  • s_a := pow(pow(g, b) mod p, a + u * x) mod p
  • +
+

And:

+
    +
  • +

    g_a := pow(g, a) mod p

    +
  • +
  • +

    v := pow(g, x) mod p

    +
  • +
  • +

    s_b := pow(g_a * (pow(v, u) mod p), b) mod p

    +
  • +
  • +

    s_b := pow((pow(g, a) mod p) * (pow(pow(g, x) mod p, u) mod p), b) mod p

    +
  • +
  • +

    s_b := pow(pow(g, a + x * u) mod p, b) mod p

    +
  • +
  • +

    s_b := pow(pow(g, b) mod p, a + u * x) mod p

    +
  • +
  • +

    s_a := pow(pow(g, b) mod p, a + u * x) mod p

    +
  • +
+

This means:

+
    +
  • s_b === s_a
  • +
  • k_b === k_a
  • +
+

Finally, as per SRP:

+
    +
  • M1 := H(H(p) xor H(g) | H(salt1) | H(salt2) | g_a | g_b | k_a)
  • +
+

M1 is passed to inputCheckPasswordSRP, along with g_a (as A parameter) and the srp_id, extracted from the account.password object.

+

The server then computes:

+
    +
  • M2 := H(H(p) xor H(g) | H(salt1) | H(salt2) | g_a | g_b | k_b)
  • +
+

Since we said that:

+
    +
  • s_b === s_a
  • +
  • k_b === k_a
  • +
+

This means, if everything was done correctly,

+
    +
  • M1 === M2
  • +
+

If the password isn't correct, 400 PASSWORD_HASH_INVALID will be returned.

+

Setting a new 2FA password

+

To set a new 2FA password use the account.updatePasswordSettings method.
+If a password is already set, generate an InputCheckPasswordSRP object as per checking passwords with SRP, and insert it in the password field of the account.updatePasswordSettings method.
+To remove the current password, pass an empty new_password_hash in the account.PasswordInputSettings object.

+

To set a new password, use the SRP parameters and the KDF algorithm obtained using account.getPassword when generating the password field. +Then generate a new new_password_hash using the KDF algorithm specified in the new_settings, just append 32 sufficiently random bytes to the salt1, first. +Proceed as for checking passwords with SRP, just stop at the generation of the v parameter, and use it as new_password_hash:

+
    +
  • v := pow(g, x) mod p
  • +
+

As usual in big endian form, padded to 2048 bits.

+

Email verification

+

When setting up two-factor authorization, it is recommended to set up a recovery email, to allow recovery of the password through the user's email address, in case they forget it.

+

To set up a recovery email, it must first be verified. +This can be done directly when setting the new password using account.updatePasswordSettings by setting the email parameter and flag in the account.passwordInputSettings constructor. +If the email isn't verified, an EMAIL_UNCONFIRMED_X 400 error will be returned, where X is the length of the verification code that was just sent to the email. +Use account.confirmPasswordEmail to enter the received verification code and enable the recovery email. +Use account.resendPasswordEmail to resend the verification code. +Use account.cancelPasswordEmail to cancel the verification code.

+

To get the current recovery email, use account.getPasswordSettings.

+

Email recovery

+

In order to recover a forgotten 2FA password, an email must be sent to the previously specified address using the auth.requestPasswordRecovery method.
+Use auth.checkRecoveryPassword to make sure that the user provided a valid code.
+Then use auth.recoverPassword with the received code to delete the current 2FA password, to set a new one follow these instructions.

+

Password reset

+
account.resetPasswordFailedWait#e3779861 retry_date:int = account.ResetPasswordResult;
+account.resetPasswordRequestedWait#e9effc7d until_date:int = account.ResetPasswordResult;
+account.resetPasswordOk#e926d63e = account.ResetPasswordResult;
+
+---functions---
+
+account.resetPassword#9308ce1b = account.ResetPasswordResult;
+account.declinePasswordReset#4c9409f6 = Bool;
+

If the user is already logged in and has forgotten their 2FA password, account.resetPassword can be used to initiate a password reset.
+On success, the call will initially return a account.resetPasswordRequestedWait constructor and start a 7-day server-side timer, during which the user can abort the reset process using a button sent by the Telegram service account or directly in-UI using account.declinePasswordReset.

+

When the time comes, account.resetPassword is invoked once more, returning a account.resetPasswordOk to indicate that the password was successfully reset.

+

If the user recently requested a password reset that was canceled, account.resetPasswordFailedWait will be returned by the initial account.resetPassword call, and they must wait until the specified date before requesting another reset.

+

Note that if the user already knows their 2FA password and simply wants to disable 2FA, the same process used to enable the password must also be used to disable it ».

+

Related pages

+

SRP design

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/stats.html b/data/web/blogfork.telegram.org/api/stats.html new file mode 100644 index 0000000000..70292914e4 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/stats.html @@ -0,0 +1,318 @@ + + + + + Channel statistics + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Channel statistics

+ +
+ +

Telegram offers detailed channel statistics for channels and supergroups.

+

Channel statistics

+

Schema:

+
statsDateRangeDays#b637edaf min_date:int max_date:int = StatsDateRangeDays;
+
+statsAbsValueAndPrev#cb43acde current:double previous:double = StatsAbsValueAndPrev;
+
+statsPercentValue#cbce2fe0 part:double total:double = StatsPercentValue;
+
+statsGraphAsync#4a27eb2d token:string = StatsGraph;
+statsGraphError#bedc9822 error:string = StatsGraph;
+statsGraph#8ea464b6 flags:# json:DataJSON zoom_token:flags.0?string = StatsGraph;
+
+messageInteractionCounters#ad4fc9bd msg_id:int views:int forwards:int = MessageInteractionCounters;
+
+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;
+
+messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;
+channelFull#e13c3d20 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:long 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:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long 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?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?Vector<string> = ChatFull;
+
+---functions---
+
+stats.getBroadcastStats#ab42441a flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastStats;
+stats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph;
+
+channels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull;
+

Administrators of channels of a certain size (the exact limit is a server-side config, returned in the can_view_stats flag of channelFull) can invoke stats.getBroadcastStats to get detailed channel statistics.
+The query must be sent to the datacenter with ID channelFull.stats_dc, obtainable using channels.getFullChannel.
+The returned stats.broadcastStats contains multiple statistics:

+
    +
  • Period-related statistics: a pair of values, one at the beginning and one at the end of the period in consideration (period).
    The period typically depends on channel activity.
      +
    • Absolute follower count (followers)
    • +
    • total_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).
    • +
    • total_sharecount/postcount, for posts posted during the period in consideration (shares_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).
    • +
    +
  • +
  • Percentage statistics
      +
    • Percentage of subscribers with enabled notifications (enabled_notifications)
    • +
    +
  • +
  • Graphs: graphs are described below ».
  • +
+

Supergroup statistics

+

Schema:

+
statsGroupTopPoster#9d04af9b user_id:long messages:int avg_chars:int = StatsGroupTopPoster;
+statsGroupTopInviter#535f779d user_id:long invitations:int = StatsGroupTopInviter;
+statsGroupTopAdmin#d7584c87 user_id:long deleted:int kicked:int banned:int = StatsGroupTopAdmin;
+
+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;
+
+messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;
+channelFull#e13c3d20 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:long 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:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long 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?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?Vector<string> = ChatFull;
+
+---functions---
+
+stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel = stats.MegagroupStats;
+
+channels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull;
+

Administrators of supergroups of a certain size (the exact limit is a server-side config, returned in the can_view_stats flag of channelFull) can call stats.getMegagroupStats to get detailed supergroup statistics.
+The query must be sent to the datacenter with ID channelFull.stats_dc, obtainable using channels.getFullChannel.
+The returned stats.broadcastStats contains multiple statistics, see the constructor page for more info ».

+

Message statistics

+
stats.messageStats#8999f295 views_graph:StatsGraph = stats.MessageStats;
+
+messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;
+channelFull#e13c3d20 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:long 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:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long 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?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?Vector<string> = ChatFull;
+
+---functions---
+
+stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;
+
+channels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull;
+

Administrators of channels of a certain size (the exact limit is a server-side config, returned in the can_view_stats flag of channelFull) can invoke stats.getMessageStats to get statistics of a specific message.
+The query must be sent to the datacenter with ID channelFull.stats_dc, obtainable using channels.getFullChannel.
+The returned stats.messageStats contains the view graph of the message.

+

Graph visualization

+

There are four available visualizations for graph types:

+ +

Graph modifiers (see various graphs for examples):

+
    +
  • y_scaled - Indicates that each of the two (!) lines in a step graph must be visualized on its own scale, with two different tick axes on the left and right parts of the graph
  • +
  • percentage - Indicates whether value percentages should be shown in labels
  • +
  • stacked - Depending on the graph type, indicates stacking of multiple columns in the same graph
  • +
+

Graph syntax

+
statsGraphAsync#4a27eb2d token:string = StatsGraph;
+statsGraphError#bedc9822 error:string = StatsGraph;
+statsGraph#8ea464b6 flags:# json:DataJSON zoom_token:flags.0?string = StatsGraph;
+
+dataJSON#7d748d04 data:string = DataJSON;
+
+---functions---
+
+stats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph;
+

Certain graphs are not directly sent in the stats.broadcastStats constructor to reduce server load: instead, those graphs will be sent as a statsGraphAsync constructor, and should be fetched separately using stats.loadAsyncGraph.

+

After obtaining the full statsGraph constructor, clients should parse the JSON graph object in the json field.

+

Object structure:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KeyGraph title
columnsArray of all data column arrays in the chart. Each column array has its label at position 0, followed by values.
typesGraphs types for each of the column arrays (object, "label": "type"):
- line - line graph
- area - area graph
- step - step graph
- bar - bar graph
- x - x axis values for each of the charts at the corresponding positions, UNIX timestamps in milliseconds.
colorsColor for each type (object, "label": "colorKey#AAAAAA"; see chart colors).
namesLocalized name for each variable (object, "label": "Name")
subchartObject indicating the default zoom range for the graph, this is object's structure:
- show - Whether to use the specified zoom range (boolean)
- defaultZoom - An array with two x values, indicating the two ends of the default zoom range
y_scaledIndicates that each of the two (!) lines in a step graph must be visualized on its own scale, with two different tick axes on the left and right parts of the graph (boolean, see various graphs for examples)
percentageIndicates whether value percentages should be shown in labels (boolean, see various graphs for examples)
stackedDepending on the graph type, indicates stacking of multiple columns in the same graph (boolean, see various graphs for examples)
+ +

The following chart restrictions apply:

+
    +
  • Up to 50 columns on one graph must be supported.
  • +
  • Chart types are always the same for every column in the graph.
  • +
  • The bar chart type and stacked option are always used together.
  • +
  • percentage is always used with the area graph. + +
  • +
+

Chart zooming

+
statsGraphError#bedc9822 error:string = StatsGraph;
+statsGraph#8ea464b6 flags:# json:DataJSON zoom_token:flags.0?string = StatsGraph;
+
+dataJSON#7d748d04 data:string = DataJSON;
+
+---functions---
+
+stats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph;
+

Graphs that support zooming will contain a zoom_token in the statsGraph constructor.
+Said token should be then used as token in a new stats.loadAsyncGraph call triggered when the user clicks on the label, related to a certain x axis in the graph (see graph examples).
+The x coordinate of the label should be provided to the x parameter; the method will then return (if available) a more detailed subgraph.
+If not enough data is available, a localized statsGraphError will be returned.

+

Typical zoom visualization rules:

+ +

Chart colors

+

Chart colors can be provided as a color key, followed by the primary color value in hex format:

+
red#e05356
+

The color key can be one of red, lightblue, lightgreen, golden, green, orange, blue, indigo.
+Apps can choose to use a color value specified by the currently loaded theme: for example, the android app uses statisticChartLine_* themekeys for each of the color keys, check out the assets directory for a bunch of default themes with various colors for channel statistics.

+

However, the server may also choose to return just a plain color value in hex format:

+
#e05356
+

In this case, the dark flag of the stats.getBroadcastStats method can be used to choose the palette of returned colors.

+

Graph examples

+

Line graph

+

Simple single line graph

+

Step graph

+

Step graph, always "stacked" (to indicate multiple lines)

+

Bar graph

+

Bar graph with multiple lines, always "stacked" (to indicate actual stacked bars, biggest bars first)

+

Area graph

+

Mixed bar/line graph, always "stacked" (to indicate actual stacked bars, biggest bars first)

+

Piechart

+

Pie chart, typically obtained only when zooming into percentage graphs

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/terms.html b/data/web/blogfork.telegram.org/api/terms.html new file mode 100644 index 0000000000..5a649fba39 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/terms.html @@ -0,0 +1,144 @@ + + + + + Telegram API Terms of Service + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Telegram API Terms of Service

+ +
+ +

We welcome all developers to use our API and source code to create Telegram-like messaging applications on our platform free of charge. In order to ensure consistency and security across the Telegram ecosystem, all third-party client apps must comply with the following Terms of Service.

+

1. Privacy & Security

+

1.1. Telegram is a privacy-oriented platform. All client apps must, therefore, guard their users' privacy with utmost care and comply with our Security Guidelines.
+1.2. Developers are welcome to add new features or improve and extend existing Telegram features provided that these modifications do not violate these Terms of Service.
+1.3. As a client developer, you must make sure that all the basic features of the main Telegram apps function correctly and in an expected way both in your app and when users of your app communicate with other Telegram users. It is forbidden to force users of other Telegram clients to download your app in order to view certain messages and content sent using your app.
+1.4. It is forbidden to interfere with the basic functionality of Telegram. This includes but is not limited to: making actions on behalf of the user without the user's knowledge and consent, preventing self-destructing content from disappearing, preventing last seen and online statuses from being displayed correctly, tampering with the 'read' statuses of messages (e.g. implementing a 'ghost mode'), preventing typing statuses from being sent/displayed, etc.

+

2. Transparency

+

2.1. You must obtain your own api_id for your application.
+2.2. We offer our API free of charge, but your users must be aware of the fact that your app uses the Telegram API and is part of the Telegram ecosystem. This fact must be featured prominently in the app's description in the app stores and in the in-app intro if your app has it.
+2.3. To avoid confusion, the title of your app must not include the word “Telegram”. An exception can be made if the word “Telegram” is preceded with the word “Unofficial” in the title.
+2.4. You must not use the official Telegram logo for your app. Both the Telegram brand and its logo are registered trademarks protected by law in almost every country.

+

3. Advertising & Monetization

+

3.1. Developers are allowed to monetize their coding efforts through advertising or other legitimate means.
+3.2. If you decide to monetize your app, you must clearly mention all the methods of monetization that are used in your app in all its app store descriptions. +3.3. If your app allows accessing content from Telegram channels, you must include support for official sponsored messages in Telegram channels and may not interfere with this functionality.

+

4. Breach of terms

+

4.1. If your app violates these terms, we will notify the Telegram account responsible for the app about the breach of terms.
+4.2. If you do not update the app to fix the highlighted issues within 10 days, we will have to discontinue your access to Telegram API and contact the app stores about the removal of your apps that are using the Telegram API in violation of these terms.

+

We reserve the right to expand these terms and guidelines as the need arises. We will inform client developers of such changes via an in-app notification to their accounts connected to the app in question.

+
+

Back to Creating Your Telegram Application »

+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/threads.html b/data/web/blogfork.telegram.org/api/threads.html new file mode 100644 index 0000000000..d95875349a --- /dev/null +++ b/data/web/blogfork.telegram.org/api/threads.html @@ -0,0 +1,185 @@ + + + + + Threads + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Threads

+ +
+ +

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

+

Message threads

+

Schema:

+
messageReplyHeader#a6d57763 flags:# reply_to_msg_id:int reply_to_peer_id:flags.0?Peer reply_to_top_id:flags.1?int = MessageReplyHeader;
+
+messageReplies#83d60fc2 flags:# comments:flags.0?true replies:int replies_pts:int recent_repliers:flags.1?Vector<Peer> channel_id:flags.0?long max_id:flags.2?int read_max_id:flags.3?int = MessageReplies;
+
+message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
+
+---functions---
+
+messages.search#a0fda762 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:long = messages.Messages;
+

Threads are usually automatically created when replying to any message in a group.
+For example, all replies to a message with ID 420 are associated to thread with ID 420, unique to this group; this thread ID is contained in the reply_to_top_id field of reply_to messageReplyHeader, along with an eventual reply_to_msg_id, for replies to messages within a thread.
+Replies to messages in a thread are part of the same thread, and do not spawn new threads.

+

When receiving a message from a group that is also the top of a thread (the message with ID 420), the replies optional field will contain a messageReplies constructor, containing the message ID and PTS of the latest reply in the thread, and the message ID of the latest read thread reply, along with the total number of replies in the thread.

+

Replies to a thread can also be manually fetched using messages.search, providing to top_msg_id the thread ID.

+

Channel comments

+
messageReplies#83d60fc2 flags:# comments:flags.0?true replies:int replies_pts:int recent_repliers:flags.1?Vector<Peer> channel_id:flags.0?long max_id:flags.2?int read_max_id:flags.3?int = MessageReplies;
+

The same messageReplies constructor seen above will also be contained in channel posts, this time containing information about the comment section of a specific channel post.
+The comment section of a channel post is simply the message thread of the automatically forwarded channel message in the linked discussion supergroup; the ID of the linked discussion supergroup will be contained in the messageReplies.channel_id field.

+

For channel posts, the recent_repliers field will also contain information about the last few comment posters for a specific thread, to show a small list of commenter profile pictures in client previews.

+

@replies

+
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;
+
+messageReplyHeader#a6d57763 flags:# reply_to_msg_id:int reply_to_peer_id:flags.0?Peer reply_to_top_id:flags.1?int = MessageReplyHeader;
+
+message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message;
+
+updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update;
+updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update;
+
+---functions---
+
+contacts.blockFromReplies#29a8962c flags:# delete_message:flags.0?true delete_history:flags.1?true report_spam:flags.2?true msg_id:int = Updates;
+
+contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer;
+

Since a user can comment in channel posts without joining the actual discussion supergroup, there must be a way for them to receive notifications about replies in comment sections.
+For this reason, a special @replies username is provided. +Its ID for main and testing endpoints can be seen in the tdlib sources.

+

When someone replies to one of our messages in the comment section of a channel post, and the user is not subscribed to the discussion group, the client will receive two updates:

+
    +
  • An updateNewChannelMessage from the discussion group itself, structured just like any other update coming from a subscribed group, with:
      +
    • id set to the ID of the reply
    • +
    • from_id set to the peer that replied to us
    • +
    • peer_id set to the peer of the discussion group
    • +
    • reply_to.reply_to_msg_id set to the ID of our message
    • +
    • reply_to.reply_to_top_id set to the thread ID.
    • +
    +
  • +
  • An updateNewMessage
      +
    • id set to the common ID sequence for users
    • +
    • from_id set to the peer of @replies
    • +
    • peer_id set to our own peer
    • +
    • fwd_from.saved_from_msg_id set to the ID of the reply
    • +
    • fwd_from.from_id set to the the peer that replied to us
    • +
    • reply_to.reply_to_peer_id set to the peer of the discussion group
    • +
    • reply_to.reply_to_msg_id set to the ID of our message
    • +
    • reply_to.reply_to_top_id set to the thread ID
    • +
    +
  • +
+

Clients should display messages coming from @replies as a read-only supergroup, with each reply displayed as a separate message from the author of the reply, with a "View in chat" button like for channel comments.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/top-rating.html b/data/web/blogfork.telegram.org/api/top-rating.html new file mode 100644 index 0000000000..d738a2d73d --- /dev/null +++ b/data/web/blogfork.telegram.org/api/top-rating.html @@ -0,0 +1,148 @@ + + + + + Top peer rating + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

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).

+

Schema:

+
topPeer#edcdc05b peer:Peer rating:double = TopPeer;
+
+topPeerCategoryBotsPM#ab661b5b = TopPeerCategory;
+topPeerCategoryBotsInline#148677e2 = TopPeerCategory;
+topPeerCategoryCorrespondents#637b7ed = TopPeerCategory;
+topPeerCategoryGroups#bd17a14a = TopPeerCategory;
+topPeerCategoryChannels#161d9628 = TopPeerCategory;
+topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory;
+topPeerCategoryForwardUsers#a8406ca9 = TopPeerCategory;
+topPeerCategoryForwardChats#fbeec0f0 = TopPeerCategory;
+
+topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector<TopPeer> = TopPeerCategoryPeers;
+
+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#973478b6 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:long = contacts.TopPeers;
+

The rate delta is computed by taking the time delta between the last time the user used a certain peer and the last time the rating for that peer was received and dividing it by the exponential decay from config.

+

Example: +Client-side, every time a user opens chat 123456789 the following operation must be done on the cached top peer info.

+
    +
  • dateOpened indicates when was the peer used
  • +
  • normalizeRate is an arbitrary time in the recent past. +When ratings are received from the server using contacts.getTopPeers and the schema described above, it is the time when they were received.
  • +
+
topPeer.rating += e^((dateOpened - normalizeRate) / config.rating_e_decay)
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/api/updates.html b/data/web/blogfork.telegram.org/api/updates.html new file mode 100644 index 0000000000..87b5805176 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/updates.html @@ -0,0 +1,229 @@ + + + + + Working with Updates + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Working with Updates

+ +
+ +

When a client is being actively used, events will occur that affect the current user and that they must learn about as soon as possible, e.g. when a new message is received. To eliminate the need for the client itself to periodically download these events, there is an update delivery mechanism in which the server sends the user notifications over one of its available connections with the client.

+

Subscribing to Updates

+

Update events are sent to an authorized user into the last active connection (except for connections needed for downloading / uploading files).

+

So to start receiving updates the client needs to init connection and call API method, e.g. to fetch current state.

+

Event sequences

+

All events are received from the socket as a sequence of TL-serialized Updates objects, which might be optionally gzip-compressed in the same way as responses to queries.

+

Each Updates object may contain single or multiple Update objects, representing different events happening.

+

In order to apply all updates in precise order and to guarantee that no update is missed or applied twice there is seq attribute in Updates constructors, and pts (with pts_count) or qts attributes in Update constructors. The client must use those attributes values in combination with locally stored state to correctly apply incoming updates.

+

When a gap in updates sequence occurs, it must be filled via calling one of the API methods. More below »

+

Updates sequence

+

As said earlier, each payload with updates has a TL-type Updates. It can be seen from the schema below that this type has several constructors.

+
updatesTooLong#e317af7e = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updateShortMessage#313bc7f8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+updateShortChatMessage#4d6deea5 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:long chat_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+updateShortSentMessage#9015e101 flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?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;
+

updatesTooLong indicates that there are too many events pending to be pushed to the client, so one needs to fetch them manually.

+

Events inside updateShort constructors, normally, have lower priority and are broadcast to a large number of users, i.e. one of the chat participants started entering text in a big conversation (updateChatUserTyping).

+

The updateShortMessage, updateShortSentMessage and updateShortChatMessage constructors are redundant but help significantly reduce the transmitted message size for 90% of the updates. They should be transformed to updateShort upon receiving.

+

Two remaining constructors updates and updatesCombined are part of the Updates sequence. Both of them have seq attribute, which indicates the remote Updates state after the generation of the Updates, and seq_start indicates the remote Updates state after the first of the Updates in the packet is generated. For updates, seq_start attribute is omitted, because it is assumed that it is always equal to seq.

+

Message-related event sequences

+

Each event related to a message box (message created, message edited, message deleted, etc) is identified by a unique autoincremented pts, or qts in case of secret chat updates, certain bot updates, etc.

+

Each message box can be considered as some server-side DB table that stores messages and events associated with them. +All boxes are completely independent, and each pts sequence is tied to just one box (see below).

+

Update object may contain info about multiple events (for example, updateDeleteMessages). +That's why all single updates might have pts_count parameter indicating the number of events contained in the received update (with some exceptions, in this case, the pts_count is considered to be 0).

+

Each channel and supergroup has its message box and its event sequence as a result; private chats and basic groups of one user have another common event sequence. +Secret chats, certain bot events and other kinds of updates have yet another common secondary event sequence.

+

To recap, the client has to take care of the integrity of the following sequences to properly handle updates:

+
    +
  • Updates sequence (seq)
      +
    • Common message box sequence (pts)
    • +
    • Secondary event sequence (qts)
    • +
    • Channel message box sequence 1 (pts)
    • +
    • Channel message box sequence 2 (pts)
    • +
    • Channel message box sequence 3 (pts)
    • +
    • and so on...
    • +
    +
  • +
+

Fetching state

+

The common update state is represented by the updates.State constructor. +When the user logs in for the first time, call to updates.getState has to be made to store the latest update state (which will not be the absolute initial state, just the latest state at the current time). +The common update state can also be fetched from updates.differenceTooLong.

+

The channel update state is represented simply by the pts of the event sequence: when first logging in, the initial channel state can be obtained from the dialog constructor when fetching dialogs, from the full channel info, or it can be received as an updateChannelTooLong update.

+

The secondary update state is represented by the qts of the secret event sequence, it is contained in the updates.State of the common update state.

+

The Updates sequence state is represented by the date and seq of the Updates sequence, it is contained in the updates.State of the common update state.

+

Update handling

+

Update handling in Telegram clients consists of receiving events, making sure there were no gaps and no events were missed based on the locally stored state of the correspondent event sequence, and then updating the locally stored state based on the parameters received.

+

When the client receives payload with serialized updates, first of all, it needs to walk through all of the nested Update objects and check if they belong to any of message box sequences (have pts or qts parameters). Those updates need to be handled separately according to corresponding local state and new pts/qts values. Details below »

+

After message box updates are handled, if there are any other updates remaining the client needs to handle them with respect to seq. Details below »

+

pts: checking and applying

+

Here, local_pts will be the local state, pts will be the remote state, pts_count will be the number of events in the update.

+

If local_pts + pts_count === pts, the update can be applied. +If local_pts + pts_count > pts, the update was already applied, and must be ignored. +If local_pts + pts_count < pts, there's an update gap that must be filled.

+

For example, let's assume the client has the following local state for the channel 123456789:

+
local_pts = 131
+

Now let's assume an updateNewChannelMessage from channel 123456789 is received with pts = 132 and pts_count=1. +Since local_pts + pts_count === pts, the total number of events since the last stored state is, in fact, equal to pts_count: this means the update can be safely accepted and the remote pts applied:

+
local_pts = 132
+

Since:

+
    +
  • pts indicates the server state after the new channel message events are generated
  • +
  • pts_count indicates the number of events in the new channel update
  • +
  • The server state before the new channel message event was generated has to be: pts_before = pts - pts_count = 131, which is, in fact, equal to our local state.
  • +
+

Now let's assume an updateNewChannelMessage from channel 123456789 is received with pts = 132 and pts_count=1. +Since local_pts + pts_count > pts (133 > 132), the update is skipped because we've already handled this update (in fact, our current local_pts was set by this same update, and it was resent twice due to network issues or other issues).

+

Now let's assume an updateDeleteChannelMessages from channel 123456789 is received with pts = 140 and pts_count=5. +Since local_pts + pts_count < pts (137 < 140), this means that updates were missed, and the gap must be recovered.

+
Secret chats & bots
+

The whole process is very similar for secret chats and certain bot updates, but there is qts instead of pts, and events are never grouped, so it's assumed that qts_count is always equal to 1.

+

seq: checking and applying

+

On top level when handling received updates and updatesCombined there are three possible cases: +If local_seq + 1 === seq_start, the updates can be applied. +If local_seq + 1 > seq_start, the updates were already applied, and must be ignored. +If local_seq + 1 < seq_start, there's an updates gap that must be filled (updates.getDifference must be used as with common and secret event sequences).

+

If the updates were applied, local Updates state must be updated with seq and date from the constructor.

+

For all the other Updates type constructors there is no need to check seq or change a local state.

+

Recovering gaps

+

To do this, updates.getDifference (common/secret state) or updates.getChannelDifference (channel state) with the respective local states must be called. +These methods should also be called on startup, to fetch new updates (preferably with some flags to reduce server load, see the method's docs). +Manually obtaining updates is also required in the following situations:

+
    +
  • Loss of sync: a gap was found in seq / pts / qts (as described above). It may be useful to wait up to 0.5 seconds in this situation and abort the sync in case a new update arrives, that fills the gap.
  • +
  • Session loss on the server: the client receives a new session created notification. This can be caused by garbage collection on the MTProto server or a server reboot.
  • +
  • Incorrect update: the client cannot deserialize the received data.
  • +
  • Incomplete update: the client is missing data about a chat/user from one of the shortened constructors, such as updateShortChatMessage, etc.
  • +
  • Long period without updates: no updates for 15 minutes or longer.
  • +
  • The server requests the client to fetch the difference using updateChannelTooLong or updatesTooLong.
  • +
+

When calling updates.getDifference if the updates.differenceSlice constructor is returned in response, the full difference was too large to be received in one request. The intermediate status, intermediate_state, must be saved on the client and the query must be repeated, using the intermediate status as the current status.

+

To fetch the updates difference of a channel, updates.getChannelDifference is used. +If the difference is too large to be received in one request, the final flag of the result is not set (see docs). +The intermediate status, represented by the pts, must be saved on the client and the query must be repeated, using the intermediate status as the current status.

+

For performance reasons and for better user experience, client can set maximum gap size to be filled: pts_total_limit parameter of updates.getDifference and limit parameter for updates.getChannelDifference can be used.

+

If the gap is too large and there are too many updates to fetch, a *TooLong constructor will be returned. In this case, the client must re-fetch the state, re-start fetching updates from that state and follow the instructions that can be found here.

+

It is recommended to use limit 10-100 for channels and 1000-10000 otherwise.

+

Example implementations

+

Implementations also have to take care to postpone updates received via the socket while filling gaps in the event and Update sequences, as well as avoid filling gaps in the same sequence.

+

Example implementations: tdlib, MadelineProto.

+

An interesting and easy way this can be implemented, instead of using various locks, is by running background loops, like in MadelineProto ».

+

PUSH Notifications about Updates

+

If a client does not have an active connection at the time of an event, PUSH Notifications will also be useful.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/url-authorization.html b/data/web/blogfork.telegram.org/api/url-authorization.html new file mode 100644 index 0000000000..0bf56fe4d8 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/url-authorization.html @@ -0,0 +1,163 @@ + + + + + Seamless Telegram Login + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Seamless Telegram Login

+ +
+ +

Bots or Telegram websites may ask users to login to a certain website via Telegram when clicking on certain links or URL buttons in inline keyboards.

+

Bot URL authorization

+

When the user clicks on keyboardButtonUrlAuth, messages.requestUrlAuth should be called, providing the button_id of the button and the ID and peer of the container message. +The returned urlAuthResultRequest object will contain more details about the authorization request:

+
    +
  • The domain parameter will contain the domain name of the website on which the user will log in (example: comments.app).
  • +
  • The bot parameter will contain info about the bot which will be used for user authorization (example: DiscussBot).
  • +
  • The request_write_access will be set if the bot would like to send messages to the user.
  • +
+

The info should be shown in a prompt:

+
+ TITLE +
+

If the user agrees to login to the URL, messages.acceptUrlAuth should be called (eventually setting the write_allowed if the permission was requested and the user consented). +The result will be a urlAuthResultAccepted with the final URL to open, which will include a query string with the requested info and a hash that must be verified upon receival by the service.

+

urlAuthResultDefault could also be returned, instead, in which case the url of the keyboardButtonUrlAuth must be opened, instead. +The same must be done if the user opens the link while refusing the authorization request.

+

Link URL authorization

+

Telegram supports automatic authorization on certain websites upon opening an HTTP URL in-app, upon clicking a link in a message or clicking on a keyboardButtonUrl.

+

Automatic authorization

+

Clients should automatically authenticate users when opening official Telegram websites, listed in the url_auth_domains key of the client configuration object ».

+

Upon clicking a link, the URL must be modified by appending the autologin_token from the client configuration object » to the query string, like so:

+

Original URL: https://somedomain.telegram.org/path?query=string#fragment=value
+Modified URL: https://somedomain.telegram.org/path?query=string&autologin_token=$autologin_token#fragment=value

+

Make sure that the used autologin_token is no more than 10000 seconds old, if it is older it must be refetched before use as described in the client configuration section ».

+

Manual authorization

+

Clients should show a confirmation prompt similar to the one used for bots, to authenticate users when opening certain Telegram websites, listed in the url_auth_domains key of the client configuration object ».

+

messages.requestUrlAuth should be called, providing only the original url. +The returned urlAuthResultRequest object will contain more details about the authorization request:

+
    +
  • The domain parameter will contain the domain name of the website on which the user will log in (example: comments.app).
  • +
  • The request_write_access will be set if the website would like to send messages to the user.
  • +
+

The info should be shown in a prompt.

+

If the user agrees to login to the URL, messages.acceptUrlAuth should be called (eventually setting the write_allowed if the permission was requested and the user consented). +The result will be a urlAuthResultAccepted with the final URL to open.

+

urlAuthResultDefault could also be returned, instead, in which case the original URL must be opened, instead. +The same must be done if the user opens the link while refusing the authorization request.

+

Related articles

+

Client configuration

+

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/api/web-events.html b/data/web/blogfork.telegram.org/api/web-events.html new file mode 100644 index 0000000000..0603860b58 --- /dev/null +++ b/data/web/blogfork.telegram.org/api/web-events.html @@ -0,0 +1,180 @@ + + + + + Web events + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Web events

+ +
+ +

When interacting with HTML5 games and the websites of payment gateways, Telegram apps should expose APIs to allow receiving data and events from the websites.

+

Event APIs

+

Games and payment gateways can generate events that are meant to be received by the Telegram apps. +Typically events are generated by using the postEvent method of the GamingCommunication library. +The postEvent function will try sending the event to the Telegram app in a number of different ways.

+

WebviewProxy

+

In mobile apps, the event receiver API should be typically exposed as a window.TelegramWebviewProxy object with a postEvent method.

+
window.TelegramWebviewProxy.postEvent(eventType, eventData)
+

window.external

+

Alternatively, a window.external.notify method can be exposed, accepting a string JSON payload with the event type and payload:

+
window.external.notify(JSON.stringify({eventType: eventType, eventData: eventData}));
+

postMessage API

+

Finally, web MTProto clients that need to open a game or process a payment in an iframe can use the postMessage API to receive events from iframes. +The GamingCommunication library by default will use '*' as targetOrigin, sending messages to parent pages regardless of the origin of the embedder.

+
window.parent.postMessage(JSON.stringify({eventType: eventType, eventData: eventData}), targetOrigin);
+

Event types

+

eventType is a simple string indicating the event type, and eventData is a payload with an object that will be parsed by the Telegram app.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
eventTypeeventDataDescription
payment_form_submitJSON object with data and title fieldstitle is the censored credit card title.
data is a service-specific JSON payload with information about the payment credentials provided by the user to the payment system.
Neither Telegram, nor bots will have access to your credit card information.
Credit card details will be handled only by the payment system.
share_scorenullWill be called by games when the user explicitly clicks on the share score button to share the game, along with his score.
Typically done by using messages.forwardMessages on the game message with the with_my_score flag.
share_gamenullWill be called by games when the user explicitly clicks on the share game button to share the game, without sharing his score.
Typically done by using messages.forwardMessages on the game message without the with_my_score flag, or by sharing the game's short URL.
game_overnullCan be called by games when the user loses a game
game_loadednullCan be called by games once the game fully loads
resize_frameJSON object with height fieldCalled by supported pages inside of IV iframe embeds, indicates the new size of the embed frame.
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/bots.html b/data/web/blogfork.telegram.org/bots.html new file mode 100644 index 0000000000..ae32f4080d --- /dev/null +++ b/data/web/blogfork.telegram.org/bots.html @@ -0,0 +1,440 @@ + + + + + Bots: An introduction for developers + + + + + + + + + + + + + + + + +
+ +
+
+
+
+

Bots: An introduction for developers

+ +
+ +

Bots are third-party applications that run inside Telegram. Users can interact with bots by sending them messages, commands and inline requests. You control your bots using HTTPS requests to Telegram's Bot API.

+
+

The full API reference for developers is available here.

+
+

1. What can I do with bots?

+
+ +
+ +

To name just a few things, you could use bots to:

+
    +
  • Get customized notifications and news. A bot can act as a smart newspaper, sending you relevant content as soon as it's published.

    +
  • +
  • Integrate with other services. A bot can enrich Telegram chats with content from external services.
    Gmail Bot, GIF bot, IMDB bot, Wiki bot, Music bot, Youtube bot, GitHubBot

    +
  • +
  • Accept payments from Telegram users. A bot can offer paid services or work as a virtual storefront. Read more »
    Demo Shop Bot, Demo Store

    +
  • +
  • Create custom tools. A bot may provide you with alerts, weather forecasts, translations, formatting or other services.
    Markdown bot, Sticker bot, Vote bot, Like bot

    +
  • +
  • Build single- and multiplayer games. A bot can offer rich HTML5 experiences, from simple arcades and puzzles to 3D-shooters and real-time strategy games.
    GameBot, Gamee

    +
  • +
  • Build social services. A bot could connect people looking for conversation partners based on common interests or proximity.

    +
  • +
  • Do virtually anything else. Except for dishes — bots are terrible at doing the dishes.

    +
  • +
+

2. How do bots work?

+

At the core, Telegram Bots are special accounts that do not require an additional phone number to set up. Users can interact with bots in two ways:

+
    +
  • Send messages and commands to bots by opening a chat with them or by adding them to groups.
  • +
  • Send requests directly from the input field by typing the bot's @username and a query. This allows sending content from inline bots directly into any chat, group or channel.
  • +
+

Messages, commands and requests sent by users are passed to the software running on your servers. Our intermediary server handles all encryption and communication with the Telegram API for you. You communicate with this server via a simple HTTPS-interface that offers a simplified version of the Telegram API. We call that interface our Bot API.

+
+

A detailed description of the Bot API is available on this page »

+
+

3. How do I create a bot?

+
+ +
+ +

There's a… bot for that. Just talk to BotFather (described below) and follow a few simple steps. Once you've created a bot and received your authentication token, head down to the Bot API manual to see what you can teach your bot to do.

+
+

You may also like to check out some code examples here »

+
+

4. How are bots different from humans?

+
    +
  • Bots have no online status and no last seen timestamps, the interface shows the label 'bot' instead.
  • +
  • Bots have limited cloud storage — older messages may be removed by the server shortly after they have been processed.
  • +
  • Bots can't initiate conversations with users. A user must either add them to a group or send them a message first. People can use t.me/<bot_username> links or username search to find your bot.
  • +
  • Bot usernames always end in 'bot' (e.g. @TriviaBot, @GitHub_bot).
  • +
  • When added to a group, bots do not receive all messages by default (see Privacy mode).
  • +
  • Bots never eat, sleep or complain (unless expressly programmed otherwise).
  • +
+
+

5. Bot perks

+

Telegram bots are unique in many ways — we offer two kinds of keyboards, additional interfaces for default commands and deep linking as well as text formatting, integrated payments and more.

+

Inline mode

+ + +

Users can interact with your bot via inline queries straight from the text input field in any chat. All they need to do is start a message with your bot's username and then type a query.

+

Having received the query, your bot can return some results. As soon as the user taps one of them, it is sent to the user's currently opened chat. This way, people can request content from your bot in any of their chats, groups or channels.

+

Check out this blog to see a sample inline bot in action. You can also try the @sticker and @music bots to see for yourself.

+
+
+ +
+ +

We've also implemented an easy way for your bot to switch between inline and PM modes.

+
+

Read more about the Inline Mode »

+
+

Payment platform

+ + +

You can use bots to accept payments from Telegram users around the world.

+
    +
  • Send invoices to any chat, including to groups and channels.
  • +
  • Create invoices that can be forwarded and used by multiple buyers to order things.
  • +
  • Use inline mode to help users show your goods and services to their friends and communities.
  • +
  • Allow tips from users with preset and custom amounts.
  • +
  • Accept payments from users on mobile or desktop apps.
  • +
  • Try @ShopBot to create a test invoice – or start a message with @ShopBot ... in any chat for an inline invoice.
  • +
  • Check out Demo Shop for an example of a Telegram Channel used as virtual storefront.
  • +
+
+ +
+ +
+

Read more about the Payments Platform »

+
+

Gaming platform

+

Bots can offer their users HTML5 games to play solo or to compete against each other in groups and one-on-one chats. The platform allows your bot to keep track of high scores for every game played in every chat. Whenever there’s a new leader in the game, other playing members in the chat are notified that they need to step it up.

+
+ + +
+
+ +

Since the underlying technology is HTML5, the games can be anything from simple arcades and puzzles to multiplayer 3D-shooters and real-time strategy games. Our team has created a couple of simple demos for you to try out:

+ +

You can also check out the @gamee bot that has more than 20 games.

+
+

Read more about the Gaming Platform »

+
+

Keyboards

+

Traditional chat bots can of course be taught to understand human language. But sometimes you want some more formal input from the user — and this is where custom keyboards can become extremely useful.

+

Whenever your bot sends a message, it can pass along a special keyboard with predefined reply options (see ReplyKeyboardMarkup). Telegram apps that receive the message will display your keyboard to the user. Tapping any of the buttons will immediately send the respective command. This way you can drastically simplify user interaction with your bot.

+

We currently support text and emoji for your buttons. Here are some custom keyboard examples:

+
+
+ + + + + + + +
+ +
+

For more technical information on custom keyboards, please consult the Bot API manual (see sendMessage).

+
+

Inline keyboards and on-the-fly updating

+

There are times when you'd prefer to do things without sending any messages to the chat. For example, when your user is changing settings or flipping through search results. In such cases you can use Inline Keyboards that are integrated directly into the messages they belong to.

+

Unlike with custom reply keyboards, pressing buttons on inline keyboards doesn't result in messages sent to the chat. Instead, inline keyboards support buttons that work behind the scenes: callback buttons, URL buttons and switch to inline buttons.

+
+ + + + +
+ +
+ +

When callback buttons are used, your bot can update its existing messages (or just their keyboards) so that the chat remains tidy. Check out these sample bots to see inline keyboards in action: @music, @vote, @like.

+
+

Read more about inline keyboards and on-the-fly editing »

+
+

Commands

+

Commands present a more flexible way to communicate with your bot. The following syntax may be used:

+
/command
+

A command must always start with the '/' symbol and may not be longer than 32 characters. Commands can use latin letters, numbers and underscores. Here are a few examples:

+
/get_messages_stats
+/set_timer 10min Alarm!
+/get_timezone London, UK
+

Messages that start with a slash are always passed to the bot (along with replies to its messages and messages that @mention the bot by username). Telegram apps will:

+
    +
  • Suggest a list of supported commands with descriptions when the user enters a '/' (for this to work, you need to have provided a list of commands to the BotFather). Tapping on a command in the list immediately sends the command.
  • +
  • Show an additional (/) button in the input field in all chats with bots. Tapping it types a '/' and shows the list of commands.
  • +
  • Highlight /commands in messages. When the user taps a highlighted command, the command is sent at once.
  • +
+
+ + + + + + + +
+ + +

If multiple bots are in a group, it is possible to add bot usernames to commands in order to avoid confusion:

+
/start@TriviaBot
+/start@ApocalypseBot
+

This is done automatically when commands are selected via the list of suggestions. Please remember that your bot needs to be able to process commands that are followed by its username.

+
Global commands
+

In order to make it easier for users to navigate the bot multiverse, we ask all developers to support a few basic commands. Telegram apps will have interface shortcuts for these commands.

+
    +
  • /start - begins interaction with the user, e.g., by sending a greeting message. This command can also be used to pass additional parameters to the bot (see Deep linking)
  • +
  • /help - returns a help message. It can be a short text about what your bot can do and a list of commands.
  • +
  • /settings - (if applicable) returns the bot's settings for this user and suggests commands to edit these settings.
  • +
+

Users will see a Start button when they first open a conversation with your bot. Help and Settings links will be available in the menu on the bot's profile page.

+
+ + + + +
+ +

Formatting: bold, italic, fixed-width text and inline links

+

You can use bold, italic or fixed-width text, as well as inline links in your bots' messages. Telegram clients will render them accordingly.

+
+

Read more in the Bot API manual »

+
+

Privacy mode

+

Bots are frequently added to groups in order to augment communication between human users, e.g. by providing news, notifications from external services or additional search functionality. This is especially true for work-related groups. Now, when you share a group with a bot, you tend to ask yourself “How can I be sure that the little rascal isn't selling my chat history to my competitors?” The answer is — privacy mode.

+

A bot running in privacy mode will not receive all messages that people send to the group. Instead, it will only receive:

+
    +
  • Messages that start with a slash '/' (see Commands above)
  • +
  • Replies to the bot's own messages
  • +
  • Service messages (people added or removed from the group, etc.)
  • +
  • Messages from channels where it's a member
  • +
+

On one hand, this helps some of us sleep better at night (in our tinfoil nightcaps), on the other — it allows the bot developer to save a lot of resources, since they won't need to process tens of thousands irrelevant messages each day.

+

Privacy mode is enabled by default for all bots, except bots that were added to the group as admins (bot admins always receive all messages). It can be disabled, so that the bot receives all messages like an ordinary user (the bot will need to be re-added to the group for this change to take effect). We only recommend doing this in cases where it is absolutely necessary for your bot to work — users can always see a bot's current privacy setting in the group members list. In most cases, using the force reply option for the bot's messages should be more than enough.

+

So what messages exactly will my bot get? »

+

Deep linking

+

Telegram bots have a deep linking mechanism, that allows for passing additional parameters to the bot on startup. It could be a command that launches the bot — or an authentication token to connect the user's Telegram account to their account on some external service.

+

Each bot has a link that opens a conversation with it in Telegram — https://t.me/<bot username>. You can add the parameters start or startgroup to this link, with values up to 64 characters long. For example:

+
https://t.me/triviabot?startgroup=test
+

A-Z, a-z, 0-9, _ and - are allowed. We recommend using base64url to encode parameters with binary and other types of content.

+

Following a link with the start parameter will open a one-on-one conversation with the bot, showing a START button in the place of the input field. If the startgroup parameter is used, the user is prompted to select a group to add the bot to. As soon as a user confirms the action (presses the START button in their app or selects a group to add the bot to), your bot will receive a message from that user in this format:

+
/start PAYLOAD
+

PAYLOAD stands for the value of the start or startgroup parameter that was passed in the link.

+
Deep linking Example
+

Suppose the website example.com would like to send notifications to its users via a Telegram bot. Here's what they could do to enable notifications for a user with the ID 123.

+
    +
  1. Create a bot with a suitable username, e.g. @ExampleComBot
  2. +
  3. Set up a webhook for incoming messages
  4. +
  5. Generate a random string of a sufficient length, e.g. $memcache_key = "vCH1vGWJxfSeofSAs0K5PA"
  6. +
  7. Put the value 123 with the key $memcache_key into Memcache for 3600 seconds (one hour)
  8. +
  9. Show our user the button https://t.me/ExampleComBot?start=vCH1vGWJxfSeofSAs0K5PA
  10. +
  11. Configure the webhook processor to query Memcached with the parameter that is passed in incoming messages beginning with /start. If the key exists, record the chat_id passed to the webhook as telegram_chat_id for the user 123. Remove the key from Memcache.
  12. +
  13. Now when we want to send a notification to the user 123, check if they have the field telegram_chat_id. If yes, use the sendMessage method in the Bot API to send them a message in Telegram.
  14. +
+

Location and Number

+

Some bots need extra data from the user to work properly. For example, knowing the user's location helps provide more relevant geo-specific results. The user's phone number can be very useful for integrations with other services, like banks, etc.

+

Bots can ask a user for their location and phone number using special buttons. Note that both phone number and location request buttons will only work in private chats.

+
+
+ +
+ +

When these buttons are pressed, Telegram clients will display a confirmation alert that tells the user what's about to happen.

+
+

Manual: Number and location buttons »

+
+
+

6. BotFather

+
+

Jump to top to learn everything about Telegram bots »

+
+

BotFather is the one bot to rule them all. It will help you create new bots and change settings for existing ones.

+

Creating a new bot

+

Use the /newbot command to create a new bot. The BotFather will ask you for a name and username, then generate an authentication token for your new bot.

+

The name of your bot is displayed in contact details and elsewhere.

+

The Username is a short name, to be used in mentions and t.me links. Usernames are 5-32 characters long and are case insensitive, but may only include Latin characters, numbers, and underscores. Your bot's username must end in 'bot', e.g. 'tetris_bot' or 'TetrisBot'.

+

The token is a string along the lines of 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw that is required to authorize the bot and send requests to the Bot API. Keep your token secure and store it safely, it can be used by anyone to control your bot.

+

Generating an authentication token

+

If your existing token is compromised or you lost it for some reason, use the /token command to generate a new one.

+

Botfather commands

+

The remaining commands are pretty self-explanatory:

+
    +
  • /mybots — returns a list of your bots with handy controls to edit their settings
  • +
  • /mygames — does the same for your games
  • +
+

Edit bots

+
    +
  • /setname – change your bot's name.
  • +
  • /setdescription — change the bot's description, a short text of up to 512 characters, describing your bot. Users will see this text at the beginning of the conversation with the bot, titled 'What can this bot do?'.
  • +
  • /setabouttext — change the bot's about info, an even shorter text of up to 120 characters. Users will see this text on the bot's profile page. When they share your bot with someone, this text is sent together with the link.
  • +
  • /setuserpic — change the bot's profile pictures. It's always nice to put a face to a name.
  • +
  • /setcommands — change the list of commands supported by your bot. Users will see these commands as suggestions when they type / in the chat with your bot. Each command has a name (must start with a slash ‘/’, alphanumeric plus underscores, no more than 32 characters, case-insensitive), parameters, and a text description. Users will see the list of commands whenever they type '/' in a conversation with your bot.
  • +
  • /deletebot — delete your bot and free its username.
  • +
+

Edit settings

+
    +
  • /setinline — toggle inline mode for your bot.
  • +
  • /setinlinegeo - request location data to provide location-based inline results.
  • +
  • /setjoingroups — toggle whether your bot can be added to groups or not. Any bot must be able to process private messages, but if your bot was not designed to work in groups, you can disable this.
  • +
  • /setprivacy — set which messages your bot will receive when added to a group. With privacy mode disabled, the bot will receive all messages. We recommend leaving privacy mode enabled. You will need to re-add the bot to existing groups for this change to take effect.
  • +
+

Manage games

+
    +
  • /newgame — create a new game.
  • +
  • /listgames — get a list of your games.
  • +
  • /editgame — edit a game.
  • +
  • /deletegame — delete an existing game.
  • +
+
+

Please note, that it may take a few minutes for changes to take effect.

+
+

Status alerts

+

Millions choose Telegram for its speed. To stay competitive in this environment, your bot also needs to be responsive. In order to help developers keep their bots in shape, Botfather will send status alerts if it sees something is wrong.

+

We will be checking the number of replies and the request/response conversion rate for popular bots (~300 requests per minute: but don't write this down as the value may change in the future). If we get abnormally low readings, you will receive a notification from Botfather.

+
Responding to alerts
+

By default, you will only get one alert per bot per hour. Each alert has the following buttons:

+
    +
  • Fixed. Use this if you found an issue with your bot and fixed it. If you press the fix button, we will resume sending alerts in the regular way so that you can see if your fix worked within 5-10 minutes instead of having to wait for an hour.
  • +
  • Support. Use this to open a chat with @BotSupport if you don't see any issues with your bot or if you think the problem is on our side.
  • +
  • Mute for 8h/1w. Use this if you can't fix your bot at the moment. This will disable all alerts for the bot in question for the specified period of time. We do not recommend using this option since your users may migrate to a more stable bot. You can unmute alerts in your bot's settings via Botfather.
  • +
+
Monitored issues
+

We will currently notify you about the following issues:

+

1.

+
Too few **private messages** are sent compared to previous weeks: **{value}**
+

Your bot is sending much fewer messages than it did in the previous weeks. This is useful for newsletter-style bots that send out messages without prompts from the users. The larger the value, the more significant the difference.

+

2.

+
Too few replies to incoming **private messages**. Conversion rate: **{value}**
+

Your bot is not replying to all messages that are being sent to it (the request/response conversion rate for your bot was too low for at least two of the last three 5-minute periods). To provide a good user experience, please respond to all messages that are sent to your bot. Respond to message updates by calling send… methods (e.g. sendMessage).

+

3.

+
Too few answers to **inline queries**. Conversion rate: **{value}**
+

Your bot is not replying to all inline queries that are being sent to it, calculated in the same way as above. Respond to inline_query updates by calling answerInlineQuery.

+

4.

+
Too few answers to **callback queries**. Conversion rate: **{value}**
+Too few answers to **callback game queries**. Conversion rate: **{value}**
+

Your bot is not replying to all callback queries that are being sent to it (with or without games), calculated in the same way as above. Respond to callback_query updates by calling answerCallbackQuery.

+
+

Please note that the status alerts feature is still being tested and will be improved in the future.

+
+
+

That's it for the introduction. You are now definitely ready to proceed to the BOT API MANUAL.

+

If you've got any questions, please check out our Bot FAQ »

+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/bots/2-0-intro.html b/data/web/blogfork.telegram.org/bots/2-0-intro.html new file mode 100644 index 0000000000..489c022886 --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/2-0-intro.html @@ -0,0 +1,233 @@ + + + + + Introducing Bot API 2.0 + + + + + + + + + + + + + + + + +
+ +
+
+
+
+

Introducing Bot API 2.0

+ +
+ +
+

Howdy! This text assumes that you‘re familiar with Telegram’s bot platform.
If this is not the case, kindly check out our Introduction to Bots.

+
+

Today we‘re introducing the biggest change to Telegram’s Bot Platform since June 2015. These new tools will help you create fluid and intuitive interfaces for your bots. And bots are becoming a lot more capable. They can now send any type of content supported on Telegram, provide location-based services and integrate with other services deeply based on users' phone numbers.

+

If you'd like a more concise changelog, you can find one in the Bot API Manual.

+

New Inline Keyboards

+

To begin with, we're adding a new type of keyboard that is integrated directly into the message it belongs to. Inline keyboards are available for messages sent both in chat mode and inline mode.

+
+ + + +

+ + + +
+ +

Unlike with custom reply keyboards, pressing buttons on inline keyboards doesn't result in messages sent to the chat. Instead, inline keyboards support buttons that work behind the scenes: callback buttons, URL buttons and switch to inline buttons.

+
+

Manual: Inline keyboards »

+
+

Callback buttons

+

When a user presses a callback button, no messages are sent to the chat. Instead, your bot simply receives the relevant query. Upon receiving the query, your bot can display some result in a notification at the top of the chat screen or in an alert.

+
+

+
+ +

Sample bot
@music – This sample music bot uses inline callback buttons to flip pages and reload random results.

+

Read on to updating messages to find out how callback buttons can get even cooler.

+

URL buttons

+

Buttons of this type have a small arrow icon to help the user understand that tapping on a URL button will open an external link. Naturally, we'll show them a confirmation alert before opening the link in the browser.

+
+
+
+ +

Switch to Inline buttons

+

Pressing a switch to inline button prompts the user to select a chat, opens it and inserts the bot's username into the input field. You can also pass a query that will be inserted along with the username – this way your users will immediately get some inline results they can share.

+
+

+
+ +

Sample bot
@sticker – This sticker search bot offers a ‘switch to inline’ button to teach users how to use it in inline mode.

+

Updating Messages

+

Since inline keyboards don‘t send additional messages to the chat, it made sense to give bots a way of manipulating their existing messages, so that they don’t have to send a new message each time they need to update something. This helps reduce clutter and build more fluid interfaces.

+
+
+ +
+
+ +

Sample bot
@music – Watch how the music bot updates its messages with search results when you press the navigation buttons.

+
+

Manual: Updating messages »

+
+

Locations and Numbers

+

Some bots need extra data from the user to work properly. For example, knowing the user‘s location helps provide more relevant geo-specific results. The user’s phone number can be very useful for integrations with other services, like banks, etc.

+

We've added an easy way for bots to ask the user for their location and phone number using special buttons. Note that both phone number and location request buttons will only work in private chats.

+
+

+
+ +

When these buttons are pressed, Telegram clients will display a confirmation alert that tells the user what's about to happen.

+
+

Manual: Number and location buttons »

+
+

Inline bots can also request location data from their users. Use the /setinlinegeo command with @BotFather to enable this. Your bot will ask the user for permission to access their location whenever they send an inline request.

+

Sample bot
@foursquare – This bot will ask for permission to access the user's location, then provide geo-targeted results.

+

Inline Bots 2.0

+

Speaking of inline bots, they are also getting a major upgrade today.

+

New types of content

+

Inline bots now support all types of content available in Telegram (19 in all), they are now capable of sending stickers, videos, music, locations, documents and more.

+
+

+
+ +

Sample bots
@sticker – This sticker bot will accept one or more emoji and search for relevant stickers.
@music – The music bot allows users to send mp3 tracks from a database of public domain classical music.

+
+

Manual: Types of inline content »

+
+

Switching between inline mode and private chat

+

Some inline bots can benefit from an initial setup process, like connecting them to an account on an external service (e.g., YouTube). We've added an easy way of switching between the private chat with a bot and whatever chat the user wants to share inline results in.

+
+

+
+ +

You can now display a special ‘Switch to PM’ button above the inline results (or instead of them). This button will open a private chat with the bot and pass a parameter of your choosing, so that you can prompt the user for the relevant setup actions. Once done, you can use an inline keyboard with a switch_inline_query button to send the user back to the original chat.

+

Sample bots
@youtube – Shows a ‘Sign in to YouTube’ button, then suggests personalized results.

+
+

Manual: Switch to PM

+
+

Better inline UI

+

Since sending content via inline bots works differently from sending ordinary messages, we‘ve changed the interface a little. There’s hardly a more effective way of explaining that there‘s no need to hit ’Send':

+
+

+
+ +

Tapping on the cross icon once will clear the query, tapping twice will give the ‘Send’ button back to the user.

+

Group Admins

+

As a dessert, we‘re beginning to roll out tools that will allow you to create bot solutions for group admins. As the first step, we’ve added methods to remove members from groups and supergroups.

+
+

Manual: Group management »

+
+

And that's about it for now. Stay tuned for more updates and subscribe to our official @Botnews channel on Telegram.

+
+

Read the full changelog for this update »

+
+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/bots/api-changelog.html b/data/web/blogfork.telegram.org/bots/api-changelog.html new file mode 100644 index 0000000000..7393d6947e --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/api-changelog.html @@ -0,0 +1,693 @@ + + + + + Bot API changelog + + + + + + + + + + + + + + + + +
+ +
+
+
+
+

Bot API changelog

+ +
+ +
+

The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram.
To learn how to create and set up a bot, please consult our Introduction to Bots »

+
+

You will find all changes to our Bot API on this page.

+

Recent changes

+
+

Subscribe to @BotNews to be the first to know about the latest updates and join the discussion in @BotTalk

+
+

April 16, 2022

+

Bot API 6.0

+ +
+
+

⚠️ WARNING! ⚠️
After the next update, only HTTPS links will be allowed in login_url inline keyboard buttons.

+
+
+

January 31, 2022

+

Bot API 5.7

+ +

December 30, 2021

+

Bot API 5.6

+ +

December 7, 2021

+

Bot API 5.5

+
    +
  • Bots are now allowed to contact users who sent a join request to a chat where the bot is an administrator with the can_invite_users administrator right – even if the user never interacted with the bot before.
  • +
  • Added support for mentioning users by their ID in inline keyboards. This will only work in Telegram versions released after December 7, 2021. Older clients will display unsupported message.
  • +
  • Added the methods banChatSenderChat and unbanChatSenderChat for banning and unbanning channel chats in supergroups and channels.
  • +
  • Added the field has_private_forwards to the class Chat for private chats, which can be used to check the possibility of mentioning the user by their ID.
  • +
  • Added the field has_protected_content to the classes Chat and Message.
  • +
  • Added the field is_automatic_forward to the class Message.
  • +
+

Note: After this update it will become impossible to forward messages from some chats. Use the fields has_protected_content in the classes Message and Chat to check this.

+

Note: After this update users are able to send messages on behalf of channels they own. Bots are expected to use the field sender_chat in the class Message to correctly support such messages.

+

Note: As previously announced, user identifiers can now have up to 52 significant bits and require a 64-bit integer or double-precision float type to be stored safely.

+

November 5, 2021

+

Bot API 5.4

+ +
+
+

⚠️ WARNING! ⚠️
User identifiers will become bigger than 2^31 - 1 before the end of this year and it will be no longer possible to store them in a signed 32-bit integer type. User identifiers will have up to 52 significant bits, so a 64-bit integer or double-precision float type would still be safe for storing them. Please make sure that your code can correctly handle such user identifiers.

+
+
+

June 25, 2021

+

Bot API 5.3

+

Personalized Commands

+
    +
  • Bots can now show lists of commands tailored to specific situations - including localized commands for users with different languages, as well as different commands based on chat type or for specific chats, and special lists of commands for chat admins.
  • +
  • Added the class BotCommandScope, describing the scope to which bot commands apply.
  • +
  • Added the parameters scope and language_code to the method setMyCommands to allow bots specify different commands for different chats and users.
  • +
  • Added the parameters scope and language_code to the method getMyCommands.
  • +
  • Added the method deleteMyCommands to allow deletion of the bot's commands for the given scope and user language.
  • +
  • Improved visibility of bot commands in Telegram apps with the new 'Menu' button in chats with bots, read more on the blog.
  • +
+

Custom Placeholders

+ +

And More

+
    +
  • Improved documentation of the class ChatMember by splitting it into 6 subclasses.
  • +
  • Renamed the method kickChatMember to banChatMember. The old method name can still be used.
  • +
  • Renamed the method getChatMembersCount to getChatMemberCount. The old method name can still be used.
  • +
  • Values of the field file_unique_id in objects of the type PhotoSize and of the fields small_file_unique_id and big_file_unique_id in objects of the type ChatPhoto were changed.
  • +
+
+
+

⚠️ WARNING! ⚠️
After one of the upcoming Bot API updates, user identifiers will become bigger than 2^31 - 1 and it will be no longer possible to store them in a signed 32-bit integer type. User identifiers will have up to 52 significant bits, so a 64-bit integer or double-precision float type would still be safe for storing them. Please make sure that your code can correctly handle such user identifiers.

+
+
+

April 26, 2021

+

Bot API 5.2

+
    +
  • Support for Payments 2.0, see this manual for more details about the Bot Payments API.
  • +
  • Added the type InputInvoiceMessageContent to support sending invoices as inline query results.
  • +
  • Allowed sending invoices to group, supergroup and channel chats.
  • +
  • Added the fields max_tip_amount and suggested_tip_amounts to the method sendInvoice to allow adding optional tips to the payment.
  • +
  • The parameter start_parameter of the method sendInvoice became optional. If the parameter isn't specified, the invoice can be paid directly from forwarded messages.
  • +
  • Added the field chat_type to the class InlineQuery, containing the type of the chat, from which the inline request was sent.
  • +
  • Added the type VoiceChatScheduled and the field voice_chat_scheduled to the class Message.
  • +
  • Fixed an error in sendChatAction documentation to correctly mention “record_voice” and “upload_voice” instead of “record_audio” and “upload_audio” for related to voice note actions. Old action names will still work for backward compatibility.
  • +
+
+
+

⚠️ WARNING! ⚠️
After the next Bot API update (Bot API 5.3) there will be a one-time change of the value of the field file_unique_id in objects of the type PhotoSize and of the fields small_file_unique_id and big_file_unique_id in objects of the type ChatPhoto.

+
+
+
+

⚠️ WARNING! ⚠️
Service messages about non-bot users joining the chat will be soon removed from large groups. We recommend using the “chat_member” update as a replacement.

+
+
+
+

⚠️ WARNING! ⚠️
After one of the upcoming Bot API updates, user identifiers will become bigger than 2^31 - 1 and it will be no longer possible to store them in a signed 32-bit integer type. User identifiers will have up to 52 significant bits, so a 64-bit integer or double-precision float type would still be safe for storing them. Please make sure that your code can correctly handle such user identifiers.

+
+
+

March 9, 2021

+

Bot API 5.1

+

Added two new update types

+
    +
  • Added updates about member status changes in chats, represented by the class ChatMemberUpdated and the fields my_chat_member and chat_member in the Update class. The bot must be an administrator in the chat to receive chat_member updates about other chat members. By default, only my_chat_member updates about the bot itself are received.
  • +
+

Improved Invite Links

+
    +
  • Added the class ChatInviteLink, representing an invite link to a chat.
  • +
  • Added the method createChatInviteLink, which can be used to create new invite links in addition to the primary invite link.
  • +
  • Added the method editChatInviteLink, which can be used to edit non-primary invite links created by the bot.
  • +
  • Added the method revokeChatInviteLink, which can be used to revoke invite links created by the bot.
  • +
+

Voice Chat Info

+ +

And More

+
    +
  • Added the type MessageAutoDeleteTimerChanged and the field message_auto_delete_timer_changed to the class Message.
  • +
  • Added the parameter revoke_messages to the method kickChatMember, allowing to delete all messages from a group for the user who is being removed.
  • +
  • Added the new administrator privilege can_manage_chat to the class ChatMember and parameter can_manage_chat to the method promoteChatMember. This administrator right is implied by any other administrator privilege.
  • +
  • Supported the new bowling animation for the random dice. Choose between different animations (dice, darts, basketball, football, bowling, slot machine) by specifying the emoji parameter in the method sendDice.
  • +
+
+
+

⚠️ WARNING! ⚠️
After one of the upcoming Bot API updates, some user identifiers will become bigger than 2^31 - 1 and it will be no longer possible to store them in a signed 32-bit integer type. User identifiers will have up to 52 significant bits, so a 64-bit integer or double-precision float type would still be safe for storing them. Please make sure that your code can correctly handle such user identifiers.

+
+
+

November 4, 2020

+

Introducing Bot API 5.0

+

Run Your Own Bot API Server

+
    +
  • Bot API source code is now available at telegram-bot-api. You can now run your own Bot API server locally, boosting your bots' performance.
  • +
  • Added the method logOut, which can be used to log out from the cloud Bot API server before launching your bot locally. You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive all updates.
  • +
  • Added the method close, which can be used to close the bot instance before moving it from one local server to another.
  • +
+

Transfer Bot Ownership

+
    +
  • You can now use @BotFather to transfer your existing bots to another Telegram account.
  • +
+

Webhooks

+
    +
  • Added the parameter ip_address to the method setWebhook, allowing to bypass DNS resolving and use the specified fixed IP address to send webhook requests.
  • +
  • Added the field ip_address to the class WebhookInfo, containing the current IP address used for webhook connections creation.
  • +
  • Added the ability to drop all pending updates when changing webhook URL using the parameter drop_pending_updates in the methods setWebhook and deleteWebhook.
  • +
+

Working with Groups

+
    +
  • The getChat request now returns the user's bio for private chats if available.
  • +
  • The getChat request now returns the identifier of the linked chat for supergroups and channels, i.e. the discussion group identifier for a channel and vice versa.
  • +
  • The getChat request now returns the location to which the supergroup is connected (see Local Groups). Added the class ChatLocation to represent the location.
  • +
  • Added the parameter only_if_banned to the method unbanChatMember to allow safe unban.
  • +
+

Working with Files

+
    +
  • Added the field file_name to the classes Audio and Video, containing the name of the original file.
  • +
  • Added the ability to disable server-side file content type detection using the parameter disable_content_type_detection in the method sendDocument and the class inputMediaDocument.
  • +
+

Multiple Pinned Messages

+
    +
  • Added the ability to pin messages in private chats.
  • +
  • Added the parameter message_id to the method unpinChatMessage to allow unpinning of the specific pinned message.
  • +
  • Added the method unpinAllChatMessages, which can be used to unpin all pinned messages in a chat.
  • +
+

File Albums

+
    +
  • Added support for sending and receiving audio and document albums in the method sendMediaGroup.
  • +
+

Live Locations

+ +

Anonymous Admins

+
    +
  • Added the field sender_chat to the class Message, containing the sender of a message which is a chat (group or channel). For backward compatibility in non-channel chats, the field from in such messages will contain the user 777000 for messages automatically forwarded to the discussion group and the user 1087968824 (@GroupAnonymousBot) for messages from anonymous group administrators.
  • +
  • Added the field is_anonymous to the class chatMember, which can be used to distinguish anonymous chat administrators.
  • +
  • Added the parameter is_anonymous to the method promoteChatMember, which allows to promote anonymous chat administrators. The bot itself should have the is_anonymous right to do this. Despite the fact that bots can have the is_anonymous right, they will never appear as anonymous in the chat. Bots can use the right only for passing to other administrators.
  • +
  • Added the custom title of an anonymous message sender to the class Message as author_signature.
  • +
+

And More

+ +

And Last but not Least

+
    +
  • Supported the new football and slot machine animations for the random dice. Choose between different animations (dice, darts, basketball, football, slot machine) by specifying the emoji parameter in the method sendDice.
  • +
+

June 4, 2020

+

Bot API 4.9

+
    +
  • Added the new field via_bot to the Message object. You can now know which bot was used to send a message.
  • +
  • Supported video thumbnails for inline GIF and MPEG4 animations.
  • +
  • Supported the new basketball animation for the random dice. Choose between different animations (dice, darts, basketball) by specifying the emoji parameter in the method sendDice.
  • +
+

April 24, 2020

+

Bot API 4.8

+
    +
  • Supported explanations for Quizzes 2.0. Add explanations by specifying the parameters explanation and explanation_parse_mode in the method sendPoll.
  • +
  • Added the fields explanation and explanation_entities to the Poll object.
  • +
  • Supported timed polls that automatically close at a certain date and time. Set up by specifying the parameter open_period or close_date in the method sendPoll.
  • +
  • Added the fields open_period and close_date to the Poll object.
  • +
  • Supported the new darts animation for the dice mini-game. Choose between the default dice animation and darts animation by specifying the parameter emoji in the method sendDice.
  • +
  • Added the field emoji to the Dice object.
  • +
+

March 30, 2020

+

Bot API 4.7

+
    +
  • Added the method sendDice for sending a dice message, which will have a random value from 1 to 6. (Yes, we're aware of the “proper” singular of die. But it's awkward, and we decided to help it change. One dice at a time!)
  • +
  • Added the field dice to the Message object.
  • +
  • Added the method getMyCommands for getting the current list of the bot's commands.
  • +
  • Added the method setMyCommands for changing the list of the bot's commands through the Bot API instead of @BotFather.
  • +
  • Added the ability to create animated sticker sets by specifying the parameter tgs_sticker instead of png_sticker in the method createNewStickerSet.
  • +
  • Added the ability to add animated stickers to sets created by the bot by specifying the parameter tgs_sticker instead of png_sticker in the method addStickerToSet.
  • +
  • Added the field thumb to the StickerSet object.
  • +
  • Added the ability to change thumbnails of sticker sets created by the bot using the method setStickerSetThumb.
  • +
+

January 23, 2020

+

Bot API 4.6

+
    +
  • Supported Polls 2.0.
  • +
  • Added the ability to send non-anonymous, multiple answer, and quiz-style polls: added the parameters is_anonymous, type, allows_multiple_answers, correct_option_id, is_closed options to the method sendPoll.
  • +
  • Added the object KeyboardButtonPollType and the field request_poll to the object KeyboardButton.
  • +
  • Added updates about changes of user answers in non-anonymous polls, represented by the object PollAnswer and the field poll_answer in the Update object.
  • +
  • Added the fields total_voter_count, is_anonymous, type, allows_multiple_answers, correct_option_id to the Poll object.
  • +
  • Bots can now send polls to private chats.
  • +
  • Added more information about the bot in response to the getMe request: added the fields can_join_groups, can_read_all_group_messages and supports_inline_queries to the User object.
  • +
  • Added the optional field language to the MessageEntity object.
  • +
+

December 31, 2019

+

Bot API 4.5

+
    +
  • Added support for two new MessageEntity types, underline and strikethrough.
  • +
  • Added support for nested MessageEntity objects. Entities can now contain other entities. If two entities have common characters then one of them is fully contained inside the other.
  • +
  • Added support for nested entities and the new tags <u>/<ins> (for underlined text) and <s>/<strike>/<del> (for strikethrough text) in parse mode HTML.
  • +
  • Added a new parse mode, MarkdownV2, which supports nested entities and two new entities __ (for underlined text) and ~ (for strikethrough text). Parse mode Markdown remains unchanged for backward compatibility.
  • +
  • Added the field file_unique_id to the objects Animation, Audio, Document, PassportFile, PhotoSize, Sticker, Video, VideoNote, Voice, File and the fields small_file_unique_id and big_file_unique_id to the object ChatPhoto. The new fields contain a unique file identifier, which is supposed to be the same over time and for different bots, but can't be used to download or reuse the file.
  • +
  • Added the field custom_title to the ChatMember object.
  • +
  • Added the new method setChatAdministratorCustomTitle to manage the custom titles of administrators promoted by the bot.
  • +
  • Added the field slow_mode_delay to the Chat object.
  • +
+

July 29, 2019

+

Bot API 4.4

+
    +
  • Added support for animated stickers. New field is_animated in Sticker and StickerSet objects, animated stickers can now be used in sendSticker and InlineQueryResultCachedSticker.
  • +
  • Added support for default permissions in groups. New object ChatPermissions, containing actions which a member can take in a chat. New field permissions in the Chat object; new method setChatPermissions.
  • +
  • The field all_members_are_administrators has been removed from the documentation for the Chat object. The field is still returned in the object for backward compatibility, but new bots should use the permissions field instead.
  • +
  • Added support for more permissions for group and supergroup members: added the new field can_send_polls to ChatMember object, added can_change_info, can_invite_users, can_pin_messages in ChatMember object for restricted users (previously available only for administrators).
  • +
  • The method restrictChatMember now takes the new user permissions in a single argument of the type ChatPermissions. The old way of passing parameters will keep working for a while for backward compatibility.
  • +
  • Added description support for basic groups (previously available in supergroups and channel chats). You can pass a group's chat_id to setChatDescription and receive the group's description in the Chat object in the response to getChat method.
  • +
  • Added invite_link support for basic groups (previously available in supergroups and channel chats). You can pass a group's chat_id to exportChatInviteLink and receive the group's invite link in the Chat object in the response to getChat method.
  • +
  • File identifiers from the ChatPhoto object are now invalidated and can no longer be used whenever the photo is changed.
  • +
  • All webhook requests from the Bot API are now coming from the subnets 149.154.160.0/20 and 91.108.4.0/22. Most users won't need to do anything to continue receiving webhooks. If you control inbound access with a firewall, you may need to update your configuration. You can always find the list of actual IP addresses of servers used to send webhooks there: https://core.telegram.org/bots/webhooks.
  • +
  • As of the next Bot API update (version 4.5), nested MessageEntity objects will be allowed in message texts and captions. Please make sure that your code can correctly handle such entities.
  • +
+

May 31, 2019

+

Bot API 4.3

+
    +
  • Added support for Seamless Telegram Login on external websites.
  • +
  • Added the new object LoginUrl and the new field login_url to the InlineKeyboardButton object which allows to automatically authorize users before they go to a URL specified by the bot. Users will be asked to confirm authorization in their Telegram app (needs version 5.7 or higher) when they press the button:
  • +
+
+ TITLE +
+ +

Also in this update:

+
    +
  • Added the field reply_markup to the Message object, containing the inline keyboard attached to the message.
  • +
  • If a message with an inline keyboard is forwarded, the forwarded message will now have an inline keyboard if the keyboard contained only url and login_url buttons or if the message was sent via a bot and the keyboard contained only url, login_url, switch_inline_query or switch_inline_query_current_chat buttons. In the latter case, switch_inline_query_current_chat buttons are replaced with switch_inline_query buttons.
  • +
  • Bots now receive the edited_message Update even if only Message.reply_markup has changed.
  • +
  • Bots that have the can_edit_messages right in a channel can now use the method editMessageReplyMarkup for messages written by other administrators forever without the 48 hours limit.
  • +
  • Don't forget that starting in July 2019, webhook requests from Bot API will be coming from the subnets 149.154.160.0/20 and 91.108.4.0/22. Most users won't need to do anything to continue receiving webhooks. If you control inbound access with a firewall, you may need to update your configuration. You can always find the list of actual IP addresses of servers used to send webhooks there: https://core.telegram.org/bots/webhooks.
  • +
+

April 14, 2019

+

Bot API 4.2

+
    +
  • Added support for native polls: added the object Poll, the methods sendPoll and stopPoll and the field poll in the Message and Update objects.
  • +
  • The method deleteMessage can now be used to delete messages sent by a user to the bot in private chats within 48 hours.
  • +
  • Added support for pinned messages in basic groups in addition to supergroups and channel chats: you can pass group's chat_id to pinChatMessage and unpinChatMessage, and receive the pinned group message in Chat object.
  • +
  • Added the field is_member to the ChatMember object, which can be used to find whether a restricted user is a member of the chat.
  • +
  • Added the field forward_sender_name to the Message object, containing name of the sender who has opted to hide their account.
  • +
  • Starting in July 2019, webhook requests from Bot API will be coming from the subnets 149.154.160.0/20 and 91.108.4.0/22. Most users won't need to do anything to continue receiving webhooks. If you control inbound access with a firewall, you may need to update your configuration. You can always find the list of actual IP addresses of servers used to send webhooks there: https://core.telegram.org/bots/webhooks.
  • +
  • Document thumbnails now should be inscribed in a 320x320 square instead of 90x90.
  • +
+

August 27, 2018

+

Bot API 4.1

+ +

July 26, 2018

+

Bot API 4.0.

+
    +
  • Added support for Telegram Passport. See the official announcement on the blog and the manual for details.
  • +
  • Added support for editing the media content of messages: added the method editMessageMedia and new types InputMediaAnimation, InputMediaAudio, and InputMediaDocument.
  • +
  • Added the field thumb to the Audio object to contain the thumbnail of the album cover to which the music file belongs.
  • +
  • Added support for attaching custom thumbnails to uploaded files. For animations, audios, videos and video notes, which are less than 10 MB in size, thumbnails are generated automatically.
  • +
  • tg:// URLs now can be used in inline keyboard url buttons and text_link message entities.
  • +
  • Added the method sendAnimation, which can be used instead of sendDocument to send animations, specifying their duration, width and height.
  • +
  • Added the field animation to the Message object. For backward compatibility, when this field is set, the document field will be also set.
  • +
  • Added two new MessageEntity types: cashtag and phone_number.
  • +
  • Added support for Foursquare venues: added the new field foursquare_type to the objects Venue, InlineQueryResultVenue and InputVenueMessageContent, and the parameter foursquare_type to the sendVenue method.
  • +
  • You can now create inline mentions of users, who have pressed your bot's callback buttons.
  • +
  • You can now use the Retry-After response header to configure the delay after which the Bot API will retry the request after an unsuccessful response from a webhook.
  • +
  • If a webhook returns the HTTP error 410 Gone for all requests for more than 23 hours successively, it can be automatically removed.
  • +
  • Added vCard support when sharing contacts: added the field vcard to the objects Contact, InlineQueryResultContact, InputContactMessageContent and the method sendContact.
  • +
+

February 13, 2018

+

Bot API 3.6.

+
    +
  • Supported text formatting in media captions. Specify the desired parse_mode (Markdown or HTML) when you provide a caption.
  • +
  • In supergroups, if the bot receives a message that is a reply, it will also receive the message to which that message is replying – even if the original message is inaccessible due to the bot's privacy settings. (In other words, replying to any message in a supergroup with a message that mentions the bot or features a command for it acts as forwarding the original message to the bot).
  • +
  • Added the new field connected_website to Message. The bot will receive a message with this field in a private chat when a user logs in on the bot's connected website using the Login Widget and allows sending messages from your bot.
  • +
  • Added the new parameter supports_streaming to the sendVideo method and a field with the same name to the InputMediaVideo object.
  • +
+

November 17, 2017

+

Bot API 3.5.

+ +

October 11, 2017

+

Bot API 3.4.

+ +

August 23, 2017

+

Bot API 3.3.

+
    +
  • Bots can now mention users via inline mentions, without using usernames.
  • +
  • getChat now also returns pinned messages in supergroups, if present. Added the new field pinned_message to the Chat object.
  • +
  • Added the new fields author_signature and forward_signature to the Message object.
  • +
  • Added the new field is_bot to the User object.
  • +
+

July 21, 2017

+

Bot API 3.2. Teach your bot to handle stickers and sticker sets.

+ +

June 30, 2017

+

Bot API 3.1. Build your own robotic police force for supergoups with these new methods for admin bots:

+ +

May 18, 2017

+

Introducing Bot API 3.0.

+

NEW Payment Platform

+

See Introduction to Bot Payments for a brief overview. If you're not a developer, you may like this user-friendly blog post better.

+ +

NEW Video Messages

+
    +
  • As of Telegram v.4.0, users can send short rounded video messages, using an interface similar to that of voice notes.
  • +
  • Added the sendVideoNote method, the new field video_note to Message, the fields record_video_note or upload_video_note to sendChatAction.
  • +
+

NEW Multilingual Bots

+
    +
  • The User object now may have a language_code field that contains the IETF language tag of the user's language.
  • +
  • Thanks to this, your bot can now offer localized responses to users that speak different languages.
  • +
+

More power to admin bots

+
    +
  • unbanChatMemeber now also works in channels!
  • +
  • New method deleteMessage that allows the bot to delete its own messages, as well as messages posted by other in groups and channels where the bot is an administrator.
  • +
+

Minor Changes

+
    +
  • Replaced the field new_chat_member in Message with new_chat_members (the old field will still be available for a while for compatibility purposes).
  • +
  • Inline keyboards with switch_inline_query and switch_inline_query_current_chat can no longer be sent to channels because they are useless there.
  • +
  • New fields gif_duration in InlineQueryResultGif and mpeg4_duration in InlineQueryResultMpeg4Gif.
  • +
+

December 4, 2016

+

Introducing Bot API 2.3.1, a nifty little update that will give you more control over how your bot gets its updates.

+
    +
  • Use the new field max_connections in setWebhook to optimize your bot's server load
  • +
  • Use allowed_updates in setWebhook and getUpdates to selectively subscribe to updates of a certain type. Among other things, this allows you to stop getting updates about new posts in channels where your bot is an admin.
  • +
  • deleteWebhook moved out of setWebhook to get a whole separate method for itself.
  • +
+

November 21, 2016

+

Bot API 2.3

+
    +
  • Modified bot privacy mode for the sake of consistency.
  • +
  • Your bot can now get updates about posts in channels. Added new fields channel_post and edited_channel_post to Update.

    +
  • +
  • You can now update high scores to a lower value by using the new force parameter in setGameScore. Handy for punishing cheaters or fixing errors in your game's High Score table.

    +
  • +
  • Starting today, messages with high scores will be updated with new high scores by default. Use disable_edit_message in setGameScore if you don't want this.
  • +
  • The edit_message parameter from setGameScore is no longer in use. For backward compatibility, it will be taken into account for a while, unless disable_edit_message is passed explicitly.
  • +
  • Added the new field forward_from_message_id to Message.
  • +
  • Added the new parameter cache_time to answerCallbackQuery. Will eventually work in Telegram apps — somewhere after version 3.14, maybe 3.15.
  • +
  • Renamed hide_keyboard to remove_keyboard in ReplyKeyboardRemove for clarity. hide_keyboard will still work for a while for backward compatibility.
  • +
+

October 3, 2016

+

Bot API 2.2. Introducing a new Gaming Platform! See this introduction for a brief overview.
If you're not a developer, you may like this user-friendly blog post better.

+ +

Other changes

+ +
    +
  • New field all_members_are_administrators in the Chat object.
  • +
  • Certain server responses may now contain the new parameters field with expanded info on errors that occurred while processing your requests.
  • +
+

May 25, 2016

+ +

May 22, 2016

+ +

May 12, 2016

+ +

May 6, 2016

+
    +
  • Added the field emoji to the Sticker object. Your bot can now know the emoji a sticker corresponds to.
  • +
  • Added the field forward_from_chat to the Message object for messages forwarded from channels.
  • +
+

April 9, 2016

+

Introducing Bot API 2.0. Check out this page for a review of this major update.

+ +

Inline bots

+
    +
  • Added support for all content types available on Telegram. 19 types of InlineQueryResult objects are now supported.
  • +
  • Inline bots can now substitute all kinds of content with text. Added 4 types of InputMessageContent objects.
  • +
  • Your inline bot can also ask users for permission to use their location. Added the new Botfather command /setinlinegeo, added field location to the InlineQuery object, added fields location and inline_message_id to the ChosenInlineResult object.
  • +
  • Added an easy way to switch between inline mode and a private chat with the bot – useful for settings, establishing external connections and teaching users how to use your bot in inline mode. Added parameters switch_pm_text and switch_pm_parameter to the method answerInlineQuery.
  • +
+

Miscellaneous

+ +

February 20, 2016

+
    +
  • Added the disable_notification parameter to all methods that send messages or any kind.
  • +
  • Removed backward compatibility from the method sendAudio. Voice messages now must be sent using the method sendVoice. There is no more need to specify a non-empty title or performer while sending the audio by file_id.
  • +
+

January 20, 2016

+
    +
  • By the way, you can use both HTML-style and markdown-style formatting in your bot's messages to send bold, italic or fixed-width text and inline links. All official Telegram clients support this. See Formatting options for details.
  • +
+

January 14, 2016

+
    +
  • You can now collect feedback on which results provided by your inline bot get chosen by the users. Added the setinlinefeedback command for Botfather, new type ChosenInlineResult, new field chosen_inline_result to the Update object.
  • +
+

January 4, 2016

+ +

November, 2015

+
    +
  • Added support for supergroups. The Type field in the Chat object can now contain 'supergroup'.
  • +
  • New optional fields added to the Message object: supergroup_chat_created, migrate_to_chat_id, migrate_from_chat_id and channel_chat_created.
  • +
+

October 8, 2015

+
    +
  • Added initial channel support for bots (no Telegram clients support this at the moment, please wait for updates):
  • +
  • The Chat field in the Message is now of the new type Chat.
  • +
  • You can now pass a channel username (in the format @channelusername) in the place of chat_id in all methods (and instead of from_chat_id in forwardMessage). For this to work, the bot must be an administrator in the channel (and that's exactly what Telegram clients don't support yet — adding bots as administrators coming soon).
  • +
+

September 18, 2015

+
    +
  • Bots can now download files and media sent by users.
  • +
  • Added getFile and File.
  • +
+

September 7, 2015

+
    +
  • You can now pass parameters using application/json (please note that this doesn't work for file uploads: use multipart/form-data to upload files).
  • +
  • Added very basic markdown support. New field parse_mode added to sendMessage. For the moment messages with markdown will be displayed correctly only in Telegram for Android. Other official apps will catch up soon.
  • +
+

August 29, 2015

+
    +
  • Added support for self-signed certificates: upload your certificate using the certificate parameter in the setWebhook method.
  • +
  • You can now make new requests when responding to webhook updates.
  • +
+

August 15, 2015

+
    +
  • Added new type Voice and new method sendVoice for sending voice messages.
  • +
  • Earlier Audio and sendAudio should now be used for sending music files. Telegram clients will show such files in the in-app music player. If you were using sendAudio for your bot to send voice messages, please use sendVoice instead.
  • +
  • Added optional fields performer, title to the Audio object and sendAudio method.
  • +
  • Added optional field voice to the Message object.
  • +
+

July 2015

+
    +
  • The thumb field is now optional for Video, Sticker and Document objects
  • +
  • The API now supports both video and photo captions. The caption field has been removed from the Video object and added to the Message object instead.
  • +
  • caption and duration optional fields have been added to the sendVideo method.
  • +
  • Fixed typo: user_id in the Contact object is now correctly labeled as Integer, not String
  • +
+

June 24, 2015

+

The bot platform was officially launched.

+
+

Back to the Bot API Manual »

+
+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/bots/api.html b/data/web/blogfork.telegram.org/bots/api.html new file mode 100644 index 0000000000..6af00c6cf6 --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/api.html @@ -0,0 +1,7598 @@ + + + + + Telegram Bot API + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Telegram Bot API

+ +
+ +
+

The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram.
To learn how to create and set up a bot, please consult our Introduction to Bots and Bot FAQ.

+
+

Recent changes

+
+

Subscribe to @BotNews to be the first to know about the latest updates and join the discussion in @BotTalk

+
+

April 24, 2020

+

Bot API 4.8

+
    +
  • Supported explanations for Quizzes 2.0. Add explanations by specifying the parameters explanation and explanation_parse_mode in the method sendPoll.
  • +
  • Added the fields explanation and explanation_entities to the Poll object.
  • +
  • Supported timed polls that automatically close at a certain date and time. Set up by specifying the parameter open_period or close_date in the method sendPoll.
  • +
  • Added the fields open_period and close_date to the Poll object.
  • +
  • Supported the new darts animation for the dice mini-game. Choose between the default dice animation and darts animation by specifying the parameter emoji in the method sendDice.
  • +
  • Added the field emoji to the Dice object.
  • +
+

March 30, 2020

+

Bot API 4.7

+
    +
  • Added the method sendDice for sending a dice message, which will have a random value from 1 to 6. (Yes, we're aware of the “proper” singular of die. But it's awkward, and we decided to help it change. One dice at a time!)
  • +
  • Added the field dice to the Message object.
  • +
  • Added the method getMyCommands for getting the current list of the bot's commands.
  • +
  • Added the method setMyCommands for changing the list of the bot's commands through the Bot API instead of @BotFather.
  • +
  • Added the ability to create animated sticker sets by specifying the parameter tgs_sticker instead of png_sticker in the method createNewStickerSet.
  • +
  • Added the ability to add animated stickers to sets created by the bot by specifying the parameter tgs_sticker instead of png_sticker in the method addStickerToSet.
  • +
  • Added the field thumb to the StickerSet object.
  • +
  • Added the ability to change thumbnails of sticker sets created by the bot using the method setStickerSetThumb.
  • +
+

January 23, 2020

+

Bot API 4.6

+
    +
  • Supported Polls 2.0.
  • +
  • Added the ability to send non-anonymous, multiple answer, and quiz-style polls: added the parameters is_anonymous, type, allows_multiple_answers, correct_option_id, is_closed options to the method sendPoll.
  • +
  • Added the object KeyboardButtonPollType and the field request_poll to the object KeyboardButton.
  • +
  • Added updates about changes of user answers in non-anonymous polls, represented by the object PollAnswer and the field poll_answer in the Update object.
  • +
  • Added the fields total_voter_count, is_anonymous, type, allows_multiple_answers, correct_option_id to the Poll object.
  • +
  • Bots can now send polls to private chats.
  • +
  • Added more information about the bot in response to the getMe request: added the fields can_join_groups, can_read_all_group_messages and supports_inline_queries to the User object.
  • +
  • Added the optional field language to the MessageEntity object.
  • +
+

December 31, 2019

+

Bot API 4.5

+
    +
  • Added support for two new MessageEntity types, underline and strikethrough.
  • +
  • Added support for nested MessageEntity objects. Entities can now contain other entities. If two entities have common characters then one of them is fully contained inside the other.
  • +
  • Added support for nested entities and the new tags <u>/<ins> (for underlined text) and <s>/<strike>/<del> (for strikethrough text) in parse mode HTML.
  • +
  • Added a new parse mode, MarkdownV2, which supports nested entities and two new entities __ (for underlined text) and ~ (for strikethrough text). Parse mode Markdown remains unchanged for backward compatibility.
  • +
  • Added the field file_unique_id to the objects Animation, Audio, Document, PassportFile, PhotoSize, Sticker, Video, VideoNote, Voice, File and the fields small_file_unique_id and big_file_unique_id to the object ChatPhoto. The new fields contain a unique file identifier, which is supposed to be the same over time and for different bots, but can't be used to download or reuse the file.
  • +
  • Added the field custom_title to the ChatMember object.
  • +
  • Added the new method setChatAdministratorCustomTitle to manage the custom titles of administrators promoted by the bot.
  • +
  • Added the field slow_mode_delay to the Chat object.
  • +
+

See earlier changes »

+

Authorizing your bot

+

Each bot is given a unique authentication token when it is created. The token looks something like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11, but we'll use simply <token> in this document instead. You can learn about obtaining tokens and generating new ones in this document.

+

Making requests

+

All queries to the Telegram Bot API must be served over HTTPS and need to be presented in this form: https://api.telegram.org/bot<token>/METHOD_NAME. Like this for example:

+
https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getMe
+

We support GET and POST HTTP methods. We support four ways of passing parameters in Bot API requests:

+
    +
  • URL query string
  • +
  • application/x-www-form-urlencoded
  • +
  • application/json (except for uploading files)
  • +
  • multipart/form-data (use to upload files)
  • +
+

The response contains a JSON object, which always has a Boolean field 'ok' and may have an optional String field 'description' with a human-readable description of the result. If 'ok' equals true, the request was successful and the result of the query can be found in the 'result' field. In case of an unsuccessful request, 'ok' equals false and the error is explained in the 'description'. An Integer 'error_code' field is also returned, but its contents are subject to change in the future. Some errors may also have an optional field 'parameters' of the type ResponseParameters, which can help to automatically handle the error.

+
    +
  • All methods in the Bot API are case-insensitive.
  • +
  • All queries must be made using UTF-8.
  • +
+

Making requests when getting updates

+

If you're using webhooks, you can perform a request to the Bot API while sending an answer to the webhook. Use either application/json or application/x-www-form-urlencoded or multipart/form-data response content type for passing parameters. Specify the method to be invoked in the method parameter of the request. It's not possible to know that such a request was successful or get its result.

+
+

Please see our FAQ for examples.

+
+

Getting updates

+

There are two mutually exclusive ways of receiving updates for your bot — the getUpdates method on one hand and Webhooks on the other. Incoming updates are stored on the server until the bot receives them either way, but they will not be kept longer than 24 hours.

+

Regardless of which option you choose, you will receive JSON-serialized Update objects as a result.

+

Update

+

This object represents an incoming update.
At most one of the optional parameters can be present in any given update.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
update_idIntegerThe update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.
messageMessageOptional. New incoming message of any kind — text, photo, sticker, etc.
edited_messageMessageOptional. New version of a message that is known to the bot and was edited
channel_postMessageOptional. New incoming channel post of any kind — text, photo, sticker, etc.
edited_channel_postMessageOptional. New version of a channel post that is known to the bot and was edited
inline_queryInlineQueryOptional. New incoming inline query
chosen_inline_resultChosenInlineResultOptional. 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.
callback_queryCallbackQueryOptional. New incoming callback query
shipping_queryShippingQueryOptional. New incoming shipping query. Only for invoices with flexible price
pre_checkout_queryPreCheckoutQueryOptional. New incoming pre-checkout query. Contains full information about checkout
pollPollOptional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot
poll_answerPollAnswerOptional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.
+

getUpdates

+

Use this method to receive incoming updates using long polling (wiki). An Array of Update objects is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
offsetIntegerOptionalIdentifier of the first update to be returned. Must be greater by one than the highest among the identifiers of previously received updates. By default, updates starting with the earliest unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called with an offset higher than its update_id. The negative offset can be specified to retrieve updates starting from -offset update from the end of the updates queue. All previous updates will forgotten.
limitIntegerOptionalLimits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.
timeoutIntegerOptionalTimeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive, short polling should be used for testing purposes only.
allowed_updatesArray of StringOptionalA JSON-serialized list of the update types you want your bot to receive. For example, specify [“message”, “edited_channel_post”, “callback_query”] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all updates regardless of type (default). If not specified, the previous setting will be used.

Please note that this parameter doesn't affect updates created before the call to the getUpdates, so unwanted updates may be received for a short period of time.
+
+

Notes
1. This method will not work if an outgoing webhook is set up.
2. In order to avoid getting duplicate updates, recalculate offset after each server response.

+
+

setWebhook

+

Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. Returns True on success.

+

If you'd like to make sure that the Webhook request comes from Telegram, we recommend using a secret path in the URL, e.g. https://www.example.com/<token>. Since nobody else knows your bot's token, you can be pretty sure it's us.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
urlStringYesHTTPS url to send updates to. Use an empty string to remove webhook integration
certificateInputFileOptionalUpload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details.
max_connectionsIntegerOptionalMaximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput.
allowed_updatesArray of StringOptionalA JSON-serialized list of the update types you want your bot to receive. For example, specify [“message”, “edited_channel_post”, “callback_query”] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all updates regardless of type (default). If not specified, the previous setting will be used.

Please note that this parameter doesn't affect updates created before the call to the setWebhook, so unwanted updates may be received for a short period of time.
+
+

Notes
1. You will not be able to receive updates using getUpdates for as long as an outgoing webhook is set up.
2. To use a self-signed certificate, you need to upload your public key certificate using certificate parameter. Please upload as InputFile, sending a String will not work.
3. Ports currently supported for Webhooks: 443, 80, 88, 8443.

+

NEW! If you're having any trouble setting up webhooks, please check out this amazing guide to Webhooks.

+
+

deleteWebhook

+

Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success. Requires no parameters.

+

getWebhookInfo

+

Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty.

+

WebhookInfo

+

Contains information about the current status of a webhook.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
urlStringWebhook URL, may be empty if webhook is not set up
has_custom_certificateBooleanTrue, if a custom certificate was provided for webhook certificate checks
pending_update_countIntegerNumber of updates awaiting delivery
last_error_dateIntegerOptional. Unix time for the most recent error that happened when trying to deliver an update via webhook
last_error_messageStringOptional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
max_connectionsIntegerOptional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
allowed_updatesArray of StringOptional. A list of update types the bot is subscribed to. Defaults to all update types
+

Available types

+

All types used in the Bot API responses are represented as JSON-objects.

+

It is safe to use 32-bit signed integers for storing all Integer fields unless otherwise noted.

+
+

Optional fields may be not returned when irrelevant.

+
+

User

+

This object represents a Telegram user or bot.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
idIntegerUnique identifier for this user or bot
is_botBooleanTrue, if this user is a bot
first_nameStringUser's or bot's first name
last_nameStringOptional. User's or bot's last name
usernameStringOptional. User's or bot's username
language_codeStringOptional. IETF language tag of the user's language
can_join_groupsBooleanOptional. True, if the bot can be invited to groups. Returned only in getMe.
can_read_all_group_messagesBooleanOptional. True, if privacy mode is disabled for the bot. Returned only in getMe.
supports_inline_queriesBooleanOptional. True, if the bot supports inline queries. Returned only in getMe.
+

Chat

+

This object represents a chat.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
idIntegerUnique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
typeStringType of chat, can be either “private”, “group”, “supergroup” or “channel”
titleStringOptional. Title, for supergroups, channels and group chats
usernameStringOptional. Username, for private chats, supergroups and channels if available
first_nameStringOptional. First name of the other party in a private chat
last_nameStringOptional. Last name of the other party in a private chat
photoChatPhotoOptional. Chat photo. Returned only in getChat.
descriptionStringOptional. Description, for groups, supergroups and channel chats. Returned only in getChat.
invite_linkStringOptional. Chat invite link, for groups, supergroups and channel chats. Each administrator in a chat generates their own invite links, so the bot must first generate the link using exportChatInviteLink. Returned only in getChat.
pinned_messageMessageOptional. Pinned message, for groups, supergroups and channels. Returned only in getChat.
permissionsChatPermissionsOptional. Default chat member permissions, for groups and supergroups. Returned only in getChat.
slow_mode_delayIntegerOptional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user. Returned only in getChat.
sticker_set_nameStringOptional. For supergroups, name of group sticker set. Returned only in getChat.
can_set_sticker_setBooleanOptional. True, if the bot can change the group sticker set. Returned only in getChat.
+

Message

+

This object represents a message.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
message_idIntegerUnique message identifier inside this chat
fromUserOptional. Sender, empty for messages sent to channels
dateIntegerDate the message was sent in Unix time
chatChatConversation the message belongs to
forward_fromUserOptional. For forwarded messages, sender of the original message
forward_from_chatChatOptional. For messages forwarded from channels, information about the original channel
forward_from_message_idIntegerOptional. For messages forwarded from channels, identifier of the original message in the channel
forward_signatureStringOptional. For messages forwarded from channels, signature of the post author if present
forward_sender_nameStringOptional. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages
forward_dateIntegerOptional. For forwarded messages, date the original message was sent in Unix time
reply_to_messageMessageOptional. For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
edit_dateIntegerOptional. Date the message was last edited in Unix time
media_group_idStringOptional. The unique identifier of a media message group this message belongs to
author_signatureStringOptional. Signature of the post author for messages in channels
textStringOptional. For text messages, the actual UTF-8 text of the message, 0-4096 characters
entitiesArray of MessageEntityOptional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
animationAnimationOptional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set
audioAudioOptional. Message is an audio file, information about the file
documentDocumentOptional. Message is a general file, information about the file
photoArray of PhotoSizeOptional. Message is a photo, available sizes of the photo
stickerStickerOptional. Message is a sticker, information about the sticker
videoVideoOptional. Message is a video, information about the video
video_noteVideoNoteOptional. Message is a video note, information about the video message
voiceVoiceOptional. Message is a voice message, information about the file
captionStringOptional. Caption for the animation, audio, document, photo, video or voice, 0-1024 characters
caption_entitiesArray of MessageEntityOptional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption
contactContactOptional. Message is a shared contact, information about the contact
diceDiceOptional. Message is a dice with random value from 1 to 6
gameGameOptional. Message is a game, information about the game. More about games »
pollPollOptional. Message is a native poll, information about the poll
venueVenueOptional. Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set
locationLocationOptional. Message is a shared location, information about the location
new_chat_membersArray of UserOptional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
left_chat_memberUserOptional. A member was removed from the group, information about them (this member may be the bot itself)
new_chat_titleStringOptional. A chat title was changed to this value
new_chat_photoArray of PhotoSizeOptional. A chat photo was change to this value
delete_chat_photoTrueOptional. Service message: the chat photo was deleted
group_chat_createdTrueOptional. Service message: the group has been created
supergroup_chat_createdTrueOptional. Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.
channel_chat_createdTrueOptional. Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.
migrate_to_chat_idIntegerOptional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
migrate_from_chat_idIntegerOptional. The supergroup has been migrated from a group with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
pinned_messageMessageOptional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.
invoiceInvoiceOptional. Message is an invoice for a payment, information about the invoice. More about payments »
successful_paymentSuccessfulPaymentOptional. Message is a service message about a successful payment, information about the payment. More about payments »
connected_websiteStringOptional. The domain name of the website on which the user has logged in. More about Telegram Login »
passport_dataPassportDataOptional. Telegram Passport data
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.
+

MessageEntity

+

This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the entity. Can be “mention” (@username), “hashtag” (#hashtag), “cashtag” ($USD), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs), “text_mention” (for users without usernames)
offsetIntegerOffset in UTF-16 code units to the start of the entity
lengthIntegerLength of the entity in UTF-16 code units
urlStringOptional. For “text_link” only, url that will be opened after user taps on the text
userUserOptional. For “text_mention” only, the mentioned user
languageStringOptional. For “pre” only, the programming language of the entity text
+

PhotoSize

+

This object represents one size of a photo or a file / sticker thumbnail.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
file_idStringIdentifier for this file, which can be used to download or reuse the file
file_unique_idStringUnique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
widthIntegerPhoto width
heightIntegerPhoto height
file_sizeIntegerOptional. File size
+

Animation

+

This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
file_idStringIdentifier for this file, which can be used to download or reuse the file
file_unique_idStringUnique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
widthIntegerVideo width as defined by sender
heightIntegerVideo height as defined by sender
durationIntegerDuration of the video in seconds as defined by sender
thumbPhotoSizeOptional. Animation thumbnail as defined by sender
file_nameStringOptional. Original animation filename as defined by sender
mime_typeStringOptional. MIME type of the file as defined by sender
file_sizeIntegerOptional. File size
+

Audio

+

This object represents an audio file to be treated as music by the Telegram clients.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
file_idStringIdentifier for this file, which can be used to download or reuse the file
file_unique_idStringUnique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
durationIntegerDuration of the audio in seconds as defined by sender
performerStringOptional. Performer of the audio as defined by sender or by audio tags
titleStringOptional. Title of the audio as defined by sender or by audio tags
mime_typeStringOptional. MIME type of the file as defined by sender
file_sizeIntegerOptional. File size
thumbPhotoSizeOptional. Thumbnail of the album cover to which the music file belongs
+

Document

+

This object represents a general file (as opposed to photos, voice messages and audio files).

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
file_idStringIdentifier for this file, which can be used to download or reuse the file
file_unique_idStringUnique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
thumbPhotoSizeOptional. Document thumbnail as defined by sender
file_nameStringOptional. Original filename as defined by sender
mime_typeStringOptional. MIME type of the file as defined by sender
file_sizeIntegerOptional. File size
+

Video

+

This object represents a video file.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
file_idStringIdentifier for this file, which can be used to download or reuse the file
file_unique_idStringUnique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
widthIntegerVideo width as defined by sender
heightIntegerVideo height as defined by sender
durationIntegerDuration of the video in seconds as defined by sender
thumbPhotoSizeOptional. Video thumbnail
mime_typeStringOptional. Mime type of a file as defined by sender
file_sizeIntegerOptional. File size
+

VideoNote

+

This object represents a video message (available in Telegram apps as of v.4.0).

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
file_idStringIdentifier for this file, which can be used to download or reuse the file
file_unique_idStringUnique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
lengthIntegerVideo width and height (diameter of the video message) as defined by sender
durationIntegerDuration of the video in seconds as defined by sender
thumbPhotoSizeOptional. Video thumbnail
file_sizeIntegerOptional. File size
+

Voice

+

This object represents a voice note.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
file_idStringIdentifier for this file, which can be used to download or reuse the file
file_unique_idStringUnique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
durationIntegerDuration of the audio in seconds as defined by sender
mime_typeStringOptional. MIME type of the file as defined by sender
file_sizeIntegerOptional. File size
+

Contact

+

This object represents a phone contact.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
phone_numberStringContact's phone number
first_nameStringContact's first name
last_nameStringOptional. Contact's last name
user_idIntegerOptional. Contact's user identifier in Telegram
vcardStringOptional. Additional data about the contact in the form of a vCard
+

Dice

+

This object represents a dice with a random value from 1 to 6 for currently supported base emoji. (Yes, we're aware of the “proper” singular of die. But it's awkward, and we decided to help it change. One dice at a time!)

+ + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
emojiStringEmoji on which the dice throw animation is based
valueIntegerValue of the dice, 1-6 for currently supported base emoji
+

PollOption

+

This object contains information about one answer option in a poll.

+ + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
textStringOption text, 1-100 characters
voter_countIntegerNumber of users that voted for this option
+

PollAnswer

+

This object represents an answer of a user in a non-anonymous poll.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
poll_idStringUnique poll identifier
userUserThe user, who changed the answer to the poll
option_idsArray of Integer0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.
+

Poll

+

This object contains information about a poll.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
idStringUnique poll identifier
questionStringPoll question, 1-255 characters
optionsArray of PollOptionList of poll options
total_voter_countIntegerTotal number of users that voted in the poll
is_closedBooleanTrue, if the poll is closed
is_anonymousBooleanTrue, if the poll is anonymous
typeStringPoll type, currently can be “regular” or “quiz”
allows_multiple_answersBooleanTrue, if the poll allows multiple answers
correct_option_idIntegerOptional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.
explanationStringOptional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters
explanation_entitiesArray of MessageEntityOptional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation
open_periodIntegerOptional. Amount of time in seconds the poll will be active after creation
close_dateIntegerOptional. Point in time (Unix timestamp) when the poll will be automatically closed
+

Location

+

This object represents a point on the map.

+ + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
longitudeFloatLongitude as defined by sender
latitudeFloatLatitude as defined by sender
+

Venue

+

This object represents a venue.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
locationLocationVenue location
titleStringName of the venue
addressStringAddress of the venue
foursquare_idStringOptional. Foursquare identifier of the venue
foursquare_typeStringOptional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
+

UserProfilePhotos

+

This object represent a user's profile pictures.

+ + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
total_countIntegerTotal number of profile pictures the target user has
photosArray of Array of PhotoSizeRequested profile pictures (in up to 4 sizes each)
+

File

+

This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile.

+
+

Maximum file size to download is 20 MB

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
file_idStringIdentifier for this file, which can be used to download or reuse the file
file_unique_idStringUnique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
file_sizeIntegerOptional. File size, if known
file_pathStringOptional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file.
+

ReplyKeyboardMarkup

+

This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
keyboardArray of Array of KeyboardButtonArray of button rows, each represented by an Array of KeyboardButton objects
resize_keyboardBooleanOptional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
one_time_keyboardBooleanOptional. Requests 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. Defaults to false.
selectiveBooleanOptional. Use 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.
+

KeyboardButton

+

This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields request_contact, request_location, and request_poll are mutually exclusive.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
textStringText of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed
request_contactBooleanOptional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only
request_locationBooleanOptional. If True, the user's current location will be sent when the button is pressed. Available in private chats only
request_pollKeyboardButtonPollTypeOptional. If specified, the user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only
+

Note: request_contact and request_location options will only work in Telegram versions released after 9 April, 2016. Older clients will display unsupported message.
Note: request_poll option will only work in Telegram versions released after 23 January, 2020. Older clients will display unsupported message.

+

KeyboardButtonPollType

+

This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.

+ + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringOptional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.
+

ReplyKeyboardRemove

+

Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup).

+ + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
remove_keyboardTrueRequests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
selectiveBooleanOptional. Use this parameter 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.
+

InlineKeyboardMarkup

+

This object represents an inline keyboard that appears right next to the message it belongs to.

+ + + + + + + + + + + + + + + +
FieldTypeDescription
inline_keyboardArray of Array of InlineKeyboardButtonArray of button rows, each represented by an Array of InlineKeyboardButton objects
+

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will display unsupported message.

+

InlineKeyboardButton

+

This object represents one button of an inline keyboard. You must use exactly one of the optional fields.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
textStringLabel text on the button
urlStringOptional. HTTP or tg:// url to be opened when button is pressed
login_urlLoginUrlOptional. An HTTP URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget.
callback_dataStringOptional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes
switch_inline_queryStringOptional. If set, 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. Can be empty, in which case just the bot's username will be inserted.

Note: This offers an easy way for users to start using your bot in inline mode when they are currently in a private chat with it. Especially useful when combined with switch_pm… actions – in this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen.
switch_inline_query_current_chatStringOptional. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. Can be empty, in which case only the bot's username will be inserted.

This offers a quick way for the user to open your bot in inline mode in the same chat – good for selecting something from multiple options.
callback_gameCallbackGameOptional. Description of the game that will be launched when the user presses the button.

NOTE: This type of button must always be the first button in the first row.
payBooleanOptional. Specify True, to send a Pay button.

NOTE: This type of button must always be the first button in the first row.
+

LoginUrl

+

This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:

+
+ TITLE +
+ +

Telegram apps support these buttons as of version 5.7.

+
+

Sample bot: @discussbot

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
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.
forward_textStringOptional. New text of the button in forwarded messages.
bot_usernameStringOptional. Username 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.
request_write_accessBooleanOptional. Pass True to request the permission for your bot to send messages to the user.
+

CallbackQuery

+

This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
idStringUnique identifier for this query
fromUserSender
messageMessageOptional. Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old
inline_message_idStringOptional. Identifier of the message sent via the bot in inline mode, that originated the query.
chat_instanceStringGlobal identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
dataStringOptional. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
game_short_nameStringOptional. Short name of a Game to be returned, serves as the unique identifier for the game
+
+

NOTE: After the user presses a callback button, Telegram clients will display a progress bar until you call answerCallbackQuery. It is, therefore, necessary to react by calling answerCallbackQuery even if no notification to the user is needed (e.g., without specifying any of the optional parameters).

+
+

ForceReply

+

Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.

+ + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
force_replyTrueShows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
selectiveBooleanOptional. Use this parameter if you want to force reply from 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 poll bot for groups runs in privacy mode (only receives commands, replies to its messages and mentions). There could be two ways to create a new poll:

+
    +
  • Explain the user how to send a command with parameters (e.g. /newpoll question answer1 answer2). May be appealing for hardcore users but lacks modern day polish.
  • +
  • Guide the user through a step-by-step process. 'Please send me your question', 'Cool, now let's add the first answer option', 'Great. Keep adding answer options, then send /done when you're ready'.
  • +
+

The last option is definitely more attractive. And if you use ForceReply in your bot's questions, it will receive the user's answers even if it only receives replies, commands and mentions — without any extra work for the user.

+
+

ChatPhoto

+

This object represents a chat photo.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
small_file_idStringFile identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
small_file_unique_idStringUnique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
big_file_idStringFile identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
big_file_unique_idStringUnique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
+

ChatMember

+

This object contains information about one member of a chat.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
userUserInformation about the user
statusStringThe member's status in the chat. Can be “creator”, “administrator”, “member”, “restricted”, “left” or “kicked”
custom_titleStringOptional. Owner and administrators only. Custom title for this user
until_dateIntegerOptional. Restricted and kicked only. Date when restrictions will be lifted for this user; unix time
can_be_editedBooleanOptional. Administrators only. True, if the bot is allowed to edit administrator privileges of that user
can_post_messagesBooleanOptional. Administrators only. True, if the administrator can post in the channel; channels only
can_edit_messagesBooleanOptional. Administrators only. True, if the administrator can edit messages of other users and can pin messages; channels only
can_delete_messagesBooleanOptional. Administrators only. True, if the administrator can delete messages of other users
can_restrict_membersBooleanOptional. Administrators only. True, if the administrator can restrict, ban or unban chat members
can_promote_membersBooleanOptional. Administrators only. True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)
can_change_infoBooleanOptional. Administrators and restricted only. True, if the user is allowed to change the chat title, photo and other settings
can_invite_usersBooleanOptional. Administrators and restricted only. True, if the user is allowed to invite new users to the chat
can_pin_messagesBooleanOptional. Administrators and restricted only. True, if the user is allowed to pin messages; groups and supergroups only
is_memberBooleanOptional. Restricted only. True, if the user is a member of the chat at the moment of the request
can_send_messagesBooleanOptional. Restricted only. True, if the user is allowed to send text messages, contacts, locations and venues
can_send_media_messagesBooleanOptional. Restricted only. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes
can_send_pollsBooleanOptional. Restricted only. True, if the user is allowed to send polls
can_send_other_messagesBooleanOptional. Restricted only. True, if the user is allowed to send animations, games, stickers and use inline bots
can_add_web_page_previewsBooleanOptional. Restricted only. True, if the user is allowed to add web page previews to their messages
+

ChatPermissions

+

Describes actions that a non-administrator user is allowed to take in a chat.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
can_send_messagesBooleanOptional. True, if the user is allowed to send text messages, contacts, locations and venues
can_send_media_messagesBooleanOptional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages
can_send_pollsBooleanOptional. True, if the user is allowed to send polls, implies can_send_messages
can_send_other_messagesBooleanOptional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages
can_add_web_page_previewsBooleanOptional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages
can_change_infoBooleanOptional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
can_invite_usersBooleanOptional. True, if the user is allowed to invite new users to the chat
can_pin_messagesBooleanOptional. True, if the user is allowed to pin messages. Ignored in public supergroups
+

BotCommand

+

This object represents a bot command.

+ + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
commandStringText of the command, 1-32 characters. Can contain only lowercase English letters, digits and underscores.
descriptionStringDescription of the command, 3-256 characters.
+

ResponseParameters

+

Contains information about why a request was unsuccessful.

+ + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
migrate_to_chat_idIntegerOptional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
retry_afterIntegerOptional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated
+

InputMedia

+

This object represents the content of a media message to be sent. It should be one of

+ +

InputMediaPhoto

+

Represents a photo to be sent.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be photo
mediaStringFile to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
captionStringOptional. Caption of the photo to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the photo caption. See formatting options for more details.
+

InputMediaVideo

+

Represents a video to be sent.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be video
mediaStringFile to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
thumbInputFile or StringOptional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
captionStringOptional. Caption of the video to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the video caption. See formatting options for more details.
widthIntegerOptional. Video width
heightIntegerOptional. Video height
durationIntegerOptional. Video duration
supports_streamingBooleanOptional. Pass True, if the uploaded video is suitable for streaming
+

InputMediaAnimation

+

Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be animation
mediaStringFile to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
thumbInputFile or StringOptional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
captionStringOptional. Caption of the animation to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the animation caption. See formatting options for more details.
widthIntegerOptional. Animation width
heightIntegerOptional. Animation height
durationIntegerOptional. Animation duration
+

InputMediaAudio

+

Represents an audio file to be treated as music to be sent.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be audio
mediaStringFile to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
thumbInputFile or StringOptional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
captionStringOptional. Caption of the audio to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the audio caption. See formatting options for more details.
durationIntegerOptional. Duration of the audio in seconds
performerStringOptional. Performer of the audio
titleStringOptional. Title of the audio
+

InputMediaDocument

+

Represents a general file to be sent.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be document
mediaStringFile to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
thumbInputFile or StringOptional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
captionStringOptional. Caption of the document to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the document caption. See formatting options for more details.
+

InputFile

+

This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.

+

Sending files

+

There are three ways to send files (photos, stickers, audio, media, etc.):

+
    +
  1. If the file is already stored somewhere on the Telegram servers, you don't need to reupload it: each file object has a file_id field, simply pass this file_id as a parameter instead of uploading. There are no limits for files sent this way.
  2. +
  3. Provide Telegram with an HTTP URL for the file to be sent. Telegram will download and send the file. 5 MB max size for photos and 20 MB max for other types of content.
  4. +
  5. Post the file using multipart/form-data in the usual way that files are uploaded via the browser. 10 MB max size for photos, 50 MB for other files.
  6. +
+

Sending by file_id

+
    +
  • It is not possible to change the file type when resending by file_id. I.e. a video can't be sent as a photo, a photo can't be sent as a document, etc.
  • +
  • It is not possible to resend thumbnails.
  • +
  • Resending a photo by file_id will send all of its sizes.
  • +
  • file_id is unique for each individual bot and can't be transferred from one bot to another.
  • +
  • file_id uniquely identifies a file, but a file can have different valid file_ids even for the same bot.
  • +
+

Sending by URL

+
    +
  • When sending by URL the target file must have the correct MIME type (e.g., audio/mpeg for sendAudio, etc.).
  • +
  • In sendDocument, sending by URL will currently only work for gif, pdf and zip files.
  • +
  • To use sendVoice, the file must have the type audio/ogg and be no more than 1MB in size. 1-20MB voice notes will be sent as files.
  • +
  • Other configurations may work but we can't guarantee that they will.
  • +
+

Inline mode objects

+

Objects and methods used in the inline mode are described in the Inline mode section.

+

Available methods

+
+

All methods in the Bot API are case-insensitive. We support GET and POST HTTP methods. Use either URL query string or application/json or application/x-www-form-urlencoded or multipart/form-data for passing parameters in Bot API requests.
On successful call, a JSON-object containing the result will be returned.

+
+

getMe

+

A simple method for testing your bot's auth token. Requires no parameters. Returns basic information about the bot in form of a User object.

+

sendMessage

+

Use this method to send text messages. On success, the sent Message is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
textStringYesText of the message to be sent, 1-4096 characters after entities parsing
parse_modeStringOptionalMode for parsing entities in the message text. See formatting options for more details.
disable_web_page_previewBooleanOptionalDisables link previews for links in this message
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

Formatting options

+

The Bot API supports basic formatting for messages. You can use bold, italic, underlined and strikethrough text, as well as inline links and pre-formatted code in your bots' messages. Telegram clients will render them accordingly. You can use either markdown-style or HTML-style formatting.

+

Note that Telegram clients will display an alert to the user before opening an inline link ('Open this link?' together with the full URL).

+

Message entities can be nested, providing following restrictions are met:
- If two entities has common characters then one of them is fully contained inside another.
- bold, italic, underline and strikethrough entities can contain and to be contained in any other entities, except pre and code.
- All other entities can't contain each other.

+

Links tg://user?id=<user_id> can be used to mention a user by their ID without using a username. Please note:

+
    +
  • These links will work only if they are used inside an inline link. For example, they will not work, when used in an inline keyboard button or in a message text.
  • +
  • These mentions are only guaranteed to work if the user has contacted the bot in the past, has sent a callback query to the bot via inline button or is a member in the group where he was mentioned.
  • +
+
MarkdownV2 style
+

To use this mode, pass MarkdownV2 in the parse_mode field. Use the following syntax in your message:

+
*bold \*text*
+_italic \*text_
+__underline__
+~strikethrough~
+*bold _italic bold ~italic bold strikethrough~ __underline italic bold___ bold*
+[inline URL](http://www.example.com/)
+[inline mention of a user](tg://user?id=123456789)
+`inline fixed-width code`
+```
+pre-formatted fixed-width code block
+```
+```python
+pre-formatted fixed-width code block written in the Python programming language
+```
+

Please note:

+
    +
  • Any character with code between 1 and 126 inclusively can be escaped anywhere with a preceding '\' character, in which case it is treated as an ordinary character and not a part of the markup.
  • +
  • Inside pre and code entities, all '`' and '\' characters must be escaped with a preceding '\' character.
  • +
  • Inside (...) part of inline link definition, all ')' and '\' must be escaped with a preceding '\' character.
  • +
  • In all other places characters '_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!' must be escaped with the preceding character '\'.
  • +
  • In case of ambiguity between italic and underline entities __ is always greadily treated from left to right as beginning or end of underline entity, so instead of ___italic underline___ use ___italic underline_\r__, where \r is a character with code 13, which will be ignored.
  • +
+
HTML style
+

To use this mode, pass HTML in the parse_mode field. The following tags are currently supported:

+
<b>bold</b>, <strong>bold</strong>
+<i>italic</i>, <em>italic</em>
+<u>underline</u>, <ins>underline</ins>
+<s>strikethrough</s>, <strike>strikethrough</strike>, <del>strikethrough</del>
+<b>bold <i>italic bold <s>italic bold strikethrough</s> <u>underline italic bold</u></i> bold</b>
+<a href="http://www.example.com/">inline URL</a>
+<a href="tg://user?id=123456789">inline mention of a user</a>
+<code>inline fixed-width code</code>
+<pre>pre-formatted fixed-width code block</pre>
+<pre><code class="language-python">pre-formatted fixed-width code block written in the Python programming language</code></pre>
+

Please note:

+
    +
  • Only the tags mentioned above are currently supported.
  • +
  • All <, > and & symbols that are not a part of a tag or an HTML entity must be replaced with the corresponding HTML entities (< with &lt;, > with &gt; and & with &amp;).
  • +
  • All numerical HTML entities are supported.
  • +
  • The API currently supports only the following named HTML entities: &lt;, &gt;, &amp; and &quot;.
  • +
  • Use nested pre and code tags, to define programming language for pre entity.
  • +
  • Programming language can't be specified for standalone code tags.
  • +
+
Markdown style
+

This is a legacy mode, retained for backward compatibility. To use this mode, pass Markdown in the parse_mode field. Use the following syntax in your message:

+
*bold text*
+_italic text_
+[inline URL](http://www.example.com/)
+[inline mention of a user](tg://user?id=123456789)
+`inline fixed-width code`
+```
+pre-formatted fixed-width code block
+```
+```python
+pre-formatted fixed-width code block written in the Python programming language
+```
+

Please note:

+
    +
  • Entities must not be nested, use parse mode MarkdownV2 instead.
  • +
  • There is no way to specify underline and strikethrough entities, use parse mode MarkdownV2 instead.
  • +
  • To escape characters '_', '*', '`', '[' outside of an entity, prepend the characters '\' before them.
  • +
  • Escaping inside entities is not allowed, so entity must be closed first and reopened again: use _snake_\__case_ for italic snake_case and *2*\**2=4* for bold 2*2=4.
  • +
+

forwardMessage

+

Use this method to forward messages of any kind. On success, the sent Message is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
from_chat_idInteger or StringYesUnique identifier for the chat where the original message was sent (or channel username in the format @channelusername)
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
message_idIntegerYesMessage identifier in the chat specified in from_chat_id
+

sendPhoto

+

Use this method to send photos. On success, the sent Message is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
photoInputFile or StringYesPhoto to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. More info on Sending Files »
captionStringOptionalPhoto caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing
parse_modeStringOptionalMode for parsing entities in the photo caption. See formatting options for more details.
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

sendAudio

+

Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future.

+

For sending voice messages, use the sendVoice method instead.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
audioInputFile or StringYesAudio file to send. Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
captionStringOptionalAudio caption, 0-1024 characters after entities parsing
parse_modeStringOptionalMode for parsing entities in the audio caption. See formatting options for more details.
durationIntegerOptionalDuration of the audio in seconds
performerStringOptionalPerformer
titleStringOptionalTrack name
thumbInputFile or StringOptionalThumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

sendDocument

+

Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
documentInputFile or StringYesFile to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
thumbInputFile or StringOptionalThumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
captionStringOptionalDocument caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing
parse_modeStringOptionalMode for parsing entities in the document caption. See formatting options for more details.
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

sendVideo

+

Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
videoInputFile or StringYesVideo to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data. More info on Sending Files »
durationIntegerOptionalDuration of sent video in seconds
widthIntegerOptionalVideo width
heightIntegerOptionalVideo height
thumbInputFile or StringOptionalThumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
captionStringOptionalVideo caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing
parse_modeStringOptionalMode for parsing entities in the video caption. See formatting options for more details.
supports_streamingBooleanOptionalPass True, if the uploaded video is suitable for streaming
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

sendAnimation

+

Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
animationInputFile or StringYesAnimation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. More info on Sending Files »
durationIntegerOptionalDuration of sent animation in seconds
widthIntegerOptionalAnimation width
heightIntegerOptionalAnimation height
thumbInputFile or StringOptionalThumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
captionStringOptionalAnimation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing
parse_modeStringOptionalMode for parsing entities in the animation caption. See formatting options for more details.
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

sendVoice

+

Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
voiceInputFile or StringYesAudio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
captionStringOptionalVoice message caption, 0-1024 characters after entities parsing
parse_modeStringOptionalMode for parsing entities in the voice message caption. See formatting options for more details.
durationIntegerOptionalDuration of the voice message in seconds
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

sendVideoNote

+

As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent Message is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
video_noteInputFile or StringYesVideo note to send. Pass a file_id as String to send a video note that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. More info on Sending Files ». Sending video notes by a URL is currently unsupported
durationIntegerOptionalDuration of sent video in seconds
lengthIntegerOptionalVideo width and height, i.e. diameter of the video message
thumbInputFile or StringOptionalThumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

sendMediaGroup

+

Use this method to send a group of photos or videos as an album. On success, an array of the sent Messages is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
mediaArray of InputMediaPhoto and InputMediaVideoYesA JSON-serialized array describing photos and videos to be sent, must include 2-10 items
disable_notificationBooleanOptionalSends the messages silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the messages are a reply, ID of the original message
+

sendLocation

+

Use this method to send point on the map. On success, the sent Message is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
latitudeFloat numberYesLatitude of the location
longitudeFloat numberYesLongitude of the location
live_periodIntegerOptionalPeriod in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400.
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

editMessageLiveLocation

+

Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message was sent by the bot, the edited Message is returned, otherwise True is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringOptionalRequired if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_idIntegerOptionalRequired if inline_message_id is not specified. Identifier of the message to edit
inline_message_idStringOptionalRequired if chat_id and message_id are not specified. Identifier of the inline message
latitudeFloat numberYesLatitude of new location
longitudeFloat numberYesLongitude of new location
reply_markupInlineKeyboardMarkupOptionalA JSON-serialized object for a new inline keyboard.
+

stopMessageLiveLocation

+

Use this method to stop updating a live location message before live_period expires. On success, if the message was sent by the bot, the sent Message is returned, otherwise True is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringOptionalRequired if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_idIntegerOptionalRequired if inline_message_id is not specified. Identifier of the message with live location to stop
inline_message_idStringOptionalRequired if chat_id and message_id are not specified. Identifier of the inline message
reply_markupInlineKeyboardMarkupOptionalA JSON-serialized object for a new inline keyboard.
+

sendVenue

+

Use this method to send information about a venue. On success, the sent Message is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
latitudeFloat numberYesLatitude of the venue
longitudeFloat numberYesLongitude of the venue
titleStringYesName of the venue
addressStringYesAddress of the venue
foursquare_idStringOptionalFoursquare identifier of the venue
foursquare_typeStringOptionalFoursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

sendContact

+

Use this method to send phone contacts. On success, the sent Message is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
phone_numberStringYesContact's phone number
first_nameStringYesContact's first name
last_nameStringOptionalContact's last name
vcardStringOptionalAdditional data about the contact in the form of a vCard, 0-2048 bytes
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove keyboard or to force a reply from the user.
+

sendPoll

+

Use this method to send a native poll. On success, the sent Message is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
questionStringYesPoll question, 1-255 characters
optionsArray of StringYesA JSON-serialized list of answer options, 2-10 strings 1-100 characters each
is_anonymousBooleanOptionalTrue, if the poll needs to be anonymous, defaults to True
typeStringOptionalPoll type, “quiz” or “regular”, defaults to “regular”
allows_multiple_answersBooleanOptionalTrue, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False
correct_option_idIntegerOptional0-based identifier of the correct answer option, required for polls in quiz mode
explanationStringOptionalText that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds after entities parsing
explanation_parse_modeStringOptionalMode for parsing entities in the explanation. See formatting options for more details.
open_periodIntegerOptionalAmount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date.
close_dateIntegerOptionalPoint 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 open_period.
is_closedBooleanOptionalPass True, if the poll needs to be immediately closed. This can be useful for poll preview.
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

sendDice

+

Use this method to send a dice, which will have a random value from 1 to 6. On success, the sent Message is returned. (Yes, we're aware of the “proper” singular of die. But it's awkward, and we decided to help it change. One dice at a time!)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
emojiStringOptionalEmoji on which the dice throw animation is based. Currently, must be one of “🎲” or “🎯”. Defauts to “🎲
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

sendChatAction

+

Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns True on success.

+
+

Example: The ImageBot needs some time to process a request and upload the image. Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use sendChatAction with action = upload_photo. The user will see a “sending photo” status for the bot.

+
+

We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
actionStringYesType of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_audio or upload_audio for audio files, upload_document for general files, find_location for location data, record_video_note or upload_video_note for video notes.
+

getUserProfilePhotos

+

Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
user_idIntegerYesUnique identifier of the target user
offsetIntegerOptionalSequential number of the first photo to be returned. By default, all photos are returned.
limitIntegerOptionalLimits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.
+

getFile

+

Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>, where <file_path> is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile again.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
file_idStringYesFile identifier to get info about
+

Note: This function may not preserve the original file name and MIME type. You should save the file's MIME type and name (if available) when the File object is received.

+

kickChatMember

+

Use this method to kick a user from a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)
user_idIntegerYesUnique identifier of the target user
until_dateIntegerOptionalDate when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever
+

unbanChatMember

+

Use this method to unban a previously kicked user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target group or username of the target supergroup or channel (in the format @username)
user_idIntegerYesUnique identifier of the target user
+

restrictChatMember

+

Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate admin rights. Pass True for all permissions to lift restrictions from a user. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
user_idIntegerYesUnique identifier of the target user
permissionsChatPermissionsYesNew user permissions
until_dateIntegerOptionalDate when restrictions will be lifted for the user, unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever
+

promoteChatMember

+

Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Pass False for all boolean parameters to demote a user. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
user_idIntegerYesUnique identifier of the target user
can_change_infoBooleanOptionalPass True, if the administrator can change chat title, photo and other settings
can_post_messagesBooleanOptionalPass True, if the administrator can create channel posts, channels only
can_edit_messagesBooleanOptionalPass True, if the administrator can edit messages of other users and can pin messages, channels only
can_delete_messagesBooleanOptionalPass True, if the administrator can delete messages of other users
can_invite_usersBooleanOptionalPass True, if the administrator can invite new users to the chat
can_restrict_membersBooleanOptionalPass True, if the administrator can restrict, ban or unban chat members
can_pin_messagesBooleanOptionalPass True, if the administrator can pin messages, supergroups only
can_promote_membersBooleanOptionalPass True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)
+

setChatAdministratorCustomTitle

+

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
user_idIntegerYesUnique identifier of the target user
custom_titleStringYesNew custom title for the administrator; 0-16 characters, emoji are not allowed
+

setChatPermissions

+

Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members admin rights. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
permissionsChatPermissionsYesNew default chat permissions
+

exportChatInviteLink

+

Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the new invite link as String on success.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
+
+

Note: Each administrator in a chat generates their own invite links. Bots can't use invite links generated by other administrators. If you want your bot to work with invite links, it will need to generate its own link using exportChatInviteLink — after this the link will become available to the bot via the getChat method. If your bot needs to generate a new invite link replacing its previous one, use exportChatInviteLink again.

+
+

setChatPhoto

+

Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
photoInputFileYesNew chat photo, uploaded using multipart/form-data
+

deleteChatPhoto

+

Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
+

setChatTitle

+

Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
titleStringYesNew chat title, 1-255 characters
+

setChatDescription

+

Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
descriptionStringOptionalNew chat description, 0-255 characters
+

pinChatMessage

+

Use this method to pin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_idIntegerYesIdentifier of a message to pin
disable_notificationBooleanOptionalPass True, if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels.
+

unpinChatMessage

+

Use this method to unpin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel. Returns True on success.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
+

leaveChat

+

Use this method for your bot to leave a group, supergroup or channel. Returns True on success.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
+

getChat

+

Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
+

getChatAdministrators

+

Use this method to get a list of administrators in a chat. On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
+

getChatMembersCount

+

Use this method to get the number of members in a chat. Returns Int on success.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
+

getChatMember

+

Use this method to get information about a member of a chat. Returns a ChatMember object on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
user_idIntegerYesUnique identifier of the target user
+

setChatStickerSet

+

Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
sticker_set_nameStringYesName of the sticker set to be set as the group sticker set
+

deleteChatStickerSet

+

Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
+

answerCallbackQuery

+

Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned.

+
+

Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via @Botfather and accept the terms. Otherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
callback_query_idStringYesUnique identifier for the query to be answered
textStringOptionalText of the notification. If not specified, nothing will be shown to the user, 0-200 characters
show_alertBooleanOptionalIf true, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.
urlStringOptionalURL that will be opened by the user's client. If you have created a Game and accepted the conditions via @Botfather, specify the URL that opens your game — note that this will only work if the query comes from a callback_game button.

Otherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter.
cache_timeIntegerOptionalThe maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0.
+

setMyCommands

+

Use this method to change the list of the bot's commands. Returns True on success.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
commandsArray of BotCommandYesA JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.
+

getMyCommands

+

Use this method to get the current list of the bot's commands. Requires no parameters. Returns Array of BotCommand on success.

+

Inline mode methods

+

Methods and objects used in the inline mode are described in the Inline mode section.

+

Updating messages

+

The following methods allow you to change an existing message in the message history instead of sending a new one with a result of an action. This is most useful for messages with inline keyboards using callback queries, but can also help reduce clutter in conversations with regular chat bots.

+

Please note, that it is currently only possible to edit messages without reply_markup or with inline keyboards.

+

editMessageText

+

Use this method to edit text and game messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringOptionalRequired if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_idIntegerOptionalRequired if inline_message_id is not specified. Identifier of the message to edit
inline_message_idStringOptionalRequired if chat_id and message_id are not specified. Identifier of the inline message
textStringYesNew text of the message, 1-4096 characters after entities parsing
parse_modeStringOptionalMode for parsing entities in the message text. See formatting options for more details.
disable_web_page_previewBooleanOptionalDisables link previews for links in this message
reply_markupInlineKeyboardMarkupOptionalA JSON-serialized object for an inline keyboard.
+

editMessageCaption

+

Use this method to edit captions of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringOptionalRequired if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_idIntegerOptionalRequired if inline_message_id is not specified. Identifier of the message to edit
inline_message_idStringOptionalRequired if chat_id and message_id are not specified. Identifier of the inline message
captionStringOptionalNew caption of the message, 0-1024 characters after entities parsing
parse_modeStringOptionalMode for parsing entities in the message caption. See formatting options for more details.
reply_markupInlineKeyboardMarkupOptionalA JSON-serialized object for an inline keyboard.
+

editMessageMedia

+

Use this method to edit animation, audio, document, photo, or video messages. If a message is a part of a message album, then it can be edited only to a photo or a video. Otherwise, message type can be changed arbitrarily. When inline message is edited, new file can't be uploaded. Use previously uploaded file via its file_id or specify a URL. On success, if the edited message was sent by the bot, the edited Message is returned, otherwise True is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringOptionalRequired if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_idIntegerOptionalRequired if inline_message_id is not specified. Identifier of the message to edit
inline_message_idStringOptionalRequired if chat_id and message_id are not specified. Identifier of the inline message
mediaInputMediaYesA JSON-serialized object for a new media content of the message
reply_markupInlineKeyboardMarkupOptionalA JSON-serialized object for a new inline keyboard.
+

editMessageReplyMarkup

+

Use this method to edit only the reply markup of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringOptionalRequired if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_idIntegerOptionalRequired if inline_message_id is not specified. Identifier of the message to edit
inline_message_idStringOptionalRequired if chat_id and message_id are not specified. Identifier of the inline message
reply_markupInlineKeyboardMarkupOptionalA JSON-serialized object for an inline keyboard.
+

stopPoll

+

Use this method to stop a poll which was sent by the bot. On success, the stopped Poll with the final results is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_idIntegerYesIdentifier of the original message with the poll
reply_markupInlineKeyboardMarkupOptionalA JSON-serialized object for a new message inline keyboard.
+

deleteMessage

+

Use this method to delete a message, including service messages, with the following limitations:
- A message can only be deleted if it was sent less than 48 hours ago.
- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.
- Bots can delete outgoing messages in private chats, groups, and supergroups.
- Bots can delete incoming messages in private chats.
- Bots granted can_post_messages permissions can delete outgoing messages in channels.
- If the bot is an administrator of a group, it can delete any message there.
- If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.
Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_idIntegerYesIdentifier of the message to delete
+

Stickers

+

The following methods and objects allow your bot to handle stickers and sticker sets.

+

Sticker

+

This object represents a sticker.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
file_idStringIdentifier for this file, which can be used to download or reuse the file
file_unique_idStringUnique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
widthIntegerSticker width
heightIntegerSticker height
is_animatedBooleanTrue, if the sticker is animated
thumbPhotoSizeOptional. Sticker thumbnail in the .WEBP or .JPG format
emojiStringOptional. Emoji associated with the sticker
set_nameStringOptional. Name of the sticker set to which the sticker belongs
mask_positionMaskPositionOptional. For mask stickers, the position where the mask should be placed
file_sizeIntegerOptional. File size
+

StickerSet

+

This object represents a sticker set.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
nameStringSticker set name
titleStringSticker set title
is_animatedBooleanTrue, if the sticker set contains animated stickers
contains_masksBooleanTrue, if the sticker set contains masks
stickersArray of StickerList of all set stickers
thumbPhotoSizeOptional. Sticker set thumbnail in the .WEBP or .TGS format
+

MaskPosition

+

This object describes the position on faces where a mask should be placed by default.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
pointStringThe part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.
x_shiftFloat numberShift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.
y_shiftFloat numberShift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.
scaleFloat numberMask scaling coefficient. For example, 2.0 means double size.
+

sendSticker

+

Use this method to send static .WEBP or animated .TGS stickers. On success, the sent Message is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
stickerInputFile or StringYesSticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReplyOptionalAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
+

getStickerSet

+

Use this method to get a sticker set. On success, a StickerSet object is returned.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
nameStringYesName of the sticker set
+

uploadStickerFile

+

Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
user_idIntegerYesUser identifier of sticker file owner
png_stickerInputFileYesPNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. More info on Sending Files »
+

createNewStickerSet

+

Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker or tgs_sticker. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
user_idIntegerYesUser identifier of created sticker set owner
nameStringYesShort name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in “_by_<bot username>”. <bot_username> is case insensitive. 1-64 characters.
titleStringYesSticker set title, 1-64 characters
png_stickerInputFile or StringOptionalPNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
tgs_stickerInputFileOptionalTGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements
emojisStringYesOne or more emoji corresponding to the sticker
contains_masksBooleanOptionalPass True, if a set of mask stickers should be created
mask_positionMaskPositionOptionalA JSON-serialized object for position where the mask should be placed on faces
+

addStickerToSet

+

Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker or tgs_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
user_idIntegerYesUser identifier of sticker set owner
nameStringYesSticker set name
png_stickerInputFile or StringOptionalPNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »
tgs_stickerInputFileOptionalTGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements
emojisStringYesOne or more emoji corresponding to the sticker
mask_positionMaskPositionOptionalA JSON-serialized object for position where the mask should be placed on faces
+

setStickerPositionInSet

+

Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
stickerStringYesFile identifier of the sticker
positionIntegerYesNew sticker position in the set, zero-based
+

deleteStickerFromSet

+

Use this method to delete a sticker from a set created by the bot. Returns True on success.

+ + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
stickerStringYesFile identifier of the sticker
+

setStickerSetThumb

+

Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
nameStringYesSticker set name
user_idIntegerYesUser identifier of the sticker set owner
thumbInputFile or StringOptionalA PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/animated_stickers#technical-requirements for animated sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files ». Animated sticker set thumbnail can't be uploaded via HTTP URL.
+

Inline mode

+

The following methods and objects allow your bot to work in inline mode.
Please see our Introduction to Inline bots for more details.

+

To enable this option, send the /setinline command to @BotFather and provide the placeholder text that the user will see in the input field after typing your bot's name.

+

InlineQuery

+

This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
idStringUnique identifier for this query
fromUserSender
locationLocationOptional. Sender location, only for bots that request user location
queryStringText of the query (up to 256 characters)
offsetStringOffset of the results to be returned, can be controlled by the bot
+

answerInlineQuery

+

Use this method to send answers to an inline query. On success, True is returned.
No more than 50 results per query are allowed.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
inline_query_idStringYesUnique identifier for the answered query
resultsArray of InlineQueryResultYesA JSON-serialized array of results for the inline query
cache_timeIntegerOptionalThe maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.
is_personalBooleanOptionalPass True, 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
next_offsetStringOptionalPass 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_pm_textStringOptionalIf 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 the parameter switch_pm_parameter
switch_pm_parameterStringOptionalDeep-linking parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.

Example: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an oauth link. Once done, the bot can offer a switch_inline button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities.
+

InlineQueryResult

+

This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:

+ +

InlineQueryResultArticle

+

Represents a link to an article or web page.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be article
idStringUnique identifier for this result, 1-64 Bytes
titleStringTitle of the result
input_message_contentInputMessageContentContent of the message to be sent
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
urlStringOptional. URL of the result
hide_urlBooleanOptional. Pass True, if you don't want the URL to be shown in the message
descriptionStringOptional. Short description of the result
thumb_urlStringOptional. Url of the thumbnail for the result
thumb_widthIntegerOptional. Thumbnail width
thumb_heightIntegerOptional. Thumbnail height
+

InlineQueryResultPhoto

+

Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be photo
idStringUnique identifier for this result, 1-64 bytes
photo_urlStringA valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB
thumb_urlStringURL of the thumbnail for the photo
photo_widthIntegerOptional. Width of the photo
photo_heightIntegerOptional. Height of the photo
titleStringOptional. Title for the result
descriptionStringOptional. Short description of the result
captionStringOptional. Caption of the photo to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the photo caption. See formatting options for more details.
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the photo
+

InlineQueryResultGif

+

Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be gif
idStringUnique identifier for this result, 1-64 bytes
gif_urlStringA valid URL for the GIF file. File size must not exceed 1MB
gif_widthIntegerOptional. Width of the GIF
gif_heightIntegerOptional. Height of the GIF
gif_durationIntegerOptional. Duration of the GIF
thumb_urlStringURL of the static thumbnail for the result (jpeg or gif)
titleStringOptional. Title for the result
captionStringOptional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the caption. See formatting options for more details.
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the GIF animation
+

InlineQueryResultMpeg4Gif

+

Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be mpeg4_gif
idStringUnique identifier for this result, 1-64 bytes
mpeg4_urlStringA valid URL for the MP4 file. File size must not exceed 1MB
mpeg4_widthIntegerOptional. Video width
mpeg4_heightIntegerOptional. Video height
mpeg4_durationIntegerOptional. Video duration
thumb_urlStringURL of the static thumbnail (jpeg or gif) for the result
titleStringOptional. Title for the result
captionStringOptional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the caption. See formatting options for more details.
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the video animation
+

InlineQueryResultVideo

+

Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.

+
+

If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be video
idStringUnique identifier for this result, 1-64 bytes
video_urlStringA valid URL for the embedded video player or video file
mime_typeStringMime type of the content of video url, “text/html” or “video/mp4”
thumb_urlStringURL of the thumbnail (jpeg only) for the video
titleStringTitle for the result
captionStringOptional. Caption of the video to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the video caption. See formatting options for more details.
video_widthIntegerOptional. Video width
video_heightIntegerOptional. Video height
video_durationIntegerOptional. Video duration in seconds
descriptionStringOptional. Short description of the result
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).
+

InlineQueryResultAudio

+

Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be audio
idStringUnique identifier for this result, 1-64 bytes
audio_urlStringA valid URL for the audio file
titleStringTitle
captionStringOptional. Caption, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the audio caption. See formatting options for more details.
performerStringOptional. Performer
audio_durationIntegerOptional. Audio duration in seconds
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the audio
+

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

+

InlineQueryResultVoice

+

Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be voice
idStringUnique identifier for this result, 1-64 bytes
voice_urlStringA valid URL for the voice recording
titleStringRecording title
captionStringOptional. Caption, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the voice message caption. See formatting options for more details.
voice_durationIntegerOptional. Recording duration in seconds
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the voice recording
+

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

+

InlineQueryResultDocument

+

Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be document
idStringUnique identifier for this result, 1-64 bytes
titleStringTitle for the result
captionStringOptional. Caption of the document to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the document caption. See formatting options for more details.
document_urlStringA valid URL for the file
mime_typeStringMime type of the content of the file, either “application/pdf” or “application/zip”
descriptionStringOptional. Short description of the result
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the file
thumb_urlStringOptional. URL of the thumbnail (jpeg only) for the file
thumb_widthIntegerOptional. Thumbnail width
thumb_heightIntegerOptional. Thumbnail height
+

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

+

InlineQueryResultLocation

+

Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be location
idStringUnique identifier for this result, 1-64 Bytes
latitudeFloat numberLocation latitude in degrees
longitudeFloat numberLocation longitude in degrees
titleStringLocation title
live_periodIntegerOptional. Period in seconds for which the location can be updated, should be between 60 and 86400.
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the location
thumb_urlStringOptional. Url of the thumbnail for the result
thumb_widthIntegerOptional. Thumbnail width
thumb_heightIntegerOptional. Thumbnail height
+

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

+

InlineQueryResultVenue

+

Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be venue
idStringUnique identifier for this result, 1-64 Bytes
latitudeFloatLatitude of the venue location in degrees
longitudeFloatLongitude of the venue location in degrees
titleStringTitle of the venue
addressStringAddress of the venue
foursquare_idStringOptional. Foursquare identifier of the venue if known
foursquare_typeStringOptional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the venue
thumb_urlStringOptional. Url of the thumbnail for the result
thumb_widthIntegerOptional. Thumbnail width
thumb_heightIntegerOptional. Thumbnail height
+

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

+

InlineQueryResultContact

+

Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be contact
idStringUnique identifier for this result, 1-64 Bytes
phone_numberStringContact's phone number
first_nameStringContact's first name
last_nameStringOptional. Contact's last name
vcardStringOptional. Additional data about the contact in the form of a vCard, 0-2048 bytes
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the contact
thumb_urlStringOptional. Url of the thumbnail for the result
thumb_widthIntegerOptional. Thumbnail width
thumb_heightIntegerOptional. Thumbnail height
+

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

+

InlineQueryResultGame

+

Represents a Game.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be game
idStringUnique identifier for this result, 1-64 bytes
game_short_nameStringShort name of the game
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
+

Note: This will only work in Telegram versions released after October 1, 2016. Older clients will not display any inline results if a game result is among them.

+

InlineQueryResultCachedPhoto

+

Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be photo
idStringUnique identifier for this result, 1-64 bytes
photo_file_idStringA valid file identifier of the photo
titleStringOptional. Title for the result
descriptionStringOptional. Short description of the result
captionStringOptional. Caption of the photo to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the photo caption. See formatting options for more details.
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the photo
+

InlineQueryResultCachedGif

+

Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be gif
idStringUnique identifier for this result, 1-64 bytes
gif_file_idStringA valid file identifier for the GIF file
titleStringOptional. Title for the result
captionStringOptional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the caption. See formatting options for more details.
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the GIF animation
+

InlineQueryResultCachedMpeg4Gif

+

Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be mpeg4_gif
idStringUnique identifier for this result, 1-64 bytes
mpeg4_file_idStringA valid file identifier for the MP4 file
titleStringOptional. Title for the result
captionStringOptional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the caption. See formatting options for more details.
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the video animation
+

InlineQueryResultCachedSticker

+

Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be sticker
idStringUnique identifier for this result, 1-64 bytes
sticker_file_idStringA valid file identifier of the sticker
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the sticker
+

Note: This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for animated stickers. Older clients will ignore them.

+

InlineQueryResultCachedDocument

+

Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be document
idStringUnique identifier for this result, 1-64 bytes
titleStringTitle for the result
document_file_idStringA valid file identifier for the file
descriptionStringOptional. Short description of the result
captionStringOptional. Caption of the document to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the document caption. See formatting options for more details.
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the file
+

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

+

InlineQueryResultCachedVideo

+

Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be video
idStringUnique identifier for this result, 1-64 bytes
video_file_idStringA valid file identifier for the video file
titleStringTitle for the result
descriptionStringOptional. Short description of the result
captionStringOptional. Caption of the video to be sent, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the video caption. See formatting options for more details.
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the video
+

InlineQueryResultCachedVoice

+

Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be voice
idStringUnique identifier for this result, 1-64 bytes
voice_file_idStringA valid file identifier for the voice message
titleStringVoice message title
captionStringOptional. Caption, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the voice message caption. See formatting options for more details.
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the voice message
+

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

+

InlineQueryResultCachedAudio

+

Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringType of the result, must be audio
idStringUnique identifier for this result, 1-64 bytes
audio_file_idStringA valid file identifier for the audio file
captionStringOptional. Caption, 0-1024 characters after entities parsing
parse_modeStringOptional. Mode for parsing entities in the audio caption. See formatting options for more details.
reply_markupInlineKeyboardMarkupOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentOptional. Content of the message to be sent instead of the audio
+

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

+

InputMessageContent

+

This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 4 types:

+ +

InputTextMessageContent

+

Represents the content of a text message to be sent as the result of an inline query.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
message_textStringText of the message to be sent, 1-4096 characters
parse_modeStringOptional. Mode for parsing entities in the message text. See formatting options for more details.
disable_web_page_previewBooleanOptional. Disables link previews for links in the sent message
+

InputLocationMessageContent

+

Represents the content of a location message to be sent as the result of an inline query.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
latitudeFloatLatitude of the location in degrees
longitudeFloatLongitude of the location in degrees
live_periodIntegerOptional. Period in seconds for which the location can be updated, should be between 60 and 86400.
+

InputVenueMessageContent

+

Represents the content of a venue message to be sent as the result of an inline query.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
latitudeFloatLatitude of the venue in degrees
longitudeFloatLongitude of the venue in degrees
titleStringName of the venue
addressStringAddress of the venue
foursquare_idStringOptional. Foursquare identifier of the venue, if known
foursquare_typeStringOptional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
+

InputContactMessageContent

+

Represents the content of a contact message to be sent as the result of an inline query.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
phone_numberStringContact's phone number
first_nameStringContact's first name
last_nameStringOptional. Contact's last name
vcardStringOptional. Additional data about the contact in the form of a vCard, 0-2048 bytes
+

ChosenInlineResult

+

Represents a result of an inline query that was chosen by the user and sent to their chat partner.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
result_idStringThe unique identifier for the result that was chosen
fromUserThe user that chose the result
locationLocationOptional. Sender location, only for bots that require user location
inline_message_idStringOptional. Identifier 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.
queryStringThe query that was used to obtain the result
+

Note: It is necessary to enable inline feedback via @Botfather in order to receive these objects in updates.

+

Payments

+

Your bot can accept payments from Telegram users. Please see the introduction to payments for more details on the process and how to set up payments for your bot. Please note that users will need Telegram v.4.0 or higher to use payments (released on May 18, 2017).

+

sendInvoice

+

Use this method to send invoices. On success, the sent Message is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idIntegerYesUnique identifier for the target private chat
titleStringYesProduct name, 1-32 characters
descriptionStringYesProduct description, 1-255 characters
payloadStringYesBot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
provider_tokenStringYesPayments provider token, obtained via Botfather
start_parameterStringYesUnique deep-linking parameter that can be used to generate this invoice when used as a start parameter
currencyStringYesThree-letter ISO 4217 currency code, see more on currencies
pricesArray of LabeledPriceYesPrice breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)
provider_dataStringOptionalJSON-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.
photo_urlStringOptionalURL 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.
photo_sizeIntegerOptionalPhoto size
photo_widthIntegerOptionalPhoto width
photo_heightIntegerOptionalPhoto height
need_nameBooleanOptionalPass True, if you require the user's full name to complete the order
need_phone_numberBooleanOptionalPass True, if you require the user's phone number to complete the order
need_emailBooleanOptionalPass True, if you require the user's email address to complete the order
need_shipping_addressBooleanOptionalPass True, if you require the user's shipping address to complete the order
send_phone_number_to_providerBooleanOptionalPass True, if user's phone number should be sent to provider
send_email_to_providerBooleanOptionalPass True, if user's email address should be sent to provider
is_flexibleBooleanOptionalPass True, if the final price depends on the shipping method
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkupOptionalA JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. If not empty, the first button must be a Pay button.
+

answerShippingQuery

+

If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
shipping_query_idStringYesUnique identifier for the query to be answered
okBooleanYesSpecify True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)
shipping_optionsArray of ShippingOptionOptionalRequired if ok is True. A JSON-serialized array of available shipping options.
error_messageStringOptionalRequired if ok is False. Error 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.
+

answerPreCheckoutQuery

+

Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
pre_checkout_query_idStringYesUnique identifier for the query to be answered
okBooleanYesSpecify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.
error_messageStringOptionalRequired if ok is False. 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.
+

LabeledPrice

+

This object represents a portion of the price for goods or services.

+ + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
labelStringPortion label
amountIntegerPrice 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).
+

Invoice

+

This object contains basic information about an invoice.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
titleStringProduct name
descriptionStringProduct description
start_parameterStringUnique bot deep-linking parameter that can be used to generate this invoice
currencyStringThree-letter ISO 4217 currency code
total_amountIntegerTotal 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).
+

ShippingAddress

+

This object represents a shipping address.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
country_codeStringISO 3166-1 alpha-2 country code
stateStringState, if applicable
cityStringCity
street_line1StringFirst line for the address
street_line2StringSecond line for the address
post_codeStringAddress post code
+

OrderInfo

+

This object represents information about an order.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
nameStringOptional. User name
phone_numberStringOptional. User's phone number
emailStringOptional. User email
shipping_addressShippingAddressOptional. User shipping address
+

ShippingOption

+

This object represents one shipping option.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
idStringShipping option identifier
titleStringOption title
pricesArray of LabeledPriceList of price portions
+

SuccessfulPayment

+

This object contains basic information about a successful payment.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
currencyStringThree-letter ISO 4217 currency code
total_amountIntegerTotal 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).
invoice_payloadStringBot specified invoice payload
shipping_option_idStringOptional. Identifier of the shipping option chosen by the user
order_infoOrderInfoOptional. Order info provided by the user
telegram_payment_charge_idStringTelegram payment identifier
provider_payment_charge_idStringProvider payment identifier
+

ShippingQuery

+

This object contains information about an incoming shipping query.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
idStringUnique query identifier
fromUserUser who sent the query
invoice_payloadStringBot specified invoice payload
shipping_addressShippingAddressUser specified shipping address
+

PreCheckoutQuery

+

This object contains information about an incoming pre-checkout query.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
idStringUnique query identifier
fromUserUser who sent the query
currencyStringThree-letter ISO 4217 currency code
total_amountIntegerTotal 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).
invoice_payloadStringBot specified invoice payload
shipping_option_idStringOptional. Identifier of the shipping option chosen by the user
order_infoOrderInfoOptional. Order info provided by the user
+

Telegram Passport

+

Telegram Passport is a unified authorization method for services that require personal identification. Users can upload their documents once, then instantly share their data with services that require real-world ID (finance, ICOs, etc.). Please see the manual for details.

+

PassportData

+

Contains information about Telegram Passport data shared with the bot by the user.

+ + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
dataArray of EncryptedPassportElementArray with information about documents and other Telegram Passport elements that was shared with the bot
credentialsEncryptedCredentialsEncrypted credentials required to decrypt the data
+

PassportFile

+

This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
file_idStringIdentifier for this file, which can be used to download or reuse the file
file_unique_idStringUnique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
file_sizeIntegerFile size
file_dateIntegerUnix time when the file was uploaded
+

EncryptedPassportElement

+

Contains information about documents or other Telegram Passport elements shared with the bot by the user.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
typeStringElement type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”.
dataStringOptional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials.
phone_numberStringOptional. User's verified phone number, available only for “phone_number” type
emailStringOptional. User's verified email address, available only for “email” type
filesArray of PassportFileOptional. Array of encrypted files with documents provided by the user, available for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
front_sidePassportFileOptional. Encrypted file with the front side of the document, provided by the user. Available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
reverse_sidePassportFileOptional. Encrypted file with the reverse side of the document, provided by the user. Available for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
selfiePassportFileOptional. Encrypted file with the selfie of the user holding a document, provided by the user; available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
translationArray of PassportFileOptional. Array of encrypted files with translated versions of documents provided by the user. Available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
hashStringBase64-encoded element hash for using in PassportElementErrorUnspecified
+

EncryptedCredentials

+

Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
dataStringBase64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication
hashStringBase64-encoded data hash for data authentication
secretStringBase64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
+

setPassportDataErrors

+

Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns True on success.

+

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.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
user_idIntegerYesUser identifier
errorsArray of PassportElementErrorYesA JSON-serialized array describing the errors
+

PassportElementError

+

This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:

+ +

PassportElementErrorDataField

+

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.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
sourceStringError source, must be data
typeStringThe section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”
field_nameStringName of the data field which has the error
data_hashStringBase64-encoded data hash
messageStringError message
+

PassportElementErrorFrontSide

+

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.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
sourceStringError source, must be front_side
typeStringThe section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”
file_hashStringBase64-encoded hash of the file with the front side of the document
messageStringError message
+

PassportElementErrorReverseSide

+

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.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
sourceStringError source, must be reverse_side
typeStringThe section of the user's Telegram Passport which has the issue, one of “driver_license”, “identity_card”
file_hashStringBase64-encoded hash of the file with the reverse side of the document
messageStringError message
+

PassportElementErrorSelfie

+

Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
sourceStringError source, must be selfie
typeStringThe section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”
file_hashStringBase64-encoded hash of the file with the selfie
messageStringError message
+

PassportElementErrorFile

+

Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
sourceStringError source, must be file
typeStringThe section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”
file_hashStringBase64-encoded file hash
messageStringError message
+

PassportElementErrorFiles

+

Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
sourceStringError source, must be files
typeStringThe section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”
file_hashesArray of StringList of base64-encoded file hashes
messageStringError message
+

PassportElementErrorTranslationFile

+

Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
sourceStringError source, must be translation_file
typeStringType of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”
file_hashStringBase64-encoded file hash
messageStringError message
+

PassportElementErrorTranslationFiles

+

Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
sourceStringError source, must be translation_files
typeStringType of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”
file_hashesArray of StringList of base64-encoded file hashes
messageStringError message
+

PassportElementErrorUnspecified

+

Represents an issue in an unspecified place. The error is considered resolved when new data is added.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
sourceStringError source, must be unspecified
typeStringType of element of the user's Telegram Passport which has the issue
element_hashStringBase64-encoded element hash
messageStringError message
+

Games

+

Your bot can offer users HTML5 games to play solo or to compete against each other in groups and one-on-one chats. Create games via @BotFather using the /newgame command. Please note that this kind of power requires responsibility: you will need to accept the terms for each game that your bots will be offering.

+
    +
  • Games are a new type of content on Telegram, represented by the Game and InlineQueryResultGame objects.
  • +
  • Once you've created a game via BotFather, you can send games to chats as regular messages using the sendGame method, or use inline mode with InlineQueryResultGame.
  • +
  • If you send the game message without any buttons, it will automatically have a 'Play GameName' button. When this button is pressed, your bot gets a CallbackQuery with the game_short_name of the requested game. You provide the correct URL for this particular user and the app opens the game in the in-app browser.
  • +
  • You can manually add multiple buttons to your game message. Please note that the first button in the first row must always launch the game, using the field callback_game in InlineKeyboardButton. You can add extra buttons according to taste: e.g., for a description of the rules, or to open the game's official community.
  • +
  • To make your game more attractive, you can upload a GIF animation that demostrates the game to the users via BotFather (see Lumberjack for example).
  • +
  • A game message will also display high scores for the current chat. Use setGameScore to post high scores to the chat with the game, add the edit_message parameter to automatically update the message with the current scoreboard.
  • +
  • Use getGameHighScores to get data for in-game high score tables.
  • +
  • You can also add an extra sharing button for users to share their best score to different chats.
  • +
  • For examples of what can be done using this new stuff, check the @gamebot and @gamee bots.
  • +
+

sendGame

+

Use this method to send a game. On success, the sent Message is returned.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idIntegerYesUnique identifier for the target chat
game_short_nameStringYesShort name of the game, serves as the unique identifier for the game. Set up your games via Botfather.
disable_notificationBooleanOptionalSends the message silently. Users will receive a notification with no sound.
reply_to_message_idIntegerOptionalIf the message is a reply, ID of the original message
reply_markupInlineKeyboardMarkupOptionalA JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown. If not empty, the first button must launch the game.
+

Game

+

This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
titleStringTitle of the game
descriptionStringDescription of the game
photoArray of PhotoSizePhoto that will be displayed in the game message in chats.
textStringOptional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.
text_entitiesArray of MessageEntityOptional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.
animationAnimationOptional. Animation that will be displayed in the game message in chats. Upload via BotFather
+

CallbackGame

+

A placeholder, currently holds no information. Use BotFather to set up your game.

+

setGameScore

+

Use this method to set the score of the specified user in a game. On success, if the message was sent by the bot, returns the edited Message, otherwise returns True. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
user_idIntegerYesUser identifier
scoreIntegerYesNew score, must be non-negative
forceBooleanOptionalPass True, if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters
disable_edit_messageBooleanOptionalPass True, if the game message should not be automatically edited to include the current scoreboard
chat_idIntegerOptionalRequired if inline_message_id is not specified. Unique identifier for the target chat
message_idIntegerOptionalRequired if inline_message_id is not specified. Identifier of the sent message
inline_message_idStringOptionalRequired if chat_id and message_id are not specified. Identifier of the inline message
+

getGameHighScores

+

Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. On success, returns an Array of GameHighScore objects.

+
+

This method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and his neighbors are not among them. Please note that this behavior is subject to change.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
user_idIntegerYesTarget user id
chat_idIntegerOptionalRequired if inline_message_id is not specified. Unique identifier for the target chat
message_idIntegerOptionalRequired if inline_message_id is not specified. Identifier of the sent message
inline_message_idStringOptionalRequired if chat_id and message_id are not specified. Identifier of the inline message
+

GameHighScore

+

This object represents one row of the high scores table for a game.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
positionIntegerPosition in high score table for the game
userUserUser
scoreIntegerScore
+
+

And that's about all we've got for now.
If you've got any questions, please check out our Bot FAQ »

+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/bots/faq.html b/data/web/blogfork.telegram.org/bots/faq.html new file mode 100644 index 0000000000..5406bed63a --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/faq.html @@ -0,0 +1,246 @@ + + + + + Bots FAQ + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Bots FAQ

+ +
+

If you are new to Telegram bots, we recommend checking out our Introduction to Bots first.
You may also find the Bot API Manual useful.

+
+

+ +
+

General Questions

+

How do I create a bot?

+

Creating Telegram bots is super-easy, but you will need at least some skills at computer programming. In order for a bot to work, set up a bot account with @BotFather, then connect it to your backend server via our API.

+

Unfortunately, there are no out-of-the-box ways to create a working bot if you are not a developer. But we're sure you'll soon find plenty of bots created by other people to play with.

+

I'm a developer. Where can I find some examples?

+

Here are two sample bots, both written in PHP:

+
    +
  • Hello Bot demonstrates the basics of the Telegram bot API.
  • +
  • Simple Poll bot is a more complete example, it supports both long-polling and Webhooks for updates.
  • +
+
+

Many members of our community are building bots and publishing sources.
We're collecting them on this page »

+
+

Ping us on @BotSupport if you've built a bot and would like to share it with others.

+

Will you add X to the Bot API?

+

The bot API is still pretty young. There are many potential features to consider and implement. We'll be studying what people do with their bots for a while to see which directions will be most important for the platform.

+

All bot developers are welcome to share ideas for our Bot API with our @BotSupport account.

+

What messages will my bot get?

+

1. All bots, regardless of settings, will receive:

+
    +
  • All service messages.
  • +
  • All messages from private chats with users.
  • +
  • All messages from channels where they are a member.
  • +
+

2. Bot admins and bots with privacy mode disabled will receive all messages except messages sent by other bots.

+

3. Bots with privacy mode enabled will receive:

+
    +
  • Commands explicitly meant for them (e.g., /command@this_bot).
  • +
  • General commands from users (e.g. /start) if the bot was the last bot to send a message to the group.
  • +
  • Messages sent via this bot.
  • +
  • Replies to any messages implicitly or explicitly meant for this bot.
  • +
+

Note that each particular message can only be available to one privacy-enabled bot at a time, i.e., a reply to bot A containing an explicit command for bot B or sent via bot C will only be available to bot A. Replies have the highest priority.

+

Why doesn't my bot see messages from other bots?

+

Bots talking to each other could potentially get stuck in unwelcome loops. To avoid this, we decided that bots will not be able to see messages from other bots regardless of mode.

+

Getting Updates

+

How do I get updates?

+

There are currently two ways of getting updates. You can either use long polling or Webhooks. Please note that it's not possible to get updates via long polling while an outgoing Webhook is set.

+

Long polling gives me the same updates again and again!

+

The getUpdates method returns the earliest 100 unconfirmed updates. To confirm an update, use the offset parameter when calling getUpdates like this:

+
offset = update_id of last processed update + 1
+

All updates with update_id less than or equal to offset will be marked as confirmed on the server and will no longer be returned.

+

I'm having problems with Webhooks.

+

If you've set up your webhook successfully, but are not getting any updates, please remember:

+
    +
  • You need a valid SSL certificate for webhooks to work.
  • +
  • To use a self-signed certificate, you need to upload your public key certificate using the certificate parameter in setWebhook. Please upload as InputFile, sending a String will not work.
  • +
  • Ports currently supported for Webhooks: 443, 80, 88, 8443.
  • +
  • Wildcard certificates may not be supported.
  • +
  • Redirects are not supported.
  • +
  • CN must exactly match your domain.
  • +
+
+

Please check out this new WEBHOOK GUIDE to learn all there is to know about webhooks!

+
+

I'm having trouble with my self-signed certificate!

+

Please take a look at this self-signed certificate guide we made just for you. If you've read it and still have a question, ping us on botsupport.

+

How can I make sure that Webhook requests are coming from Telegram?

+

If you'd like to make sure that the Webhook request comes from Telegram, we recommend using a secret path in the URL you give us, e.g. www.example.com/your_token. Since nobody else knows your bot's token, you can be pretty sure it's us.

+

How can I make requests in response to updates?

+

This is possible if you're using webhooks. The upside is that you need less requests, the downside — that in this case it's not possible to know that such a request was successful or get its result.

+

Whenever you receive a webhook update, you have two options:

+

1. Issue POST to https://api.telegram.org/bot<token>/method

+
+ +
+ +

2. Reply directly and give method as JSON payload in the reply

+
+
+ +
+

You may also want to look at our sample HelloBot, it offers a PHP implementation of this.

+
+

Handling Media

+

How do I download files?

+

Use the getFile method. Please note that this will only work with files of up to 20 MB in size.

+

How do I upload a large file?

+

Bots can currently send files of any type of up to 50 MB in size, so yes, very large files won't work for now. Sorry. This limit may be changed in the future.

+

Can I count on file_ids to be persistent?

+

Yes, file_ids can be treated as persistent.

+

Broadcasting to Users

+

My bot is hitting limits, how do I avoid this?

+

When sending messages inside a particular chat, avoid sending more than one message per second. We may allow short bursts that go over this limit, but eventually you'll begin receiving 429 errors.

+

If you're sending bulk notifications to multiple users, the API will not allow more than 30 messages per second or so. Consider spreading out notifications over large intervals of 8—12 hours for best results.

+

Also note that your bot will not be able to send more than 20 messages per minute to the same group.

+

How can I message all of my bot's subscribers at once?

+

Unfortunately, at this moment we don't have methods for sending bulk messages, e.g. notifications. We may add something along these lines in the future.

+

In order to avoid hitting our limits when sending out mass notifications, consider spreading them over longer intervals, e.g. 8-12 hours. The API will not allow bulk notifications to more than ~30 users per second, if you go over that, you'll start getting 429 errors.

+

See also: How to avoid hitting limits?

+
+
+

If you've got questions that are not answered on this page, ping us at @BotSupport in Telegram.
We welcome any suggestions for the Bot Platform and API.

+
+
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/bots/games.html b/data/web/blogfork.telegram.org/bots/games.html new file mode 100644 index 0000000000..03b7ef7fdd --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/games.html @@ -0,0 +1,188 @@ + + + + + Gaming Platform + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Gaming Platform

+ +
+ +
+ +
+ +

Bots can offer their users HTML5 games to play solo or to compete against each other in groups and one-on-one chats. Games are a new type of content on Telegram that your bot can send to users.

+
+

+
+ +
+

This introduction is meant for bot developers. Click here, in case you'd like something more user-friendly.
Check out the @gamebot and @gamee bots for examples of what you can do using the new Gaming Platform.

+
+

Creating a Game

+

To get started, send the /newgame command to @BotFather.You will be prompted for a description text and a photo. You can also upload an optional GIF animation that demostrates your game to the users to make messages with the game more attractive (check out Lumberjack or Corsairs for examples).

+

Launching the Game

+

Once the game is created, your bot can send it to chats as regular messages, or offer them via inline mode. The game message will always have an inline Play button.

+

When this button is pressed, your bot gets a callback query that indicates the requested game. You provide the correct URL for this particular user and the app automatically opens the game in the in-app browser.

+

Adding Buttons

+

If you send the game message without any buttons, it will automatically have a 'Play GameName' button. You can manually add multiple buttons to your game message. Please note that the first button in the first row must always be the one that launches the game. You can add more buttons: e.g., for a description of the rules, or a button that links to the game's official community.

+

Tracking High Scores

+

The message with your game will also display high scores for the current chat. When a new high score is set, a service message will be sent to the chat and the message with the current scoreboard will be updated. You can also request the necessary data for building in-game high score tables.

+
+
+ +

+ +

+ +

Sharing Your Game to Telegram Chats

+

There are many way for users to spread your game virally if they like it. The interface will always have the standard system button for sharing the game in the top right corner:

+
+ + +

+ +
+ + + +

You can also create an additional Share button inside your HTML page. Pressing this button will send the game to a desired chat along with the user's best score in the game.

+
+ + + + + +

+ + +

To add the sharing button, include this script at the end of the <body> tag on your page:

+
<script src="https://telegram.org/js/games.js"></script>
+

Then use the method TelegramGameProxy.shareScore() to call the sharing option.

+
+

Warning: Do not call this method without consent and direct action from the user.

+
+

Example:

+
<button onclick="TelegramGameProxy.shareScore()">Share score</button>
+

This library will only work when launched from inside Telegram, so please don't use it on ordinary web pages.

+

Using URL Parameters

+

If your URL is using a fragment identifier, please note that Telegram Apps could add certain service parameters to the fragment id. The names for such parameters will start in tg (you can check the code that adds them here). Use the TelegramGameProxy.initParams object if you need to read your own parameters from the fragment id.

+

Creating a Great HTML5 Experience

+

Please make sure that your HTML5 page is responsive and works well on all Telegram apps and supported platforms. If you find it impossible to support certain conditions or platforms, don't leave your users hanging and at least provide a notification.

+
+

See the Bot API Manual for the relevant methods and objects.

+
+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/bots/inline.html b/data/web/blogfork.telegram.org/bots/inline.html new file mode 100644 index 0000000000..b82ee6c68d --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/inline.html @@ -0,0 +1,191 @@ + + + + + Inline Bots + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Inline Bots

+ +
+ +
+ +
+ +

Beyond sending commands in private messages or groups, users can interact with your bot via inline queries. If inline queries are enabled, users can call your bot by typing its username and a query in the text input field in any chat. The query is sent to your bot in an update. This way, people can request content from your bot in any of their chats, groups, or channels without sending any messages at all.

+
+
+
+
+ + +

To enable this option, send the /setinline command to @BotFather and provide the placeholder text that the user will see in the input field after typing your bot’s name.

+
+

See the Bot API Manual for the relevant methods and objects.

+
+

Inline results

+

Inline bots support all types of content available in Telegram (20 in all). They are capable of sending stickers, videos, music, locations, documents and more.

+
+
+
+ +
+ +

Clients can display the results with vertical or horizontal scrolling, depending on the type of content:

+
+ + + + + +
+
+
+ +

As soon as the user taps on an item, it's immediately sent to the recipient, and the input field is cleared.

+

Switching inline/PM modes

+

Some inline bots can benefit from an initial setup process, like connecting them to an account on an external service (e.g., YouTube). We've added an easy way of switching between the private chat with a bot and whatever chat the user wants to share inline results in.

+
+

+ +
+ +

You can display a special 'Switch to PM' button above the inline results (or instead of them). This button will open a private chat with the bot and pass a parameter of your choosing, so that you can prompt the user for the relevant setup actions. Once done, you can use an inline keyboard with a switch_inline_query button to send the user back to the original chat.

+

Sample bots
@youtube – Shows a 'Sign in to YouTube' button, then suggests personalized results.

+
+

Manual: Switch to PM

+
+

Location-based results

+

Inline bots can request location data from their users. Use the /setinlinegeo command with @BotFather to enable this. Your bot will ask the user for permission to access their location whenever they send an inline request.

+

Sample bot
@foursquare – This bot will ask for permission to access the user's location, then provide geo-targeted results.

+

Spreading virally

+

Messages sent with the help of your bot will show its username next to the sender's name.

+
+ + + + + +

+
+ +

When a user taps on the bot username in the message header, the mention is automatically inserted into the input field. Entering the @ symbol in the input field brings up a list of suggestions, featuring recently used inline bots.

+

Collecting feedback

+

To know which of the provided results your users are sending to their chat partners, send @Botfather the /setinlinefeedback command. With this enabled, you will receive updates on the results chosen by your users.

+

Please note that this can create load issues for popular bots – you may receive more results than actual requests due to caching (see the cache_time parameter in answerInlineQuery). For these cases, we recommend adjusting the probability setting to receive 1/10, 1/100 or 1/1000 of the results.

+

Inline bot samples

+

Here are some sample inline bots, in case you’re curious to see one in action. Try any of these:
@gif – GIF search
@vid – Video search
@pic – Yandex image search
@bing – Bing image search
@wiki – Wikipedia search
@imdb – IMDB search
@bold – Make bold, italic or fixed sys text

+

NEW
@youtube - Connect your account for personalized results
@music - Search and send classical music
@foursquare – Find and send venue addresses
@sticker – Find and send stickers based on emoji

+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/bots/payments.html b/data/web/blogfork.telegram.org/bots/payments.html new file mode 100644 index 0000000000..6556f6645c --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/payments.html @@ -0,0 +1,743 @@ + + + + + Bot Payments API + + + + + + + + + + + + + + + + +
+ +
+
+
+
+

Bot Payments API

+ +
+ +
+ +
+ +

Telegram Bot Payments are a free and open platform that allows sellers to accept payments for goods and services from Telegram users. Telegram doesn't collect payment information and takes no commission.

+
+

Note: This article is intended for bot developers and store owners. If you're looking for a general overview of Telegram Payments, check out the Telegram blog.

+
+

If you are new to Telegram bots and would like to learn how to create and set up a bot, please consult our Introduction to Bots and Bot FAQ.

+

Introducing Payments 2.0

+

Payments 2.0 were added in April 2021 with Bot API v.5.2. New features:

+
    +
  • Send invoices to any chat, including to groups and channels.
  • +
  • Create invoices that can be forwarded and used by multiple buyers to order things.
  • +
  • Use inline mode to help users show your goods and services to their friends and communities.
  • +
  • Allow tips from users with preset and custom amounts.
  • +
  • Accept payments from users on mobile or desktop apps.
  • +
  • Try @ShopBot to create a test invoice – or start a message with @ShopBot ... in any chat for an inline invoice.
  • +
  • Check out Demo Shop for an example of a Telegram Channel used as virtual storefront.
  • +
+
+ +
+ +
+

Users need to update to Telegram 7.7 or higher to use Payments 2.0 (for Telegram Desktop, 2.7.2 or higher). Older mobile apps released after May 2017 support basic payments in chats with bots.

+
+

How does this work?

+

You create a bot that offers goods and services to Telegram users. Merchant bots can send specially formatted invoice messages to users, groups or channels. If your bot supports inline mode, users can also send invoices to other chats via the bot, including to one-on-one chats with other users.

+
+ +
+ +

Invoice messages feature a photo and description of the product along with a prominent Pay button. Tapping this button opens a special payment interface in the Telegram app. In this interface, users can choose a tip amount (if allowed by the merchant) and enter additional details like shipping info, phone number, or email address.

+

The bot can offer several shipping options for physical goods based on the delivery address. When ready, users enter their credit card info or choose a saved card — and pay for the product. Telegram also supports Apple Pay and Google Pay. Once the transaction is done, the merchant bot can send a receipt message with payment details, shipping and delivery information.

+
+

Detailed information and step-by-step instructions are available below.

+
+

Supported Payment Providers

+

Telegram does not process payments from users and instead relies on different payment providers around the world. It is the payment providers that handle and store all sensitive information, like credit card details. Neither Telegram nor the bot developers have access to it.

+

For the moment we support payments from more than 200 countries via the following payment providers:

+ +

We continue expanding this list, follow @BotNews for updates.

+
+

If you work for a company that provides services similar to standalone accounts in Stripe Connect, please let us know via @BotSupport (include the hashtag #paymentsprovider in your message).

+
+
+

The Payments API

+

This section explores payments via Telegram's Bot API in more detail.

+

Connecting Payments

+

To start accepting payments, you need a Telegram bot. Use BotFather to create a bot if you don't have one already.

+

Now you have a merchant bot that can offer goods or services to Telegram users. Let's call it @merchantbot in this document. The first stop is to choose and connect a payment provider, you can find the list of supported providers above.

+

Getting a Token

+
    +
  • Use the /mybots command in the chat with BotFather and choose the @merchantbot that will be offering goods or services.
  • +
  • Go to Bot Settings > Payments.
  • +
  • Choose a provider, and you will be redirected to the relevant bot.
  • +
  • Enter the required details so that the payments provider is connected successfully, go back to the chat with Botfather.
  • +
  • The message will now show available providers. Each will have a name, a token, and the date the provider was connected.
  • +
  • You will use the token when working with the Bot API.
  • +
+

Implementing Payments

+

You will find the necessary methods for building your payment implementation in the Payments Section of the Bot API Manual.

+

Testing Payments: the 'Stripe TEST MODE' Provider

+

While you're still developing and testing payments for your bot, use the “Stripe TEST MODE” provider. When in this mode, you can make payments without actually billing any accounts. Real cards can't be used in test mode, but you can use test cards like 4242 4242 4242 4242 (full list here). You can switch between test mode and live mode as many times as you want, but please see the live checklist before you go live.

+

Step-by-Step Process

+
+

See Bot API: Payments for the complete list of available methods and objects.

+
+

1. Create Invoice

+

The user contacts @merchantbot and requests to purchase something. The bot forms an invoice message with a description of the goods or service, amount to be paid, and requested shipping info. There are two ways of creating an invoice:

+
A. Bot Invoice
+

Use the sendInvoice method to generate an invoice and send it to a chat. The provider_token parameter is where you put the token value that you've obtained earlier via Botfather. It is possible for one merchant bot to use several different tokens for different users or different goods and services.

+

As of Payments 2.0, invoice messages with a pay button can be sent to chats of any type: private chats with the user, groups, or channels. The resulting invoice message will look like this:

+
+ +

Bot Invoice

+ +
B. Inline Invoice
+

If @merchantbot supports inline mode, you can use inputInvoiceMessageContent to allow users to share invoices for your goods and services to their one-on-one chats with friends, or to their groups and channels. These invoices will have a Pay button that can be used multiple times.

+
+ +

Inline Invoice

+ +

2. Choose Forwarding Behavior

+

As of Payments 2.0 there are two ways for handling forwarded copies of your invoices, controlled by the parameter start_parameter in the sendInvoice method.

+
    +
  • A. Multi-chat invoice. Forwarded copies show a Pay button, which multiple users can press and attempt to pay for the goods or services. Inline invoices are always multi-chat invoices.
  • +
  • B. Single-chat invoice. Invoice can only be paid from the chat to which it was sent, forwarded copies show a URL button with a deep link to the bot. The deep link can be used to generate a similar invoice in the chat with the bot, to show an error message, or for other purposes. More info on Deep Linking »
  • +
+

If a single-chat invoice is sent to the chat with @merchantbot, it can only be paid once. If a single-chat invoice is sent to any other chat, it can be paid many times by many users.

+
+

To get a better understanding of how this works, try toggling the “Pay from Forwards” parameter when creating invoices with our demo @ShopBot.

+
+

Regardless of whether or not the Pay button is available in an invoice, the merchant bot always has the power to decide whether or not to accept new payments for a particular invoice.

+

3. Tips (optional step)

+

If the max_tip_amount parameter is set to above 0, users can add a tip to their payment. You can use the parameter suggested_tip_amounts to suggest particular amounts that you feel will be relevant for the invoice.

+
+ +

Adding Tips

+ +

4. Shipping info and other details (optional step)

+

The user specifies shipping information or other info requested by the bot. This could be the user's full name, an email address, a phone number in international format, or a full postal address for delivery.

+
+ +

Shipping Info

+ +

5. Offer delivery options based on shipping address (optional step)

+

If a shipping address was requested and you included the parameter is_flexible, the Bot API will send an Update with a shipping_query field to the bot. The bot must respond using answerShippingQuery either with a list of possible delivery options and the relevant delivery prices, or with an error (for example, if delivery to the specified address is not possible).

+
+

Tip: It is recommended that the merchant bot confirms availability of the goods/services at this step – to let the user know in case they are no longer available. This is especially important if you are using multi-chat, inline or single-chat, multi-use invoices.

+
+

6. Select delivery option (optional step)

+

The user selects a delivery option from the list (the overall amount to be paid may change at this point) and proceeds to checkout.

+
+ +

Choose Delivery Option

+ +

7. Pre-Checkout

+

The user enters their payment information and presses the final pay button. At this moment the Bot API sends an Update with the field pre_checkout_query to the bot that contains all the available information about the order. Your bot must reply using answerPrecheckoutQuery within 10 seconds after receiving this update or the transaction is canceled.

+

The bot may return an error if it can't process the order for any reason. We highly recommend specifying a reason for failure to complete the order in human readable form (e.g. "Sorry, we're all out of rubber ducks! Would you be interested in a cast iron bear instead?"). Telegram will display this reason to the user.

+
+

Warning: As of Payments 2.0, it is critical to make sure your bot only accepts multiple payments when the order can be processed correctly. This is especially important if you are using multi-chat, inline or single-chat, multi-use invoices.

+
+

8. Checkout

+

In case the bot confirms the order, Telegram requests the payment provider to complete the transaction. If the payment information was entered correctly and the payment goes through, the API will send a receipt message of the type successful_payment from the user. Once your bot receives this message, it should proceed with delivering the goods or services purchased by the user.

+

If the invoice message was sent in the chat with @merchantbot, it becomes a Receipt in the UI for the user — they can open this receipt at any time and see all the details of the transaction:

+
+ +

Receipt

+ +

If the message was sent to any other chat, the Pay button remains and can be used again. It is up to the merchant bot whether to actually accept multiple payments.

+

Going Live

+

Once you've tested everything and confirmed that your payments implementation works, you're ready to switch to LIVE MODE. To do this, go to BotFather > /mybots > select @merchantbot > Bot Settings / Payments and enable Stripe LIVE MODE. You will get a token that has the string :LIVE: in the middle, e.g. 123:LIVE:XXXX. Do not give this token to any third parties!

+

Before your merchant bot goes into live mode, please ensure the following:

+

Live Checklist

+
    +
  • We highly recommend turning on 2-step verification for the Telegram account that controls your bot.
  • +
  • You as the bot owner have full responsibility in case any conflicts or disputes arise. You must be prepared to correctly process disputes and chargebacks (in the case of Stripe, see here).
  • +
  • To prevent any misunderstandings and possible legal issues, make sure your bot can respond to a /terms command (or offers a similarly easy way of accessing your Terms and Conditions). Your Terms and Conditions should be written in a clear way and easy to understand for your users. The users must confirm that they have read and agree to your terms before they make the purchase.
  • +
  • Your bot must provide support for its customers, either by responding to a /support command or by some other clearly communicated means. Users must have a clear way of contacting you about their purchases and you must process their support requests in a timely fashion. You must notify your users that Telegram support or bot support will not able to help them with purchases made via your bot.
  • +
  • Make sure that your server hardware and software is stable. Use backups to make sure that you don't lose data about your users' payments.
  • +
  • Make sure that you have completed the live checklist for your selected payments provider as well as this one.
  • +
+
+

FAQ

+

How do I join as a payment provider?

+

If you work for a company that provides services similar to standalone accounts in Stripe Connect, please let us know via @BotSupport (kindly include the hashtag #paymentsprovider in your message).

+

How much do you charge?

+

Telegram does not charge any commission for using the Payments API. Note though, that most payment providers will have their own commissions. For example, Stripe in the US charges 2.9% + 30¢ per successful card charge (see the Stripe website for more details on pricing).

+

Do I need a bot to accept payments?

+

Yes. If you are not a developer, you will need to either hire someone to make a bot for you (recommended), or use a bot created by a third-party company. We advise extreme caution when using services of bots that process payments for you – Telegram doesn't maintain any such bots and doesn't endorse any of the third-party bots offering these services.

+

What can my bot sell?

+

Telegram does not impose any limits on what products or services your bot can offer. But please note that you must comply with the rules of the payments provider you choose in our system. E.g., Stripe has a special page for prohibited businesses – you may want to consult that one before you start selling harvested organs.

+

Special Note: Due to Apple's limitations, bot developers are currently not allowed to accept payments for digital goods and virtual services from iOS users.

+

How are disputes handled?

+

Telegram acts as a messenger between the paying user, the bot developer, and their chosen payment system. The user sends their credit card details directly to the payment system. Then the payment system's response and the shipping details entered by the user are passed to the bot developer so that they can process the order.

+

Since Telegram doesn‘t process the payments, we don’t store and can‘t access any sensitive data. Due to this structure, it is impossible for Telegram to handle complaints or cashbacks – any disputed payments are the responsibility of the bot developers, payment providers, and banks that participated in the exchange.

+
+

See also: Telegram Privacy Policy

+
+

How do I support payments in my third-party app that uses the Telegram API?

+

You are welcome to study the MTProto payment documentation.

+

Supported Currencies

+

Telegram payments currently support the currencies listed below (here's a JSON version in case you need it).

+

If you're using Stripe as the payments provider, supported currencies may vary depending on the country you have specified in your Stripe account (more info).

+

The minimum and maximum amounts for each of the currencies roughly correspond to the limit of US$ 1-10000. The amount must be expressed in 12 digits or less, so the maximum value will be correspondingly lower for some lower-value currencies. Note that for each currency except USD these limits depend on exchange rates and may change over time (plan ahead for this when you implement limits in your code).

+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTitleMin amountMax amount
AEDUnited Arab Emirates DirhamAED 3.67AED 36,730.15
AFNAfghan AfghaniAFN88.35AFN883,589.85
ALLAlbanian Lek116,15ALL1.161.583,07ALL
AMDArmenian Dram464.91 AMD4,649,159.99 AMD
ARSArgentine PesoARS 117,25ARS 1.172.572,36
AUDAustralian DollarAU$1.44AU$14,496.12
AZNAzerbaijani Manat1,69 AZN16 950,79 AZN
BAMBosnia & Herzegovina Convertible Mark1,88 BAM18.842,47 BAM
BDTBangladeshi TakaBDT 87.20BDT 872,042.12
BGNBulgarian Lev1,87 BGN18 786,43 BGN
BNDBrunei DollarBND1,40BND14.023,17
BOBBolivian BolivianoBOB 6,91BOB 69.129,76
BRLBrazilian RealR$ 5,13R$ 51.347,52
CADCanadian DollarCA$1.30CA$13,006.30
CHFSwiss Franc1.00 CHF10'006.02 CHF
CLPChilean PesoCLP 865CLP 8.656.598
CNYChinese Renminbi YuanCN¥6.77CN¥67,799.03
COPColombian PesoCOP 4.110,49COP 41.104.900,00
CRCCosta Rican ColónCRC673,32CRC6.733.271,35
CZKCzech Koruna23,94 CZK239 490,10 CZK
DKKDanish Krone7,14 DKK71482,29 DKK
DOPDominican PesoDOP55.36DOP553,681.62
DZDAlgerian DinarDZD 146.28DZD 1,462,829.90
EGPEgyptian PoundEGP 18.31EGP 183,167.98
EUREuro0,96 €9 606,30 €
GBPBritish Pound£0.81£8,184.70
GELGeorgian Lari3,03 GEL30 349,69 GEL
GTQGuatemalan QuetzalGTQ7.71GTQ77,117.37
HKDHong Kong DollarHK$7.84HK$78,499.50
HNLHonduran LempiraHNL 24.69HNL 246,905.02
HRKCroatian Kuna7,22 HRK72.266,02 HRK
HUFHungarian Forint369,24 HUF3 692 459,93 HUF
IDRIndonesian RupiahIDR14.627,55IDR146.275.500,00
ILSIsraeli New Sheqel₪ 3.40₪ 34,077.15
INRIndian Rupee₹77.30₹773,028.50
ISKIcelandic Króna134 ISK1.341.900 ISK
JMDJamaican DollarJMD156.22JMD1,562,260.95
JPYJapanese Yen¥128¥1,288,124
KESKenyan ShillingKES116.15KES1,161,500.66
KGSKyrgyzstani Som82-67 KGS826 741-00 KGS
KRWSouth Korean Won₩1,280₩12,809,399
KZTKazakhstani TengeKZT436-24KZT4 362 469-77
LBPLebanese PoundLBP 1,520.53LBP 15,205,348.80
LKRSri Lankan RupeeLKR 372.04LKR 3,720,444.32
MADMoroccan DirhamMAD 10.15MAD 101,544.33
MDLMoldovan Leu19.05 MDL190,547.12 MDL
MNTMongolian TögrögMNT3 048,80MNT30 488 015,99
MURMauritian RupeeMUR42.99MUR429,952.60
MVRMaldivian Rufiyaa15.45 MVR154,501.97 MVR
MXNMexican PesoMX$20.17MX$201,746.60
MYRMalaysian RinggitMYR4.39MYR43,925.02
MZNMozambican MeticalMZN63.82MZN638,298.64
NGNNigerian NairaNGN415.32NGN4,153,299.95
NIONicaraguan CórdobaNIO 36.01NIO 360,151.26
NOKNorwegian KroneNOK 9,84NOK 98 411,98
NPRNepalese RupeeNPR124.63NPR1,246,332.83
NZDNew Zealand DollarNZ$1.59NZ$15,994.00
PABPanamanian BalboaPAB 1.00PAB 10,055.01
PENPeruvian Nuevo SolPEN 3.80PEN 38,084.18
PHPPhilippine PesoPHP52.40PHP524,060.26
PKRPakistani RupeePKR192.81PKR1,928,113.26
PLNPolish Złoty4,48 PLN44 881,20 PLN
PYGParaguayan GuaraníPYG 6.914PYG 69.149.028
QARQatari RiyalQAR 3.64QAR 36,407.50
RONRomanian Leu4,75 RON47.515,99 RON
RSDSerbian Dinar112,94 RSD1.129.409,05 RSD
RUBRussian Ruble62,91 RUB629 149,79 RUB
SARSaudi RiyalSAR 3.75SAR 37,509.37
SEKSwedish Krona10,09 SEK100.994,11 SEK
SGDSingapore DollarSGD1.39SGD13,943.95
THBThai Baht฿34.74฿347,460.62
TJSTajikistani Somoni12;54 TJS125 440;76 TJS
TRYTurkish Lira15,46 TRY154.615,25 TRY
TTDTrinidad and Tobago DollarTTD6.83TTD68,331.10
TWDNew Taiwan DollarNT$29.79NT$297,952.99
TZSTanzanian ShillingTZS2,324.99TZS23,249,998.70
UAHUkrainian Hryvnia29,71UAH297 124,66UAH
UGXUgandan ShillingUGX3,622UGX36,228,323
USDUnited States Dollar$1.00$10,000.00
UYUUruguayan PesoUYU 41,90UYU 419.006,15
UZSUzbekistani Som11 227,61 UZS112 276 129,83 UZS
VNDVietnamese Đồng23.091 ₫230.915.000 ₫
YERYemeni RialYER 250.24YER 2,502,498.91
ZARSouth African RandZAR 16.03ZAR 160,303.39

+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/bots/payments/currencies.json b/data/web/blogfork.telegram.org/bots/payments/currencies.json new file mode 100644 index 0000000000..86c3a410e2 --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/payments/currencies.json @@ -0,0 +1 @@ +{"AED":{"code":"AED","title":"United Arab Emirates Dirham","symbol":"AED","native":"د.إ.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"367","max_amount":"3673015"},"AFN":{"code":"AFN","title":"Afghan Afghani","symbol":"AFN","native":"؋","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"8835","max_amount":"88358985"},"ALL":{"code":"ALL","title":"Albanian Lek","symbol":"ALL","native":"Lek","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":false,"exp":2,"min_amount":"11615","max_amount":"116158307"},"AMD":{"code":"AMD","title":"Armenian Dram","symbol":"AMD","native":"դր.","thousands_sep":",","decimal_sep":".","symbol_left":false,"space_between":true,"exp":2,"min_amount":"46491","max_amount":"464915999"},"ARS":{"code":"ARS","title":"Argentine Peso","symbol":"ARS","native":"$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"exp":2,"min_amount":"11725","max_amount":"117257236"},"AUD":{"code":"AUD","title":"Australian Dollar","symbol":"AU$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"144","max_amount":"1449612"},"AZN":{"code":"AZN","title":"Azerbaijani Manat","symbol":"AZN","native":"ман.","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"169","max_amount":"1695079"},"BAM":{"code":"BAM","title":"Bosnia & Herzegovina Convertible Mark","symbol":"BAM","native":"KM","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"188","max_amount":"1884247"},"BDT":{"code":"BDT","title":"Bangladeshi Taka","symbol":"BDT","native":"৳","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"8720","max_amount":"87204212"},"BGN":{"code":"BGN","title":"Bulgarian Lev","symbol":"BGN","native":"лв.","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"187","max_amount":"1878643"},"BND":{"code":"BND","title":"Brunei Dollar","symbol":"BND","native":"$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":false,"exp":2,"min_amount":"140","max_amount":"1402317"},"BOB":{"code":"BOB","title":"Bolivian Boliviano","symbol":"BOB","native":"Bs","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"exp":2,"min_amount":"691","max_amount":"6912976"},"BRL":{"code":"BRL","title":"Brazilian Real","symbol":"R$","native":"R$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"exp":2,"min_amount":"513","max_amount":"5134752"},"CAD":{"code":"CAD","title":"Canadian Dollar","symbol":"CA$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"130","max_amount":"1300630"},"CHF":{"code":"CHF","title":"Swiss Franc","symbol":"CHF","native":"CHF","thousands_sep":"'","decimal_sep":".","symbol_left":false,"space_between":true,"exp":2,"min_amount":"100","max_amount":"1000602"},"CLP":{"code":"CLP","title":"Chilean Peso","symbol":"CLP","native":"$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"exp":0,"min_amount":"865","max_amount":"8656598"},"CNY":{"code":"CNY","title":"Chinese Renminbi Yuan","symbol":"CN¥","native":"CN¥","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"677","max_amount":"6779903"},"COP":{"code":"COP","title":"Colombian Peso","symbol":"COP","native":"$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"exp":2,"min_amount":"411049","max_amount":"4110490000"},"CRC":{"code":"CRC","title":"Costa Rican Colón","symbol":"CRC","native":"₡","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":false,"exp":2,"min_amount":"67332","max_amount":"673327135"},"CZK":{"code":"CZK","title":"Czech Koruna","symbol":"CZK","native":"Kč","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"2394","max_amount":"23949010"},"DKK":{"code":"DKK","title":"Danish Krone","symbol":"DKK","native":"kr","thousands_sep":"","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"714","max_amount":"7148229"},"DOP":{"code":"DOP","title":"Dominican Peso","symbol":"DOP","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"5536","max_amount":"55368162"},"DZD":{"code":"DZD","title":"Algerian Dinar","symbol":"DZD","native":"د.ج.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"14628","max_amount":"146282990"},"EGP":{"code":"EGP","title":"Egyptian Pound","symbol":"EGP","native":"ج.م.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"1831","max_amount":"18316798"},"EUR":{"code":"EUR","title":"Euro","symbol":"€","native":"€","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"96","max_amount":"960630"},"GBP":{"code":"GBP","title":"British Pound","symbol":"£","native":"£","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"81","max_amount":"818470"},"GEL":{"code":"GEL","title":"Georgian Lari","symbol":"GEL","native":"GEL","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"303","max_amount":"3034969"},"GTQ":{"code":"GTQ","title":"Guatemalan Quetzal","symbol":"GTQ","native":"Q","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"771","max_amount":"7711737"},"HKD":{"code":"HKD","title":"Hong Kong Dollar","symbol":"HK$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"784","max_amount":"7849950"},"HNL":{"code":"HNL","title":"Honduran Lempira","symbol":"HNL","native":"L","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"2469","max_amount":"24690502"},"HRK":{"code":"HRK","title":"Croatian Kuna","symbol":"HRK","native":"kn","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"722","max_amount":"7226602"},"HUF":{"code":"HUF","title":"Hungarian Forint","symbol":"HUF","native":"Ft","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"36924","max_amount":"369245993"},"IDR":{"code":"IDR","title":"Indonesian Rupiah","symbol":"IDR","native":"Rp","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":false,"exp":2,"min_amount":"1462755","max_amount":"14627550000"},"ILS":{"code":"ILS","title":"Israeli New Sheqel","symbol":"₪","native":"₪","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"340","max_amount":"3407715"},"INR":{"code":"INR","title":"Indian Rupee","symbol":"₹","native":"₹","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"7730","max_amount":"77302850"},"ISK":{"code":"ISK","title":"Icelandic Króna","symbol":"ISK","native":"kr","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"exp":0,"min_amount":"134","max_amount":"1341900"},"JMD":{"code":"JMD","title":"Jamaican Dollar","symbol":"JMD","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"15622","max_amount":"156226095"},"JPY":{"code":"JPY","title":"Japanese Yen","symbol":"¥","native":"¥","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":0,"min_amount":"128","max_amount":"1288124"},"KES":{"code":"KES","title":"Kenyan Shilling","symbol":"KES","native":"Ksh","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"11615","max_amount":"116150066"},"KGS":{"code":"KGS","title":"Kyrgyzstani Som","symbol":"KGS","native":"KGS","thousands_sep":" ","decimal_sep":"-","symbol_left":false,"space_between":true,"exp":2,"min_amount":"8267","max_amount":"82674100"},"KRW":{"code":"KRW","title":"South Korean Won","symbol":"₩","native":"₩","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":0,"min_amount":"1280","max_amount":"12809399"},"KZT":{"code":"KZT","title":"Kazakhstani Tenge","symbol":"KZT","native":"₸","thousands_sep":" ","decimal_sep":"-","symbol_left":true,"space_between":false,"exp":2,"min_amount":"43624","max_amount":"436246977"},"LBP":{"code":"LBP","title":"Lebanese Pound","symbol":"LBP","native":"ل.ل.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"152053","max_amount":"1520534880"},"LKR":{"code":"LKR","title":"Sri Lankan Rupee","symbol":"LKR","native":"රු.","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"37204","max_amount":"372044432"},"MAD":{"code":"MAD","title":"Moroccan Dirham","symbol":"MAD","native":"د.م.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"1015","max_amount":"10154433"},"MDL":{"code":"MDL","title":"Moldovan Leu","symbol":"MDL","native":"MDL","thousands_sep":",","decimal_sep":".","symbol_left":false,"space_between":true,"exp":2,"min_amount":"1905","max_amount":"19054712"},"MNT":{"code":"MNT","title":"Mongolian Tögrög","symbol":"MNT","native":"MNT","thousands_sep":" ","decimal_sep":",","symbol_left":true,"space_between":false,"exp":2,"min_amount":"304880","max_amount":"3048801599"},"MUR":{"code":"MUR","title":"Mauritian Rupee","symbol":"MUR","native":"MUR","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"4299","max_amount":"42995260"},"MVR":{"code":"MVR","title":"Maldivian Rufiyaa","symbol":"MVR","native":"MVR","thousands_sep":",","decimal_sep":".","symbol_left":false,"space_between":true,"exp":2,"min_amount":"1545","max_amount":"15450197"},"MXN":{"code":"MXN","title":"Mexican Peso","symbol":"MX$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"2017","max_amount":"20174660"},"MYR":{"code":"MYR","title":"Malaysian Ringgit","symbol":"MYR","native":"RM","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"439","max_amount":"4392502"},"MZN":{"code":"MZN","title":"Mozambican Metical","symbol":"MZN","native":"MTn","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"6382","max_amount":"63829864"},"NGN":{"code":"NGN","title":"Nigerian Naira","symbol":"NGN","native":"₦","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"41532","max_amount":"415329995"},"NIO":{"code":"NIO","title":"Nicaraguan Córdoba","symbol":"NIO","native":"C$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"3601","max_amount":"36015126"},"NOK":{"code":"NOK","title":"Norwegian Krone","symbol":"NOK","native":"kr","thousands_sep":" ","decimal_sep":",","symbol_left":true,"space_between":true,"exp":2,"min_amount":"984","max_amount":"9841198"},"NPR":{"code":"NPR","title":"Nepalese Rupee","symbol":"NPR","native":"नेरू","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"12463","max_amount":"124633283"},"NZD":{"code":"NZD","title":"New Zealand Dollar","symbol":"NZ$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"159","max_amount":"1599400"},"PAB":{"code":"PAB","title":"Panamanian Balboa","symbol":"PAB","native":"B\/.","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"100","max_amount":"1005501"},"PEN":{"code":"PEN","title":"Peruvian Nuevo Sol","symbol":"PEN","native":"S\/.","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"380","max_amount":"3808418"},"PHP":{"code":"PHP","title":"Philippine Peso","symbol":"PHP","native":"₱","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"5240","max_amount":"52406026"},"PKR":{"code":"PKR","title":"Pakistani Rupee","symbol":"PKR","native":"₨","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"19281","max_amount":"192811326"},"PLN":{"code":"PLN","title":"Polish Złoty","symbol":"PLN","native":"zł","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"448","max_amount":"4488120"},"PYG":{"code":"PYG","title":"Paraguayan Guaraní","symbol":"PYG","native":"₲","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"exp":0,"min_amount":"6914","max_amount":"69149028"},"QAR":{"code":"QAR","title":"Qatari Riyal","symbol":"QAR","native":"ر.ق.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"364","max_amount":"3640750"},"RON":{"code":"RON","title":"Romanian Leu","symbol":"RON","native":"RON","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"475","max_amount":"4751599"},"RSD":{"code":"RSD","title":"Serbian Dinar","symbol":"RSD","native":"дин.","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"11294","max_amount":"112940905"},"RUB":{"code":"RUB","title":"Russian Ruble","symbol":"RUB","native":"руб.","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"6291","max_amount":"62914979"},"SAR":{"code":"SAR","title":"Saudi Riyal","symbol":"SAR","native":"ر.س.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"375","max_amount":"3750937"},"SEK":{"code":"SEK","title":"Swedish Krona","symbol":"SEK","native":"kr","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"1009","max_amount":"10099411"},"SGD":{"code":"SGD","title":"Singapore Dollar","symbol":"SGD","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"139","max_amount":"1394395"},"THB":{"code":"THB","title":"Thai Baht","symbol":"฿","native":"฿","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"3474","max_amount":"34746062"},"TJS":{"code":"TJS","title":"Tajikistani Somoni","symbol":"TJS","native":"TJS","thousands_sep":" ","decimal_sep":";","symbol_left":false,"space_between":true,"exp":2,"min_amount":"1254","max_amount":"12544076"},"TRY":{"code":"TRY","title":"Turkish Lira","symbol":"TRY","native":"TL","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"1546","max_amount":"15461525"},"TTD":{"code":"TTD","title":"Trinidad and Tobago Dollar","symbol":"TTD","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"683","max_amount":"6833110"},"TWD":{"code":"TWD","title":"New Taiwan Dollar","symbol":"NT$","native":"NT$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"2979","max_amount":"29795299"},"TZS":{"code":"TZS","title":"Tanzanian Shilling","symbol":"TZS","native":"TSh","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"232499","max_amount":"2324999870"},"UAH":{"code":"UAH","title":"Ukrainian Hryvnia","symbol":"UAH","native":"₴","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":false,"exp":2,"min_amount":"2971","max_amount":"29712466"},"UGX":{"code":"UGX","title":"Ugandan Shilling","symbol":"UGX","native":"USh","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":0,"min_amount":"3622","max_amount":"36228323"},"USD":{"code":"USD","title":"United States Dollar","symbol":"$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"exp":2,"min_amount":"100","max_amount":1000000},"UYU":{"code":"UYU","title":"Uruguayan Peso","symbol":"UYU","native":"$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"exp":2,"min_amount":"4190","max_amount":"41900615"},"UZS":{"code":"UZS","title":"Uzbekistani Som","symbol":"UZS","native":"UZS","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"exp":2,"min_amount":"1122761","max_amount":"11227612983"},"VND":{"code":"VND","title":"Vietnamese Đồng","symbol":"₫","native":"₫","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"exp":0,"min_amount":"23091","max_amount":"230915000"},"YER":{"code":"YER","title":"Yemeni Rial","symbol":"YER","native":"ر.ي.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"25024","max_amount":"250249891"},"ZAR":{"code":"ZAR","title":"South African Rand","symbol":"ZAR","native":"R","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"exp":2,"min_amount":"1603","max_amount":"16030339"}} \ No newline at end of file diff --git a/data/web/blogfork.telegram.org/bots/samples.html b/data/web/blogfork.telegram.org/bots/samples.html new file mode 100644 index 0000000000..3a2a73c93c --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/samples.html @@ -0,0 +1,252 @@ + + + + + Bot Code Examples + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Bot Code Examples

+ +
+

If you want to learn more about Telegram bots, start with our Introduction to Bots »
Check out the FAQ, if you have questions.

+
+

Many members of our community are building bots and libraries and publishing their source code. We collect these examples here. Ping us on BotSupport if you've built a bot and would like to share its code with others.

+

PHP

+ +

Node.js

+ +

Rust

+ +

Python

+ +

Ruby

+ +

Swift

+ +

Kotlin

+ +

Java

+ +

Go

+ +

Other Languages

+ +
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/bots/samples/hellobot.html b/data/web/blogfork.telegram.org/bots/samples/hellobot.html new file mode 100644 index 0000000000..09e9995abf --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/samples/hellobot.html @@ -0,0 +1,290 @@ + + + + + Hellobot + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Hellobot

+ +
+

This sample PHP bot demonstrates the basics of the Telegram Bot API.
If you have questions, try our FAQ or check out this page for more examples.

+
+

+ +
<?php
+
+define('BOT_TOKEN', '12345678:replace-me-with-real-token');
+define('API_URL', 'https://api.telegram.org/bot'.BOT_TOKEN.'/');
+
+function apiRequestWebhook($method, $parameters) {
+  if (!is_string($method)) {
+    error_log("Method name must be a string\n");
+    return false;
+  }
+
+  if (!$parameters) {
+    $parameters = array();
+  } else if (!is_array($parameters)) {
+    error_log("Parameters must be an array\n");
+    return false;
+  }
+
+  $parameters["method"] = $method;
+
+  $payload = json_encode($parameters);
+  header('Content-Type: application/json');
+  header('Content-Length: '.strlen($payload));
+  echo $payload;
+
+  return true;
+}
+
+function exec_curl_request($handle) {
+  $response = curl_exec($handle);
+
+  if ($response === false) {
+    $errno = curl_errno($handle);
+    $error = curl_error($handle);
+    error_log("Curl returned error $errno: $error\n");
+    curl_close($handle);
+    return false;
+  }
+
+  $http_code = intval(curl_getinfo($handle, CURLINFO_HTTP_CODE));
+  curl_close($handle);
+
+  if ($http_code >= 500) {
+    // do not wat to DDOS server if something goes wrong
+    sleep(10);
+    return false;
+  } else if ($http_code != 200) {
+    $response = json_decode($response, true);
+    error_log("Request has failed with error {$response['error_code']}: {$response['description']}\n");
+    if ($http_code == 401) {
+      throw new Exception('Invalid access token provided');
+    }
+    return false;
+  } else {
+    $response = json_decode($response, true);
+    if (isset($response['description'])) {
+      error_log("Request was successful: {$response['description']}\n");
+    }
+    $response = $response['result'];
+  }
+
+  return $response;
+}
+
+function apiRequest($method, $parameters) {
+  if (!is_string($method)) {
+    error_log("Method name must be a string\n");
+    return false;
+  }
+
+  if (!$parameters) {
+    $parameters = array();
+  } else if (!is_array($parameters)) {
+    error_log("Parameters must be an array\n");
+    return false;
+  }
+
+  foreach ($parameters as $key => &$val) {
+    // encoding to JSON array parameters, for example reply_markup
+    if (!is_numeric($val) && !is_string($val)) {
+      $val = json_encode($val);
+    }
+  }
+  $url = API_URL.$method.'?'.http_build_query($parameters);
+
+  $handle = curl_init($url);
+  curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
+  curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 5);
+  curl_setopt($handle, CURLOPT_TIMEOUT, 60);
+
+  return exec_curl_request($handle);
+}
+
+function apiRequestJson($method, $parameters) {
+  if (!is_string($method)) {
+    error_log("Method name must be a string\n");
+    return false;
+  }
+
+  if (!$parameters) {
+    $parameters = array();
+  } else if (!is_array($parameters)) {
+    error_log("Parameters must be an array\n");
+    return false;
+  }
+
+  $parameters["method"] = $method;
+
+  $handle = curl_init(API_URL);
+  curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
+  curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 5);
+  curl_setopt($handle, CURLOPT_TIMEOUT, 60);
+  curl_setopt($handle, CURLOPT_POST, true);
+  curl_setopt($handle, CURLOPT_POSTFIELDS, json_encode($parameters));
+  curl_setopt($handle, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
+
+  return exec_curl_request($handle);
+}
+
+function processMessage($message) {
+  // process incoming message
+  $message_id = $message['message_id'];
+  $chat_id = $message['chat']['id'];
+  if (isset($message['text'])) {
+    // incoming text message
+    $text = $message['text'];
+
+    if (strpos($text, "/start") === 0) {
+      apiRequestJson("sendMessage", array('chat_id' => $chat_id, "text" => 'Hello', 'reply_markup' => array(
+        'keyboard' => array(array('Hello', 'Hi')),
+        'one_time_keyboard' => true,
+        'resize_keyboard' => true)));
+    } else if ($text === "Hello" || $text === "Hi") {
+      apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => 'Nice to meet you'));
+    } else if (strpos($text, "/stop") === 0) {
+      // stop now
+    } else {
+      apiRequestWebhook("sendMessage", array('chat_id' => $chat_id, "reply_to_message_id" => $message_id, "text" => 'Cool'));
+    }
+  } else {
+    apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => 'I understand only text messages'));
+  }
+}
+
+
+define('WEBHOOK_URL', 'https://my-site.example.com/secret-path-for-webhooks/');
+
+if (php_sapi_name() == 'cli') {
+  // if run from console, set or delete webhook
+  apiRequest('setWebhook', array('url' => isset($argv[1]) && $argv[1] == 'delete' ? '' : WEBHOOK_URL));
+  exit;
+}
+
+
+$content = file_get_contents("php://input");
+$update = json_decode($content, true);
+
+if (!$update) {
+  // receive wrong update, must not happen
+  exit;
+}
+
+if (isset($update["message"])) {
+  processMessage($update["message"]);
+}
+
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/bots/self-signed.html b/data/web/blogfork.telegram.org/bots/self-signed.html new file mode 100644 index 0000000000..f2048f6339 --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/self-signed.html @@ -0,0 +1,164 @@ + + + + + Using self-signed certificates + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Using self-signed certificates

+ +

Upload your certificate using the certificate parameter in the setWebhook method. The certificate supplied should be PEM encoded (ASCII BASE64), the pem file should only contain the public key (including BEGIN and END portions). When converting from a bundle format, please split the file to only include the public key.

+

Generating a self-signed certificate pair (PEM):

+

Openssl

+
+

Windows binaries for Openssl are available online

+
+

openssl req -newkey rsa:2048 -sha256 -nodes -keyout YOURPRIVATE.key -x509 -days 365 -out YOURPUBLIC.pem -subj "/C=US/ST=New York/L=Brooklyn/O=Example Brooklyn Company/CN=YOURDOMAIN.EXAMPLE"

+

YOURPUBLIC.pem has to be used as input for setting the self-signed webhook.

+

You can inspect the generated certificate with:
openssl x509 -text -noout -in YOURPUBLIC.pem

+

Converting from a previously generated DER:
openssl x509 -inform der -in YOURDER.der -out YOURPEM.pem

+

Converting from a previously generated PKCS12:
openssl pkcs12 -in YOURPKCS.p12 -out YOURPEM.pem

+
+

More information: https://www.openssl.org/

+
+

Java keystore

+

Generate self-signed JKS:
keytool -genkey -keyalg RSA -alias YOURDOMAIN.EXAMPLE -keystore YOURJKS.jks -storepass YOURPASSWORD -validity 360 -keysize 2048

+

Converting JKS to pkcs12 (intermediate step for conversion to PEM):
keytool -importkeystore -srckeystore YOURJKS.jks -destkeystore YOURPKCS.p12 -srcstoretype jks -deststoretype pkcs12

+

Convert PKCS12 to PEM (requires openssl):
openssl pkcs12 -in YOURPKCS.p12 -out YOURPEM.pem

+
+

More information: https://docs.oracle.com

+
+

Windows

+

Creating a self-signed certificate using Windows native utilities is also possible, although OpenSSL binaries for Windows are available online.

+

On the commandline:
certreq -new TEMPLATE.txt RequestFileOut

+

TEMPLATE.txt example file:

+
[NewRequest]
+
+; At least one value must be set in this section
+Subject = "CN=DOMAIN.EXAMPLE"
+KeyLength = 2048
+KeyAlgorithm = RSA
+HashAlgorithm = sha256
+;MachineKeySet = true
+RequestType = Cert
+UseExistingKeySet=false ;generates a new private key (for export)
+Exportable = true ;makes the private key exportable with the PFX
+

A self-signed certificate will be generated and installed, to view the certificate:
certutil -store -user my

+

To export in DER format (intermediate step for conversion to PEM)
certutil -user -store -split my SERIALNUMBER YOURDER.crt

+

Converting to PEM (used for setting the webhook)
certutil -encode YOURDER.crt YOURPEM.cer

+

To delete a certificate from your store:
certutil -delstore -user my SERIALNUMBER (from view)

+

To export in PFX(PKCS12) format
certutil -exportpfx -user YOURDOMAIN.EXAMPLE YOURPKCS.pfx NoChain

+
+

More information: https://technet.microsoft.com

+
+

Converting YOURPKCS.pfx to PEM including the private key is best done with OpenSSL:
openssl pkcs12 -in YOURPKCS.pfx -out YOURPEM.cer

+

Remember that only the public key is needed as input for the self-signed webhook certificate parameter. certmgr.msc can also be used as a GUI to export the public part of self-signed certificates to PEM.

+
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/bots/webapps.html b/data/web/blogfork.telegram.org/bots/webapps.html new file mode 100644 index 0000000000..80b93d797a --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/webapps.html @@ -0,0 +1,594 @@ + + + + + Web Apps for Bots + + + + + + + + + + + + + + + + +
+ +
+
+
+
+

Web Apps for Bots

+ +
+ +

Telegram bots can completely replace any website. They support seamless authorization, integrated payments via 15 payment providers (with Google Pay and Apple Pay out of the box), delivering tailored push notifications to users, and much more.

+

With Web Apps, bots get a whole new dimension. Bot developers can create infinitely flexible interfaces with JavaScript, the most widely used programming language in the world.

+
+ +
+ +
+

To see a Web App in action, try our sample @DurgerKingBot.

+
+
+

Designing Web Apps

+

Color Schemes

+

Web Apps always receive data about the user's current color theme in real time, so you can adjust the appearance of your interfaces to match it. For example, when users switch between Day and Night modes or use various custom themes.

+
+ +
+ +
+

Jump to technical information

+
+

Design Guidelines

+

Telegram apps are known for being snappy, smooth and following a consistent cross-platform design. Your Web App should ideally reflect these principles.

+
    +
  • All elements should be responsive and designed with a mobile-first approach.
  • +
  • Interactive elements should mimic the style, behavior and intent of UI components that already exist.
  • +
  • All included animations should be smooth, ideally 60fps.
  • +
  • All inputs and images should contain labels for accessibility purposes.
  • +
  • The app should deliver a seamless experience by monitoring the dynamic theme-based colors provided by the API and using them accordingly.
  • +
+
+

Implementing Web Apps

+

Telegram currently supports four different ways of launching Web Apps: from a keyboard button, from an inline button, from the bot menu button – and even from the attachment menu.

+
+ Types of buttons +
+ +

Keyboard Button Web Apps

+
+

TL;DR: Web Apps launched from a web_app type keyboard button can send data back to the bot in a service message using Telegram.WebApp.sendData. This makes it possible for the bot to produce a response without communicating with any external servers.

+
+

Users can interact with bots using custom keyboards, buttons under bot messages, as well as by sending freeform text messages or any of the attachment types supported by Telegram: photos and videos, files, locations, contacts and polls. For even more flexibility, bots can utilize the full power of HTML5 to create user-friendly input interfaces.

+

You can send a web_app type KeyboardButton that opens a Web App from the specified URL.

+

To transmit data from the user back to the bot, the Web App can call the Telegram.WebApp.sendData method. Data will be transmitted to the bot as a String in a service message. The bot can continue communicating with the user after receiving it.

+

Good for:

+
    +
  • Сustom data input interfaces (a personalized calendar for selecting dates; selecting data from a list with advanced search options; a randomizer that lets the user “spin a wheel” and chooses one of the available options, etc.)
  • +
  • Reusable components that do not depend on a particular bot.
  • +
+

Inline Button Web Apps

+
+

TL;DR: For more interactive Web Apps like @DurgerKingBot, use a web_app type Inline KeyboardButton, which gets basic user information and can be used to send a message on behalf of the user to the chat with the bot.

+
+

If receiving text data alone is insufficient or you need a more advanced and personalized interface, you can open a Web App using a web_app type Inline KeyboardButton.

+

From the button, a Web App will open with the URL specified in the button. In addition to the user's theme settings, it will receive basic user information (ID, name, username, language_code) and a unique identifier for the session, query_id, which allows messages on behalf of the user to be sent back to the bot.

+

The bot can call the Bot API method answerWebAppQuery to send an inline message from the user back to the bot and close the Web App. After receiving the message, the bot can continue communicating with the user.

+

Good for:

+
    +
  • Fully-fledged web services and integrations of any kind.
  • +
  • The use cases are effectively unlimited.
  • +
+

Launching Web Apps from the Menu Button

+
+

TL;DR: Web Apps can be launched from a customized menu button. This simply offers a quicker way to access the app and is otherwise identical to launching a Web App from an inline button.

+
+

By default, chats with bots always show a convenient menu button that provides quick access to all listed commands. With Bot API 6.0, this button can be used to launch a Web App instead.

+
+ +
+ +

To configure the menu button, you must specify the text it should show and the Web App URL. There are two ways to set these parameters:

+
    +
  • To customize the button for all users, use @BotFather (the /setmenubutton command or Bot Settings > Menu Button).
  • +
  • To customize the button for both all users and specific users, use the setChatMenuButton method in the Bot API. For example, change the button text according to the user's language, or show links to different Web Apps based on a user's settings in your bot.
  • +
+

Apart from this, Web Apps opened via the menu button work in the exact same way as when using inline buttons.

+
+

@DurgerKingBot allows launching its Web App both from an inline button and from the menu button.

+
+

Launching Web Apps from the Attachment Menu

+
+

TL;DR: Web App Bots can request to be added directly to a user's attachment menu, allowing them to be quickly launched from any private chat. To try this mode, open this attachment menu link for @DurgerKingBot, then use the Attach menu in any private chat.

+
+

Web App Bots can request to be added directly to a user's attachment menu, allowing them to be quickly launched from any private chat (with either a user or another bot).

+

Attachment menu integration is currently only available for major advertisers on the Telegram Ad Platform. However, all bots can use it in the test server environment.

+

To enable this feature for your bot, open @BotFather from an account on the test server and send the /setattach command – or go to Bot Settings > Configure Attachment Menu. Then specify the URL that will be opened to launch the bot's Web App via its icon in the attachment menu.

+

In addition to the user's theme settings, the bot will receive basic user information (ID, name, username, language_code, photo), as well as public info about the chat partner (ID, name, username, photo) and a unique identifier for the web view session query_id, which allows messages of any type to be sent to the chat on behalf of the user that opened the bot.

+

The bot can call the Bot API method answerWebAppQuery, which sends an inline message from the user via the bot to the private chat where it was launched and closes the Web App.

+
+

You can read more about adding bots to the attachment menu here.

+
+
+

Initializing Web Apps

+

To connect your Web App to the Telegram client, place the script telegram-web-app.js in the <head> tag before any other scripts, using this code:

+
<script src="https://telegram.org/js/telegram-web-app.js"></script>
+

Once the script is connected, a window.Telegram.WebApp object will become available with the following fields:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
initDataStringA string with raw data transferred to the Web App, convenient for validating data.
WARNING: Validate data from this field before using it on the bot's server.
initDataUnsafeWebAppInitDataAn object with input data transferred to the Web App.
WARNING: Data from this field should not be trusted. You should only use data from initData on the bot's server and only after it has been validated.
colorSchemeStringThe color scheme currently used in the Telegram app. Either “light” or “dark”.
Also available as the CSS variable var(--tg-color-scheme).
themeParamsThemeParamsAn object containing the current theme settings used in the Telegram app.
isExpandedBooleanTrue if the Web App is expanded to the maximum available height. False, if the Web App occupies part of the screen and can be expanded to the full height using the expand() method.
viewportHeightFloatThe current height of the visible area of the Web App. Also available in CSS as the variable var(--tg-viewport-height).

The application can display just the top part of the Web App, with its lower part remaining outside the screen area. From this position, the user can “pull” the Web App to its maximum height, while the bot can do the same by calling the expand() method. As the position of the Web App changes, the current height value of the visible area will be updated in real time.

Please note that the refresh rate of this value is not sufficient to smoothly follow the lower border of the window. It should not be used to pin interface elements to the bottom of the visible area. It's more appropriate to use the value of the viewportStableHeight field for this purpose.
viewportStableHeightFloatThe height of the visible area of the Web App in its last stable state. Also available in CSS as a variable var(--tg-viewport-stable-height).

The application can display just the top part of the Web App, with its lower part remaining outside the screen area. From this position, the user can “pull” the Web App to its maximum height, while the bot can do the same by calling the expand() method. Unlike the value of viewportHeight, the value of viewportStableHeight does not change as the position of the Web App changes with user gestures or during animations. The value of viewportStableHeight will be updated after all gestures and animations are completed and the Web App reaches its final size.

Note the event viewportChanged with the passed parameter isStateStable=true, which will allow you to track when the stable state of the height of the visible area changes.
MainButtonMainButtonAn object for controlling the main button, which is displayed at the bottom of the Web App in the Telegram interface.
onEvent(eventType, eventHandler)FunctionA method that sets the app event handler. Check the list of available events.
offEvent(eventType, eventHandler)FunctionA method that deletes a previously set event handler.
sendData(data)FunctionA method used to send data to the bot. When this method is called, a service message is sent to the bot containing the data data of the length up to 4096 bytes, and the Web App is closed. See the field web_app_data in the class Message.

This method is only available for Web Apps launched via a Keyboard button.
ready()FunctionA method that informs the Telegram app that the Web App is ready to be displayed.
It is recommended to call this method as early as possible, as soon as all essential interface elements are loaded. Once this method is called, the loading placeholder is hidden and the Web App is shown.
If the method is not called, the placeholder will be hidden only when the page is fully loaded.
expand()FunctionA method that expands the Web App to the maximum available height. To find out if the Web App is expanded to the maximum height, refer to the value of the Telegram.WebApp.isExpanded parameter
close()FunctionA method that closes the Web App.
+

ThemeParams

+

Web Apps can adjust the appearance of the interface to match the Telegram user's app in real time. This object contains the user's current theme settings:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
bg_colorStringOptional. Background color in the #RRGGBB format.
Also available as the CSS variable var(--tg-theme-bg-color).
text_colorStringOptional. Main text color in the #RRGGBB format.
Also available as the CSS variable var(--tg-theme-text-color).
hint_colorStringOptional. Hint text color in the #RRGGBB format.
Also available as the CSS variable var(--tg-theme-hint-color).
link_colorStringOptional. Link color in the #RRGGBB format.
Also available as the CSS variable var(--tg-theme-link-color).
button_colorStringOptional. Button color in the #RRGGBB format.
Also available as the CSS variable var(--tg-theme-button-color).
button_text_colorStringOptional. Button text color in the #RRGGBB format.
Also available as the CSS variable var(--tg-theme-button-text-color).
+
+ Color parameters guide +
+ +

MainButton

+

This object controls the main button, which is displayed at the bottom of the Web App in the Telegram interface.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
textStringCurrent button text. Set to CONTINUE by default.
colorStringCurrent button color. Set to themeParams.button_color by default.
textColorStringCurrent button text color. Set to themeParams.button_text_color by default.
isVisibleBooleanShows whether the button is visible. Set to false by default.
isActiveBooleanShows whether the button is active. Set to true by default.
isProgressVisibleBooleanReadonly. Shows whether the button is displaying a loading indicator.
setText(text)FunctionA method to set the button text.
onClick(callback)FunctionA method that sets the button press event handler. An alias for Telegram.WebApp.onEvent('mainButtonClicked', callback)
show()FunctionA method to make the button visible.
Note that opening the Web App from the attachment menu hides the main button until the user interacts with the Web App interface.
hide()FunctionA method to hide the button.
enable()FunctionA method to enable the button.
disable()FunctionA method to disable the button.
showProgress(leaveActive)FunctionA method to show a loading indicator on the button.
It is recommended to display loading progress if the action tied to the button may take a long time. By default, the button is disabled while the action is in progress. If the parameter leaveActive=true is passed, the button remains enabled.
hideProgress()FunctionA method to hide the loading indicator.
setParams(params)FunctionA method to set the button parameters. The params parameter is an object containing one or several fields that need to be changed:
text - button text;
color - button color;
text_color - button text color;
is_active - enable the button;
is_visible - show the button.
+

All these methods return the MainButton object so they can be chained.

+

WebAppInitData

+

This object contains data that is transferred to the Web App when it is opened. It is empty if the Web App was launched from a keyboard button.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
query_idStringOptional. A unique identifier for the Web App session, required for sending messages via the answerWebAppQuery method.
userWebAppUserOptional. An object containing data about the current user.
receiverWebAppUserOptional. An object containing data about the chat partner of the current user in the chat where the bot was launched via the attachment menu. Returned only for Web Apps launched via the attachment menu.
start_paramStringOptional. The value of the startattach parameter, passed via link. Only returned for Web Apps when launched from the attachment menu via link.

The value of the start_param parameter will also be passed in the GET-parameter tgWebAppStartParam, so the Web App can load the correct interface right away.
auth_dateIntegerUnix time when the form was opened.
hashStringA hash of all passed parameters, which the bot server can use to check their validity.
+

WebAppUser

+

This object contains the data of the Web App user.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
idIntegerA unique identifier for the user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. It has at most 52 significant bits, so a 64-bit integer or a double-precision float type is safe for storing this identifier.
is_botBooleanOptional. True, if this user is a bot. Returns in the receiver field only.
first_nameStringFirst name of the user or bot.
last_nameStringOptional. Last name of the user or bot.
usernameStringOptional. Username of the user or bot.
language_codeStringOptional. IETF language tag of the user's language. Returns in user field only.
photo_urlStringOptional. URL of the user’s profile photo. The photo can be in .jpeg or .svg formats. Only returned for Web Apps launched from the attachment menu.
+

Validating data received via the Web App

+

To validate data received via the Web App, one should send the data from the Telegram.WebApp.initData field to the bot's backend. The data is a query string, which is composed of a series of field-value pairs.

+

You can verify the integrity of the data received by comparing the received hash parameter with the hexadecimal representation of the HMAC-SHA-256 signature of the data-check-string with the secret key, which is the HMAC-SHA-256 signature of the bot's token with the constant string WebAppData used as a key.

+

Data-check-string is a chain of all received fields, sorted alphabetically, in the format key=<value> with a line feed character ('\n', 0x0A) used as separator – e.g., 'auth_date=<auth_date>\nquery_id=<query_id>\nuser=<user>'.

+

The full check might look like:

+
data_check_string = ...
+secret_key = HMAC_SHA256(<bot_token>, "WebAppData")
+if (hex(HMAC_SHA256(data_check_string, secret_key)) == hash) {
+  // data is from Telegram
+}
+

To prevent the use of outdated data, you can additionally check the auth_date field, which contains a Unix timestamp of when it was received by the Web App.

+

Once validated, the data may be used on your server. Complex data types are represented as JSON-serialized objects.

+

Events Available for Web Apps

+

The Web App can receive events from the Telegram app, onto which a handler can be attached using the Telegram.WebApp.onEvent(eventType, eventHandler) method. Inside eventHandler the this object refers to Telegram.WebApp, the set of parameters sent to the handler depends on the event type. Below is a list of possible events:

+ + + + + + + + + + + + + + + + + + + + + +
eventTypeDescription
themeChangedOccurs whenever theme settings are changed in the user's Telegram app (including switching to night mode).
eventHandler receives no parameters, new theme settings and color scheme can be received via this.themeParams and this.colorScheme respectively.
viewportChangedOccurs when the visible section of the Web App is changed.
eventHandler receives an object with the single field isStateStable. If isStateStable = true, the resizing of the Web App is finished. If it is false, the resizing is ongoing (the user is expanding or collapsing the Web App or an animated object is playing). The current value of the visible section’s height is available in this.viewportHeight.
mainButtonClickedOccurs when the main button is pressed.
eventHandler receives no parameters.
+

Adding Bots to the Attachment Menu

+

Attachment menu integration is currently only available for major advertisers on the Telegram Ad Platform. However, all bots can use it in the test server environment. Talk to Botfather on the test server to set up the integration.

+

A special link is used to add bots to the attachment menu:

+

https://t.me/botusername?startattach
or
https://t.me/botusername?startattach=command

+
+

For example, open this attachment menu link for @DurgerKingBot, then use the Attach menu in any private chat.

+
+

Opening the link prompts the user to add the bot to their attachment menu. If the bot has already been added, the attachment menu will open in the current chat and redirect to the bot there (if the link is opened from a 1-on-1 chat). If a non-empty startattach parameter was included in the link, it will be passed to the Web App in the start_param field and in the GET parameter tgWebAppStartParam.

+

The following link formats are also supported:

+

https://t.me/username?attach=botusername
https://t.me/username?attach=botusername&startattach=command
https://t.me/+1234567890?attach=botusername
https://t.me/+1234567890?attach=botusername&startattach=command

+

These links open the Web App in the attachment menu in the chat with a specific user. If the bot wasn't already added to the attachment menu, the user will be prompted to do so. If a non-empty startattach parameter was included in the link, it will be passed to the Web App in the start_param field and in the GET parameter tgWebAppStartParam.

+

Testing Web Apps

+

Using bots in the test environment

+

To log in to the test environment, use either of the following:

+
    +
  • iOS: tap 10 times on the Settings icon > Accounts > Login to another account > Test.
  • +
  • Telegram Desktop: open ☰ Settings > Shift + Alt + Right click ‘Add Account’ and select ‘Test Server’.
  • +
  • macOS: click the Settings icon 10 times to open the Debug Menu, ⌘ + click ‘Add Account’ and log in via phone number.
  • +
+

The test environment is completely separate from the main environment, so you will need to create a new user account and a new bot with @BotFather.

+

After receiving your bot token, you can send requests to the Bot API in this format:

+

https://api.telegram.org/bot<token>/test/METHOD_NAME

+
+

Note: When working with the test environment, you may use HTTP links without TLS to test your Web App.

+
+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/bots/webhooks.html b/data/web/blogfork.telegram.org/bots/webhooks.html new file mode 100644 index 0000000000..f9a2f5cdab --- /dev/null +++ b/data/web/blogfork.telegram.org/bots/webhooks.html @@ -0,0 +1,830 @@ + + + + + Marvin's Marvellous Guide to All Things Webhook + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Marvin's Marvellous Guide to All Things Webhook

+ +
+ +

We currently support two ways of processing bot updates, getUpdates and setWebhook. getUpdates is a pull mechanism, setwebhook is push. Although the concept of a webhook is fairly simple, the setup of the individual components has proven to be tricky for many. This guide provides some extra information for those of you brave enough to venture into the art of the webhook.

+

There are some advantages of using a webhook over getUpdates. As soon as an update arrives, we’ll kindly deliver it to your bot for processing.

+

This:

+
1. Avoids your bot having to ask for updates frequently.
+2. Avoids the need for some kind of polling mechanism in your code.
+

Other advantages may include saving some potential CPU cycles and an increase in response time, these things however depend heavily on the usage pattern of your bot.

+

Setting a webhook means you supplying Telegram with a location in the form of a URL, on which your bot listens for updates. We need to be able to connect and post updates to that URL.

+

To ensure that we can do that, there are some basic requirements:

+

The short version

+

You'll need a server that:

+
    +
  • Supports IPv4, IPv6 is currently not supported for webhooks.
  • +
  • Accepts incoming POSTs from subnets 149.154.160.0/20 and 91.108.4.0/22 on port 443, 80, 88, or 8443.
  • +
  • Is able to handle TLS1.2(+) HTTPS-traffic.
  • +
  • Provides a supported, verified or self-signed certificate.
  • +
  • Uses a CN or SAN that matches the domain you’ve supplied on setup.
  • +
  • Supplies all intermediate certificates to complete a verification chain.
  • +
+

That’s almost all there’s to it.
If you decide to limit traffic to our specific range of addresses, keep an eye on this document whenever you seem to run into trouble. Our IP-range might change in the future.

+

The longer version

+
    +
  • A domain name

    +

    Setting a webhook needs a URL for us to post to. For that you'll need a server with a domain name. If you don't have one, you'll need to obtain one first. Telegram currently doesn't offer hosting or domain name services. There are quite a few VPS/Web hosting providers around the internet, feel free to pick one to your liking.
    If you're using a self-signed certificate, you may use the IP as a CN, instead of the domain name.
    How do I get a server with a domain name?

    +
  • +
  • An open port

    +

    A webhook needs an open port on your server. We currently support the following ports: 443, 80, 88 and 8443. Other ports are not supported and will not work. Make sure your bot is running on one of those supported ports, and that the bot is reachable via its public address.

    +
    If you want to limit access to Telegram only, please allow traffic from 149.154.167.197-233 (starting July 2019 please use: 149.154.160.0/20 and 91.108.4.0/22). 
    +Whenever something stops working in the future, please check this document again as 
    +the range might expand or change.
    +

    How do I check for open ports or limit access to my bot?

    +
  • +
  • Always SSL/TLS

    +

    A webhook requires SSL/TLS encryption, no matter which port is used. It's not possible to use a plain-text HTTP webhook. You shouldn't want to either, for the sake of your bot and users.
    SSL/TLS, why do I have to handle this for a webhook?

    +
  • +
  • Not all SSL/TLS is equal

    +

    We support any SSL/TLS version TLS1.2 and up for your webhook. This means that SSLV2/3/TLS1.0/TSL1.1 are NOT supported, due to security issues associated with those older versions.
    How do I check that I’m handling the right version?

    +
  • +
  • SSL needs a certificate

    +

    The common name (CN) of your certificate (self-signed or verified) has to match the domain name where your bot is hosted. You may also use a subject alternative name (SAN), that matches the domain for your webhook. Server Name Indication (SNI)-routing is supported. If you're using a self-signed certificate, you may use the IP as a CN, instead of the domain name.
    A certificate, where do I get one, and how?

    +
  • +
  • Verified or self-signed

    +

    A certificate can either be verified or self-signed. Setting a webhook with a self-signed certificate differs a little from setting a webhook with a verified certificate. Ensure you're using the correct setup for the type of certificate you've chosen for your webhook.
    How do I set a webhook for either type?

    +
  • +
  • Supported certificates

    +

    Not all verified certificates are supported. Certificates are based on a network of trust and come in a chain. Trusting your verified certificate means we have to trust the provider of that certificate, the Certificate Authority (and hence its root certificate). Before you pick a certificate provider, Check this list to make sure that we actually trust their root certificate.
    What if my root certificate isn’t on that list?

    +
  • +
  • An Untrusted root

    +

    Ok, so you already had a certificate installed and just discovered it’s not on our list.
    Start by ignoring it, and just try to set it. We occasionally add extra root certificates to keep up with popular demand, so the list isn't always exhaustive. Unlucky after all? We'll allow you to supply an unsupported root certificate when setting the webhook. This method is nearly identical to setting a self-signed certificate webhook. Instead of your self-signed certificate you'll be sending us the root certificate as inputFile.
    Setting a verified webhook with an untrusted root

    +
  • +
  • Intermediate certificates

    +

    Some verified certificates require an intermediate certificate. In this construction the provider of your verified certificate has used their root certificate to sign an intermediate certificate. This intermediate certificate is then used to sign your verified certificate. You'll need to provide the intermediate certificate for us to be able to verify the chain of trust. CA's that use this type of chain supply an intermediate certificate.
    Supplying an intermediate certificate

    +
  • +
  • More information

    +

    Since we know webhooks can be a tad overwhelming, we’re working on a little digital assistant that’ll try and help you with the most common problems, it's not nearly perfect, but you may try using @CanOfWormsBot to check if your chain of certificates is installed correctly before contacting support.

    +
  • +
  • Testing your bot

    +

    We took the liberty of adding a set of example updates. They come in handy when testing your bot, no matter which method of getting updates you might be using.

    +
  • +
  • Don't panic.

    +

    If by now you're looking for your fishing gear because we've mentioned ports and hooks or you're about to Google what kind of bait URL and TLS exactly are, this guide might not be completely for you. You’re quite likely still a brilliant bot programmer, don’t worry. Perhaps this whole webhook thing is just new to you, not all is lost. If you currently have a working getUpdates situation, it's a good idea to pick up this guide again on a rainy Sunday afternoon and take your time to read up on some subjects around the internet. This guide can only contain a finite amount of information after all.

    +
  • +
+

The verbose version

+
How do I get a server with a domain name?
+

If you use a webhook, we have to deliver requests to your bot to a server we can reach. So yes, you need a server we can connect to. It can be anywhere in the galaxy, if you ensure we can reach the server by domain name (or at least via IP for a self-signed certificate), it will work just fine.

+

There are quite a few ways to get this done, as a novice however it's likely that you're not directly jumping at the chance of crafting this from scratch. Actually, as a novice, we recommend you don't. It's likely to be a complex and long ride.

+

If you got stuck here, make a choice:

+
    +
  • You use getUpdates at the moment and it works, keep it that way. Especially if you're running your bot from a nice machine that does well. There is nothing wrong with using getUpdates.

    +
  • +
  • Go with a hosted service and let a bunch of professionals worry about things like registering a domain, setting up DNS, a web server, securing it and so on.

    +
  • +
+
If you're going with a hosted service, make sure to look for a hosting provider that 
+not only supports your code’s needs, for example: support for your PHP version,
+but one that also handles SSL and allows you to create/deploy certificates.
+
    +
  • Go crazy, dive on the internet and start reading. Once you’re confident that you’ve got all the basic theories down, find yourself a nice hosted VPS or roll your own machine at home and get back to us here.
  • +
+
How do I check for open ports or limit access to my bot?
+

So you have the hosting thing down and all is good so far, however, when you enter the address of your bot in your browser it seems unreachable.

+

Explaining every firewall or web server solution in detail isn't possible for us, which we hope you understand. If you’re running a hosted solution, you’re more likely to have a nice UI where you configure these settings. Head to your configuration panel and check all of them. If you’re on a Linux based VPS with shell access, we have some tips for you:

+
    +
  • Make sure your bot process is indeed configured to listen on the port you're using.
    netstat –ln | grep portnumber
    Shows you if your bot is actually listening for incoming requests on the port you expect.
    sudo lsof -i | grep process name
    Is a simple way to check if that’s actually being listened on by the process your bot is using.
  • +
+
    +
  • Make sure it’s listening correctly.
    Your bot has to listen on the address you’ve exposed to the outside (your public IP), it can also listen on all addresses (*: or 0.0.0.0).
    The netstat and lsof-commands mentioned above assist in checking this. If nothing shows up, it is time to check your configuration and fix it. Set the correct IP, make sure it’s listening on a supported port and fire away! Just use a Web Browser to check if you’re reachable. The problem can be in the configuration of your bot, your web server virtual host configuration, or the servers binding configuration.
  • +
+
    +
  • If you still can’t reach your address, check your firewall.
    sudo iptables –L
    OR
    sudo ufw status verbose (Ubuntu)
    Gives you some insight in the current firewall settings.

    +
  • +
  • If it looks like you’re blocking incoming traffic, let’s fix that.
    sudo iptables –A INPUT –p tcp –m tcp –dport portnumber -j ACCEPT
    OR
    sudo ufw allow portnumber/tcp
    Allows incoming traffic on all interfaces to the specified tcp port.
    sudo iptables –A INPUT –i interfacename –p tcp –m tcp –dport portnumber -j ACCEPT
    OR
    sudo ufw allow in on interfacename to any port portnumber proto tcp
    Allows incoming traffic to a specific interface and a specific port from everywhere.
    sudo ifconfig
    Helps you find the interface with the public address you’re going to use.

    +
  • +
+
If you use iptables, make sure to actually SAVE after changing the configuration.
+On a Debian based system the iptables-persistent package is be a good option.
+RHEL/CentOS offers a service iptables save -command.
+A quick online search for "YOUROPERATINGSYSTEM save iptables" also helps.
+
    +
  • If you’re just looking for some hints on how to limit incoming traffic:
    sudo iptables –A INPUT –i interfacename –p tcp –m iprange –src-range 149.154.167.197-149.154.167.233 –dport portnumber -j ACCEPT
    OR
    sudo ufw allow in on interfacename to any port portnumber proto tcp from 149.154.167.192/26
    Allows incoming traffic to a specific interface and a specific port from a specific range of addresses. (ufw is using a subnet mask in the example, ranging from 192-255)
  • +
+

That’s all for our examples. More information on best practices for setting up your firewall, on whichever operating system you prefer for your bot, is best found on the internet.

+
SSL/TLS, what is it and why do I have to handle this for a webhook?
+

You’re already familiar with it in some form or another. Whenever you see that (nicely green) lock in your browser bar, you know it’s reasonably safe to assume that you’ve landed on the site you actually wanted to visit. If you see the green lock, that's SSL/TLS in action. If you want to learn more about how SSL/TLS works in general, it's best to search the internet.

+

The main difference between getUpdates and a webhook is the way the connection takes place. getUpdates means you'll connect to our server, a webhook means we'll be connecting to your server instead. Connecting to your server has to be done secure, we have to know for sure it's you we're talking to after all. This means you'll have to handle all that server side encryption stuff, virtually presenting us with a green lock. If you use a web server for us to post to, you need to support SSL/TLS handling on the port/virtual host of your choice. An online search for “YOURWEBSERVER enable HTTPS” will help you.

+

Not using a regular web server? Have a look at our example page, most examples there include code for handling SSL/TLS in a webhook setup.

+
How do I check that I’m handling the right version?
+

You just read up on the whole SSL/TLS stuff, figured out that it’s not all that bad to setup and we add some more requirements. Here are some tips to check if you’re indeed supporting at least TLS1.2.

+
    +
  • Several online services exist that allow you to check your certificate installation,
    They give you an overview of your supported TLS versions/Cipher suites and other details. Search online for Symantec crypto report or Qualys ssl. Both supply tools to verify your setup.

    +
  • +
  • Checking locally can also be done, in several ways, here are three options,

    +
      +
    • Go simple:
      Using Chrome as a browser? Open up the URL to your bot and inspect the certificate details. If you’re supporting TLS Chrome tells you so in the security overview tab. Other browsers are likely able to give you similar basic information.

      +
    • +
    • Using curl:
      curl --tlsv1.2 -v -k https://yourbotdomain:yourbotport/
      You can add --tlsv1.2 to force curl into using TLS1.2 when trying to connect. -k is optional and used to check against a self-signed certificate. yourbotdomain is the public hostname your webhook is running on. For local testing purposes you can also use the IP. yourbotport is the port you’re using.

      +
    • +
    • Using OpenSSL
      openssl s_client -tls1_2 -connect yourbotdomain:yourbotport -servername yourbotdomain
      You can add -tls1_2 to force OpenSSL into using TLS1.2 when trying to connect. yourbotdomain is the public hostname your webhook is running on. For local testing purposes you can also use the IP. yourbotport is the port you’re using. Note that https:// isn’t used for OpenSSL. -servername is optional, and included here for some shared hosters, which use SNI to route traffic to the correct domain. When SNI is used you’ll notice that your server appears to be returning a certificate for a different domain than your own. Adding -servername yourbotdomain ensures that SNI negotiation is done, and the correct certificate is returned.

      +
    • +
    +
  • +
  • Some additional configuration pointers

    +
      +
    • Forcing TLS in your virtual host on Apache:
      SSLProtocol -all +TLSv1.2
    • +
    • Forcing TLS in your virtual host on Nginx:
      ssl_protocols TLSv1.2;
    • +
    • Force TLS for your Java virtual machine through system properties:
      -Dhttps.protocols=TLSv1.2 -Djdk.tls.client.protocols=TLSv1.2
    • +
    • Enabling ssl debug for your JVM:
      -Djavax.net.debug=ssl,handshake,record
    • +
    +
  • +
  • Other tools that may help in debugging issues:

    +
      +
    • Wireshark: excellent packet capturing
    • +
    • Tcpdump: equally excellent and doesn’t need a GUI
    • +
    • Charles: web debugging proxy
    • +
    • Fiddler: web debugging proxy
    • +
    +
  • +
+
A certificate, where do I get one and how?
+

You need a certificate, pick on of these types;

+
    +
  • A verified, supported certificate
  • +
  • A self-signed certificate

    +
  • +
  • A verified, supported certificate
    +

    Using a verified certificate means you already have, or will obtain, a certificate backed by a trusted certificate authority (CA). There are many ways to acquire a verified certificate, paid or free. Two popular examples of free suppliers are StartSSL and Let’s Encrypt. You’re welcome to pick another. Just make sure first the supplier is likely to be supported.
    Check this list before selecting a CA.
    Once you’ve picked a CA and validated your identity with them, you can craft your certificate. This frequently starts by generating a CSR (Certificate Signing Request). Generating a CSR is done either through your host machine, or online via the tools provided by the CA.

    +
  • +
  • Here is an example (PEM format output).

    +
      +
    • Using OpenSSL:
      openssl req -newkey rsa:2048 -keyout yourprivatekey.key -out yoursigningrequest.csr
    • +
    +
  • +
+
----
+Generating a 2048 bit RSA private keywriting new private key to yourprivatekey.key
+Enter PEM pass phrase: enter a password for your key here 
+Verifying - Enter PEM pass phrase: confirm the entered password
+-----
+You are about to be asked to enter information that will be incorporated
+into your certificate request.
+What you are about to enter is what is called a Distinguished Name or a DN.
+There are quite a few fields but you can leave some blank
+For some fields there will be a default value,If you enter '.',
+the field will be left blank.-----
+Country Name (2 letter code) [AU]:
+State or Province Name (full name) [Some-State]:
+Locality Name (eg, city) []:
+Organization Name (eg, company) [Internet Widgits Pty Ltd]:
+Organizational Unit Name (eg, section) []:
+Common Name (e.g. server FQDN or YOUR name) []: yourbotdomainname
+Email Address []:
+Please enter the following 'extra' attributes
+to be sent with your certificate request
+A challenge password []:
+An optional company name []:
+---
+
    +
  • Another example:

    +
      +
    • Using Java keytool:
      keytool -genkey -alias yourbotdomainname -keyalg RSA -keystore yourkeystore.jks -keysize 2048
    • +
    +
  • +
+
---
+Enter keystore password:  
+Re-enter new password: 
+What is your first and last name?  [Unknown]: yourbotdomainname
+What is the name of your organizational unit?  [Unknown]:  
+What is the name of your organization?  [Unknown]:  
+What is the name of your City or Locality?  [Unknown]:  
+What is the name of your State or Province?  [Unknown]:  
+What is the two-letter country code for this unit?  [Unknown]:  
+Is CN=test.telegram.org, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?  
+[no]:  yes
+Enter key password for yourbotdomainname   
+(RETURN if same as keystore password): 
+---
+

This generates the initial keystore, from which you can then create a CSR like this:

+

keytool -certreq -alias yourbotdomainname -keystore yourkeystore.jks -file yourbotdomainname.csr

+
---
+Enter keystore password:
+---
+

To validate your certificate the Common Name (CN) has to match your webhook domain. Example, if you’re using https://www.example.com/example.php as a webhook address, the certificate CN has to be www.example.com.
So you need an exact match of the FQDN you’re setting for the webhook

+

There is an exception, if you’re using a SAN (Subject Alternative Name) the webhook address can either match the CN of your certificate, OR one of the SANs provided in the certificate. In most cases you’ll be using the CN.

+

Create your CSR and supply the contents of the file to your CA. Most CA’s are kind enough to give you an example command of the input format they expect.

+

cat yoursigningrequest.csr or cat yourbotdomainname.csr
Lets you have a look at the CSR we just generated:

+
+ +
+ +

That doesn’t seem to informative, but we can deduce that the file is in PEM format (ASCII base64 encoded) and contains a certificate signing request. Luckily it is possible to look at the human readable contents of the CSR. Use the following commands to double check if all fields are set correctly.

+
    +
  • Using OpenSSL
    openssl req -text -noout -verify -in yoursigningrequest.csr

    +
  • +
  • Using Java keytool
    keytool -printcertreq -v -file yourbotdomainname.csr

    +
  • +
+

Verify your CSR and supply it to your CA to get a certificate. We’ll use StartSSL as an example here. StartSSL allows you to set up to 5 names (SAN), Their intermediate certificate is also needed for a webhook to work, which makes for a nice complete example.

+

Go to the certificates wizard, enter the required hostname(s) for your SSL certificate (this is the CN you’ve also set in the CSR and an optional SAN).

+
+ +
+ +

In the example above we’ve chosen to set a CN (test.telegram.org), but also a SAN (sanexample.telegram.org) The CN given has to match the CN used for generating the CSR.
Set your CN (and optional SAN) and copy the contents of the yoursigningrequest.csr file.

+
+ +
+ +

Paste the contents, submit and you’re done.

+
+ +
+ +

Now you can download the created certificate directly. In the example used above you’ll receive a zip file with several PEM certificates. The root, intermediate and yourdomain certificate.
You need the intermediate and yourdomain to set a webhook with a StartSSL certificate.

+

You can inspect the set of certificates you’ve just downloaded.

+
    +
  • Here are some example commands:

    +
      +
    • Using OpenSSL:
      openssl x509 -in yourdomain.crt -text -noout

      +
    • +
    • Using Java keytool:
      keytool -printcert -v -yourdomain.crt

      +
    • +
    • Using Windows:
      StartSSL supplies certificates in PEM format with a .crt extension, on Windows you can view the contents of them with a quick double click. Extract the files or open the “Otherserver.zip” and double click each of the certificates for inspection. The details tab supplies you with extra information.
      Make sure you have a correct CN in the Subject-field of the yourdomain-certificate. If you're using a SAN, make sure that it is listed in the Subject Alternative Name-field.

      +
    • +
    +
  • +
+
+ +
+ +

With your fresh certificates at hand, you can now continue setting your webhook.

+
    +
  • A self-signed certificate
    +

    Using a self-signed certificate means you’ll forfeit on the chain of trust backed by a CA. Instead you are the CA. For this to work, a slight difference in setup is required. Because Telegram will have no chain of trust to verify your certificate, you have to use the generated public certificate as an input file when setting the webhook. Keep in mind that the certificate file has to be uploaded as multipart/form data in PEM encoded (ASCII BASE64) format.

    +
  • +
  • First let’s generate some certificates:

    +
      +
    • Using OpenSSL:
      openssl req -newkey rsa:2048 -sha256 -nodes -keyout YOURPRIVATE.key -x509 -days 365 -out YOURPUBLIC.pem -subj "/C=US/ST=New York/L=Brooklyn/O=Example Brooklyn Company/CN=YOURDOMAIN.EXAMPLE"
      You’ll end up with 2 files, a private key and the public certificate file. Use YOURPUBLIC.PEM as input file for setting the webhook.

      +
    • +
    • Using Java keytool:
      keytool -genkey -keyalg RSA -alias YOURDOMAIN.EXAMPLE -keystore YOURJKS.jks -storepass YOURPASSWORD -validity 360 -keysize 2048

      +
      What is your first and last name?
      +[test.telegram.org]:
      +What is the name of your organizational unit?
      +[Unknown]:  
      +What is the name of your organization?
      +[Unknown]:  
      +What is the name of your City or Locality?
      +[Unknown]:  
      +What is the name of your State or Province?
      +[Unknown]:  
      +What is the two-letter country code for this unit?
      +[Unknown]:  
      +Is CN=test.telegram.org, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?
      +[no]: yes
      +

      Once done you’ll need 2 more commands to export the public certificate file from the generated store (you’ll be using the store for your JVM and the PEM for setting the webhook)

      +
    • +
    • Convert the JKS to pkcs12 (intermediate step for conversion to PEM):
      keytool -importkeystore -srckeystore YOURJKS.jks -destkeystore YOURPKCS.p12 -srcstoretype jks -deststoretype pkcs12

      +
    • +
    • Convert PKCS12 to PEM (requires OpenSSL)
      openssl pkcs12 -in YOURPKCS.p12 -out YOURPEM.pem -nokeys

      +
    • +
    • Using Windows:
      Creating a self-signed certificate using Windows native utilities is also possible, although OpenSSL binaries for Windows are available online.
      certreq -new TEMPLATE.txt RequestFileOut generates a CSR.

      +
    • +
    • TEMPLATE.txt example file:

      +
      [NewRequest]
      +; At least one value must be set in this section
      +Subject = "CN=DOMAIN.EXAMPLE"
      +KeyLength = 2048
      +KeyAlgorithm = RSA
      +HashAlgorithm = sha256
      +;MachineKeySet = true
      +RequestType = Cert
      +UseExistingKeySet=false ;generates a new private key (for export)
      +Exportable = true ;makes the private key exportable with the PFX
      +
    • +
    +
  • +
+

A self-signed certificate is generated and installed, to use the certificate for a self-signed webhook you'll have to export it in PEM format.

+
    +
  • Windows continued:

    +
      +
    • You can have a look at the certificates in your store with:
      certutil -store -user my

      +
    • +
    • To export the installed certificate in DER format (intermediate step for conversion to PEM):
      certutil -user -store -split my SERIALNUMBER YOURDER.der

      +
    • +
    • Now you can convert the certificate to PEM:
      certutil -encode YOURDER.der YOURPEM.pem
      Remember that only the public certificate is needed as input for the self-signed webhook certificate parameter.
      certmgr.msc can also be used as a GUI to export the public part of self-signed certificate to PEM.

      +
    • +
    +
  • +
+

After following the above you'll end up with a nice self-signed certificate. You’ll still have to set the webhook, and handle SSL correctly.

+
How do I set a webhook for either type?
+

The setWebhook method is needed for both types. For a verified certificate with a trusted root CA, it’s enough to use the setWebhook method with just the URL parameter.

+
    +
  • A curl example for a verified certificate:
    curl -F "url=https://<YOURDOMAIN.EXAMPLE>/<WEBHOOKLOCATION>" https://api.telegram.org/bot<YOURTOKEN>/setWebhook
  • +
+

For a self-signed certificate an extra parameter is needed, certificate, with the public certificate in PEM format as data.

+
    +
  • A curl example for a self-signed certificate:
    curl -F "url=https://<YOURDOMAIN.EXAMPLE>/<WEBHOOKLOCATION>" -F "certificate=@<YOURCERTIFICATE>.pem" https://api.telegram.org/bot<YOURTOKEN>/setWebhook
  • +
+

The -F means we’re using the multipart/form-data-type to supply the certificate, the type of the certificate parameter is inputFile. Make sure that you’re supplying the correct type.

+

Both parameters for the setWebhook method are classed as optional. Calling the method with an empty URL parameter can be used to clear a previously set webhook.

+
    +
  • A curl example to clear a previous webhook :
    curl -F "url=" https://api.telegram.org/bot<YOURTOKEN>/setWebhook
  • +
+

Keep in mind that the URL parameter starts with https:// when setting a webhook. By default that means we’re knocking at your door on port 443. If you want to use another port (80,88 or 8443), you’ll have to specify the port in the URL parameter.

+
    +
  • Example:
    url=https://<YOURDOMAIN.EXAMPLE>:88/<WEBHOOKLOCATION>
  • +
+
Setting a verified webhook with an untrusted root
+

If you already have a verified certificate and our servers don’t trust your root CA, we have an alternative way for you to set a webhook. Instead of using the setWebhook method without the certificate parameter, you can use the self-signed method. Your CA's root certificate has to be used as an inputFile for the certificate parameter.

+
    +
  • A curl example to supply an untrusted root certificate:
    curl -F "url=https://<YOURDOMAIN.EXAMPLE>" -F "certificate=@<YOURCAROOTCERTIFICATE>.pem" https://api.telegram.org/bot<YOURTOKEN>/setWebhook
    Before you can do this, you need the root certificate of your certificate’s CA. Most CA’s supply their root certificates in several different formats (PEM/DER/etc.). Visit your CA’s website, and download the Root certificate indicated for your verified certificate.
  • +
+

You can use these commands to quickly convert a DER formatted root certificate to PEM:

+
    +
  • Using OpenSSL:
    openssl x509 -inform der -in root.cer -out root.pem

    +
  • +
  • Using Java keytool:
    keytool -import -alias Root -keystore YOURKEYSTORE.JKS -trustcacerts -file ROOTCERT.CER
    The root certificate needs to be imported in your keystore first:
    keytool -exportcert -alias Root -file <YOURROOTPEMFILE.PEM> -rfc -keystore YOURKEYSTORE.JKS

    +
  • +
+

Once done, set your webhook with the root-pem-file and you’ll be good to go. If you need more pointers, have a look at the self-signed part of this guide.

+
Supplying an intermediate certificate
+

Once you’ve crafted your certificate, your CA might present you with a nice bundle. Most bundles contain a root certificate, your public certificate and sometimes an intermediate certificate. StartSSL is one of many CA’s that’ll supply such an intermediate beast. This certificate has to be supplied in the chain of certificates you’re presenting to us when we connect to your server. If an intermediate was used to sign your certificate but isn’t supplied to our servers, we won’t be able to verify the chain of trust and your webhook will not work.

+

If your webhook isn’t working and you’re wondering if the chain is complete:

+
    +
  • Check with your certificate provider if you need an intermediate certificate.
  • +
  • Verify your certificate chain.
    Search online for Symantec crypto report or Qualys ssl. 
    +Both supply tools to verify your setup.
    +
  • +
+

Here’s an example of a complete chain, note that in this case 2 intermediate certificates have been supplied.

+
+ +
+ +

Even though your browser might not complain when visiting your page, an incomplete chain will not work for your webhook. If your chain is incomplete we have some tips to add them to your current setup:

+
    +
  • Apache:
    Add the intermediate certificate to the end of the file configured in the SSLCertificateFile directive of your virtual host configuration. If you’re using an older version than Apache 2.4.8, you may use the SSLCertificateChainFile directive instead.

    +
  • +
  • Nginx:
    Add the intermediate certificate to the end of the file configured in the ssl_certificate_key directive of your virtual host configuration.

    +
  • +
  • A quick command for doing this correctly:
    cat your_domain_name.pem intermediate.pem >> bundle.pem
    Make sure the order is correct, expect failure otherwise.

    +
  • +
  • Java keytool:
    keytool -import -trustcacerts -alias intermediate -file intermediate.pem -keystore YOURKEYSTORE.jks

    +
  • +
+

The end result of all this is a complete certificate chain, backed by either a root certificate we trust or, in the case of an untrusted root, a root certificate you're supplying to us. Make sure to verify your setup again after adding the intermediate, once done, you're good to go!

+
Testing your bot with updates
+
    +
  • Update examples
    A set of example updates, which comes in handy for testing your bot.

    +
      +
    • Message with text using curl:

      +
      curl --tlsv1.2 -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"message":{
      +  "date":1441645532,
      +  "chat":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "first_name":"Test",
      +     "username":"Test"
      +  },
      +  "message_id":1365,
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "first_name":"Test",
      +     "username":"Test"
      +  },
      +  "text":"/start"
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +

      --tlsv1.2 will force using TLS1.2.

      +
    • +
    • Message with text using Postman:

      +
      + +
      +
    • +
    +
  • +
  • More examples in curl:

    +
      +
    • Message with text:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"message":{
      +  "date":1441645532,
      +  "chat":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "type": "private",
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "message_id":1365,
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "text":"/start"
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +
    • +
    • Forwarded message:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"message":{
      +  "date":1441645532,
      +  "chat":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "type": "private",
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "message_id":1365,
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "forward_from": {
      +     "last_name":"Forward Lastname",
      +     "id": 222222,
      +     "first_name":"Forward Firstname"
      +  },
      +  "forward_date":1441645550,
      +  "text":"/start"
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +
    • +
    • Forwarded channel message:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"message":{
      +  "date":1441645532,
      +  "chat":{
      +     "last_name":"Test Lastname",
      +     "type": "private",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "message_id":1365,
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "forward_from": {
      +     "id": -10000000000,
      +     "type": "channel",
      +     "title": "Test channel"
      +  },
      +  "forward_date":1441645550,
      +  "text":"/start"
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +
    • +
    • Message with a reply:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"message":{
      +  "date":1441645532,
      +  "chat":{
      +     "last_name":"Test Lastname",
      +     "type": "private",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "message_id":1365,
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "text":"/start",
      +  "reply_to_message":{
      +      "date":1441645000,
      +      "chat":{
      +          "last_name":"Reply Lastname",
      +          "type": "private",
      +          "id":1111112,
      +          "first_name":"Reply Firstname",
      +          "username":"Testusername"
      +      },
      +      "message_id":1334,
      +      "text":"Original"
      +  }
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +
    • +
    • Edited message:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"edited_message":{
      +  "date":1441645532,
      +  "chat":{
      +     "last_name":"Test Lastname",
      +     "type": "private",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "message_id":1365,
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "text":"Edited text",
      +  "edit_date": 1441646600
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +
    • +
    • Message with entities:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"message":{
      +  "date":1441645532,
      +  "chat":{
      +     "last_name":"Test Lastname",
      +     "type": "private",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "message_id":1365,
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "text":"Bold and italics",
      +  "entities": [
      +      {
      +          "type": "italic",
      +          "offset": 9,
      +          "length": 7
      +      },
      +      {
      +          "type": "bold",
      +          "offset": 0,
      +          "length": 4
      +      }
      +      ]
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +
    • +
    • Message with audio:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"message":{
      +  "date":1441645532,
      +  "chat":{
      +     "last_name":"Test Lastname",
      +     "type": "private",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "message_id":1365,
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "audio": {
      +      "file_id": "AwADBAADbXXXXXXXXXXXGBdhD2l6_XX",
      +      "duration": 243,
      +      "mime_type": "audio/mpeg",
      +      "file_size": 3897500,
      +      "title": "Test music file"
      +  }
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +
    • +
    • Voice message:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"message":{
      +  "date":1441645532,
      +  "chat":{
      +     "last_name":"Test Lastname",
      +     "type": "private",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "message_id":1365,
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "voice": {
      +      "file_id": "AwADBAADbXXXXXXXXXXXGBdhD2l6_XX",
      +      "duration": 5,
      +      "mime_type": "audio/ogg",
      +      "file_size": 23000
      +  }
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +
    • +
    • Message with a document:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"message":{
      +  "date":1441645532,
      +  "chat":{
      +     "last_name":"Test Lastname",
      +     "type": "private",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "message_id":1365,
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "document": {
      +      "file_id": "AwADBAADbXXXXXXXXXXXGBdhD2l6_XX",
      +      "file_name": "Testfile.pdf",
      +      "mime_type": "application/pdf",
      +      "file_size": 536392
      +  }
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +
    • +
    • Inline query:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"inline_query":{
      +  "id": 134567890097,
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "type": "private",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "query": "inline query",
      +  "offset": ""
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +
    • +
    • Chosen inline query:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"chosen_inline_result":{
      +  "result_id": "12",
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "type": "private",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "query": "inline query",
      +  "inline_message_id": "1234csdbsk4839"
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +
    • +
    • Callback query:
      curl -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{
      +"update_id":10000,
      +"callback_query":{
      +  "id": "4382bfdwdsb323b2d9",
      +  "from":{
      +     "last_name":"Test Lastname",
      +     "type": "private",
      +     "id":1111111,
      +     "first_name":"Test Firstname",
      +     "username":"Testusername"
      +  },
      +  "data": "Data from button callback",
      +  "inline_message_id": "1234csdbsk4839"
      +}
      +}' "https://YOUR.BOT.URL:YOURPORT/"
      +That's all we have for now!
    • +
    +
  • +
+
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/blogfork.telegram.org/cdn.html b/data/web/blogfork.telegram.org/cdn.html new file mode 100644 index 0000000000..581bd53d0b --- /dev/null +++ b/data/web/blogfork.telegram.org/cdn.html @@ -0,0 +1,212 @@ + + + + + Encrypted CDNs for Speed and Security + + + + + + + + + + + + + + + + +
+ +
+
+
+
+

Encrypted CDNs for Speed and Security

+ +

Following the launch of version 4.2 of the official apps, Telegram client apps may be required to download popular files that were published in public channels with more than 100,000 members from secondary Content Delivery Network data centers. These CDN DCs are located in regions with significant Telegram traffic where we wouldn't want to place Telegram servers for various reasons.

+

The CDN DCs are not a part of the Telegram cloud and should be considered enemy territory. For this reason, each file that is to be sent to these CDN DCs is encrypted with a unique key using AES-256-CTR encryption. The CDN can't access the data it stores because these keys are only accessible to the main MTProto server and to the authorized client.

+
+

See also: More about CDNs and governments in the Advanced FAQ

+
+

How this works

+

When a file from a public channel with ~100,000 members becomes popular in a particular region, the Telegram server may encrypt this file with a unique AES-256-CTR key and send it to a relevant CDN DC for storage.

+

When a file is stored in a CDN DC close to the end user, the download speed will be much higher because the data needs to travel smaller distances and will likely avoid many bottlenecks that exist between regions.

+

This is secure because CDN DCs are treated the same way as internet providers / random third parties:

+
    +
  • CDN DCs don't have the keys to decrypt files that are stored there, so they can't access the data even if a DC becomes compromised.
  • +
  • Encrypted files fragments are protected from tampering by their SHA-256 hash which is checked on the client upon receipt.
  • +
  • No private data is stored in or passed to the CDN DCs.
  • +
  • The server only allows media from public channels with more than 100,000 subscribers to be cached in CDN DCs (this includes media forwarded from those channels and viral media that originated from other large public channels).
  • +
+
+ +
+

CDNs are very limited when it comes to communication: the master data center only uploads encrypted files for storage and will accept no data from the CDN. The client apps only download encrypted files and accept no other updates. The client apps obtain the keys necessary to decrypt the file from the main Telegram server and verify the integrity of the file by its hash, which means that the CDN may only supply the correct file – anything different will be immediately discarded by the client.

+

CDN DCs do not store files on hard disks – only in memory. When a CDN server runs out of memory, a simple LRU algorithm is used to replace the least popular files with new ones.

+

How CDN DCs are different from the master DCs

+
    +
  • CDNs may not be trusted.
  • +
  • Client developers can use help.getCdnConfig to obtain a list of public RSA keys for CDN DCs, which are different from public RSA keys of the master DCs.
  • +
  • CDNs support only the following methods: upload.getCdnFile, initConnection, invokeWithLayer.
  • +
  • When working with CDNs, client developers must remember that auth_key may be deleted at any given moment (resulting in a -404 error, in which case a new key must be generated).
  • +
  • Client apps must not accept updates from CDN DCs (apps should only accept updates from their main connection to the master DC).
  • +
  • Clients must not allow the CDN DCs to substitute replies to queries sent to other DCs.
  • +
  • Clients must not send private user info that is passed in initConnection to the CDNs.
  • +
+

Getting files from a CDN

+

The API may return the upload.fileCdnRedirect constructor after an upload.getFile query. In this case, the client must request the required file from a CDN DC. The dc_id in the response is the id of the new CDN. The IP address for the connection will be available in help.getConfig, same as with the master DCs. The corresponding dcOption will have the flag cdn:flags.3?true.

+

Once a successful connection to the CDN-dc_id is established, the client must generate an auth_key (after confirming that the public RSA MTProto key of the CDN DC matches one from the list returned in help.getCdnConfig). Then the client must perform an upload.getCdnFile for each offset. For files of an unknown size it is necessary to repeat the query until an empty reply is returned.

+

upload.getCdnFile may return the upload.cdnFileReuploadNeeded constructor. In this case, the client needs to send an upload.reuploadCdnFile request to the DC that got the original upload.getFile request. Once upload.reuploadCdnFile is successful, the app needs to request the file from the CDN DC again.

+

The main DC for a file is the DC where its main copy is stored (not to be confused with the main DC of the user) – either userProfilePhoto.dc_id, chatPhoto.dc_id, photo.dc_id, or document.dc_id.

+

Decrypting files

+

In upload.fileCdnRedirect, the server sends a decryption key and IV for the file (the fields encryption_key:bytes and encryption_iv:bytes respectively).

+

Having received a portion of encrypted data from the CDN DC inside upload.cdnFile, the client must decrypt this data using AES-256-CTR. For IV, it should use the value of encryption_iv, modified in the following manner: for each offset replace the last 4 bytes of the encryption_iv with offset / 16 in big-endian. This allows to effectively decrypt a file and to use random access to a file's content (e.g., for streaming).

+

Verifying files

+

In order to confirm that the CDN DC passed an untampered file, clients must verify hashes for each downloaded part. upload.fileCdnRedirect, upload.reuploadCdnFile and upload.getCdnFileHashes contain FileHash constructors. Each of these constructors contains the SHA-256 hash of a part of the file that starts with offset and takes limit bytes.

+

Before saving each portion of the data received from the CDN DC into the file, the client must confirm that its hash matches the hash that was received from the master DC. If missing a hash for any file part, client developers must use the upload.getCdnFileHashes method to obtain the missing hash.

+

Schema

+
fileHash#6242c773 offset:int limit:int hash:bytes = FileHash;
+
+upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector<FileHash> = upload.File;
+
+upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile;
+upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile;
+
+
+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;
+
+cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey;
+
+
+cdnConfig#5725e40a public_keys:Vector<CdnPublicKey> = CdnConfig;
+
+---functions---
+
+// CDN DC
+upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile;
+
+// Master DC
+upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector<FileHash>;
+upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector<FileHash>;
+
+help.getCdnConfig#52029342 = CdnConfig;
+

Restrictions on upload.getFile and upload.getCdnFile parameters

+
    +
  • offset must be divisible by 4096 bytes
  • +
  • limit must be divisible by 4096 bytes
  • +
  • 1048576 (1MB) must be divisible by limit
  • +
  • offset / (1024 * 1024) == (offset + limit - 1) / (1024 * 1024) +(file parts that are being downloaded must always be inside the same megabyte-sized fragment)
  • +
+

Possible errors and their meanings

+ + + + + + + + + + + + + + + + + + +
upload.getCdnFileFILE_TOKEN_INVALIDThe CDN DC did not accept the file_token (e.g., the token has expired). Continue downloading the file from the master DC using upload.getFile.
upload.reuploadCdnFileFILE_TOKEN_INVALIDThe master DC did not accept the file_token (e.g., the token has expired). Continue downloading the file from the master DC using upload.getFile.
upload.reuploadCdnFileREQUEST_TOKEN_INVALIDThe master DC did not accept the request_token from the CDN DC. Continue downloading the file from the master DC using upload.getFile.
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/account.authorizationForm b/data/web/blogfork.telegram.org/constructor/account.authorizationForm new file mode 100644 index 0000000000..7df2bfcbbe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.authorizationForm @@ -0,0 +1,177 @@ + + + + + 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/web/blogfork.telegram.org/constructor/account.authorizations b/data/web/blogfork.telegram.org/constructor/account.authorizations new file mode 100644 index 0000000000..f6f39b0705 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.authorizations @@ -0,0 +1,155 @@ + + + + + account.authorizations + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

account.authorizations

+ +

Logged-in sessions

+

+ +
+
account.authorizations#4bff8ea0 authorization_ttl_days:int authorizations:Vector<Authorization> = account.Authorizations;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
authorization_ttl_daysintTime-to-live of session
authorizationsVector<Authorization>Logged-in sessions
+

Type

+

account.Authorizations

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/account.autoDownloadSettings b/data/web/blogfork.telegram.org/constructor/account.autoDownloadSettings new file mode 100644 index 0000000000..4ad8189b78 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.autoDownloadSettings @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/account.contentSettings b/data/web/blogfork.telegram.org/constructor/account.contentSettings new file mode 100644 index 0000000000..d357bb5979 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.contentSettings @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/account.password b/data/web/blogfork.telegram.org/constructor/account.password new file mode 100644 index 0000000000..8b2d5d341d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.password @@ -0,0 +1,216 @@ + + + + + account.password + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

account.password

+ +

Configuration for two-factor authorization

+

+ +
+
account.password#185b184f 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 pending_reset_date:flags.5?int = 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
pending_reset_dateflags.5?intThe 2FA password will be automatically removed at this date, unless the user cancels the operation
+

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/web/blogfork.telegram.org/constructor/account.passwordInputSettings b/data/web/blogfork.telegram.org/constructor/account.passwordInputSettings new file mode 100644 index 0000000000..a060e1f096 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.passwordInputSettings @@ -0,0 +1,179 @@ + + + + + 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/web/blogfork.telegram.org/constructor/account.passwordSettings b/data/web/blogfork.telegram.org/constructor/account.passwordSettings new file mode 100644 index 0000000000..a6421916e0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/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;

+

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/web/blogfork.telegram.org/constructor/account.privacyRules b/data/web/blogfork.telegram.org/constructor/account.privacyRules new file mode 100644 index 0000000000..00809d641f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.privacyRules @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/account.resetPasswordFailedWait b/data/web/blogfork.telegram.org/constructor/account.resetPasswordFailedWait new file mode 100644 index 0000000000..abde75b4db --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.resetPasswordFailedWait @@ -0,0 +1,150 @@ + + + + + account.resetPasswordFailedWait + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

account.resetPasswordFailedWait

+ +

You recently requested a password reset that was canceled, please wait until the specified date before requesting another reset.

+

+ +
+
account.resetPasswordFailedWait#e3779861 retry_date:int = account.ResetPasswordResult;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
retry_dateintWait until this date before requesting another reset.
+

Type

+

account.ResetPasswordResult

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/account.resetPasswordOk b/data/web/blogfork.telegram.org/constructor/account.resetPasswordOk new file mode 100644 index 0000000000..0a430beb12 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.resetPasswordOk @@ -0,0 +1,135 @@ + + + + + account.resetPasswordOk + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

account.resetPasswordOk

+ +

The 2FA password was reset successfully.

+

+ +
+
account.resetPasswordOk#e926d63e = account.ResetPasswordResult;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

account.ResetPasswordResult

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/account.resetPasswordRequestedWait b/data/web/blogfork.telegram.org/constructor/account.resetPasswordRequestedWait new file mode 100644 index 0000000000..036e6f87ab --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.resetPasswordRequestedWait @@ -0,0 +1,150 @@ + + + + + account.resetPasswordRequestedWait + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

account.resetPasswordRequestedWait

+ +

You successfully requested a password reset, please wait until the specified date before finalizing the reset.

+

+ +
+
account.resetPasswordRequestedWait#e9effc7d until_date:int = account.ResetPasswordResult;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
until_dateintWait until this date before finalizing the reset.
+

Type

+

account.ResetPasswordResult

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/account.sentEmailCode b/data/web/blogfork.telegram.org/constructor/account.sentEmailCode new file mode 100644 index 0000000000..07370f9c48 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.sentEmailCode @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/account.takeout b/data/web/blogfork.telegram.org/constructor/account.takeout new file mode 100644 index 0000000000..14e4478250 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.takeout @@ -0,0 +1,150 @@ + + + + + account.takeout + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

account.takeout

+ +

Takeout info

+

+ +
+
account.takeout#4dba4501 id:long = account.Takeout;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idlongTakeout ID
+

Type

+

account.Takeout

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/account.themes b/data/web/blogfork.telegram.org/constructor/account.themes new file mode 100644 index 0000000000..b234dad502 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.themes @@ -0,0 +1,158 @@ + + + + + account.themes + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

account.themes

+ +

Installed themes

+

+ +
+
account.themes#9a3d8c6d hash:long themes:Vector<Theme> = account.Themes;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashlongHash 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/web/blogfork.telegram.org/constructor/account.themesNotModified b/data/web/blogfork.telegram.org/constructor/account.themesNotModified new file mode 100644 index 0000000000..603136ed6f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.themesNotModified @@ -0,0 +1,135 @@ + + + + + account.themesNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

account.themesNotModified

+ +

No new themes were installed

+

+ +
+
account.themesNotModified#f41eb622 = account.Themes;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

account.Themes

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/account.tmpPassword b/data/web/blogfork.telegram.org/constructor/account.tmpPassword new file mode 100644 index 0000000000..943406bba9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.tmpPassword @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/account.wallPapers b/data/web/blogfork.telegram.org/constructor/account.wallPapers new file mode 100644 index 0000000000..0fdf824e09 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.wallPapers @@ -0,0 +1,158 @@ + + + + + account.wallPapers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

account.wallPapers

+ +

Installed wallpapers

+

+ +
+
account.wallPapers#cdc3858c hash:long wallpapers:Vector<WallPaper> = account.WallPapers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashlongHash 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/web/blogfork.telegram.org/constructor/account.wallPapersNotModified b/data/web/blogfork.telegram.org/constructor/account.wallPapersNotModified new file mode 100644 index 0000000000..a4a71b88ec --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.wallPapersNotModified @@ -0,0 +1,135 @@ + + + + + account.wallPapersNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

account.wallPapersNotModified

+ +

No new wallpapers were found

+

+ +
+
account.wallPapersNotModified#1c199183 = account.WallPapers;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

account.WallPapers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/account.webAuthorizations b/data/web/blogfork.telegram.org/constructor/account.webAuthorizations new file mode 100644 index 0000000000..411ef99083 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/account.webAuthorizations @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/accountDaysTTL.html b/data/web/blogfork.telegram.org/constructor/accountDaysTTL.html new file mode 100644 index 0000000000..fdeb47564e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/accountDaysTTL.html @@ -0,0 +1,150 @@ + + + + + accountDaysTTL + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

accountDaysTTL

+ +

Time to live in days of the current account

+

+ +
+
accountDaysTTL#b8d0afdf days:int = AccountDaysTTL;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
daysintThis account will self-destruct in the specified number of days
+

Type

+

AccountDaysTTL

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.authorization b/data/web/blogfork.telegram.org/constructor/auth.authorization new file mode 100644 index 0000000000..f8b8a7105d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.authorization @@ -0,0 +1,172 @@ + + + + + auth.authorization + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.authorization

+ +

Contains user authorization info.

+

+ +
+
auth.authorization#33fb7bb8 flags:# setup_password_required:flags.1?true otherwise_relogin_days:flags.1?int tmp_sessions:flags.0?int user:User = auth.Authorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
setup_password_requiredflags.1?trueSuggests the user to set up a 2-step verification password to be able to log in again
otherwise_relogin_daysflags.1?intIff setup_password_required is set and the user declines to set a 2-step verification password, they will be able to log into their account via SMS again only after this many days pass.
tmp_sessionsflags.0?intTemporary passport sessions
userUserInfo on authorized user
+

Type

+

auth.Authorization

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.authorizationSignUpRequired b/data/web/blogfork.telegram.org/constructor/auth.authorizationSignUpRequired new file mode 100644 index 0000000000..95b94d21e8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.authorizationSignUpRequired @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/auth.codeTypeCall b/data/web/blogfork.telegram.org/constructor/auth.codeTypeCall new file mode 100644 index 0000000000..df9918c228 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.codeTypeCall @@ -0,0 +1,135 @@ + + + + + auth.codeTypeCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.codeTypeCall

+ +

The next time, the authentication code is to be delivered via an outgoing phone call.

+

+ +
+
auth.codeTypeCall#741cd3e3 = auth.CodeType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

auth.CodeType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.codeTypeFlashCall b/data/web/blogfork.telegram.org/constructor/auth.codeTypeFlashCall new file mode 100644 index 0000000000..80d245936b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.codeTypeFlashCall @@ -0,0 +1,135 @@ + + + + + auth.codeTypeFlashCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.codeTypeFlashCall

+ +

The next time, the authentication code will be delivered via an immediately canceled incoming call.

+

+ +
+
auth.codeTypeFlashCall#226ccefb = auth.CodeType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

auth.CodeType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.codeTypeMissedCall b/data/web/blogfork.telegram.org/constructor/auth.codeTypeMissedCall new file mode 100644 index 0000000000..ef927f6172 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.codeTypeMissedCall @@ -0,0 +1,135 @@ + + + + + auth.codeTypeMissedCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.codeTypeMissedCall

+ +

The next time, the authentication code will be delivered via an immediately canceled incoming call, handled manually by the user.

+

+ +
+
auth.codeTypeMissedCall#d61ad6ee = auth.CodeType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

auth.CodeType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.codeTypeSms b/data/web/blogfork.telegram.org/constructor/auth.codeTypeSms new file mode 100644 index 0000000000..72015c21c8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.codeTypeSms @@ -0,0 +1,135 @@ + + + + + auth.codeTypeSms + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.codeTypeSms

+ +

The next time, the authentication code will be delivered via an immediately canceled incoming call.

+

+ +
+
auth.codeTypeSms#72a3158c = auth.CodeType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

auth.CodeType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.exportedAuthorization b/data/web/blogfork.telegram.org/constructor/auth.exportedAuthorization new file mode 100644 index 0000000000..3057ce47b1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.exportedAuthorization @@ -0,0 +1,155 @@ + + + + + auth.exportedAuthorization + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.exportedAuthorization

+ +

Data for copying of authorization between data centers.

+

+ +
+
auth.exportedAuthorization#b434e2b8 id:long bytes:bytes = auth.ExportedAuthorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongcurrent user identifier
bytesbytesauthorizes key
+

Type

+

auth.ExportedAuthorization

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.loggedOut b/data/web/blogfork.telegram.org/constructor/auth.loggedOut new file mode 100644 index 0000000000..ffa9f1ba23 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.loggedOut @@ -0,0 +1,158 @@ + + + + + auth.loggedOut + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.loggedOut

+ +

Logout token » to be used on subsequent authorizations

+

+ +
+
auth.loggedOut#c3a2835f flags:# future_auth_token:flags.0?bytes = auth.LoggedOut;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
future_auth_tokenflags.0?bytesLogout token » to be used on subsequent authorizations
+

Type

+

auth.LoggedOut

+

Related pages

+

User Authorization

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.loginToken b/data/web/blogfork.telegram.org/constructor/auth.loginToken new file mode 100644 index 0000000000..8b80638efb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.loginToken @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/auth.loginTokenMigrateTo b/data/web/blogfork.telegram.org/constructor/auth.loginTokenMigrateTo new file mode 100644 index 0000000000..e87d868283 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.loginTokenMigrateTo @@ -0,0 +1,155 @@ + + + + + auth.loginTokenMigrateTo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.loginTokenMigrateTo

+ +

Repeat the query to the specified DC

+

+ +
+
auth.loginTokenMigrateTo#68e9916 dc_id:int token:bytes = auth.LoginToken;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dc_idintDC ID
tokenbytesToken to use for login
+

Type

+

auth.LoginToken

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.loginTokenSuccess b/data/web/blogfork.telegram.org/constructor/auth.loginTokenSuccess new file mode 100644 index 0000000000..ab2888e85f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.loginTokenSuccess @@ -0,0 +1,150 @@ + + + + + auth.loginTokenSuccess + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.loginTokenSuccess

+ +

Login via token (QR code) succeeded!

+

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

+

Parameters

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

Type

+

auth.LoginToken

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.passwordRecovery b/data/web/blogfork.telegram.org/constructor/auth.passwordRecovery new file mode 100644 index 0000000000..53994c8475 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.passwordRecovery @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/auth.sentCode b/data/web/blogfork.telegram.org/constructor/auth.sentCode new file mode 100644 index 0000000000..525991742c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.sentCode @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/auth.sentCodeTypeApp b/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeApp new file mode 100644 index 0000000000..88c2f30ed1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeApp @@ -0,0 +1,150 @@ + + + + + auth.sentCodeTypeApp + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sentCodeTypeApp

+ +

The code was sent through the telegram app

+

+ +
+
auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
lengthintLength of the code in bytes
+

Type

+

auth.SentCodeType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeCall b/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeCall new file mode 100644 index 0000000000..b3fa76b665 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeCall @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/auth.sentCodeTypeFlashCall b/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeFlashCall new file mode 100644 index 0000000000..6fe64b3285 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeFlashCall @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/auth.sentCodeTypeMissedCall b/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeMissedCall new file mode 100644 index 0000000000..0da5b974cf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeMissedCall @@ -0,0 +1,155 @@ + + + + + auth.sentCodeTypeMissedCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sentCodeTypeMissedCall

+ +

The code will be sent via a flash phone call, that will be closed immediately. The last digits of the phone number that calls are the code that must be entered manually by the user.

+

+ +
+
auth.sentCodeTypeMissedCall#82006484 prefix:string length:int = auth.SentCodeType;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prefixstringPrefix of the phone number from which the call will be made
lengthintLength of the verification code
+

Type

+

auth.SentCodeType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeSms b/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeSms new file mode 100644 index 0000000000..ac41599a70 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/auth.sentCodeTypeSms @@ -0,0 +1,150 @@ + + + + + auth.sentCodeTypeSms + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.sentCodeTypeSms

+ +

The code was sent via SMS

+

+ +
+
auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
lengthintLength of the code in bytes
+

Type

+

auth.SentCodeType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/authorization.html b/data/web/blogfork.telegram.org/constructor/authorization.html new file mode 100644 index 0000000000..9f61556cea --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/authorization.html @@ -0,0 +1,238 @@ + + + + + authorization + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

authorization

+ +

Logged-in session

+

+ +
+
authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?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
encrypted_requests_disabledflags.3?trueWhether this session will accept encrypted chats
call_requests_disabledflags.4?trueWhether this session will accept phone calls
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/web/blogfork.telegram.org/constructor/autoDownloadSettings.html b/data/web/blogfork.telegram.org/constructor/autoDownloadSettings.html new file mode 100644 index 0000000000..24738453a6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/autoDownloadSettings.html @@ -0,0 +1,190 @@ + + + + + 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/web/blogfork.telegram.org/constructor/availableReaction.html b/data/web/blogfork.telegram.org/constructor/availableReaction.html new file mode 100644 index 0000000000..fe8606bc62 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/availableReaction.html @@ -0,0 +1,200 @@ + + + + + availableReaction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

availableReaction

+ +

Animations associated with a message reaction

+

+ +
+
availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
inactiveflags.0?trueIf not set, the reaction can be added to new messages and enabled in chats.
reactionstringReaction emoji
titlestringReaction description
static_iconDocumentStatic icon for the reaction
appear_animationDocumentThe animated sticker to show when the user opens the reaction dropdown
select_animationDocumentThe animated sticker to show when the user selects this reaction
activate_animationDocumentThe animated sticker to show when the reaction is chosen and activated
effect_animationDocumentThe background effect (still an animated sticker) to play under the activate_animation, when the reaction is chosen and activated
around_animationflags.1?DocumentThe animation that plays around the button when you press an existing reaction (played together with center_icon).
center_iconflags.1?DocumentThe animation of the emoji inside the button when you press an existing reaction (played together with around_animation).
+

Type

+

AvailableReaction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/bankCardOpenUrl.html b/data/web/blogfork.telegram.org/constructor/bankCardOpenUrl.html new file mode 100644 index 0000000000..d4919f2091 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/bankCardOpenUrl.html @@ -0,0 +1,155 @@ + + + + + bankCardOpenUrl + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

bankCardOpenUrl

+ +

Credit card info URL provided by the bank

+

+ +
+
bankCardOpenUrl#f568028a url:string name:string = BankCardOpenUrl;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringInfo URL
namestringBank name
+

Type

+

BankCardOpenUrl

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/baseThemeArctic.html b/data/web/blogfork.telegram.org/constructor/baseThemeArctic.html new file mode 100644 index 0000000000..06e6ae6e78 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/baseThemeArctic.html @@ -0,0 +1,135 @@ + + + + + baseThemeArctic + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

baseThemeArctic

+ +

Arctic theme

+

+ +
+
baseThemeArctic#5b11125a = BaseTheme;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

BaseTheme

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/baseThemeClassic.html b/data/web/blogfork.telegram.org/constructor/baseThemeClassic.html new file mode 100644 index 0000000000..f64bcb2868 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/baseThemeClassic.html @@ -0,0 +1,135 @@ + + + + + baseThemeClassic + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

baseThemeClassic

+ +

Classic theme

+

+ +
+
baseThemeClassic#c3a12462 = BaseTheme;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

BaseTheme

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/baseThemeDay.html b/data/web/blogfork.telegram.org/constructor/baseThemeDay.html new file mode 100644 index 0000000000..a5b92d9c4f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/baseThemeDay.html @@ -0,0 +1,135 @@ + + + + + baseThemeDay + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

baseThemeDay

+ +

Day theme

+

+ +
+
baseThemeDay#fbd81688 = BaseTheme;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

BaseTheme

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/baseThemeNight.html b/data/web/blogfork.telegram.org/constructor/baseThemeNight.html new file mode 100644 index 0000000000..a48a2b603c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/baseThemeNight.html @@ -0,0 +1,135 @@ + + + + + baseThemeNight + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

baseThemeNight

+ +

Night theme

+

+ +
+
baseThemeNight#b7b31ea8 = BaseTheme;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

BaseTheme

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/baseThemeTinted.html b/data/web/blogfork.telegram.org/constructor/baseThemeTinted.html new file mode 100644 index 0000000000..dedd707fca --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/baseThemeTinted.html @@ -0,0 +1,135 @@ + + + + + baseThemeTinted + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

baseThemeTinted

+ +

Tinted theme

+

+ +
+
baseThemeTinted#6d5f77ee = BaseTheme;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

BaseTheme

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/boolFalse.html b/data/web/blogfork.telegram.org/constructor/boolFalse.html new file mode 100644 index 0000000000..d315d6090c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/boolFalse.html @@ -0,0 +1,135 @@ + + + + + boolFalse + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

boolFalse

+ +

Constructor may be interpreted as a booleanfalse value.

+

+ +
+
boolFalse#bc799737 = Bool;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/boolTrue.html b/data/web/blogfork.telegram.org/constructor/boolTrue.html new file mode 100644 index 0000000000..7c83dc3630 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/boolTrue.html @@ -0,0 +1,135 @@ + + + + + boolTrue + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

boolTrue

+ +

The constructor can be interpreted as a booleantrue value.

+

+ +
+
boolTrue#997275b5 = Bool;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Bool

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/botCommand.html b/data/web/blogfork.telegram.org/constructor/botCommand.html new file mode 100644 index 0000000000..810e42721d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botCommand.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/botCommandScopeChatAdmins.html b/data/web/blogfork.telegram.org/constructor/botCommandScopeChatAdmins.html new file mode 100644 index 0000000000..04598a14d7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botCommandScopeChatAdmins.html @@ -0,0 +1,138 @@ + + + + + botCommandScopeChatAdmins + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

botCommandScopeChatAdmins

+ +

The specified bot commands will be valid only for chat administrators, in all groups and supergroups.

+

+ +
+
botCommandScopeChatAdmins#b9aa606a = BotCommandScope;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

BotCommandScope

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/botCommandScopeChats.html b/data/web/blogfork.telegram.org/constructor/botCommandScopeChats.html new file mode 100644 index 0000000000..aa1e3b110e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botCommandScopeChats.html @@ -0,0 +1,138 @@ + + + + + botCommandScopeChats + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

botCommandScopeChats

+ +

The specified bot commands will be valid in all groups and supergroups.

+

+ +
+
botCommandScopeChats#6fe1a881 = BotCommandScope;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

BotCommandScope

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/botCommandScopeDefault.html b/data/web/blogfork.telegram.org/constructor/botCommandScopeDefault.html new file mode 100644 index 0000000000..8e6943bb0f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botCommandScopeDefault.html @@ -0,0 +1,135 @@ + + + + + botCommandScopeDefault + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

botCommandScopeDefault

+ +

The commands will be valid in all dialogs

+

+ +
+
botCommandScopeDefault#2f6cb2ab = BotCommandScope;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

BotCommandScope

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/botCommandScopePeer.html b/data/web/blogfork.telegram.org/constructor/botCommandScopePeer.html new file mode 100644 index 0000000000..835796a791 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botCommandScopePeer.html @@ -0,0 +1,150 @@ + + + + + botCommandScopePeer + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

botCommandScopePeer

+ +

The specified bot commands will be valid only in a specific dialog.

+

+ +
+
botCommandScopePeer#db9d897d peer:InputPeer = BotCommandScope;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe dialog
+

Type

+

BotCommandScope

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/botCommandScopePeerAdmins.html b/data/web/blogfork.telegram.org/constructor/botCommandScopePeerAdmins.html new file mode 100644 index 0000000000..b14041559e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botCommandScopePeerAdmins.html @@ -0,0 +1,153 @@ + + + + + botCommandScopePeerAdmins + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

botCommandScopePeerAdmins

+ +

The specified bot commands will be valid for all admins of the specified group or supergroup.

+

+ +
+
botCommandScopePeerAdmins#3fd863d1 peer:InputPeer = BotCommandScope;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat
+

Type

+

BotCommandScope

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/botCommandScopePeerUser.html b/data/web/blogfork.telegram.org/constructor/botCommandScopePeerUser.html new file mode 100644 index 0000000000..93ee96fae0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botCommandScopePeerUser.html @@ -0,0 +1,158 @@ + + + + + botCommandScopePeerUser + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

botCommandScopePeerUser

+ +

The specified bot commands will be valid only for a specific user in the specified group or supergroup.

+

+ +
+
botCommandScopePeerUser#a1321f3 peer:InputPeer user_id:InputUser = BotCommandScope;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat
user_idInputUserThe user
+

Type

+

BotCommandScope

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/botCommandScopeUsers.html b/data/web/blogfork.telegram.org/constructor/botCommandScopeUsers.html new file mode 100644 index 0000000000..203d930708 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botCommandScopeUsers.html @@ -0,0 +1,135 @@ + + + + + botCommandScopeUsers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

botCommandScopeUsers

+ +

The specified bot commands will only be valid in all private chats with users.

+

+ +
+
botCommandScopeUsers#3c4f04d8 = BotCommandScope;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

BotCommandScope

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/botInfo.html b/data/web/blogfork.telegram.org/constructor/botInfo.html new file mode 100644 index 0000000000..fc5ef74943 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botInfo.html @@ -0,0 +1,160 @@ + + + + + botInfo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

botInfo

+ +

Info about bots (available bot commands, etc)

+

+ +
+
botInfo#1b74b335 user_id:long description:string commands:Vector<BotCommand> = BotInfo;

+

Parameters

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

Type

+

BotInfo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/botInlineMediaResult.html b/data/web/blogfork.telegram.org/constructor/botInlineMediaResult.html new file mode 100644 index 0000000000..a42ad14c9f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botInlineMediaResult.html @@ -0,0 +1,189 @@ + + + + + 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/web/blogfork.telegram.org/constructor/botInlineMessageMediaAuto.html b/data/web/blogfork.telegram.org/constructor/botInlineMessageMediaAuto.html new file mode 100644 index 0000000000..2b406e661d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botInlineMessageMediaAuto.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/botInlineMessageMediaContact.html b/data/web/blogfork.telegram.org/constructor/botInlineMessageMediaContact.html new file mode 100644 index 0000000000..9503981087 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botInlineMessageMediaContact.html @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/botInlineMessageMediaGeo.html b/data/web/blogfork.telegram.org/constructor/botInlineMessageMediaGeo.html new file mode 100644 index 0000000000..9c85530821 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botInlineMessageMediaGeo.html @@ -0,0 +1,178 @@ + + + + + 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/web/blogfork.telegram.org/constructor/botInlineMessageMediaInvoice.html b/data/web/blogfork.telegram.org/constructor/botInlineMessageMediaInvoice.html new file mode 100644 index 0000000000..b1e1c76c25 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botInlineMessageMediaInvoice.html @@ -0,0 +1,192 @@ + + + + + botInlineMessageMediaInvoice + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

botInlineMessageMediaInvoice

+ +

Send an invoice

+

+ +
+
botInlineMessageMediaInvoice#354a9b09 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument currency:string total_amount:long reply_markup:flags.2?ReplyMarkup = BotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
shipping_address_requestedflags.1?trueSet this flag if you require the user's shipping address to complete the order
testflags.3?trueTest invoice
titlestringProduct name, 1-32 characters
descriptionstringProduct description, 1-255 characters
photoflags.0?WebDocumentProduct photo
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).
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

BotInlineMessage

+

Related pages

+

Bot Payments API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/botInlineMessageMediaVenue.html b/data/web/blogfork.telegram.org/constructor/botInlineMessageMediaVenue.html new file mode 100644 index 0000000000..63796d9a9d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botInlineMessageMediaVenue.html @@ -0,0 +1,185 @@ + + + + + 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/web/blogfork.telegram.org/constructor/botInlineMessageText.html b/data/web/blogfork.telegram.org/constructor/botInlineMessageText.html new file mode 100644 index 0000000000..0ddaee77f6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botInlineMessageText.html @@ -0,0 +1,173 @@ + + + + + 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/web/blogfork.telegram.org/constructor/botInlineResult.html b/data/web/blogfork.telegram.org/constructor/botInlineResult.html new file mode 100644 index 0000000000..45b0b3a919 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/botInlineResult.html @@ -0,0 +1,192 @@ + + + + + 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/web/blogfork.telegram.org/constructor/cdnConfig.html b/data/web/blogfork.telegram.org/constructor/cdnConfig.html new file mode 100644 index 0000000000..1124b4a784 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/cdnConfig.html @@ -0,0 +1,152 @@ + + + + + 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/web/blogfork.telegram.org/constructor/cdnPublicKey.html b/data/web/blogfork.telegram.org/constructor/cdnPublicKey.html new file mode 100644 index 0000000000..01bb9d33fe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/cdnPublicKey.html @@ -0,0 +1,157 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channel.html b/data/web/blogfork.telegram.org/constructor/channel.html new file mode 100644 index 0000000000..7a1e628831 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channel.html @@ -0,0 +1,297 @@ + + + + + channel + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channel

+ +

Channel/supergroup info

+

+ +
+
channel#8261ac61 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 fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true join_to_send:flags.28?true join_request:flags.29?true id:long access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date: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
call_activeflags.23?trueWhether a group call or livestream is currently active
call_not_emptyflags.24?trueWhether there's anyone in the group call or livestream
fakeflags.25?trueIf set, this supergroup/channel was reported by many users as a fake or scam: be careful when interacting with it.
gigagroupflags.26?trueWhether this supergroup is a gigagroup
noforwardsflags.27?trueWhether this channel or group is protected, thus does not allow forwarding messages from it
idlongID 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
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.

+

Channels, supergroups, gigagroups and basic groups

+

How to handle channels, supergroups, gigagroups, basic 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/web/blogfork.telegram.org/constructor/channelAdminLogEvent.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEvent.html new file mode 100644 index 0000000000..e2697bd2d3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEvent.html @@ -0,0 +1,165 @@ + + + + + channelAdminLogEvent + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEvent

+ +

Admin log event

+

+ +
+
channelAdminLogEvent#1fad68cd id:long date:int user_id:long action:ChannelAdminLogEventAction = ChannelAdminLogEvent;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongEvent ID
dateintDate
user_idlongUser ID
actionChannelAdminLogEventActionAction
+

Type

+

ChannelAdminLogEvent

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeAbout.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeAbout.html new file mode 100644 index 0000000000..139dd4ded5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeAbout.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeAvailableReactions.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeAvailableReactions.html new file mode 100644 index 0000000000..bcfbd4a785 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeAvailableReactions.html @@ -0,0 +1,158 @@ + + + + + channelAdminLogEventActionChangeAvailableReactions + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionChangeAvailableReactions

+ +

The set of allowed message reactions » for this channel has changed

+

+ +
+
channelAdminLogEventActionChangeAvailableReactions#9cf7f76a prev_value:Vector<string> new_value:Vector<string> = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_valueVector<string>Previously allowed reaction emojis
new_valueVector<string>New allowed reaction emojis
+

Type

+

ChannelAdminLogEventAction

+

Related pages

+

Message reactions

+

Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeHistoryTTL.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeHistoryTTL.html new file mode 100644 index 0000000000..f3f41abd41 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeHistoryTTL.html @@ -0,0 +1,155 @@ + + + + + channelAdminLogEventActionChangeHistoryTTL + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionChangeHistoryTTL

+ +

The Time-To-Live of messages in this chat was changed

+

+ +
+
channelAdminLogEventActionChangeHistoryTTL#6e941a38 prev_value:int new_value:int = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_valueintPrevious value
new_valueintNew value
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat.html new file mode 100644 index 0000000000..a3f69c692c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat.html @@ -0,0 +1,155 @@ + + + + + channelAdminLogEventActionChangeLinkedChat + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionChangeLinkedChat

+ +

The linked chat was changed

+

+ +
+
channelAdminLogEventActionChangeLinkedChat#50c7ac8 prev_value:long new_value:long = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_valuelongPrevious linked chat
new_valuelongNew linked chat
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeLocation.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeLocation.html new file mode 100644 index 0000000000..562421582c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeLocation.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangePhoto.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangePhoto.html new file mode 100644 index 0000000000..799ac638b7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangePhoto.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet.html new file mode 100644 index 0000000000..f721e42709 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeTitle.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeTitle.html new file mode 100644 index 0000000000..bc2c448123 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeTitle.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeUsername.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeUsername.html new file mode 100644 index 0000000000..c0d8c4dff8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionChangeUsername.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights.html new file mode 100644 index 0000000000..97acb2e3fd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights.html @@ -0,0 +1,158 @@ + + + + + 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 global 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDeleteMessage.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDeleteMessage.html new file mode 100644 index 0000000000..3ee41c3adf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDeleteMessage.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionDeleteMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionDeleteMessage

+ +

A message was deleted

+

+ +
+
channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction;

+

Parameters

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

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDiscardGroupCall.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDiscardGroupCall.html new file mode 100644 index 0000000000..142268e671 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionDiscardGroupCall.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionDiscardGroupCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionDiscardGroupCall

+ +

A group call was terminated

+

+ +
+
channelAdminLogEventActionDiscardGroupCall#db9f9140 call:InputGroupCall = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
callInputGroupCallThe group call that was terminated
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionEditMessage.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionEditMessage.html new file mode 100644 index 0000000000..3766ca7a80 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionEditMessage.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteDelete.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteDelete.html new file mode 100644 index 0000000000..6518d3ce38 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteDelete.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionExportedInviteDelete + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionExportedInviteDelete

+ +

A chat invite was deleted

+

+ +
+
channelAdminLogEventActionExportedInviteDelete#5a50fca4 invite:ExportedChatInvite = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
inviteExportedChatInviteThe deleted chat invite
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteEdit.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteEdit.html new file mode 100644 index 0000000000..17d364bd1b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteEdit.html @@ -0,0 +1,155 @@ + + + + + channelAdminLogEventActionExportedInviteEdit + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionExportedInviteEdit

+ +

A chat invite was edited

+

+ +
+
channelAdminLogEventActionExportedInviteEdit#e90ebb59 prev_invite:ExportedChatInvite new_invite:ExportedChatInvite = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
prev_inviteExportedChatInvitePrevious chat invite information
new_inviteExportedChatInviteNew chat invite information
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteRevoke.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteRevoke.html new file mode 100644 index 0000000000..ff15a0d24f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionExportedInviteRevoke.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionExportedInviteRevoke + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionExportedInviteRevoke

+ +

A specific invite link was revoked

+

+ +
+
channelAdminLogEventActionExportedInviteRevoke#410a134e invite:ExportedChatInvite = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
inviteExportedChatInviteThe invite link that was revoked
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantInvite.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantInvite.html new file mode 100644 index 0000000000..fd3c05adbe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantInvite.html @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoin.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoin.html new file mode 100644 index 0000000000..cfe5540cfb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoin.html @@ -0,0 +1,135 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByInvite.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByInvite.html new file mode 100644 index 0000000000..287447546e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByInvite.html @@ -0,0 +1,153 @@ + + + + + channelAdminLogEventActionParticipantJoinByInvite + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionParticipantJoinByInvite

+ +

A user joined the supergroup/channel using a specific invite link

+

+ +
+
channelAdminLogEventActionParticipantJoinByInvite#5cdada77 invite:ExportedChatInvite = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
inviteExportedChatInviteThe invite link used to join the supergroup/channel
+

Type

+

ChannelAdminLogEventAction

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByRequest.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByRequest.html new file mode 100644 index 0000000000..33ffba1d8b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByRequest.html @@ -0,0 +1,155 @@ + + + + + channelAdminLogEventActionParticipantJoinByRequest + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionParticipantJoinByRequest

+ +

A new member was accepted to the chat by an admin

+

+ +
+
channelAdminLogEventActionParticipantJoinByRequest#afb6144a invite:ExportedChatInvite approved_by:long = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
inviteExportedChatInviteThe invite link that was used to join the chat
approved_bylongID of the admin that approved the invite
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantLeave.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantLeave.html new file mode 100644 index 0000000000..53575b38cc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantLeave.html @@ -0,0 +1,135 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantMute.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantMute.html new file mode 100644 index 0000000000..ebf8d1b394 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantMute.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionParticipantMute + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionParticipantMute

+ +

A group call participant was muted

+

+ +
+
channelAdminLogEventActionParticipantMute#f92424d2 participant:GroupCallParticipant = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
participantGroupCallParticipantThe participant that was muted
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.html new file mode 100644 index 0000000000..d0ae6a37e6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.html new file mode 100644 index 0000000000..2ca20173d6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantUnmute.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantUnmute.html new file mode 100644 index 0000000000..0f9958c862 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantUnmute.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionParticipantUnmute + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionParticipantUnmute

+ +

A group call participant was unmuted

+

+ +
+
channelAdminLogEventActionParticipantUnmute#e64429c0 participant:GroupCallParticipant = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
participantGroupCallParticipantThe participant that was unmuted
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantVolume.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantVolume.html new file mode 100644 index 0000000000..c4e264cc65 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionParticipantVolume.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionParticipantVolume + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionParticipantVolume

+ +

channelAdminLogEvent.user_id has set the volume of participant.peer to participant.volume

+

+ +
+
channelAdminLogEventActionParticipantVolume#3e7f6847 participant:GroupCallParticipant = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
participantGroupCallParticipantThe participant whose volume was changed
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionSendMessage.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionSendMessage.html new file mode 100644 index 0000000000..bc9db8ad26 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionSendMessage.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionSendMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionSendMessage

+ +

A message was posted in a channel

+

+ +
+
channelAdminLogEventActionSendMessage#278f2868 message:Message = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
messageMessageThe message that was sent
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionStartGroupCall.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionStartGroupCall.html new file mode 100644 index 0000000000..ad3467d0a6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionStartGroupCall.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionStartGroupCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionStartGroupCall

+ +

A group call was started

+

+ +
+
channelAdminLogEventActionStartGroupCall#23209745 call:InputGroupCall = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
callInputGroupCallGroup call
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionStopPoll.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionStopPoll.html new file mode 100644 index 0000000000..d875b0db0c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionStopPoll.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionStopPoll + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionStopPoll

+ +

A poll was stopped

+

+ +
+
channelAdminLogEventActionStopPoll#8f079643 message:Message = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
messageMessageThe poll that was stopped
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleGroupCallSetting.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleGroupCallSetting.html new file mode 100644 index 0000000000..3b6e7e3e8b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleGroupCallSetting.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionToggleGroupCallSetting + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionToggleGroupCallSetting

+ +

Group call settings were changed

+

+ +
+
channelAdminLogEventActionToggleGroupCallSetting#56d6a247 join_muted:Bool = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
join_mutedBoolWhether all users are muted by default upon joining
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleInvites.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleInvites.html new file mode 100644 index 0000000000..d875f928f9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleInvites.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionToggleInvites + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionToggleInvites

+ +

Invites were enabled/disabled

+

+ +
+
channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction;

+

Parameters

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

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleNoForwards.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleNoForwards.html new file mode 100644 index 0000000000..a370421f66 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleNoForwards.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionToggleNoForwards + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionToggleNoForwards

+ +

Forwards were enabled or disabled

+

+ +
+
channelAdminLogEventActionToggleNoForwards#cb2ac766 new_value:Bool = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
new_valueBoolOld value
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden.html new file mode 100644 index 0000000000..8eca571540 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleSignatures.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleSignatures.html new file mode 100644 index 0000000000..9fb6b9b365 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleSignatures.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionToggleSignatures + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionToggleSignatures

+ +

Channel signatures were enabled/disabled

+

+ +
+
channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction;

+

Parameters

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

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode.html new file mode 100644 index 0000000000..46dc111813 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelAdminLogEventActionUpdatePinned.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionUpdatePinned.html new file mode 100644 index 0000000000..c0cf841d22 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventActionUpdatePinned.html @@ -0,0 +1,150 @@ + + + + + channelAdminLogEventActionUpdatePinned + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelAdminLogEventActionUpdatePinned

+ +

A message was pinned

+

+ +
+
channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
messageMessageThe message that was pinned
+

Type

+

ChannelAdminLogEventAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelAdminLogEventsFilter.html b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventsFilter.html new file mode 100644 index 0000000000..84284567fd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelAdminLogEventsFilter.html @@ -0,0 +1,274 @@ + + + + + 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 send:flags.16?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
group_callflags.14?trueGroup call events
invitesflags.15?trueInvite events
sendflags.16?trueA message was posted in a channel
+

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/web/blogfork.telegram.org/constructor/channelForbidden.html b/data/web/blogfork.telegram.org/constructor/channelForbidden.html new file mode 100644 index 0000000000..8090947179 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelForbidden.html @@ -0,0 +1,180 @@ + + + + + channelForbidden + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelForbidden

+ +

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

+

+ +
+
channelForbidden#17d493d5 flags:# broadcast:flags.5?true megagroup:flags.8?true id:long 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
idlongChannel ID
access_hashlongAccess hash
titlestringTitle
until_dateflags.16?intThe ban is valid until the specified date
+

Type

+

Chat

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelFull.html b/data/web/blogfork.telegram.org/constructor/channelFull.html new file mode 100644 index 0000000000..5440ff167f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelFull.html @@ -0,0 +1,390 @@ + + + + + channelFull + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelFull

+ +

Full info about a channel, supergroup or gigagroup.

+

+ +
+
channelFull#e13c3d20 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:long 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:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long 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?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?Vector<string> = ChatFull;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
can_view_participantsflags.3?trueCan we view 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
idlongID 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_inviteflags.23?ExportedChatInviteInvite link
bot_infoVector<BotInfo>Info about bots in the channel/supergroup
migrated_from_chat_idflags.4?longThe 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?longID 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 (unixtime)
stats_dcflags.12?intIf set, specifies the DC to use for fetching channel statistics
ptsintLatest PTS for this channel
callflags.21?InputGroupCallLivestream or group call information
ttl_periodflags.24?intTime-To-Live of messages in this channel or supergroup
pending_suggestionsflags.25?Vector<string>A list of suggested actions for the supergroup admin, see here for more info ».
groupcall_default_join_asflags.26?PeerWhen using phone.getGroupCallJoinAs to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default.
theme_emoticonflags.27?stringEmoji representing a specific chat theme
requests_pendingflags.28?intPending join requests »
recent_requestersflags.28?Vector<long>IDs of users who requested to join recently
default_send_asflags.29?PeerDefault peer used for sending messages to this channel
available_reactionsflags.30?Vector<string>Allowed message reactions »
+

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, supergroups, gigagroups and basic groups

+

How to handle channels, supergroups, gigagroups, basic 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.

+

Client configuration

+

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

+

phone.getGroupCallJoinAs

+

Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel.

+

Invites

+

Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.

+

Message reactions

+

Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelLocation.html b/data/web/blogfork.telegram.org/constructor/channelLocation.html new file mode 100644 index 0000000000..5f4ec3c858 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelLocation.html @@ -0,0 +1,155 @@ + + + + + channelLocation + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelLocation

+ +

Geographical location of supergroup (geogroups)

+

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

+

Parameters

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

Type

+

ChannelLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelLocationEmpty.html b/data/web/blogfork.telegram.org/constructor/channelLocationEmpty.html new file mode 100644 index 0000000000..bfb4624132 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelLocationEmpty.html @@ -0,0 +1,135 @@ + + + + + channelLocationEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelLocationEmpty

+ +

No location (normal supergroup)

+

+ +
+
channelLocationEmpty#bfb5ad8b = ChannelLocation;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ChannelLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelMessagesFilter.html b/data/web/blogfork.telegram.org/constructor/channelMessagesFilter.html new file mode 100644 index 0000000000..3ba84e05e3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelMessagesFilter.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelMessagesFilterEmpty.html b/data/web/blogfork.telegram.org/constructor/channelMessagesFilterEmpty.html new file mode 100644 index 0000000000..eed32b97fe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelMessagesFilterEmpty.html @@ -0,0 +1,135 @@ + + + + + channelMessagesFilterEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelMessagesFilterEmpty

+ +

No filter

+

+ +
+
channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ChannelMessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelParticipant.html b/data/web/blogfork.telegram.org/constructor/channelParticipant.html new file mode 100644 index 0000000000..fd73face93 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipant.html @@ -0,0 +1,155 @@ + + + + + channelParticipant + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipant

+ +

Channel/supergroup participant

+

+ +
+
channelParticipant#c00c07c0 user_id:long date:int = ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongParticipant user ID
dateintDate joined
+

Type

+

ChannelParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelParticipantAdmin.html b/data/web/blogfork.telegram.org/constructor/channelParticipantAdmin.html new file mode 100644 index 0000000000..3c755d3993 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantAdmin.html @@ -0,0 +1,193 @@ + + + + + channelParticipantAdmin + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantAdmin

+ +

Admin

+

+ +
+
channelParticipantAdmin#34c3bb53 flags:# can_edit:flags.0?true self:flags.1?true user_id:long inviter_id:flags.1?long promoted_by:long 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_idlongAdmin user ID
inviter_idflags.1?longUser that invited the admin to the channel/group
promoted_bylongUser 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/web/blogfork.telegram.org/constructor/channelParticipantBanned.html b/data/web/blogfork.telegram.org/constructor/channelParticipantBanned.html new file mode 100644 index 0000000000..4b556ec641 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantBanned.html @@ -0,0 +1,178 @@ + + + + + channelParticipantBanned + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantBanned

+ +

Banned/kicked user

+

+ +
+
channelParticipantBanned#6df8014e flags:# left:flags.0?true peer:Peer kicked_by:long date:int banned_rights:ChatBannedRights = ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
leftflags.0?trueWhether the user has left the group
peerPeerThe banned peer
kicked_bylongUser 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/web/blogfork.telegram.org/constructor/channelParticipantCreator.html b/data/web/blogfork.telegram.org/constructor/channelParticipantCreator.html new file mode 100644 index 0000000000..04545a34c1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantCreator.html @@ -0,0 +1,165 @@ + + + + + channelParticipantCreator + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantCreator

+ +

Channel/supergroup creator

+

+ +
+
channelParticipantCreator#2fe601d3 flags:# user_id:long admin_rights:ChatAdminRights rank:flags.0?string = ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
user_idlongUser 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/web/blogfork.telegram.org/constructor/channelParticipantLeft.html b/data/web/blogfork.telegram.org/constructor/channelParticipantLeft.html new file mode 100644 index 0000000000..db394e138c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantLeft.html @@ -0,0 +1,150 @@ + + + + + channelParticipantLeft + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantLeft

+ +

A participant that left the channel/supergroup

+

+ +
+
channelParticipantLeft#1b03f006 peer:Peer = ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerThe peer that left
+

Type

+

ChannelParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelParticipantSelf.html b/data/web/blogfork.telegram.org/constructor/channelParticipantSelf.html new file mode 100644 index 0000000000..589c67ff2b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantSelf.html @@ -0,0 +1,170 @@ + + + + + channelParticipantSelf + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantSelf

+ +

Myself

+

+ +
+
channelParticipantSelf#35a8bfa7 flags:# via_request:flags.0?true user_id:long inviter_id:long date:int = ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
via_requestflags.0?trueWhether I joined upon specific approval of an admin
user_idlongUser ID
inviter_idlongUser that invited me to the channel/supergroup
dateintWhen did I join the channel/supergroup
+

Type

+

ChannelParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelParticipantsAdmins.html b/data/web/blogfork.telegram.org/constructor/channelParticipantsAdmins.html new file mode 100644 index 0000000000..13954ad34b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantsAdmins.html @@ -0,0 +1,135 @@ + + + + + channelParticipantsAdmins + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsAdmins

+ +

Fetch only admin participants

+

+ +
+
channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ChannelParticipantsFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelParticipantsBanned.html b/data/web/blogfork.telegram.org/constructor/channelParticipantsBanned.html new file mode 100644 index 0000000000..64cb142374 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantsBanned.html @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelParticipantsBots.html b/data/web/blogfork.telegram.org/constructor/channelParticipantsBots.html new file mode 100644 index 0000000000..e76cff3ffd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantsBots.html @@ -0,0 +1,135 @@ + + + + + channelParticipantsBots + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsBots

+ +

Fetch only bot participants

+

+ +
+
channelParticipantsBots#b0d1865b = ChannelParticipantsFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ChannelParticipantsFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelParticipantsContacts.html b/data/web/blogfork.telegram.org/constructor/channelParticipantsContacts.html new file mode 100644 index 0000000000..212c9a94ec --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantsContacts.html @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelParticipantsKicked.html b/data/web/blogfork.telegram.org/constructor/channelParticipantsKicked.html new file mode 100644 index 0000000000..677e40ee73 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantsKicked.html @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelParticipantsMentions.html b/data/web/blogfork.telegram.org/constructor/channelParticipantsMentions.html new file mode 100644 index 0000000000..98412e1784 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantsMentions.html @@ -0,0 +1,164 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channelParticipantsRecent.html b/data/web/blogfork.telegram.org/constructor/channelParticipantsRecent.html new file mode 100644 index 0000000000..29edd992a5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantsRecent.html @@ -0,0 +1,135 @@ + + + + + channelParticipantsRecent + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsRecent

+ +

Fetch only recent participants

+

+ +
+
channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ChannelParticipantsFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channelParticipantsSearch.html b/data/web/blogfork.telegram.org/constructor/channelParticipantsSearch.html new file mode 100644 index 0000000000..c31e2ae37d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channelParticipantsSearch.html @@ -0,0 +1,150 @@ + + + + + channelParticipantsSearch + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channelParticipantsSearch

+ +

Query participants by name

+

+ +
+
channelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
qstringSearch query
+

Type

+

ChannelParticipantsFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channels.adminLogResults b/data/web/blogfork.telegram.org/constructor/channels.adminLogResults new file mode 100644 index 0000000000..2bab48e416 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channels.adminLogResults @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/channels.channelParticipant b/data/web/blogfork.telegram.org/constructor/channels.channelParticipant new file mode 100644 index 0000000000..bcda44b165 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channels.channelParticipant @@ -0,0 +1,160 @@ + + + + + channels.channelParticipant + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.channelParticipant

+ +

Represents a channel participant

+

+ +
+
channels.channelParticipant#dfb80317 participant:ChannelParticipant chats:Vector<Chat> users:Vector<User> = channels.ChannelParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
participantChannelParticipantThe channel participant
chatsVector<Chat>Mentioned chats
usersVector<User>Users
+

Type

+

channels.ChannelParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channels.channelParticipants b/data/web/blogfork.telegram.org/constructor/channels.channelParticipants new file mode 100644 index 0000000000..f431a25352 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channels.channelParticipants @@ -0,0 +1,165 @@ + + + + + channels.channelParticipants + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.channelParticipants

+ +

Represents multiple channel participants

+

+ +
+
channels.channelParticipants#9ab0feaf count:int participants:Vector<ChannelParticipant> chats:Vector<Chat> users:Vector<User> = channels.ChannelParticipants;

+

Parameters

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

Type

+

channels.ChannelParticipants

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channels.channelParticipantsNotModified b/data/web/blogfork.telegram.org/constructor/channels.channelParticipantsNotModified new file mode 100644 index 0000000000..e01d69427a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channels.channelParticipantsNotModified @@ -0,0 +1,135 @@ + + + + + channels.channelParticipantsNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.channelParticipantsNotModified

+ +

No new participant info could be found

+

+ +
+
channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

channels.ChannelParticipants

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/channels.sendAsPeers b/data/web/blogfork.telegram.org/constructor/channels.sendAsPeers new file mode 100644 index 0000000000..d3c7b73641 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/channels.sendAsPeers @@ -0,0 +1,160 @@ + + + + + channels.sendAsPeers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

channels.sendAsPeers

+ +

A list of peers that can be used to send messages in a specific group

+

+ +
+
channels.sendAsPeers#8356cda9 peers:Vector<Peer> chats:Vector<Chat> users:Vector<User> = channels.SendAsPeers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peersVector<Peer>Peers that can be used to send messages to the group
chatsVector<Chat>Mentioned chats
usersVector<User>Mentioned users
+

Type

+

channels.SendAsPeers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chat.html b/data/web/blogfork.telegram.org/constructor/chat.html new file mode 100644 index 0000000000..7bc802e4d6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chat.html @@ -0,0 +1,235 @@ + + + + + chat + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chat

+ +

Info about a group

+

+ +
+
chat#41cbf256 flags:# creator:flags.0?true left:flags.2?true deactivated:flags.5?true call_active:flags.23?true call_not_empty:flags.24?true noforwards:flags.25?true id:long 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
call_activeflags.23?trueWhether a group call is currently active
call_not_emptyflags.24?trueWhether there's anyone in the group call
noforwardsflags.25?trueWhether this group is protected, thus does not allow forwarding messages from it
idlongID 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, supergroups, gigagroups and basic groups

+

How to handle channels, supergroups, gigagroups, basic 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/web/blogfork.telegram.org/constructor/chatAdminRights.html b/data/web/blogfork.telegram.org/constructor/chatAdminRights.html new file mode 100644 index 0000000000..651c086cba --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatAdminRights.html @@ -0,0 +1,208 @@ + + + + + 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
manage_callflags.11?trueIf set, allows the admin to change group call/livestream settings
otherflags.12?trueSet this flag if none of the other flags are set, but you still want the user to be an admin.
+

Type

+

ChatAdminRights

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatAdminWithInvites.html b/data/web/blogfork.telegram.org/constructor/chatAdminWithInvites.html new file mode 100644 index 0000000000..930f7545b6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatAdminWithInvites.html @@ -0,0 +1,160 @@ + + + + + chatAdminWithInvites + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatAdminWithInvites

+ +

Info about chat invites generated by admins.

+

+ +
+
chatAdminWithInvites#f2ecef23 admin_id:long invites_count:int revoked_invites_count:int = ChatAdminWithInvites;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
admin_idlongThe admin
invites_countintNumber of invites generated by the admin
revoked_invites_countintNumber of revoked invites
+

Type

+

ChatAdminWithInvites

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatBannedRights.html b/data/web/blogfork.telegram.org/constructor/chatBannedRights.html new file mode 100644 index 0000000000..2f1b60a958 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatBannedRights.html @@ -0,0 +1,218 @@ + + + + + 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 polls 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, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatEmpty.html b/data/web/blogfork.telegram.org/constructor/chatEmpty.html new file mode 100644 index 0000000000..9e186f5029 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatEmpty.html @@ -0,0 +1,150 @@ + + + + + chatEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatEmpty

+ +

Empty constructor, group doesn't exist

+

+ +
+
chatEmpty#29562865 id:long = Chat;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idlongGroup identifier
+

Type

+

Chat

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatForbidden.html b/data/web/blogfork.telegram.org/constructor/chatForbidden.html new file mode 100644 index 0000000000..8a1e3856bf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatForbidden.html @@ -0,0 +1,155 @@ + + + + + chatForbidden + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatForbidden

+ +

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

+

+ +
+
chatForbidden#6592a1a7 id:long title:string = Chat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongUser identifier
titlestringGroup name
+

Type

+

Chat

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatFull.html b/data/web/blogfork.telegram.org/constructor/chatFull.html new file mode 100644 index 0000000000..7156939076 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatFull.html @@ -0,0 +1,255 @@ + + + + + chatFull + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatFull

+ +

Full info about a basic group.

+

+ +
+
chatFull#d18ee226 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:long about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string requests_pending:flags.17?int recent_requesters:flags.17?Vector<long> available_reactions:flags.18?Vector<string> = 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
idlongID of the chat
aboutstringAbout string for this chat
participantsChatParticipantsParticipant list
chat_photoflags.2?PhotoChat photo
notify_settingsPeerNotifySettingsNotification settings
exported_inviteflags.13?ExportedChatInviteChat 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
callflags.12?InputGroupCallGroup call information
ttl_periodflags.14?intTime-To-Live of messages sent by the current user to this chat
groupcall_default_join_asflags.15?PeerWhen using phone.getGroupCallJoinAs to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default.
theme_emoticonflags.16?stringEmoji representing a specific chat theme
requests_pendingflags.17?intPending join requests »
recent_requestersflags.17?Vector<long>IDs of users who requested to join recently
available_reactionsflags.18?Vector<string>Allowed message reactions »
+

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.

+

phone.getGroupCallJoinAs

+

Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel.

+

Invites

+

Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.

+

Message reactions

+

Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatInvite.html b/data/web/blogfork.telegram.org/constructor/chatInvite.html new file mode 100644 index 0000000000..126e452588 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatInvite.html @@ -0,0 +1,205 @@ + + + + + chatInvite + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatInvite

+ +

Chat invite info

+

+ +
+
chatInvite#300c44c1 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true request_needed:flags.6?true title:string about:flags.5?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
request_neededflags.6?trueWhether the join request » must be first approved by an administrator
titlestringChat/supergroup/channel title
aboutflags.5?stringDescription of the group of channel
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, supergroups, gigagroups and basic groups

+

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

+

Invites

+

Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatInviteAlready.html b/data/web/blogfork.telegram.org/constructor/chatInviteAlready.html new file mode 100644 index 0000000000..f58d063335 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatInviteAlready.html @@ -0,0 +1,150 @@ + + + + + chatInviteAlready + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatInviteAlready

+ +

The user has already joined this chat

+

+ +
+
chatInviteAlready#5a686d7c chat:Chat = ChatInvite;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chatChatThe chat connected to the invite
+

Type

+

ChatInvite

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatInviteExported.html b/data/web/blogfork.telegram.org/constructor/chatInviteExported.html new file mode 100644 index 0000000000..70cbd0ce27 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatInviteExported.html @@ -0,0 +1,210 @@ + + + + + chatInviteExported + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatInviteExported

+ +

Exported chat invite

+

+ +
+
chatInviteExported#ab4a819 flags:# revoked:flags.0?true permanent:flags.5?true request_needed:flags.6?true link:string admin_id:long date:int start_date:flags.4?int expire_date:flags.1?int usage_limit:flags.2?int usage:flags.3?int requested:flags.7?int title:flags.8?string = ExportedChatInvite;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
revokedflags.0?trueWhether this chat invite was revoked
permanentflags.5?trueWhether this chat invite has no expiration
request_neededflags.6?trueWhether users importing this invite link will have to be approved to join the channel or group
linkstringChat invitation link
admin_idlongID of the admin that created this chat invite
dateintWhen was this chat invite created
start_dateflags.4?intWhen was this chat invite last modified
expire_dateflags.1?intWhen does this chat invite expire
usage_limitflags.2?intMaximum number of users that can join using this link
usageflags.3?intHow many users joined using this link
requestedflags.7?intNumber of users that have already used this link to join
titleflags.8?stringCustom description for the invite link, visible only to admins
+

Type

+

ExportedChatInvite

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatInviteImporter.html b/data/web/blogfork.telegram.org/constructor/chatInviteImporter.html new file mode 100644 index 0000000000..b6b8d55ecc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatInviteImporter.html @@ -0,0 +1,178 @@ + + + + + chatInviteImporter + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatInviteImporter

+ +

When and which user joined the chat using a chat invite

+

+ +
+
chatInviteImporter#8c5adfd9 flags:# requested:flags.0?true user_id:long date:int about:flags.2?string approved_by:flags.1?long = ChatInviteImporter;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
requestedflags.0?trueWhether this user currently has a pending join request »
user_idlongThe user
dateintWhen did the user join
aboutflags.2?stringFor users with pending requests, contains bio of the user that requested to join
approved_byflags.1?longThe administrator that approved the join request » of the user
+

Type

+

ChatInviteImporter

+

Related pages

+

Invites

+

Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatInvitePeek.html b/data/web/blogfork.telegram.org/constructor/chatInvitePeek.html new file mode 100644 index 0000000000..b6eb690090 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatInvitePeek.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/chatOnlines.html b/data/web/blogfork.telegram.org/constructor/chatOnlines.html new file mode 100644 index 0000000000..6597e6e9c5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatOnlines.html @@ -0,0 +1,150 @@ + + + + + chatOnlines + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatOnlines

+ +

Number of online users in a chat

+

+ +
+
chatOnlines#f041e250 onlines:int = ChatOnlines;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
onlinesintNumber of online users
+

Type

+

ChatOnlines

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatParticipant.html b/data/web/blogfork.telegram.org/constructor/chatParticipant.html new file mode 100644 index 0000000000..6e50e84634 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatParticipant.html @@ -0,0 +1,160 @@ + + + + + chatParticipant + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatParticipant

+ +

Group member.

+

+ +
+
chatParticipant#c02d4007 user_id:long inviter_id:long date:int = ChatParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongMember user ID
inviter_idlongID of the user that added the member to the group
dateintDate added to the group
+

Type

+

ChatParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatParticipantAdmin.html b/data/web/blogfork.telegram.org/constructor/chatParticipantAdmin.html new file mode 100644 index 0000000000..56911e1539 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatParticipantAdmin.html @@ -0,0 +1,160 @@ + + + + + chatParticipantAdmin + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatParticipantAdmin

+ +

Chat admin

+

+ +
+
chatParticipantAdmin#a0933f5b user_id:long inviter_id:long date:int = ChatParticipant;

+

Parameters

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

Type

+

ChatParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatParticipantCreator.html b/data/web/blogfork.telegram.org/constructor/chatParticipantCreator.html new file mode 100644 index 0000000000..962ddec0c5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatParticipantCreator.html @@ -0,0 +1,150 @@ + + + + + chatParticipantCreator + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatParticipantCreator

+ +

Represents the creator of the group

+

+ +
+
chatParticipantCreator#e46bcee4 user_id:long = ChatParticipant;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongID of the user that created the group
+

Type

+

ChatParticipant

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatParticipants.html b/data/web/blogfork.telegram.org/constructor/chatParticipants.html new file mode 100644 index 0000000000..88e864cdbc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatParticipants.html @@ -0,0 +1,160 @@ + + + + + chatParticipants + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatParticipants

+ +

Group members.

+

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

+

Parameters

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

Type

+

ChatParticipants

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatParticipantsForbidden.html b/data/web/blogfork.telegram.org/constructor/chatParticipantsForbidden.html new file mode 100644 index 0000000000..2d7ec8adc0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatParticipantsForbidden.html @@ -0,0 +1,160 @@ + + + + + chatParticipantsForbidden + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatParticipantsForbidden

+ +

Info on members is unavailable

+

+ +
+
chatParticipantsForbidden#8763d3e1 flags:# chat_id:long self_participant:flags.0?ChatParticipant = ChatParticipants;

+

Parameters

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

Type

+

ChatParticipants

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatPhoto.html b/data/web/blogfork.telegram.org/constructor/chatPhoto.html new file mode 100644 index 0000000000..055b71ae7d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatPhoto.html @@ -0,0 +1,173 @@ + + + + + chatPhoto + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatPhoto

+ +

Group profile photo.

+

+ +
+
chatPhoto#1c6e1c11 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = ChatPhoto;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
has_videoflags.0?trueWhether the user has an animated profile picture
photo_idlongPhoto ID
stripped_thumbflags.1?bytesStripped thumbnail
dc_idintDC where this photo is stored
+

Type

+

ChatPhoto

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/chatPhotoEmpty.html b/data/web/blogfork.telegram.org/constructor/chatPhotoEmpty.html new file mode 100644 index 0000000000..9ed4f497bc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/chatPhotoEmpty.html @@ -0,0 +1,135 @@ + + + + + chatPhotoEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

chatPhotoEmpty

+ +

Group photo is not set.

+

+ +
+
chatPhotoEmpty#37c1011c = ChatPhoto;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ChatPhoto

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/codeSettings.html b/data/web/blogfork.telegram.org/constructor/codeSettings.html new file mode 100644 index 0000000000..d2157ef80f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/codeSettings.html @@ -0,0 +1,181 @@ + + + + + codeSettings + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

codeSettings

+ +

Settings used by telegram servers for sending the confirm code.

+

Example implementations: telegram for android, tdlib.

+

+ +
+
codeSettings#8a6469c2 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true allow_missed_call:flags.5?true logout_tokens:flags.6?Vector<bytes> = 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
allow_missed_callflags.5?trueWhether this device supports receiving the code using the auth.codeTypeMissedCall method
logout_tokensflags.6?Vector<bytes>Previously stored logout tokens, see the documentation for more info »
+

Type

+

CodeSettings

+

Related pages

+

User Authorization

+

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

+

auth.codeTypeMissedCall

+

The next time, the authentication code will be delivered via an immediately canceled incoming call, handled manually by the user.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/config.html b/data/web/blogfork.telegram.org/constructor/config.html new file mode 100644 index 0000000000..7e7977bd6a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/config.html @@ -0,0 +1,423 @@ + + + + + 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 force_try_ipv6:flags.14?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, supergroups, gigagroups and basic groups

+

How to handle channels, supergroups, gigagroups, basic 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/web/blogfork.telegram.org/constructor/contact.html b/data/web/blogfork.telegram.org/constructor/contact.html new file mode 100644 index 0000000000..92fd701a15 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contact.html @@ -0,0 +1,155 @@ + + + + + contact + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

contact

+ +

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

+

+ +
+
contact#145ade0b user_id:long mutual:Bool = Contact;

+

Parameters

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

Type

+

Contact

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/contactStatus.html b/data/web/blogfork.telegram.org/constructor/contactStatus.html new file mode 100644 index 0000000000..fddfa348ba --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contactStatus.html @@ -0,0 +1,155 @@ + + + + + contactStatus + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

contactStatus

+ +

Contact status: online / offline.

+

+ +
+
contactStatus#16d9703b user_id:long status:UserStatus = ContactStatus;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser identifier
statusUserStatusOnline status
+

Type

+

ContactStatus

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/contacts.blocked b/data/web/blogfork.telegram.org/constructor/contacts.blocked new file mode 100644 index 0000000000..5f9958858d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contacts.blocked @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/contacts.blockedSlice b/data/web/blogfork.telegram.org/constructor/contacts.blockedSlice new file mode 100644 index 0000000000..f9d3209a44 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contacts.blockedSlice @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/contacts.contacts b/data/web/blogfork.telegram.org/constructor/contacts.contacts new file mode 100644 index 0000000000..5fb73d0442 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contacts.contacts @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/contacts.contactsNotModified b/data/web/blogfork.telegram.org/constructor/contacts.contactsNotModified new file mode 100644 index 0000000000..a51a7db63a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contacts.contactsNotModified @@ -0,0 +1,135 @@ + + + + + contacts.contactsNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.contactsNotModified

+ +

Contact list on the server is the same as the list on the client.

+

+ +
+
contacts.contactsNotModified#b74ba9d2 = contacts.Contacts;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

contacts.Contacts

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/contacts.found b/data/web/blogfork.telegram.org/constructor/contacts.found new file mode 100644 index 0000000000..15fe64fb77 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contacts.found @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/contacts.importedContacts b/data/web/blogfork.telegram.org/constructor/contacts.importedContacts new file mode 100644 index 0000000000..39cd218b35 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contacts.importedContacts @@ -0,0 +1,168 @@ + + + + + contacts.importedContacts + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.importedContacts

+ +

Info on successfully 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 successfully 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 schema changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/contacts.resolvedPeer b/data/web/blogfork.telegram.org/constructor/contacts.resolvedPeer new file mode 100644 index 0000000000..0394311b4c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contacts.resolvedPeer @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/contacts.topPeers b/data/web/blogfork.telegram.org/constructor/contacts.topPeers new file mode 100644 index 0000000000..8671fab96b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contacts.topPeers @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/contacts.topPeersDisabled b/data/web/blogfork.telegram.org/constructor/contacts.topPeersDisabled new file mode 100644 index 0000000000..631560ae5d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contacts.topPeersDisabled @@ -0,0 +1,135 @@ + + + + + contacts.topPeersDisabled + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.topPeersDisabled

+ +

Top peers disabled

+

+ +
+
contacts.topPeersDisabled#b52c939d = contacts.TopPeers;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

contacts.TopPeers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/contacts.topPeersNotModified b/data/web/blogfork.telegram.org/constructor/contacts.topPeersNotModified new file mode 100644 index 0000000000..4df39f22f4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/contacts.topPeersNotModified @@ -0,0 +1,135 @@ + + + + + contacts.topPeersNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

contacts.topPeersNotModified

+ +

Top peer info hasn't changed

+

+ +
+
contacts.topPeersNotModified#de266ef5 = contacts.TopPeers;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

contacts.TopPeers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/dataJSON.html b/data/web/blogfork.telegram.org/constructor/dataJSON.html new file mode 100644 index 0000000000..e430d86480 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/dataJSON.html @@ -0,0 +1,150 @@ + + + + + dataJSON + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

dataJSON

+ +

Represents a json-encoded object

+

+ +
+
dataJSON#7d748d04 data:string = DataJSON;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
datastringJSON-encoded object
+

Type

+

DataJSON

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/dcOption.html b/data/web/blogfork.telegram.org/constructor/dcOption.html new file mode 100644 index 0000000000..29b74863fe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/dcOption.html @@ -0,0 +1,200 @@ + + + + + dcOption + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

dcOption

+ +

Data center

+

+ +
+
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 this_port_only:flags.5?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/web/blogfork.telegram.org/constructor/decryptedMessage.html b/data/web/blogfork.telegram.org/constructor/decryptedMessage.html new file mode 100644 index 0000000000..af7282ae52 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessage.html @@ -0,0 +1,220 @@ + + + + + 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 schema 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/web/blogfork.telegram.org/constructor/decryptedMessageActionAbortKey.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionAbortKey.html new file mode 100644 index 0000000000..59911bc73a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionAbortKey.html @@ -0,0 +1,151 @@ + + + + + decryptedMessageActionAbortKey + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionAbortKey

+ +

Abort rekeying

+

+ +
+
===20===
+decryptedMessageActionAbortKey#dd05ec6b exchange_id:long = DecryptedMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
exchange_idlongExchange ID
+

Type

+

DecryptedMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/decryptedMessageActionAcceptKey.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionAcceptKey.html new file mode 100644 index 0000000000..5162601363 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionAcceptKey.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageActionCommitKey.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionCommitKey.html new file mode 100644 index 0000000000..ebd161eb8a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionCommitKey.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageActionDeleteMessages.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionDeleteMessages.html new file mode 100644 index 0000000000..ec8f44d21d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionDeleteMessages.html @@ -0,0 +1,151 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageActionFlushHistory.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionFlushHistory.html new file mode 100644 index 0000000000..dbab6204c5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionFlushHistory.html @@ -0,0 +1,136 @@ + + + + + decryptedMessageActionFlushHistory + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionFlushHistory

+ +

The entire message history has been deleted.

+

+ +
+
===8===
+decryptedMessageActionFlushHistory#6719e45c = DecryptedMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

DecryptedMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/decryptedMessageActionNoop.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionNoop.html new file mode 100644 index 0000000000..3d0b9b6336 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionNoop.html @@ -0,0 +1,136 @@ + + + + + decryptedMessageActionNoop + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageActionNoop

+ +

NOOP action

+

+ +
+
===20===
+decryptedMessageActionNoop#a82fdd63 = DecryptedMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

DecryptedMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/decryptedMessageActionNotifyLayer.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionNotifyLayer.html new file mode 100644 index 0000000000..05b76873ff --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionNotifyLayer.html @@ -0,0 +1,154 @@ + + + + + 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 constructor was introduced in Layer 17).
+

Type

+

DecryptedMessageAction

+

Related pages

+

Layers

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/decryptedMessageActionReadMessages.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionReadMessages.html new file mode 100644 index 0000000000..0f88185f79 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionReadMessages.html @@ -0,0 +1,151 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageActionRequestKey.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionRequestKey.html new file mode 100644 index 0000000000..31abc9269e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionRequestKey.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageActionResend.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionResend.html new file mode 100644 index 0000000000..19503d1283 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionResend.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageActionScreenshotMessages.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionScreenshotMessages.html new file mode 100644 index 0000000000..7ad87f8f7f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionScreenshotMessages.html @@ -0,0 +1,151 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageActionSetMessageTTL.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionSetMessageTTL.html new file mode 100644 index 0000000000..3e6cd61b25 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionSetMessageTTL.html @@ -0,0 +1,152 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageActionTyping.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionTyping.html new file mode 100644 index 0000000000..74a60e3c9b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageActionTyping.html @@ -0,0 +1,151 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageLayer.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageLayer.html new file mode 100644 index 0000000000..8b6a5618c4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageLayer.html @@ -0,0 +1,176 @@ + + + + + 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 schema changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaAudio.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaAudio.html new file mode 100644 index 0000000000..e4c71be264 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaAudio.html @@ -0,0 +1,177 @@ + + + + + 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 schema changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaContact.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaContact.html new file mode 100644 index 0000000000..4679245451 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaContact.html @@ -0,0 +1,166 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageMediaDocument.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaDocument.html new file mode 100644 index 0000000000..6d2e01c34d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaDocument.html @@ -0,0 +1,194 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageMediaEmpty.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaEmpty.html new file mode 100644 index 0000000000..8e5eac6ca4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaEmpty.html @@ -0,0 +1,136 @@ + + + + + decryptedMessageMediaEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaEmpty

+ +

Empty constructor, no media content.

+

+ +
+
===8===
+decryptedMessageMediaEmpty#89f5c4a = DecryptedMessageMedia;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

DecryptedMessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaExternalDocument.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaExternalDocument.html new file mode 100644 index 0000000000..05f01d2cdf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaExternalDocument.html @@ -0,0 +1,186 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageMediaGeoPoint.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaGeoPoint.html new file mode 100644 index 0000000000..5cd18162e9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaGeoPoint.html @@ -0,0 +1,156 @@ + + + + + decryptedMessageMediaGeoPoint + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaGeoPoint

+ +

GeoPoint attached to an encrypted message.

+

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

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
latdoubleLatitude of point
longdoubleLongitude of point
+

Type

+

DecryptedMessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaPhoto.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaPhoto.html new file mode 100644 index 0000000000..e53f5273f7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaPhoto.html @@ -0,0 +1,194 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageMediaVenue.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaVenue.html new file mode 100644 index 0000000000..daf9778db9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaVenue.html @@ -0,0 +1,176 @@ + + + + + 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/web/blogfork.telegram.org/constructor/decryptedMessageMediaVideo.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaVideo.html new file mode 100644 index 0000000000..50b38d1c8c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaVideo.html @@ -0,0 +1,210 @@ + + + + + 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 schema changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaWebPage.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaWebPage.html new file mode 100644 index 0000000000..e380857317 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageMediaWebPage.html @@ -0,0 +1,151 @@ + + + + + decryptedMessageMediaWebPage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

decryptedMessageMediaWebPage

+ +

Webpage preview

+

+ +
+
===45===
+decryptedMessageMediaWebPage#e50511d8 url:string = DecryptedMessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
urlstringURL of webpage
+

Type

+

DecryptedMessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/decryptedMessageService.html b/data/web/blogfork.telegram.org/constructor/decryptedMessageService.html new file mode 100644 index 0000000000..00025cce02 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/decryptedMessageService.html @@ -0,0 +1,159 @@ + + + + + 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/web/blogfork.telegram.org/constructor/dialog.html b/data/web/blogfork.telegram.org/constructor/dialog.html new file mode 100644 index 0000000000..2b133d465a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/dialog.html @@ -0,0 +1,222 @@ + + + + + dialog + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

dialog

+ +

Chat

+

+ +
+
dialog#a8edd0f5 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 unread_reactions_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
unread_reactions_countintNumber of unread reactions to messages you sent
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/web/blogfork.telegram.org/constructor/dialogFilter.html b/data/web/blogfork.telegram.org/constructor/dialogFilter.html new file mode 100644 index 0000000000..3d8aff6026 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/dialogFilter.html @@ -0,0 +1,223 @@ + + + + + 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/web/blogfork.telegram.org/constructor/dialogFilterSuggested.html b/data/web/blogfork.telegram.org/constructor/dialogFilterSuggested.html new file mode 100644 index 0000000000..d905cf0614 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/dialogFilterSuggested.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/dialogFolder.html b/data/web/blogfork.telegram.org/constructor/dialogFolder.html new file mode 100644 index 0000000000..5876ba91bb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/dialogFolder.html @@ -0,0 +1,190 @@ + + + + + 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/web/blogfork.telegram.org/constructor/dialogPeer.html b/data/web/blogfork.telegram.org/constructor/dialogPeer.html new file mode 100644 index 0000000000..89c1637e33 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/dialogPeer.html @@ -0,0 +1,150 @@ + + + + + dialogPeer + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

dialogPeer

+ +

Peer

+

+ +
+
dialogPeer#e56dbf05 peer:Peer = DialogPeer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerPeer
+

Type

+

DialogPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/dialogPeerFolder.html b/data/web/blogfork.telegram.org/constructor/dialogPeerFolder.html new file mode 100644 index 0000000000..46e39fac62 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/dialogPeerFolder.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/document.html b/data/web/blogfork.telegram.org/constructor/document.html new file mode 100644 index 0000000000..a209b2d8dc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/document.html @@ -0,0 +1,203 @@ + + + + + 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, dependent 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/web/blogfork.telegram.org/constructor/documentAttributeAnimated.html b/data/web/blogfork.telegram.org/constructor/documentAttributeAnimated.html new file mode 100644 index 0000000000..e12d9d965c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/documentAttributeAnimated.html @@ -0,0 +1,135 @@ + + + + + documentAttributeAnimated + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

documentAttributeAnimated

+ +

Defines an animated GIF

+

+ +
+
documentAttributeAnimated#11b58939 = DocumentAttribute;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

DocumentAttribute

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/documentAttributeAudio.html b/data/web/blogfork.telegram.org/constructor/documentAttributeAudio.html new file mode 100644 index 0000000000..0f83424f5c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/documentAttributeAudio.html @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/documentAttributeFilename.html b/data/web/blogfork.telegram.org/constructor/documentAttributeFilename.html new file mode 100644 index 0000000000..729d1235d8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/documentAttributeFilename.html @@ -0,0 +1,150 @@ + + + + + documentAttributeFilename + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

documentAttributeFilename

+ +

A simple document with a file name

+

+ +
+
documentAttributeFilename#15590068 file_name:string = DocumentAttribute;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
file_namestringThe file name
+

Type

+

DocumentAttribute

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/documentAttributeHasStickers.html b/data/web/blogfork.telegram.org/constructor/documentAttributeHasStickers.html new file mode 100644 index 0000000000..71f653fcf1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/documentAttributeHasStickers.html @@ -0,0 +1,135 @@ + + + + + documentAttributeHasStickers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

documentAttributeHasStickers

+ +

Whether the current document has stickers attached

+

+ +
+
documentAttributeHasStickers#9801d2f7 = DocumentAttribute;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

DocumentAttribute

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/documentAttributeImageSize.html b/data/web/blogfork.telegram.org/constructor/documentAttributeImageSize.html new file mode 100644 index 0000000000..8600d448db --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/documentAttributeImageSize.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/documentAttributeSticker.html b/data/web/blogfork.telegram.org/constructor/documentAttributeSticker.html new file mode 100644 index 0000000000..8c0ff73c41 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/documentAttributeSticker.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/documentAttributeVideo.html b/data/web/blogfork.telegram.org/constructor/documentAttributeVideo.html new file mode 100644 index 0000000000..09d8ad5e28 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/documentAttributeVideo.html @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/documentEmpty.html b/data/web/blogfork.telegram.org/constructor/documentEmpty.html new file mode 100644 index 0000000000..e42eb86680 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/documentEmpty.html @@ -0,0 +1,150 @@ + + + + + documentEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

documentEmpty

+ +

Empty constructor, document doesn't exist.

+

+ +
+
documentEmpty#36f8c871 id:long = Document;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idlongDocument ID or 0
+

Type

+

Document

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/draftMessage.html b/data/web/blogfork.telegram.org/constructor/draftMessage.html new file mode 100644 index 0000000000..db512e6dfb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/draftMessage.html @@ -0,0 +1,180 @@ + + + + + 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/web/blogfork.telegram.org/constructor/draftMessageEmpty.html b/data/web/blogfork.telegram.org/constructor/draftMessageEmpty.html new file mode 100644 index 0000000000..cc89aad65a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/draftMessageEmpty.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/emojiKeyword.html b/data/web/blogfork.telegram.org/constructor/emojiKeyword.html new file mode 100644 index 0000000000..55c24b6334 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/emojiKeyword.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/emojiKeywordDeleted.html b/data/web/blogfork.telegram.org/constructor/emojiKeywordDeleted.html new file mode 100644 index 0000000000..0f5e9cb591 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/emojiKeywordDeleted.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/emojiKeywordsDifference.html b/data/web/blogfork.telegram.org/constructor/emojiKeywordsDifference.html new file mode 100644 index 0000000000..921a0e8c8b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/emojiKeywordsDifference.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/emojiLanguage.html b/data/web/blogfork.telegram.org/constructor/emojiLanguage.html new file mode 100644 index 0000000000..0916f657c5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/emojiLanguage.html @@ -0,0 +1,150 @@ + + + + + emojiLanguage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

emojiLanguage

+ +

Emoji language

+

+ +
+
emojiLanguage#b3fb5361 lang_code:string = EmojiLanguage;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
lang_codestringLanguage code
+

Type

+

EmojiLanguage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/emojiURL.html b/data/web/blogfork.telegram.org/constructor/emojiURL.html new file mode 100644 index 0000000000..22fd697d74 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/emojiURL.html @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/encryptedChat.html b/data/web/blogfork.telegram.org/constructor/encryptedChat.html new file mode 100644 index 0000000000..27374273c8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/encryptedChat.html @@ -0,0 +1,180 @@ + + + + + encryptedChat + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedChat

+ +

Encrypted chat

+

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

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idintChat ID
access_hashlongCheck sum dependent on the user ID
dateintDate chat was created
admin_idlongChat creator ID
participant_idlongID 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/web/blogfork.telegram.org/constructor/encryptedChatDiscarded.html b/data/web/blogfork.telegram.org/constructor/encryptedChatDiscarded.html new file mode 100644 index 0000000000..efca7cccf6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/encryptedChatDiscarded.html @@ -0,0 +1,160 @@ + + + + + encryptedChatDiscarded + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedChatDiscarded

+ +

Discarded or deleted chat.

+

+ +
+
encryptedChatDiscarded#1e1c7c45 flags:# history_deleted:flags.0?true id:int = EncryptedChat;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
history_deletedflags.0?trueWhether both users of this secret chat should also remove all of its messages
idintChat ID
+

Type

+

EncryptedChat

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/encryptedChatEmpty.html b/data/web/blogfork.telegram.org/constructor/encryptedChatEmpty.html new file mode 100644 index 0000000000..de66b69979 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/encryptedChatEmpty.html @@ -0,0 +1,150 @@ + + + + + encryptedChatEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedChatEmpty

+ +

Empty constructor.

+

+ +
+
encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idintChat ID
+

Type

+

EncryptedChat

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/encryptedChatRequested.html b/data/web/blogfork.telegram.org/constructor/encryptedChatRequested.html new file mode 100644 index 0000000000..c0b41a6206 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/encryptedChatRequested.html @@ -0,0 +1,188 @@ + + + + + encryptedChatRequested + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedChatRequested

+ +

Request to create an encrypted chat.

+

+ +
+
encryptedChatRequested#48f1d94c flags:# folder_id:flags.0?int id:int access_hash:long date:int admin_id:long participant_id:long 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_idlongChat creator ID
participant_idlongID 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/web/blogfork.telegram.org/constructor/encryptedChatWaiting.html b/data/web/blogfork.telegram.org/constructor/encryptedChatWaiting.html new file mode 100644 index 0000000000..4f64fb8390 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/encryptedChatWaiting.html @@ -0,0 +1,170 @@ + + + + + encryptedChatWaiting + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedChatWaiting

+ +

Chat waiting for approval of second participant.

+

+ +
+
encryptedChatWaiting#66b25953 id:int access_hash:long date:int admin_id:long participant_id:long = EncryptedChat;

+

Parameters

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

Type

+

EncryptedChat

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/encryptedFile.html b/data/web/blogfork.telegram.org/constructor/encryptedFile.html new file mode 100644 index 0000000000..b9ac144cd2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/encryptedFile.html @@ -0,0 +1,170 @@ + + + + + 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 center
key_fingerprintint32-bit fingerprint of key used for file encryption
+

Type

+

EncryptedFile

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/encryptedFileEmpty.html b/data/web/blogfork.telegram.org/constructor/encryptedFileEmpty.html new file mode 100644 index 0000000000..39b34a315e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/encryptedFileEmpty.html @@ -0,0 +1,135 @@ + + + + + encryptedFileEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

encryptedFileEmpty

+ +

Empty constructor, non-existing file.

+

+ +
+
encryptedFileEmpty#c21f497e = EncryptedFile;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

EncryptedFile

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/encryptedMessage.html b/data/web/blogfork.telegram.org/constructor/encryptedMessage.html new file mode 100644 index 0000000000..8daca1b93f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/encryptedMessage.html @@ -0,0 +1,173 @@ + + + + + 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-serialization of DecryptedMessage type, encrypted with the key created at chat initialization
fileEncryptedFileAttached encrypted file
+

Type

+

EncryptedMessage

+

Related pages

+

DecryptedMessage

+

Object describes the contents of an encrypted message.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/encryptedMessageService.html b/data/web/blogfork.telegram.org/constructor/encryptedMessageService.html new file mode 100644 index 0000000000..e40ab33c46 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/encryptedMessageService.html @@ -0,0 +1,168 @@ + + + + + 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-serialization of the DecryptedMessage type, encrypted with the key created at chat initialization
+

Type

+

EncryptedMessage

+

Related pages

+

DecryptedMessage

+

Object describes the contents of an encrypted message.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/error.html b/data/web/blogfork.telegram.org/constructor/error.html new file mode 100644 index 0000000000..19aeeba371 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/error.html @@ -0,0 +1,155 @@ + + + + + error + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

error

+ +

Error.

+

+ +
+
error#c4b9f9bb code:int text:string = Error;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
codeintError code
textstringMessage
+

Type

+

Error

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/exportedMessageLink.html b/data/web/blogfork.telegram.org/constructor/exportedMessageLink.html new file mode 100644 index 0000000000..46d6a566dc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/exportedMessageLink.html @@ -0,0 +1,155 @@ + + + + + exportedMessageLink + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

exportedMessageLink

+ +

Link to a message in a supergroup/channel

+

+ +
+
exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
linkstringURL
htmlstringEmbed code
+

Type

+

ExportedMessageLink

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/fileHash.html b/data/web/blogfork.telegram.org/constructor/fileHash.html new file mode 100644 index 0000000000..38c9e88a3e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/fileHash.html @@ -0,0 +1,174 @@ + + + + + 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/web/blogfork.telegram.org/constructor/fileLocation.html b/data/web/blogfork.telegram.org/constructor/fileLocation.html new file mode 100644 index 0000000000..88c1c3e22d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/fileLocation.html @@ -0,0 +1,185 @@ + + + + + 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/web/blogfork.telegram.org/constructor/fileLocationUnavailable.html b/data/web/blogfork.telegram.org/constructor/fileLocationUnavailable.html new file mode 100644 index 0000000000..e0bc0e5b8e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/fileLocationUnavailable.html @@ -0,0 +1,182 @@ + + + + + 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/web/blogfork.telegram.org/constructor/folder.html b/data/web/blogfork.telegram.org/constructor/folder.html new file mode 100644 index 0000000000..1fc1794cd0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/folder.html @@ -0,0 +1,180 @@ + + + + + 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/web/blogfork.telegram.org/constructor/folderPeer.html b/data/web/blogfork.telegram.org/constructor/folderPeer.html new file mode 100644 index 0000000000..5e283d7f58 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/folderPeer.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/game.html b/data/web/blogfork.telegram.org/constructor/game.html new file mode 100644 index 0000000000..d751f1b8b3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/game.html @@ -0,0 +1,185 @@ + + + + + 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/web/blogfork.telegram.org/constructor/geoPoint.html b/data/web/blogfork.telegram.org/constructor/geoPoint.html new file mode 100644 index 0000000000..0f7ffc84ef --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/geoPoint.html @@ -0,0 +1,170 @@ + + + + + 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
longdoubleLongitude
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/web/blogfork.telegram.org/constructor/geoPointEmpty.html b/data/web/blogfork.telegram.org/constructor/geoPointEmpty.html new file mode 100644 index 0000000000..28c30d6e34 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/geoPointEmpty.html @@ -0,0 +1,135 @@ + + + + + geoPointEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

geoPointEmpty

+ +

Empty constructor.

+

+ +
+
geoPointEmpty#1117dd5f = GeoPoint;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

GeoPoint

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/globalPrivacySettings.html b/data/web/blogfork.telegram.org/constructor/globalPrivacySettings.html new file mode 100644 index 0000000000..554d5e66f9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/globalPrivacySettings.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/groupCall.html b/data/web/blogfork.telegram.org/constructor/groupCall.html new file mode 100644 index 0000000000..93953fb283 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/groupCall.html @@ -0,0 +1,245 @@ + + + + + groupCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

groupCall

+ +

Info about a group call or livestream

+

+ +
+
groupCall#d597650c flags:# join_muted:flags.1?true can_change_join_muted:flags.2?true join_date_asc:flags.6?true schedule_start_subscribed:flags.8?true can_start_video:flags.9?true record_video_active:flags.11?true rtmp_stream:flags.12?true listeners_hidden:flags.13?true id:long access_hash:long participants_count:int title:flags.3?string stream_dc_id:flags.4?int record_start_date:flags.5?int schedule_date:flags.7?int unmuted_video_count:flags.10?int unmuted_video_limit:int version:int = GroupCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
join_mutedflags.1?trueWhether the user should be muted upon joining the call
can_change_join_mutedflags.2?trueWhether the current user can change the value of the join_muted flag using phone.toggleGroupCallSettings
join_date_ascflags.6?trueSpecifies the ordering to use when locally sorting by date and displaying in the UI group call participants.
schedule_start_subscribedflags.8?trueWhether we subscribed to the scheduled call
can_start_videoflags.9?trueWhether you can start streaming video into the call
record_video_activeflags.11?trueWhether the group call is currently being recorded
rtmp_streamflags.12?trueWhether RTMP streams are allowed
listeners_hiddenflags.13?trueWhether the listeners list is hidden and cannot be fetched using phone.getGroupParticipants. The phone.groupParticipants.count and groupCall.participants_count counters will still include listeners.
idlongGroup call ID
access_hashlongGroup call access hash
participants_countintParticipant count
titleflags.3?stringGroup call title
stream_dc_idflags.4?intDC ID to be used for livestream chunks
record_start_dateflags.5?intWhen was the recording started
schedule_dateflags.7?intWhen is the call scheduled to start
unmuted_video_countflags.10?intNumber of people currently streaming video into the call
unmuted_video_limitintMaximum number of people allowed to stream video into the call
versionintVersion
+

Type

+

GroupCall

+

Related pages

+

phone.toggleGroupCallSettings

+

Change group call settings

+

phone.getGroupParticipants

+

Get group call participants

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/groupCallDiscarded.html b/data/web/blogfork.telegram.org/constructor/groupCallDiscarded.html new file mode 100644 index 0000000000..9d7847c19b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/groupCallDiscarded.html @@ -0,0 +1,160 @@ + + + + + groupCallDiscarded + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

groupCallDiscarded

+ +

An ended group call

+

+ +
+
groupCallDiscarded#7780bcb4 id:long access_hash:long duration:int = GroupCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongGroup call ID
access_hashlongGroup call access hash
durationintGroup call duration
+

Type

+

GroupCall

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/groupCallParticipant.html b/data/web/blogfork.telegram.org/constructor/groupCallParticipant.html new file mode 100644 index 0000000000..829dfcdd1c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/groupCallParticipant.html @@ -0,0 +1,250 @@ + + + + + groupCallParticipant + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

groupCallParticipant

+ +

Info about a group call participant

+

+ +
+
groupCallParticipant#eba636fe flags:# muted:flags.0?true left:flags.1?true can_self_unmute:flags.2?true just_joined:flags.4?true versioned:flags.5?true min:flags.8?true muted_by_you:flags.9?true volume_by_admin:flags.10?true self:flags.12?true video_joined:flags.15?true peer:Peer date:int active_date:flags.3?int source:int volume:flags.7?int about:flags.11?string raise_hand_rating:flags.13?long video:flags.6?GroupCallParticipantVideo presentation:flags.14?GroupCallParticipantVideo = GroupCallParticipant;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
mutedflags.0?trueWhether the participant is muted
leftflags.1?trueWhether the participant has left
can_self_unmuteflags.2?trueWhether the participant can unmute themselves
just_joinedflags.4?trueWhether the participant has just joined
versionedflags.5?trueIf set, and updateGroupCallParticipants.version < locally stored call.version, info about this participant should be ignored. If (...), and updateGroupCallParticipants.version > call.version+1, the participant list should be refetched using phone.getGroupParticipants.
minflags.8?trueIf not set, the volume and muted_by_you fields can be safely used to overwrite locally cached information; otherwise, volume will contain valid information only if volume_by_admin is set both in the cache and in the received constructor.
muted_by_youflags.9?trueWhether this participant was muted by the current user
volume_by_adminflags.10?trueWhether our volume can only changed by an admin
selfflags.12?trueWhether this participant is the current user
video_joinedflags.15?trueWhether this participant is currently broadcasting video
peerPeerPeer information
dateintWhen did this participant join the group call
active_dateflags.3?intWhen was this participant last active in the group call
sourceintSource ID
volumeflags.7?intVolume, if not set the volume is set to 100%.
aboutflags.11?stringInfo about this participant
raise_hand_ratingflags.13?longSpecifies the UI visualization order of peers with raised hands: peers with a higher rating should be showed first in the list.
videoflags.6?GroupCallParticipantVideoInfo about the video stream the participant is currently broadcasting
presentationflags.14?GroupCallParticipantVideoInfo about the screen sharing stream the participant is currently broadcasting
+

Type

+

GroupCallParticipant

+

Related pages

+

updateGroupCallParticipants

+

The participant list of a certain group call has changed

+

phone.getGroupParticipants

+

Get group call participants

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/groupCallParticipantVideo.html b/data/web/blogfork.telegram.org/constructor/groupCallParticipantVideo.html new file mode 100644 index 0000000000..4118842c6a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/groupCallParticipantVideo.html @@ -0,0 +1,170 @@ + + + + + groupCallParticipantVideo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

groupCallParticipantVideo

+ +

Info about a video stream

+

+ +
+
groupCallParticipantVideo#67753ac8 flags:# paused:flags.0?true endpoint:string source_groups:Vector<GroupCallParticipantVideoSourceGroup> audio_source:flags.1?int = GroupCallParticipantVideo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
pausedflags.0?trueWhether the stream is currently paused
endpointstringEndpoint
source_groupsVector<GroupCallParticipantVideoSourceGroup>Source groups
audio_sourceflags.1?intAudio source ID
+

Type

+

GroupCallParticipantVideo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/groupCallParticipantVideoSourceGroup.html b/data/web/blogfork.telegram.org/constructor/groupCallParticipantVideoSourceGroup.html new file mode 100644 index 0000000000..b9187e541e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/groupCallParticipantVideoSourceGroup.html @@ -0,0 +1,155 @@ + + + + + groupCallParticipantVideoSourceGroup + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

groupCallParticipantVideoSourceGroup

+ +

Describes a group of video synchronization source identifiers

+

+ +
+
groupCallParticipantVideoSourceGroup#dcb118b7 semantics:string sources:Vector<int> = GroupCallParticipantVideoSourceGroup;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
semanticsstringSDP semantics
sourcesVector<int>Source IDs
+

Type

+

GroupCallParticipantVideoSourceGroup

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/groupCallStreamChannel.html b/data/web/blogfork.telegram.org/constructor/groupCallStreamChannel.html new file mode 100644 index 0000000000..604b99fb7d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/groupCallStreamChannel.html @@ -0,0 +1,163 @@ + + + + + groupCallStreamChannel + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

groupCallStreamChannel

+ +

Info about an RTMP stream in a group call or livestream

+

+ +
+
groupCallStreamChannel#80eb48af channel:int scale:int last_timestamp_ms:long = GroupCallStreamChannel;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelintChannel ID
scaleintSpecifies the duration of the video segment to fetch in milliseconds, by bitshifting 1000 to the right scale times: duration_ms := 1000 >> scale.
last_timestamp_mslongLast seen timestamp to easily start fetching livestream chunks using inputGroupCallStream
+

Type

+

GroupCallStreamChannel

+

Related pages

+

inputGroupCallStream

+

Chunk of a livestream

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/help.appUpdate b/data/web/blogfork.telegram.org/constructor/help.appUpdate new file mode 100644 index 0000000000..700128213b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.appUpdate @@ -0,0 +1,193 @@ + + + + + help.appUpdate + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

help.appUpdate

+ +

An update is available for the application.

+

+ +
+
help.appUpdate#ccbbce30 flags:# can_not_skip:flags.0?true id:int version:string text:string entities:Vector<MessageEntity> document:flags.1?Document url:flags.2?string sticker:flags.3?Document = 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
stickerflags.3?DocumentAssociated sticker
+

Type

+

help.AppUpdate

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/help.countriesList b/data/web/blogfork.telegram.org/constructor/help.countriesList new file mode 100644 index 0000000000..4bffc4ce1f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.countriesList @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/help.countriesListNotModified b/data/web/blogfork.telegram.org/constructor/help.countriesListNotModified new file mode 100644 index 0000000000..cd2bad520f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.countriesListNotModified @@ -0,0 +1,135 @@ + + + + + help.countriesListNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

help.countriesListNotModified

+ +

The country list has not changed

+

+ +
+
help.countriesListNotModified#93cc1f32 = help.CountriesList;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

help.CountriesList

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/help.country b/data/web/blogfork.telegram.org/constructor/help.country new file mode 100644 index 0000000000..9a381ac553 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.country @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/help.countryCode b/data/web/blogfork.telegram.org/constructor/help.countryCode new file mode 100644 index 0000000000..966baa5d21 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.countryCode @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/help.deepLinkInfo b/data/web/blogfork.telegram.org/constructor/help.deepLinkInfo new file mode 100644 index 0000000000..f5df1d012d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.deepLinkInfo @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/help.deepLinkInfoEmpty b/data/web/blogfork.telegram.org/constructor/help.deepLinkInfoEmpty new file mode 100644 index 0000000000..58ae34c009 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.deepLinkInfoEmpty @@ -0,0 +1,135 @@ + + + + + help.deepLinkInfoEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

help.deepLinkInfoEmpty

+ +

Deep link info empty

+

+ +
+
help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

help.DeepLinkInfo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/help.inviteText b/data/web/blogfork.telegram.org/constructor/help.inviteText new file mode 100644 index 0000000000..afe70c6ee8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.inviteText @@ -0,0 +1,150 @@ + + + + + help.inviteText + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

help.inviteText

+ +

Text of a text message with an invitation to install Telegram.

+

+ +
+
help.inviteText#18cb9f78 message:string = help.InviteText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
messagestringText of the message
+

Type

+

help.InviteText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/help.noAppUpdate b/data/web/blogfork.telegram.org/constructor/help.noAppUpdate new file mode 100644 index 0000000000..442037775e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.noAppUpdate @@ -0,0 +1,135 @@ + + + + + help.noAppUpdate + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

help.noAppUpdate

+ +

No updates are available for the application.

+

+ +
+
help.noAppUpdate#c45a6536 = help.AppUpdate;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

help.AppUpdate

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/help.passportConfig b/data/web/blogfork.telegram.org/constructor/help.passportConfig new file mode 100644 index 0000000000..ba22fa864d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.passportConfig @@ -0,0 +1,159 @@ + + + + + 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/web/blogfork.telegram.org/constructor/help.passportConfigNotModified b/data/web/blogfork.telegram.org/constructor/help.passportConfigNotModified new file mode 100644 index 0000000000..d0152294c3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.passportConfigNotModified @@ -0,0 +1,135 @@ + + + + + help.passportConfigNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

help.passportConfigNotModified

+ +

Password configuration not modified

+

+ +
+
help.passportConfigNotModified#bfb9f457 = help.PassportConfig;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

help.PassportConfig

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/help.promoData b/data/web/blogfork.telegram.org/constructor/help.promoData new file mode 100644 index 0000000000..a080b9bd0f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.promoData @@ -0,0 +1,185 @@ + + + + + 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/web/blogfork.telegram.org/constructor/help.promoDataEmpty b/data/web/blogfork.telegram.org/constructor/help.promoDataEmpty new file mode 100644 index 0000000000..f95778ad34 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.promoDataEmpty @@ -0,0 +1,150 @@ + + + + + help.promoDataEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

help.promoDataEmpty

+ +

No PSA/MTProxy info is available

+

+ +
+
help.promoDataEmpty#98f6ac75 expires:int = help.PromoData;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
expiresintRe-fetch PSA/MTProxy info after the specified number of seconds
+

Type

+

help.PromoData

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/help.recentMeUrls b/data/web/blogfork.telegram.org/constructor/help.recentMeUrls new file mode 100644 index 0000000000..0382a47a35 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.recentMeUrls @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/help.support b/data/web/blogfork.telegram.org/constructor/help.support new file mode 100644 index 0000000000..a129e3d223 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.support @@ -0,0 +1,155 @@ + + + + + help.support + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

help.support

+ +

Info on support user.

+

+ +
+
help.support#17c6b5f6 phone_number:string user:User = help.Support;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number
userUserUser
+

Type

+

help.Support

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/help.supportName b/data/web/blogfork.telegram.org/constructor/help.supportName new file mode 100644 index 0000000000..fed385f19b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.supportName @@ -0,0 +1,150 @@ + + + + + help.supportName + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

help.supportName

+ +

Localized name for telegram support

+

+ +
+
help.supportName#8c05f1c9 name:string = help.SupportName;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
namestringLocalized name
+

Type

+

help.SupportName

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/help.termsOfService b/data/web/blogfork.telegram.org/constructor/help.termsOfService new file mode 100644 index 0000000000..4bdf26ae75 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.termsOfService @@ -0,0 +1,178 @@ + + + + + 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/web/blogfork.telegram.org/constructor/help.termsOfServiceUpdate b/data/web/blogfork.telegram.org/constructor/help.termsOfServiceUpdate new file mode 100644 index 0000000000..11c71726ea --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.termsOfServiceUpdate @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/help.termsOfServiceUpdateEmpty b/data/web/blogfork.telegram.org/constructor/help.termsOfServiceUpdateEmpty new file mode 100644 index 0000000000..a19608970d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.termsOfServiceUpdateEmpty @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/help.userInfo b/data/web/blogfork.telegram.org/constructor/help.userInfo new file mode 100644 index 0000000000..6e8202250f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.userInfo @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/help.userInfoEmpty b/data/web/blogfork.telegram.org/constructor/help.userInfoEmpty new file mode 100644 index 0000000000..65986627bf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/help.userInfoEmpty @@ -0,0 +1,135 @@ + + + + + help.userInfoEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

help.userInfoEmpty

+ +

Internal use

+

+ +
+
help.userInfoEmpty#f3ae2eed = help.UserInfo;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

help.UserInfo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/highScore.html b/data/web/blogfork.telegram.org/constructor/highScore.html new file mode 100644 index 0000000000..1823538f02 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/highScore.html @@ -0,0 +1,160 @@ + + + + + highScore + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

highScore

+ +

Game highscore

+

+ +
+
highScore#73a379eb pos:int user_id:long score:int = HighScore;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
posintPosition in highscore list
user_idlongUser ID
scoreintScore
+

Type

+

HighScore

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/importedContact.html b/data/web/blogfork.telegram.org/constructor/importedContact.html new file mode 100644 index 0000000000..134b32bddc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/importedContact.html @@ -0,0 +1,158 @@ + + + + + importedContact + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

importedContact

+ +

Successfully imported contact.

+

+ +
+
importedContact#c13e3c50 user_id:long client_id:long = ImportedContact;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser 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 phone book.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inlineBotSwitchPM.html b/data/web/blogfork.telegram.org/constructor/inlineBotSwitchPM.html new file mode 100644 index 0000000000..b169a01891 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inlineBotSwitchPM.html @@ -0,0 +1,155 @@ + + + + + inlineBotSwitchPM + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inlineBotSwitchPM

+ +

The bot requested the user to message them 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/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeBroadcast.html b/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeBroadcast.html new file mode 100644 index 0000000000..b40d5e888c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeBroadcast.html @@ -0,0 +1,138 @@ + + + + + inlineQueryPeerTypeBroadcast + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inlineQueryPeerTypeBroadcast

+ +

The inline query was sent in a channel

+

+ +
+
inlineQueryPeerTypeBroadcast#6334ee9a = InlineQueryPeerType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InlineQueryPeerType

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeChat.html b/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeChat.html new file mode 100644 index 0000000000..301095ac56 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeChat.html @@ -0,0 +1,138 @@ + + + + + inlineQueryPeerTypeChat + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inlineQueryPeerTypeChat

+ +

The inline query was sent in a chat

+

+ +
+
inlineQueryPeerTypeChat#d766c50a = InlineQueryPeerType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InlineQueryPeerType

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeMegagroup.html b/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeMegagroup.html new file mode 100644 index 0000000000..1766ee8942 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeMegagroup.html @@ -0,0 +1,138 @@ + + + + + inlineQueryPeerTypeMegagroup + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inlineQueryPeerTypeMegagroup

+ +

The inline query was sent in a supergroup

+

+ +
+
inlineQueryPeerTypeMegagroup#5ec4be43 = InlineQueryPeerType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InlineQueryPeerType

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypePM.html b/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypePM.html new file mode 100644 index 0000000000..d87eb12b57 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypePM.html @@ -0,0 +1,135 @@ + + + + + inlineQueryPeerTypePM + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inlineQueryPeerTypePM

+ +

The inline query was sent in a private chat

+

+ +
+
inlineQueryPeerTypePM#833c0fac = InlineQueryPeerType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InlineQueryPeerType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeSameBotPM.html b/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeSameBotPM.html new file mode 100644 index 0000000000..6e9a16c161 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inlineQueryPeerTypeSameBotPM.html @@ -0,0 +1,135 @@ + + + + + inlineQueryPeerTypeSameBotPM + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inlineQueryPeerTypeSameBotPM

+ +

The inline query was sent in a private chat with the bot itself

+

+ +
+
inlineQueryPeerTypeSameBotPM#3081ed9d = InlineQueryPeerType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InlineQueryPeerType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputAppEvent.html b/data/web/blogfork.telegram.org/constructor/inputAppEvent.html new file mode 100644 index 0000000000..594394cc69 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputAppEvent.html @@ -0,0 +1,165 @@ + + + + + inputAppEvent + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputAppEvent

+ +

Event that occurred 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/web/blogfork.telegram.org/constructor/inputBotInlineMessageGame.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageGame.html new file mode 100644 index 0000000000..ebce4cf32f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageGame.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputBotInlineMessageID.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageID.html new file mode 100644 index 0000000000..c93de0e8f2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageID.html @@ -0,0 +1,160 @@ + + + + + inputBotInlineMessageID + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineMessageID

+ +

Represents a sent inline message from the perspective of a bot (legacy constructor)

+

+ +
+
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, contains both the (32-bit, legacy) owner ID and the message ID, used only for Bot API backwards compatibility with 32-bit user ID.
access_hashlongAccess hash of message
+

Type

+

InputBotInlineMessageID

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageID64.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageID64.html new file mode 100644 index 0000000000..f2508e9287 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageID64.html @@ -0,0 +1,165 @@ + + + + + inputBotInlineMessageID64 + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineMessageID64

+ +

Represents a sent inline message from the perspective of a bot

+

+ +
+
inputBotInlineMessageID64#b6d915d7 dc_id:int owner_id:long id:int access_hash:long = InputBotInlineMessageID;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dc_idintDC ID to use when working with this inline message
owner_idlongID of the owner of this message
idintID of message
access_hashlongAccess hash of message
+

Type

+

InputBotInlineMessageID

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaAuto.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaAuto.html new file mode 100644 index 0000000000..12926f43f5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaAuto.html @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaContact.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaContact.html new file mode 100644 index 0000000000..276d532eca --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaContact.html @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaGeo.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaGeo.html new file mode 100644 index 0000000000..450c734da4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaGeo.html @@ -0,0 +1,178 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaInvoice.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaInvoice.html new file mode 100644 index 0000000000..bd699d7f0d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaInvoice.html @@ -0,0 +1,190 @@ + + + + + inputBotInlineMessageMediaInvoice + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputBotInlineMessageMediaInvoice

+ +

An invoice

+

+ +
+
inputBotInlineMessageMediaInvoice#d7e78225 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
titlestringProduct name, 1-32 characters
descriptionstringProduct description, 1-255 characters
photoflags.0?InputWebDocumentInvoice photo
invoiceInvoiceThe 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_dataDataJSONA JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.
reply_markupflags.2?ReplyMarkupInline keyboard
+

Type

+

InputBotInlineMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaVenue.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaVenue.html new file mode 100644 index 0000000000..b6c07f30bf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageMediaVenue.html @@ -0,0 +1,185 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputBotInlineMessageText.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageText.html new file mode 100644 index 0000000000..e757c7f3c1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineMessageText.html @@ -0,0 +1,173 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputBotInlineResult.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineResult.html new file mode 100644 index 0000000000..158327ebe0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineResult.html @@ -0,0 +1,192 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputBotInlineResultDocument.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineResultDocument.html new file mode 100644 index 0000000000..08b65d3c14 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineResultDocument.html @@ -0,0 +1,182 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputBotInlineResultGame.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineResultGame.html new file mode 100644 index 0000000000..5fa6ff6fc1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineResultGame.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputBotInlineResultPhoto.html b/data/web/blogfork.telegram.org/constructor/inputBotInlineResultPhoto.html new file mode 100644 index 0000000000..6f531a99de --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputBotInlineResultPhoto.html @@ -0,0 +1,167 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputChannel.html b/data/web/blogfork.telegram.org/constructor/inputChannel.html new file mode 100644 index 0000000000..b655cc1094 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputChannel.html @@ -0,0 +1,158 @@ + + + + + inputChannel + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputChannel

+ +

Represents a channel

+

+ +
+
inputChannel#f35aec28 channel_id:long access_hash:long = InputChannel;

+

Parameters

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

Type

+

InputChannel

+

Related pages

+

channel

+

Channel/supergroup info

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputChannelEmpty.html b/data/web/blogfork.telegram.org/constructor/inputChannelEmpty.html new file mode 100644 index 0000000000..3702111594 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputChannelEmpty.html @@ -0,0 +1,135 @@ + + + + + inputChannelEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputChannelEmpty

+ +

Represents the absence of a channel

+

+ +
+
inputChannelEmpty#ee8c1e86 = InputChannel;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputChannel

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputChannelFromMessage.html b/data/web/blogfork.telegram.org/constructor/inputChannelFromMessage.html new file mode 100644 index 0000000000..9d5373f1ab --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputChannelFromMessage.html @@ -0,0 +1,163 @@ + + + + + inputChannelFromMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputChannelFromMessage

+ +

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

+

+ +
+
inputChannelFromMessage#5b934f9d peer:InputPeer msg_id:int channel_id:long = InputChannel;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat where the channel was seen
msg_idintThe message ID in the chat where the channel was seen
channel_idlongThe 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/web/blogfork.telegram.org/constructor/inputChatPhoto.html b/data/web/blogfork.telegram.org/constructor/inputChatPhoto.html new file mode 100644 index 0000000000..90c0a27265 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputChatPhoto.html @@ -0,0 +1,150 @@ + + + + + inputChatPhoto + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputChatPhoto

+ +

Existing photo to be set as a chat profile photo.

+

+ +
+
inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idInputPhotoExisting photo
+

Type

+

InputChatPhoto

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputChatPhotoEmpty.html b/data/web/blogfork.telegram.org/constructor/inputChatPhotoEmpty.html new file mode 100644 index 0000000000..00608e6de0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputChatPhotoEmpty.html @@ -0,0 +1,135 @@ + + + + + inputChatPhotoEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputChatPhotoEmpty

+ +

Empty constructor, remove group photo.

+

+ +
+
inputChatPhotoEmpty#1ca48f57 = InputChatPhoto;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputChatPhoto

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputChatUploadedPhoto.html b/data/web/blogfork.telegram.org/constructor/inputChatUploadedPhoto.html new file mode 100644 index 0000000000..d9c62558f6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputChatUploadedPhoto.html @@ -0,0 +1,168 @@ + + + + + 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 further sending to one of the methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputCheckPasswordEmpty.html b/data/web/blogfork.telegram.org/constructor/inputCheckPasswordEmpty.html new file mode 100644 index 0000000000..f5105b4109 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputCheckPasswordEmpty.html @@ -0,0 +1,135 @@ + + + + + inputCheckPasswordEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputCheckPasswordEmpty

+ +

There is no password

+

+ +
+
inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputCheckPasswordSRP

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputCheckPasswordSRP.html b/data/web/blogfork.telegram.org/constructor/inputCheckPasswordSRP.html new file mode 100644 index 0000000000..bcb1596960 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputCheckPasswordSRP.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputClientProxy.html b/data/web/blogfork.telegram.org/constructor/inputClientProxy.html new file mode 100644 index 0000000000..523b24322f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputClientProxy.html @@ -0,0 +1,157 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputDialogPeer.html b/data/web/blogfork.telegram.org/constructor/inputDialogPeer.html new file mode 100644 index 0000000000..32bd103b11 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputDialogPeer.html @@ -0,0 +1,150 @@ + + + + + inputDialogPeer + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputDialogPeer

+ +

A peer

+

+ +
+
inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer
+

Type

+

InputDialogPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputDialogPeerFolder.html b/data/web/blogfork.telegram.org/constructor/inputDialogPeerFolder.html new file mode 100644 index 0000000000..3eb0306c74 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputDialogPeerFolder.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputDocument.html b/data/web/blogfork.telegram.org/constructor/inputDocument.html new file mode 100644 index 0000000000..09ace5a74b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputDocument.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputDocumentEmpty.html b/data/web/blogfork.telegram.org/constructor/inputDocumentEmpty.html new file mode 100644 index 0000000000..ff14905fc5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputDocumentEmpty.html @@ -0,0 +1,135 @@ + + + + + inputDocumentEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputDocumentEmpty

+ +

Empty constructor.

+

+ +
+
inputDocumentEmpty#72f0eaae = InputDocument;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputDocument

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputDocumentFileLocation.html b/data/web/blogfork.telegram.org/constructor/inputDocumentFileLocation.html new file mode 100644 index 0000000000..77fee476d5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputDocumentFileLocation.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputEncryptedChat.html b/data/web/blogfork.telegram.org/constructor/inputEncryptedChat.html new file mode 100644 index 0000000000..d98967746a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputEncryptedChat.html @@ -0,0 +1,162 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputEncryptedFile.html b/data/web/blogfork.telegram.org/constructor/inputEncryptedFile.html new file mode 100644 index 0000000000..f0022f5188 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputEncryptedFile.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputEncryptedFileBigUploaded.html b/data/web/blogfork.telegram.org/constructor/inputEncryptedFileBigUploaded.html new file mode 100644 index 0000000000..569b128a65 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputEncryptedFileBigUploaded.html @@ -0,0 +1,163 @@ + + + + + inputEncryptedFileBigUploaded + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputEncryptedFileBigUploaded

+ +

Assigns a new big encrypted file (over 10 MB 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 10 MB in size) to be later passed to one of the methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputEncryptedFileEmpty.html b/data/web/blogfork.telegram.org/constructor/inputEncryptedFileEmpty.html new file mode 100644 index 0000000000..0ed1552803 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputEncryptedFileEmpty.html @@ -0,0 +1,135 @@ + + + + + inputEncryptedFileEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputEncryptedFileEmpty

+ +

Empty constructor.

+

+ +
+
inputEncryptedFileEmpty#1837c364 = InputEncryptedFile;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputEncryptedFile

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputEncryptedFileLocation.html b/data/web/blogfork.telegram.org/constructor/inputEncryptedFileLocation.html new file mode 100644 index 0000000000..88049c511c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputEncryptedFileLocation.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputEncryptedFileUploaded.html b/data/web/blogfork.telegram.org/constructor/inputEncryptedFileUploaded.html new file mode 100644 index 0000000000..99879dde03 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputEncryptedFileUploaded.html @@ -0,0 +1,165 @@ + + + + + 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 client
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/web/blogfork.telegram.org/constructor/inputFile.html b/data/web/blogfork.telegram.org/constructor/inputFile.html new file mode 100644 index 0000000000..5fd9ea34a3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputFile.html @@ -0,0 +1,168 @@ + + + + + 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 further sending to one of the methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputFileBig.html b/data/web/blogfork.telegram.org/constructor/inputFileBig.html new file mode 100644 index 0000000000..64fe26aa97 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputFileBig.html @@ -0,0 +1,163 @@ + + + + + inputFileBig + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputFileBig

+ +

Assigns a big file (over 10 MB 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 10 MB in size) to be later passed to one of the methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputFileLocation.html b/data/web/blogfork.telegram.org/constructor/inputFileLocation.html new file mode 100644 index 0000000000..23d7deb5ce --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputFileLocation.html @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputFolderPeer.html b/data/web/blogfork.telegram.org/constructor/inputFolderPeer.html new file mode 100644 index 0000000000..af48111033 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputFolderPeer.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputGameID.html b/data/web/blogfork.telegram.org/constructor/inputGameID.html new file mode 100644 index 0000000000..1cd2ee2ca6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputGameID.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputGameShortName.html b/data/web/blogfork.telegram.org/constructor/inputGameShortName.html new file mode 100644 index 0000000000..84d71f58b6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputGameShortName.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputGeoPoint.html b/data/web/blogfork.telegram.org/constructor/inputGeoPoint.html new file mode 100644 index 0000000000..5a4a467e07 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputGeoPoint.html @@ -0,0 +1,165 @@ + + + + + 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
latdoubleLatitude
longdoubleLongitude
accuracy_radiusflags.0?intThe estimated horizontal accuracy of the location, in meters; as defined by the sender.
+

Type

+

InputGeoPoint

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputGeoPointEmpty.html b/data/web/blogfork.telegram.org/constructor/inputGeoPointEmpty.html new file mode 100644 index 0000000000..e36f903553 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputGeoPointEmpty.html @@ -0,0 +1,135 @@ + + + + + inputGeoPointEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputGeoPointEmpty

+ +

Empty GeoPoint constructor.

+

+ +
+
inputGeoPointEmpty#e4c123d6 = InputGeoPoint;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputGeoPoint

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputGroupCall.html b/data/web/blogfork.telegram.org/constructor/inputGroupCall.html new file mode 100644 index 0000000000..2b32c4d958 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputGroupCall.html @@ -0,0 +1,155 @@ + + + + + inputGroupCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputGroupCall

+ +

Points to a specific group call

+

+ +
+
inputGroupCall#d8aa840f id:long access_hash:long = InputGroupCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongGroup call ID
access_hashlongGroup call access hash
+

Type

+

InputGroupCall

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputGroupCallStream.html b/data/web/blogfork.telegram.org/constructor/inputGroupCallStream.html new file mode 100644 index 0000000000..986205c131 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputGroupCallStream.html @@ -0,0 +1,175 @@ + + + + + inputGroupCallStream + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputGroupCallStream

+ +

Chunk of a livestream

+

+ +
+
inputGroupCallStream#598a92a flags:# call:InputGroupCall time_ms:long scale:int video_channel:flags.0?int video_quality:flags.0?int = InputFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
callInputGroupCallLivestream info
time_mslongTimestamp in milliseconds
scaleintSpecifies the duration of the video segment to fetch in milliseconds, by bitshifting 1000 to the right scale times: duration_ms := 1000 >> scale
video_channelflags.0?intSelected video channel
video_qualityflags.0?intSelected video quality (0 = lowest, 1 = medium, 2 = best)
+

Type

+

InputFileLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputKeyboardButtonUrlAuth.html b/data/web/blogfork.telegram.org/constructor/inputKeyboardButtonUrlAuth.html new file mode 100644 index 0000000000..bd751e0a74 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputKeyboardButtonUrlAuth.html @@ -0,0 +1,179 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputKeyboardButtonUserProfile.html b/data/web/blogfork.telegram.org/constructor/inputKeyboardButtonUserProfile.html new file mode 100644 index 0000000000..048d1373c0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputKeyboardButtonUserProfile.html @@ -0,0 +1,155 @@ + + + + + inputKeyboardButtonUserProfile + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputKeyboardButtonUserProfile

+ +

Button that links directly to a user profile

+

+ +
+
inputKeyboardButtonUserProfile#e988037b text:string user_id:InputUser = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textstringButton text
user_idInputUserUser ID
+

Type

+

KeyboardButton

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMediaContact.html b/data/web/blogfork.telegram.org/constructor/inputMediaContact.html new file mode 100644 index 0000000000..eb8b5e4714 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaContact.html @@ -0,0 +1,165 @@ + + + + + inputMediaContact + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaContact

+ +

Phone book 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/web/blogfork.telegram.org/constructor/inputMediaDice.html b/data/web/blogfork.telegram.org/constructor/inputMediaDice.html new file mode 100644 index 0000000000..91739273c1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaDice.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMediaDocument.html b/data/web/blogfork.telegram.org/constructor/inputMediaDocument.html new file mode 100644 index 0000000000..e386649d29 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaDocument.html @@ -0,0 +1,165 @@ + + + + + inputMediaDocument + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaDocument

+ +

Forwarded document

+

+ +
+
inputMediaDocument#33473058 flags:# id:InputDocument ttl_seconds:flags.0?int query:flags.1?string = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idInputDocumentThe document to be forwarded.
ttl_secondsflags.0?intTime to live of self-destructing document
queryflags.1?stringText query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance.
+

Type

+

InputMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMediaDocumentExternal.html b/data/web/blogfork.telegram.org/constructor/inputMediaDocumentExternal.html new file mode 100644 index 0000000000..7c85ac0073 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaDocumentExternal.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMediaEmpty.html b/data/web/blogfork.telegram.org/constructor/inputMediaEmpty.html new file mode 100644 index 0000000000..4b25cf5baa --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaEmpty.html @@ -0,0 +1,135 @@ + + + + + inputMediaEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaEmpty

+ +

Empty media content of a message.

+

+ +
+
inputMediaEmpty#9664f57f = InputMedia;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMediaGame.html b/data/web/blogfork.telegram.org/constructor/inputMediaGame.html new file mode 100644 index 0000000000..85bc174e7a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaGame.html @@ -0,0 +1,150 @@ + + + + + inputMediaGame + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaGame

+ +

A game

+

+ +
+
inputMediaGame#d33f43f3 id:InputGame = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idInputGameThe game to forward
+

Type

+

InputMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMediaGeoLive.html b/data/web/blogfork.telegram.org/constructor/inputMediaGeoLive.html new file mode 100644 index 0000000000..ef0e881143 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaGeoLive.html @@ -0,0 +1,178 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMediaGeoPoint.html b/data/web/blogfork.telegram.org/constructor/inputMediaGeoPoint.html new file mode 100644 index 0000000000..77db11cf35 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaGeoPoint.html @@ -0,0 +1,150 @@ + + + + + inputMediaGeoPoint + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaGeoPoint

+ +

Map.

+

+ +
+
inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
geo_pointInputGeoPointGeoPoint
+

Type

+

InputMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMediaInvoice.html b/data/web/blogfork.telegram.org/constructor/inputMediaInvoice.html new file mode 100644 index 0000000000..559b7cf789 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaInvoice.html @@ -0,0 +1,192 @@ + + + + + inputMediaInvoice + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMediaInvoice

+ +

Generated invoice of a bot payment

+

+ +
+
inputMediaInvoice#d9799874 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:flags.1?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_paramflags.1?stringStart parameter
+

Type

+

InputMedia

+

Related pages

+

Bot Payments API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMediaPhoto.html b/data/web/blogfork.telegram.org/constructor/inputMediaPhoto.html new file mode 100644 index 0000000000..714b7a241e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaPhoto.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMediaPhotoExternal.html b/data/web/blogfork.telegram.org/constructor/inputMediaPhotoExternal.html new file mode 100644 index 0000000000..293df4088a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaPhotoExternal.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMediaPoll.html b/data/web/blogfork.telegram.org/constructor/inputMediaPoll.html new file mode 100644 index 0000000000..f24a740816 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaPoll.html @@ -0,0 +1,173 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMediaUploadedDocument.html b/data/web/blogfork.telegram.org/constructor/inputMediaUploadedDocument.html new file mode 100644 index 0000000000..e69c8c38b4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaUploadedDocument.html @@ -0,0 +1,193 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMediaUploadedPhoto.html b/data/web/blogfork.telegram.org/constructor/inputMediaUploadedPhoto.html new file mode 100644 index 0000000000..f9b30c76cc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaUploadedPhoto.html @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMediaVenue.html b/data/web/blogfork.telegram.org/constructor/inputMediaVenue.html new file mode 100644 index 0000000000..1644628574 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMediaVenue.html @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMessageCallbackQuery.html b/data/web/blogfork.telegram.org/constructor/inputMessageCallbackQuery.html new file mode 100644 index 0000000000..9a00901b05 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessageCallbackQuery.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMessageEntityMentionName.html b/data/web/blogfork.telegram.org/constructor/inputMessageEntityMentionName.html new file mode 100644 index 0000000000..8c56fc9bdf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessageEntityMentionName.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMessageID.html b/data/web/blogfork.telegram.org/constructor/inputMessageID.html new file mode 100644 index 0000000000..8d18e156e4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessageID.html @@ -0,0 +1,150 @@ + + + + + inputMessageID + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessageID

+ +

Message by ID

+

+ +
+
inputMessageID#a676a322 id:int = InputMessage;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idintMessage ID
+

Type

+

InputMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagePinned.html b/data/web/blogfork.telegram.org/constructor/inputMessagePinned.html new file mode 100644 index 0000000000..b8f06db5b8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagePinned.html @@ -0,0 +1,135 @@ + + + + + inputMessagePinned + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagePinned

+ +

Pinned message

+

+ +
+
inputMessagePinned#86872538 = InputMessage;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessageReplyTo.html b/data/web/blogfork.telegram.org/constructor/inputMessageReplyTo.html new file mode 100644 index 0000000000..ca914260a0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessageReplyTo.html @@ -0,0 +1,150 @@ + + + + + inputMessageReplyTo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessageReplyTo

+ +

Message to which the specified message replies to

+

+ +
+
inputMessageReplyTo#bad88395 id:int = InputMessage;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idintID of the message that replies to the message we need
+

Type

+

InputMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterChatPhotos.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterChatPhotos.html new file mode 100644 index 0000000000..7a3dee9265 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterChatPhotos.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterChatPhotos + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterChatPhotos

+ +

Return only chat photo changes

+

+ +
+
inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterContacts.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterContacts.html new file mode 100644 index 0000000000..48a2fb548d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterContacts.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterContacts + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterContacts

+ +

Return only messages containing contacts

+

+ +
+
inputMessagesFilterContacts#e062db83 = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterDocument.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterDocument.html new file mode 100644 index 0000000000..5cfff3a803 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterDocument.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterDocument + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterDocument

+ +

Filter for messages containing documents.

+

+ +
+
inputMessagesFilterDocument#9eddf188 = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterEmpty.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterEmpty.html new file mode 100644 index 0000000000..fc7a1e3a48 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterEmpty.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterEmpty

+ +

Filter is absent.

+

+ +
+
inputMessagesFilterEmpty#57e2f66c = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterGeo.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterGeo.html new file mode 100644 index 0000000000..2480e17e94 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterGeo.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterGeo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterGeo

+ +

Return only messages containing geolocations

+

+ +
+
inputMessagesFilterGeo#e7026d0d = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterGif.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterGif.html new file mode 100644 index 0000000000..cbccd41ced --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterGif.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterGif + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterGif

+ +

Return only messages containing gifs

+

+ +
+
inputMessagesFilterGif#ffc86587 = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterMusic.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterMusic.html new file mode 100644 index 0000000000..262e73607a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterMusic.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterMusic + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterMusic

+ +

Return only messages containing audio files

+

+ +
+
inputMessagesFilterMusic#3751b49e = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterMyMentions.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterMyMentions.html new file mode 100644 index 0000000000..b7656d3bfb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterMyMentions.html @@ -0,0 +1,138 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMessagesFilterPhoneCalls.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterPhoneCalls.html new file mode 100644 index 0000000000..35814e3fb4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterPhoneCalls.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputMessagesFilterPhotoVideo.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterPhotoVideo.html new file mode 100644 index 0000000000..64c35c9010 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterPhotoVideo.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterPhotoVideo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterPhotoVideo

+ +

Filter for messages containing photos or videos.

+

+ +
+
inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterPhotos.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterPhotos.html new file mode 100644 index 0000000000..24c04eb70c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterPhotos.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterPhotos + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterPhotos

+ +

Filter for messages containing photos.

+

+ +
+
inputMessagesFilterPhotos#9609a51c = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterPinned.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterPinned.html new file mode 100644 index 0000000000..c93ba5a9a9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterPinned.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterPinned + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterPinned

+ +

Fetch only pinned messages

+

+ +
+
inputMessagesFilterPinned#1bb00451 = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterRoundVideo.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterRoundVideo.html new file mode 100644 index 0000000000..ae9b94029a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterRoundVideo.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterRoundVideo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterRoundVideo

+ +

Return only round videos

+

+ +
+
inputMessagesFilterRoundVideo#b549da53 = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterRoundVoice.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterRoundVoice.html new file mode 100644 index 0000000000..36f53f5093 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterRoundVoice.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterRoundVoice + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterRoundVoice

+ +

Return only round videos and voice notes

+

+ +
+
inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterUrl.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterUrl.html new file mode 100644 index 0000000000..71cc7df474 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterUrl.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterUrl + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterUrl

+ +

Return only messages containing URLs

+

+ +
+
inputMessagesFilterUrl#7ef0dd87 = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterVideo.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterVideo.html new file mode 100644 index 0000000000..84a621db9c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterVideo.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterVideo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterVideo

+ +

Filter for messages containing videos.

+

+ +
+
inputMessagesFilterVideo#9fc00e65 = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputMessagesFilterVoice.html b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterVoice.html new file mode 100644 index 0000000000..858bf0da7a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputMessagesFilterVoice.html @@ -0,0 +1,135 @@ + + + + + inputMessagesFilterVoice + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputMessagesFilterVoice

+ +

Return only messages containing voice notes

+

+ +
+
inputMessagesFilterVoice#50f5c392 = MessagesFilter;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessagesFilter

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputNotifyBroadcasts.html b/data/web/blogfork.telegram.org/constructor/inputNotifyBroadcasts.html new file mode 100644 index 0000000000..6eac5161f4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputNotifyBroadcasts.html @@ -0,0 +1,138 @@ + + + + + inputNotifyBroadcasts + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputNotifyBroadcasts

+ +

All channels

+

+ +
+
inputNotifyBroadcasts#b1db7c7e = InputNotifyPeer;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputNotifyPeer

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputNotifyChats.html b/data/web/blogfork.telegram.org/constructor/inputNotifyChats.html new file mode 100644 index 0000000000..d9c7d992f8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputNotifyChats.html @@ -0,0 +1,135 @@ + + + + + inputNotifyChats + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputNotifyChats

+ +

Notifications generated by all groups.

+

+ +
+
inputNotifyChats#4a95e84e = InputNotifyPeer;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputNotifyPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputNotifyPeer.html b/data/web/blogfork.telegram.org/constructor/inputNotifyPeer.html new file mode 100644 index 0000000000..b6fbfaae43 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputNotifyPeer.html @@ -0,0 +1,150 @@ + + + + + inputNotifyPeer + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputNotifyPeer

+ +

Notifications generated by a certain user or group.

+

+ +
+
inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerUser or group
+

Type

+

InputNotifyPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputNotifyUsers.html b/data/web/blogfork.telegram.org/constructor/inputNotifyUsers.html new file mode 100644 index 0000000000..bbefa962fa --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputNotifyUsers.html @@ -0,0 +1,135 @@ + + + + + inputNotifyUsers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputNotifyUsers

+ +

Notifications generated by all users.

+

+ +
+
inputNotifyUsers#193b4417 = InputNotifyPeer;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputNotifyPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPaymentCredentials.html b/data/web/blogfork.telegram.org/constructor/inputPaymentCredentials.html new file mode 100644 index 0000000000..d453cce780 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPaymentCredentials.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputPaymentCredentialsApplePay.html b/data/web/blogfork.telegram.org/constructor/inputPaymentCredentialsApplePay.html new file mode 100644 index 0000000000..d546819061 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPaymentCredentialsApplePay.html @@ -0,0 +1,150 @@ + + + + + inputPaymentCredentialsApplePay + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPaymentCredentialsApplePay

+ +

Apple pay payment credentials

+

+ +
+
inputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
payment_dataDataJSONPayment data
+

Type

+

InputPaymentCredentials

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPaymentCredentialsGooglePay.html b/data/web/blogfork.telegram.org/constructor/inputPaymentCredentialsGooglePay.html new file mode 100644 index 0000000000..1c234b42b0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPaymentCredentialsGooglePay.html @@ -0,0 +1,150 @@ + + + + + inputPaymentCredentialsGooglePay + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPaymentCredentialsGooglePay

+ +

Google Pay payment credentials

+

+ +
+
inputPaymentCredentialsGooglePay#8ac32801 payment_token:DataJSON = InputPaymentCredentials;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
payment_tokenDataJSONPayment token
+

Type

+

InputPaymentCredentials

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPaymentCredentialsSaved.html b/data/web/blogfork.telegram.org/constructor/inputPaymentCredentialsSaved.html new file mode 100644 index 0000000000..18da766ba6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPaymentCredentialsSaved.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputPeerChannel.html b/data/web/blogfork.telegram.org/constructor/inputPeerChannel.html new file mode 100644 index 0000000000..8ea2250102 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPeerChannel.html @@ -0,0 +1,158 @@ + + + + + inputPeerChannel + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerChannel

+ +

Defines a channel for further interaction.

+

+ +
+
inputPeerChannel#27bcbbfc channel_id:long access_hash:long = InputPeer;

+

Parameters

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

Type

+

InputPeer

+

Related pages

+

channel

+

Channel/supergroup info

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPeerChannelFromMessage.html b/data/web/blogfork.telegram.org/constructor/inputPeerChannelFromMessage.html new file mode 100644 index 0000000000..d637d0bcd1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPeerChannelFromMessage.html @@ -0,0 +1,163 @@ + + + + + inputPeerChannelFromMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerChannelFromMessage

+ +

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

+

+ +
+
inputPeerChannelFromMessage#bd2a0840 peer:InputPeer msg_id:int channel_id:long = InputPeer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat where the channel's message was seen
msg_idintThe message ID
channel_idlongThe 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/web/blogfork.telegram.org/constructor/inputPeerChat.html b/data/web/blogfork.telegram.org/constructor/inputPeerChat.html new file mode 100644 index 0000000000..41a9822d43 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPeerChat.html @@ -0,0 +1,150 @@ + + + + + inputPeerChat + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerChat

+ +

Defines a chat for further interaction.

+

+ +
+
inputPeerChat#35a95cb9 chat_id:long = InputPeer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chat_idlongChat identifier
+

Type

+

InputPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPeerEmpty.html b/data/web/blogfork.telegram.org/constructor/inputPeerEmpty.html new file mode 100644 index 0000000000..0fec98eb7e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPeerEmpty.html @@ -0,0 +1,135 @@ + + + + + inputPeerEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerEmpty

+ +

An empty constructor, no user or chat is defined.

+

+ +
+
inputPeerEmpty#7f3b18ea = InputPeer;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPeerNotifySettings.html b/data/web/blogfork.telegram.org/constructor/inputPeerNotifySettings.html new file mode 100644 index 0000000000..a3a5f35fba --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPeerNotifySettings.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputPeerPhotoFileLocation.html b/data/web/blogfork.telegram.org/constructor/inputPeerPhotoFileLocation.html new file mode 100644 index 0000000000..85f6cd07cb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPeerPhotoFileLocation.html @@ -0,0 +1,165 @@ + + + + + inputPeerPhotoFileLocation + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerPhotoFileLocation

+ +

Location of profile photo of channel/group/supergroup/user

+

+ +
+
inputPeerPhotoFileLocation#37257e99 flags:# big:flags.0?true peer:InputPeer photo_id:long = 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
photo_idlongPhoto ID
+

Type

+

InputFileLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPeerSelf.html b/data/web/blogfork.telegram.org/constructor/inputPeerSelf.html new file mode 100644 index 0000000000..73284eba6a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPeerSelf.html @@ -0,0 +1,135 @@ + + + + + inputPeerSelf + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerSelf

+ +

Defines the current user.

+

+ +
+
inputPeerSelf#7da07ec9 = InputPeer;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPeerUser.html b/data/web/blogfork.telegram.org/constructor/inputPeerUser.html new file mode 100644 index 0000000000..6c3b232070 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPeerUser.html @@ -0,0 +1,158 @@ + + + + + inputPeerUser + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerUser

+ +

Defines a user for further interaction.

+

+ +
+
inputPeerUser#dde8a54c user_id:long access_hash:long = InputPeer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser identifier
access_hashlongaccess_hash value from the user constructor
+

Type

+

InputPeer

+

Related pages

+

user

+

Indicates info about a certain user

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPeerUserFromMessage.html b/data/web/blogfork.telegram.org/constructor/inputPeerUserFromMessage.html new file mode 100644 index 0000000000..b5b6137468 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPeerUserFromMessage.html @@ -0,0 +1,163 @@ + + + + + inputPeerUserFromMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPeerUserFromMessage

+ +

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

+

+ +
+
inputPeerUserFromMessage#a87b0a1c peer:InputPeer msg_id:int user_id:long = InputPeer;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat where the user was seen
msg_idintThe message ID
user_idlongThe 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/web/blogfork.telegram.org/constructor/inputPhoneCall.html b/data/web/blogfork.telegram.org/constructor/inputPhoneCall.html new file mode 100644 index 0000000000..cfdd1dd008 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPhoneCall.html @@ -0,0 +1,155 @@ + + + + + inputPhoneCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPhoneCall

+ +

Phone call

+

+ +
+
inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongCall ID
access_hashlongAccess hash
+

Type

+

InputPhoneCall

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPhoneContact.html b/data/web/blogfork.telegram.org/constructor/inputPhoneContact.html new file mode 100644 index 0000000000..7f3fd91c3f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPhoneContact.html @@ -0,0 +1,169 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputPhoto.html b/data/web/blogfork.telegram.org/constructor/inputPhoto.html new file mode 100644 index 0000000000..368a0940e8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPhoto.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputPhotoEmpty.html b/data/web/blogfork.telegram.org/constructor/inputPhotoEmpty.html new file mode 100644 index 0000000000..3a8c1c3a6d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPhotoEmpty.html @@ -0,0 +1,135 @@ + + + + + inputPhotoEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPhotoEmpty

+ +

Empty constructor.

+

+ +
+
inputPhotoEmpty#1cd7bf0d = InputPhoto;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPhoto

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPhotoFileLocation.html b/data/web/blogfork.telegram.org/constructor/inputPhotoFileLocation.html new file mode 100644 index 0000000000..a409a40d22 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPhotoFileLocation.html @@ -0,0 +1,174 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputPhotoLegacyFileLocation.html b/data/web/blogfork.telegram.org/constructor/inputPhotoLegacyFileLocation.html new file mode 100644 index 0000000000..a5373807c8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPhotoLegacyFileLocation.html @@ -0,0 +1,175 @@ + + + + + inputPhotoLegacyFileLocation + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPhotoLegacyFileLocation

+ +

DEPRECATED 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/web/blogfork.telegram.org/constructor/inputPrivacyKeyAddedByPhone.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyAddedByPhone.html new file mode 100644 index 0000000000..0063735128 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyAddedByPhone.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyKeyAddedByPhone + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyAddedByPhone

+ +

Whether people can add you to their contact list by your phone number

+

+ +
+
inputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyChatInvite.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyChatInvite.html new file mode 100644 index 0000000000..4efdc73a96 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyChatInvite.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyKeyChatInvite + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyChatInvite

+ +

Whether the user can be invited to chats

+

+ +
+
inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyForwards.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyForwards.html new file mode 100644 index 0000000000..602f1ec386 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyForwards.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyKeyForwards + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyForwards

+ +

Whether messages forwarded from this user will be anonymous

+

+ +
+
inputPrivacyKeyForwards#a4dd4c08 = InputPrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneCall.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneCall.html new file mode 100644 index 0000000000..cc8243618f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneCall.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyKeyPhoneCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyPhoneCall

+ +

Whether the user will accept phone calls

+

+ +
+
inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneNumber.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneNumber.html new file mode 100644 index 0000000000..bbc4ac9109 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneNumber.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyKeyPhoneNumber + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyPhoneNumber

+ +

Whether people will be able to see the user's phone number

+

+ +
+
inputPrivacyKeyPhoneNumber#352dafa = InputPrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneP2P.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneP2P.html new file mode 100644 index 0000000000..ab499b270d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyPhoneP2P.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyKeyPhoneP2P + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyPhoneP2P

+ +

Whether the user allows P2P communication during VoIP calls

+

+ +
+
inputPrivacyKeyPhoneP2P#db9e70d2 = InputPrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyProfilePhoto.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyProfilePhoto.html new file mode 100644 index 0000000000..6625afda85 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyProfilePhoto.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyKeyProfilePhoto + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyProfilePhoto

+ +

Whether people will be able to see the user's profile picture

+

+ +
+
inputPrivacyKeyProfilePhoto#5719bacc = InputPrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.html new file mode 100644 index 0000000000..f9a76e912b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyKeyStatusTimestamp + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyKeyStatusTimestamp

+ +

Whether we can see the exact last online timestamp of the user

+

+ +
+
inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowAll.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowAll.html new file mode 100644 index 0000000000..e509cf9a85 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowAll.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyValueAllowAll + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueAllowAll

+ +

Allow all users

+

+ +
+
inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowChatParticipants.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowChatParticipants.html new file mode 100644 index 0000000000..3a5b1665bb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowChatParticipants.html @@ -0,0 +1,150 @@ + + + + + inputPrivacyValueAllowChatParticipants + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueAllowChatParticipants

+ +

Allow only participants of certain chats

+

+ +
+
inputPrivacyValueAllowChatParticipants#840649cf chats:Vector<long> = InputPrivacyRule;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chatsVector<long>Allowed chat IDs
+

Type

+

InputPrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowContacts.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowContacts.html new file mode 100644 index 0000000000..2ee85aad23 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowContacts.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyValueAllowContacts + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueAllowContacts

+ +

Allow only contacts

+

+ +
+
inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowUsers.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowUsers.html new file mode 100644 index 0000000000..df2534666b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueAllowUsers.html @@ -0,0 +1,150 @@ + + + + + inputPrivacyValueAllowUsers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueAllowUsers

+ +

Allow only certain users

+

+ +
+
inputPrivacyValueAllowUsers#131cc67f users:Vector<InputUser> = InputPrivacyRule;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
usersVector<InputUser>Allowed users
+

Type

+

InputPrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowAll.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowAll.html new file mode 100644 index 0000000000..cb406e0358 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowAll.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyValueDisallowAll + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueDisallowAll

+ +

Disallow all

+

+ +
+
inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants.html new file mode 100644 index 0000000000..c4742e2a75 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants.html @@ -0,0 +1,150 @@ + + + + + inputPrivacyValueDisallowChatParticipants + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueDisallowChatParticipants

+ +

Disallow only participants of certain chats

+

+ +
+
inputPrivacyValueDisallowChatParticipants#e94f0f86 chats:Vector<long> = InputPrivacyRule;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chatsVector<long>Disallowed chat IDs
+

Type

+

InputPrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowContacts.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowContacts.html new file mode 100644 index 0000000000..c1282c5b64 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowContacts.html @@ -0,0 +1,135 @@ + + + + + inputPrivacyValueDisallowContacts + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueDisallowContacts

+ +

Disallow only contacts

+

+ +
+
inputPrivacyValueDisallowContacts#ba52007 = InputPrivacyRule;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputPrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowUsers.html b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowUsers.html new file mode 100644 index 0000000000..369e13da6a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputPrivacyValueDisallowUsers.html @@ -0,0 +1,150 @@ + + + + + inputPrivacyValueDisallowUsers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputPrivacyValueDisallowUsers

+ +

Disallow only certain users

+

+ +
+
inputPrivacyValueDisallowUsers#90110467 users:Vector<InputUser> = InputPrivacyRule;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
usersVector<InputUser>Users to disallow
+

Type

+

InputPrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputReportReasonChildAbuse.html b/data/web/blogfork.telegram.org/constructor/inputReportReasonChildAbuse.html new file mode 100644 index 0000000000..20239d9309 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputReportReasonChildAbuse.html @@ -0,0 +1,135 @@ + + + + + inputReportReasonChildAbuse + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputReportReasonChildAbuse

+ +

Report for child abuse

+

+ +
+
inputReportReasonChildAbuse#adf44ee3 = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputReportReasonCopyright.html b/data/web/blogfork.telegram.org/constructor/inputReportReasonCopyright.html new file mode 100644 index 0000000000..15ebda9677 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputReportReasonCopyright.html @@ -0,0 +1,135 @@ + + + + + inputReportReasonCopyright + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputReportReasonCopyright

+ +

Report for copyrighted content

+

+ +
+
inputReportReasonCopyright#9b89f93a = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputReportReasonFake.html b/data/web/blogfork.telegram.org/constructor/inputReportReasonFake.html new file mode 100644 index 0000000000..8d67264c6a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputReportReasonFake.html @@ -0,0 +1,135 @@ + + + + + inputReportReasonFake + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputReportReasonFake

+ +

Report for impersonation

+

+ +
+
inputReportReasonFake#f5ddd6e7 = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputReportReasonGeoIrrelevant.html b/data/web/blogfork.telegram.org/constructor/inputReportReasonGeoIrrelevant.html new file mode 100644 index 0000000000..29f93a35c2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputReportReasonGeoIrrelevant.html @@ -0,0 +1,135 @@ + + + + + inputReportReasonGeoIrrelevant + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputReportReasonGeoIrrelevant

+ +

Report an irrelevant geogroup

+

+ +
+
inputReportReasonGeoIrrelevant#dbd4feed = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputReportReasonIllegalDrugs.html b/data/web/blogfork.telegram.org/constructor/inputReportReasonIllegalDrugs.html new file mode 100644 index 0000000000..138f73dc4a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputReportReasonIllegalDrugs.html @@ -0,0 +1,135 @@ + + + + + inputReportReasonIllegalDrugs + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputReportReasonIllegalDrugs

+ +

Report for illegal drugs

+

+ +
+
inputReportReasonIllegalDrugs#a8eb2be = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputReportReasonOther.html b/data/web/blogfork.telegram.org/constructor/inputReportReasonOther.html new file mode 100644 index 0000000000..3ed0c728cf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputReportReasonOther.html @@ -0,0 +1,135 @@ + + + + + inputReportReasonOther + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputReportReasonOther

+ +

Other

+

+ +
+
inputReportReasonOther#c1e4a2b1 = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputReportReasonPersonalDetails.html b/data/web/blogfork.telegram.org/constructor/inputReportReasonPersonalDetails.html new file mode 100644 index 0000000000..5c4cd5eba9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputReportReasonPersonalDetails.html @@ -0,0 +1,135 @@ + + + + + inputReportReasonPersonalDetails + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputReportReasonPersonalDetails

+ +

Report for divulgation of personal details

+

+ +
+
inputReportReasonPersonalDetails#9ec7863d = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputReportReasonPornography.html b/data/web/blogfork.telegram.org/constructor/inputReportReasonPornography.html new file mode 100644 index 0000000000..9b5480bddb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputReportReasonPornography.html @@ -0,0 +1,135 @@ + + + + + inputReportReasonPornography + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputReportReasonPornography

+ +

Report for pornography

+

+ +
+
inputReportReasonPornography#2e59d922 = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputReportReasonSpam.html b/data/web/blogfork.telegram.org/constructor/inputReportReasonSpam.html new file mode 100644 index 0000000000..31e21075fb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputReportReasonSpam.html @@ -0,0 +1,135 @@ + + + + + inputReportReasonSpam + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputReportReasonSpam

+ +

Report for spam

+

+ +
+
inputReportReasonSpam#58dbcab8 = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputReportReasonViolence.html b/data/web/blogfork.telegram.org/constructor/inputReportReasonViolence.html new file mode 100644 index 0000000000..677b58628a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputReportReasonViolence.html @@ -0,0 +1,135 @@ + + + + + inputReportReasonViolence + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputReportReasonViolence

+ +

Report for violence

+

+ +
+
inputReportReasonViolence#1e22c78d = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputSecureFile.html b/data/web/blogfork.telegram.org/constructor/inputSecureFile.html new file mode 100644 index 0000000000..fe54e32bcd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputSecureFile.html @@ -0,0 +1,158 @@ + + + + + inputSecureFile + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputSecureFile

+ +

Pre-uploaded 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/web/blogfork.telegram.org/constructor/inputSecureFileLocation.html b/data/web/blogfork.telegram.org/constructor/inputSecureFileLocation.html new file mode 100644 index 0000000000..374d98ccc7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputSecureFileLocation.html @@ -0,0 +1,159 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputSecureFileUploaded.html b/data/web/blogfork.telegram.org/constructor/inputSecureFileUploaded.html new file mode 100644 index 0000000000..e32b41d595 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputSecureFileUploaded.html @@ -0,0 +1,172 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputSecureValue.html b/data/web/blogfork.telegram.org/constructor/inputSecureValue.html new file mode 100644 index 0000000000..06064efc2d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputSecureValue.html @@ -0,0 +1,193 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputSingleMedia.html b/data/web/blogfork.telegram.org/constructor/inputSingleMedia.html new file mode 100644 index 0000000000..5f33ac4b3c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputSingleMedia.html @@ -0,0 +1,177 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputStickerSetAnimatedEmoji.html b/data/web/blogfork.telegram.org/constructor/inputStickerSetAnimatedEmoji.html new file mode 100644 index 0000000000..e63ae3a5b2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputStickerSetAnimatedEmoji.html @@ -0,0 +1,135 @@ + + + + + inputStickerSetAnimatedEmoji + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickerSetAnimatedEmoji

+ +

Animated emojis stickerset

+

+ +
+
inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputStickerSet

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputStickerSetAnimatedEmojiAnimations.html b/data/web/blogfork.telegram.org/constructor/inputStickerSetAnimatedEmojiAnimations.html new file mode 100644 index 0000000000..ea33c3023d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputStickerSetAnimatedEmojiAnimations.html @@ -0,0 +1,135 @@ + + + + + inputStickerSetAnimatedEmojiAnimations + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickerSetAnimatedEmojiAnimations

+ +

Animated emoji reaction stickerset (contains animations to play when a user clicks on a given animated emoji)

+

+ +
+
inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputStickerSet

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputStickerSetDice.html b/data/web/blogfork.telegram.org/constructor/inputStickerSetDice.html new file mode 100644 index 0000000000..59371bb843 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputStickerSetDice.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputStickerSetEmpty.html b/data/web/blogfork.telegram.org/constructor/inputStickerSetEmpty.html new file mode 100644 index 0000000000..fd846cae31 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputStickerSetEmpty.html @@ -0,0 +1,135 @@ + + + + + inputStickerSetEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickerSetEmpty

+ +

Empty constructor

+

+ +
+
inputStickerSetEmpty#ffb62b95 = InputStickerSet;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputStickerSet

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputStickerSetID.html b/data/web/blogfork.telegram.org/constructor/inputStickerSetID.html new file mode 100644 index 0000000000..0e9696a76d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputStickerSetID.html @@ -0,0 +1,155 @@ + + + + + inputStickerSetID + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickerSetID

+ +

Stickerset by ID

+

+ +
+
inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongID
access_hashlongAccess hash
+

Type

+

InputStickerSet

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputStickerSetItem.html b/data/web/blogfork.telegram.org/constructor/inputStickerSetItem.html new file mode 100644 index 0000000000..5891b58b79 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputStickerSetItem.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputStickerSetShortName.html b/data/web/blogfork.telegram.org/constructor/inputStickerSetShortName.html new file mode 100644 index 0000000000..b2f8d65352 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputStickerSetShortName.html @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputStickerSetThumb.html b/data/web/blogfork.telegram.org/constructor/inputStickerSetThumb.html new file mode 100644 index 0000000000..dbf32a096c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputStickerSetThumb.html @@ -0,0 +1,158 @@ + + + + + inputStickerSetThumb + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickerSetThumb

+ +

Location of stickerset thumbnail (see files)

+

+ +
+
inputStickerSetThumb#9d84f3db stickerset:InputStickerSet thumb_version:int = InputFileLocation;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
stickersetInputStickerSetSticker set
thumb_versionintThumbnail version
+

Type

+

InputFileLocation

+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputStickeredMediaDocument.html b/data/web/blogfork.telegram.org/constructor/inputStickeredMediaDocument.html new file mode 100644 index 0000000000..6bedd95a89 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputStickeredMediaDocument.html @@ -0,0 +1,150 @@ + + + + + inputStickeredMediaDocument + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickeredMediaDocument

+ +

A document with stickers attached

+

+ +
+
inputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idInputDocumentThe document
+

Type

+

InputStickeredMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputStickeredMediaPhoto.html b/data/web/blogfork.telegram.org/constructor/inputStickeredMediaPhoto.html new file mode 100644 index 0000000000..05941d53eb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputStickeredMediaPhoto.html @@ -0,0 +1,150 @@ + + + + + inputStickeredMediaPhoto + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputStickeredMediaPhoto

+ +

A photo with stickers attached

+

+ +
+
inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idInputPhotoThe photo
+

Type

+

InputStickeredMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputTakeoutFileLocation.html b/data/web/blogfork.telegram.org/constructor/inputTakeoutFileLocation.html new file mode 100644 index 0000000000..8d17a59b90 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputTakeoutFileLocation.html @@ -0,0 +1,135 @@ + + + + + inputTakeoutFileLocation + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputTakeoutFileLocation

+ +

Empty constructor for takeout

+

+ +
+
inputTakeoutFileLocation#29be5899 = InputFileLocation;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputFileLocation

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputTheme.html b/data/web/blogfork.telegram.org/constructor/inputTheme.html new file mode 100644 index 0000000000..17e7f984ae --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputTheme.html @@ -0,0 +1,155 @@ + + + + + inputTheme + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputTheme

+ +

Theme

+

+ +
+
inputTheme#3c5693e9 id:long access_hash:long = InputTheme;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongID
access_hashlongAccess hash
+

Type

+

InputTheme

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputThemeSettings.html b/data/web/blogfork.telegram.org/constructor/inputThemeSettings.html new file mode 100644 index 0000000000..3466f1306c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputThemeSettings.html @@ -0,0 +1,185 @@ + + + + + inputThemeSettings + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputThemeSettings

+ +

Theme settings

+

+ +
+
inputThemeSettings#8fde504f flags:# message_colors_animated:flags.2?true base_theme:BaseTheme accent_color:int outbox_accent_color:flags.3?int message_colors:flags.0?Vector<int> wallpaper:flags.1?InputWallPaper wallpaper_settings:flags.1?WallPaperSettings = InputThemeSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
message_colors_animatedflags.2?trueIf set, the freeform gradient fill needs to be animated on every sent message
base_themeBaseThemeDefault theme on which this theme is based
accent_colorintAccent color, ARGB format
outbox_accent_colorflags.3?intAccent color of outgoing messages in ARGB format
message_colorsflags.0?Vector<int>The fill to be used as a background for outgoing messages, in RGB24 format.
If just one or two equal colors are provided, describes a solid fill of a background.
If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.
If three or four colors are provided, describes a freeform gradient fill of a background.
wallpaperflags.1?InputWallPaperWallpaper
wallpaper_settingsflags.1?WallPaperSettingsWallpaper settings
+

Type

+

InputThemeSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputThemeSlug.html b/data/web/blogfork.telegram.org/constructor/inputThemeSlug.html new file mode 100644 index 0000000000..bb33599bde --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputThemeSlug.html @@ -0,0 +1,150 @@ + + + + + inputThemeSlug + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputThemeSlug

+ +

Theme by theme ID

+

+ +
+
inputThemeSlug#f5890df1 slug:string = InputTheme;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
slugstringUnique theme ID
+

Type

+

InputTheme

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputUser.html b/data/web/blogfork.telegram.org/constructor/inputUser.html new file mode 100644 index 0000000000..6973a1eabc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputUser.html @@ -0,0 +1,158 @@ + + + + + inputUser + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputUser

+ +

Defines a user for further interaction.

+

+ +
+
inputUser#f21158c6 user_id:long access_hash:long = InputUser;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser identifier
access_hashlongaccess_hash value from the user constructor
+

Type

+

InputUser

+

Related pages

+

user

+

Indicates info about a certain user

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputUserEmpty.html b/data/web/blogfork.telegram.org/constructor/inputUserEmpty.html new file mode 100644 index 0000000000..4ef393207c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputUserEmpty.html @@ -0,0 +1,135 @@ + + + + + inputUserEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputUserEmpty

+ +

Empty constructor, does not define a user.

+

+ +
+
inputUserEmpty#b98886cf = InputUser;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputUser

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputUserFromMessage.html b/data/web/blogfork.telegram.org/constructor/inputUserFromMessage.html new file mode 100644 index 0000000000..3557025275 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputUserFromMessage.html @@ -0,0 +1,163 @@ + + + + + inputUserFromMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputUserFromMessage

+ +

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

+

+ +
+
inputUserFromMessage#1da448e2 peer:InputPeer msg_id:int user_id:long = InputUser;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerThe chat where the user was seen
msg_idintThe message ID
user_idlongThe 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/web/blogfork.telegram.org/constructor/inputUserSelf.html b/data/web/blogfork.telegram.org/constructor/inputUserSelf.html new file mode 100644 index 0000000000..08367adc7a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputUserSelf.html @@ -0,0 +1,135 @@ + + + + + inputUserSelf + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputUserSelf

+ +

Defines the current user.

+

+ +
+
inputUserSelf#f7c1b13f = InputUser;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

InputUser

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputWallPaper.html b/data/web/blogfork.telegram.org/constructor/inputWallPaper.html new file mode 100644 index 0000000000..b0afd98c78 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputWallPaper.html @@ -0,0 +1,155 @@ + + + + + inputWallPaper + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputWallPaper

+ +

Wallpaper

+

+ +
+
inputWallPaper#e630b979 id:long access_hash:long = InputWallPaper;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongWallpaper ID
access_hashlongAccess hash
+

Type

+

InputWallPaper

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputWallPaperNoFile.html b/data/web/blogfork.telegram.org/constructor/inputWallPaperNoFile.html new file mode 100644 index 0000000000..3484b5ea48 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputWallPaperNoFile.html @@ -0,0 +1,153 @@ + + + + + inputWallPaperNoFile + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputWallPaperNoFile

+ +

Wallpaper with no file access hash, used for example when deleting (unsave=true) wallpapers using account.saveWallPaper, specifying just the wallpaper ID.

+

+ +
+
inputWallPaperNoFile#967a462e id:long = InputWallPaper;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idlongWallpaper ID
+

Type

+

InputWallPaper

+

Related pages

+

account.saveWallPaper

+

Install/uninstall wallpaper

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputWallPaperSlug.html b/data/web/blogfork.telegram.org/constructor/inputWallPaperSlug.html new file mode 100644 index 0000000000..1b0060dad5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputWallPaperSlug.html @@ -0,0 +1,150 @@ + + + + + inputWallPaperSlug + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

inputWallPaperSlug

+ +

Wallpaper by slug (a unique ID)

+

+ +
+
inputWallPaperSlug#72091c80 slug:string = InputWallPaper;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
slugstringUnique wallpaper ID
+

Type

+

InputWallPaper

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/inputWebDocument.html b/data/web/blogfork.telegram.org/constructor/inputWebDocument.html new file mode 100644 index 0000000000..13d34216f0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputWebDocument.html @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputWebFileGeoPointLocation.html b/data/web/blogfork.telegram.org/constructor/inputWebFileGeoPointLocation.html new file mode 100644 index 0000000000..d1d81838cb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputWebFileGeoPointLocation.html @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/inputWebFileLocation.html b/data/web/blogfork.telegram.org/constructor/inputWebFileLocation.html new file mode 100644 index 0000000000..322af6e235 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/inputWebFileLocation.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/invoice.html b/data/web/blogfork.telegram.org/constructor/invoice.html new file mode 100644 index 0000000000..1054926119 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/invoice.html @@ -0,0 +1,212 @@ + + + + + invoice + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

invoice

+ +

Invoice

+

+ +
+
invoice#cd886e0 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> max_tip_amount:flags.8?long suggested_tip_amounts:flags.8?Vector<long> = 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.)
max_tip_amountflags.8?longThe maximum accepted amount for tips 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).
suggested_tip_amountsflags.8?Vector<long>A vector of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.
+

Type

+

Invoice

+

Related pages

+

Bot Payments API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/jsonArray.html b/data/web/blogfork.telegram.org/constructor/jsonArray.html new file mode 100644 index 0000000000..2e234d56cb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/jsonArray.html @@ -0,0 +1,150 @@ + + + + + jsonArray + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

jsonArray

+ +

JSON array

+

+ +
+
jsonArray#f7444763 value:Vector<JSONValue> = JSONValue;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
valueVector<JSONValue>JSON values
+

Type

+

JSONValue

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/jsonBool.html b/data/web/blogfork.telegram.org/constructor/jsonBool.html new file mode 100644 index 0000000000..06c6bf8121 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/jsonBool.html @@ -0,0 +1,150 @@ + + + + + jsonBool + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

jsonBool

+ +

JSON boolean value

+

+ +
+
jsonBool#c7345e6a value:Bool = JSONValue;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
valueBoolValue
+

Type

+

JSONValue

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/jsonNull.html b/data/web/blogfork.telegram.org/constructor/jsonNull.html new file mode 100644 index 0000000000..6f04e7ee41 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/jsonNull.html @@ -0,0 +1,135 @@ + + + + + jsonNull + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

jsonNull

+ +

null JSON value

+

+ +
+
jsonNull#3f6d7b68 = JSONValue;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

JSONValue

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/jsonNumber.html b/data/web/blogfork.telegram.org/constructor/jsonNumber.html new file mode 100644 index 0000000000..430bd27a73 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/jsonNumber.html @@ -0,0 +1,150 @@ + + + + + jsonNumber + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

jsonNumber

+ +

JSON numeric value

+

+ +
+
jsonNumber#2be0dfa4 value:double = JSONValue;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
valuedoubleValue
+

Type

+

JSONValue

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/jsonObject.html b/data/web/blogfork.telegram.org/constructor/jsonObject.html new file mode 100644 index 0000000000..43b2675e72 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/jsonObject.html @@ -0,0 +1,150 @@ + + + + + jsonObject + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

jsonObject

+ +

JSON object value

+

+ +
+
jsonObject#99c1d49d value:Vector<JSONObjectValue> = JSONValue;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
valueVector<JSONObjectValue>Values
+

Type

+

JSONValue

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/jsonObjectValue.html b/data/web/blogfork.telegram.org/constructor/jsonObjectValue.html new file mode 100644 index 0000000000..2b2e2ba550 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/jsonObjectValue.html @@ -0,0 +1,155 @@ + + + + + jsonObjectValue + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

jsonObjectValue

+ +

JSON key: value pair

+

+ +
+
jsonObjectValue#c0de1bd9 key:string value:JSONValue = JSONObjectValue;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
keystringKey
valueJSONValueValue
+

Type

+

JSONObjectValue

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/jsonString.html b/data/web/blogfork.telegram.org/constructor/jsonString.html new file mode 100644 index 0000000000..b1b5628937 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/jsonString.html @@ -0,0 +1,150 @@ + + + + + jsonString + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

jsonString

+ +

JSON string

+

+ +
+
jsonString#b71e767a value:string = JSONValue;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
valuestringValue
+

Type

+

JSONValue

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/keyboardButton.html b/data/web/blogfork.telegram.org/constructor/keyboardButton.html new file mode 100644 index 0000000000..62a4c86306 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButton.html @@ -0,0 +1,150 @@ + + + + + keyboardButton + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButton

+ +

Bot keyboard button

+

+ +
+
keyboardButton#a2fa4880 text:string = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textstringButton text
+

Type

+

KeyboardButton

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/keyboardButtonBuy.html b/data/web/blogfork.telegram.org/constructor/keyboardButtonBuy.html new file mode 100644 index 0000000000..be03ce4bb5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButtonBuy.html @@ -0,0 +1,150 @@ + + + + + keyboardButtonBuy + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonBuy

+ +

Button to buy a product

+

+ +
+
keyboardButtonBuy#afd93fbb text:string = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textstringButton text
+

Type

+

KeyboardButton

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/keyboardButtonCallback.html b/data/web/blogfork.telegram.org/constructor/keyboardButtonCallback.html new file mode 100644 index 0000000000..389401242b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButtonCallback.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/keyboardButtonGame.html b/data/web/blogfork.telegram.org/constructor/keyboardButtonGame.html new file mode 100644 index 0000000000..4921807292 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButtonGame.html @@ -0,0 +1,150 @@ + + + + + keyboardButtonGame + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonGame

+ +

Button to start a game

+

+ +
+
keyboardButtonGame#50f41ccf text:string = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textstringButton text
+

Type

+

KeyboardButton

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/keyboardButtonRequestGeoLocation.html b/data/web/blogfork.telegram.org/constructor/keyboardButtonRequestGeoLocation.html new file mode 100644 index 0000000000..fa252f397e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButtonRequestGeoLocation.html @@ -0,0 +1,150 @@ + + + + + keyboardButtonRequestGeoLocation + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonRequestGeoLocation

+ +

Button to request a user's geolocation

+

+ +
+
keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textstringButton text
+

Type

+

KeyboardButton

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/keyboardButtonRequestPhone.html b/data/web/blogfork.telegram.org/constructor/keyboardButtonRequestPhone.html new file mode 100644 index 0000000000..484e0ee860 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButtonRequestPhone.html @@ -0,0 +1,150 @@ + + + + + keyboardButtonRequestPhone + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonRequestPhone

+ +

Button to request a user's phone number

+

+ +
+
keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textstringButton text
+

Type

+

KeyboardButton

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/keyboardButtonRequestPoll.html b/data/web/blogfork.telegram.org/constructor/keyboardButtonRequestPoll.html new file mode 100644 index 0000000000..b77b4f1f94 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButtonRequestPoll.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/keyboardButtonRow.html b/data/web/blogfork.telegram.org/constructor/keyboardButtonRow.html new file mode 100644 index 0000000000..1020bfc098 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButtonRow.html @@ -0,0 +1,150 @@ + + + + + keyboardButtonRow + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonRow

+ +

Inline keyboard row

+

+ +
+
keyboardButtonRow#77608b83 buttons:Vector<KeyboardButton> = KeyboardButtonRow;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
buttonsVector<KeyboardButton>Bot or inline keyboard buttons
+

Type

+

KeyboardButtonRow

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/keyboardButtonSwitchInline.html b/data/web/blogfork.telegram.org/constructor/keyboardButtonSwitchInline.html new file mode 100644 index 0000000000..c393357fe4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButtonSwitchInline.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/keyboardButtonUrl.html b/data/web/blogfork.telegram.org/constructor/keyboardButtonUrl.html new file mode 100644 index 0000000000..d43771f547 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButtonUrl.html @@ -0,0 +1,155 @@ + + + + + keyboardButtonUrl + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonUrl

+ +

URL button

+

+ +
+
keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textstringButton label
urlstringURL
+

Type

+

KeyboardButton

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/keyboardButtonUrlAuth.html b/data/web/blogfork.telegram.org/constructor/keyboardButtonUrlAuth.html new file mode 100644 index 0000000000..e844ba991b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButtonUrlAuth.html @@ -0,0 +1,182 @@ + + + + + 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/web/blogfork.telegram.org/constructor/keyboardButtonUserProfile.html b/data/web/blogfork.telegram.org/constructor/keyboardButtonUserProfile.html new file mode 100644 index 0000000000..2f77fbedd6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/keyboardButtonUserProfile.html @@ -0,0 +1,155 @@ + + + + + keyboardButtonUserProfile + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

keyboardButtonUserProfile

+ +

Button that links directly to a user profile

+

+ +
+
keyboardButtonUserProfile#308660c1 text:string user_id:long = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textstringButton text
user_idlongUser ID
+

Type

+

KeyboardButton

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/labeledPrice.html b/data/web/blogfork.telegram.org/constructor/labeledPrice.html new file mode 100644 index 0000000000..26c97538a4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/labeledPrice.html @@ -0,0 +1,157 @@ + + + + + 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/web/blogfork.telegram.org/constructor/langPackDifference.html b/data/web/blogfork.telegram.org/constructor/langPackDifference.html new file mode 100644 index 0000000000..fa01f36e5c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/langPackDifference.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/langPackLanguage.html b/data/web/blogfork.telegram.org/constructor/langPackLanguage.html new file mode 100644 index 0000000000..5cb0a5730f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/langPackLanguage.html @@ -0,0 +1,205 @@ + + + + + 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/web/blogfork.telegram.org/constructor/langPackString.html b/data/web/blogfork.telegram.org/constructor/langPackString.html new file mode 100644 index 0000000000..a324bb7a86 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/langPackString.html @@ -0,0 +1,155 @@ + + + + + langPackString + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

langPackString

+ +

Translated localization string

+

+ +
+
langPackString#cad181f6 key:string value:string = LangPackString;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
keystringLanguage key
valuestringValue
+

Type

+

LangPackString

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/langPackStringDeleted.html b/data/web/blogfork.telegram.org/constructor/langPackStringDeleted.html new file mode 100644 index 0000000000..54afdbe225 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/langPackStringDeleted.html @@ -0,0 +1,150 @@ + + + + + langPackStringDeleted + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

langPackStringDeleted

+ +

Deleted localization string

+

+ +
+
langPackStringDeleted#2979eeb2 key:string = LangPackString;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
keystringLocalization key
+

Type

+

LangPackString

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/langPackStringPluralized.html b/data/web/blogfork.telegram.org/constructor/langPackStringPluralized.html new file mode 100644 index 0000000000..2ceeabdd8c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/langPackStringPluralized.html @@ -0,0 +1,185 @@ + + + + + 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/web/blogfork.telegram.org/constructor/maskCoords.html b/data/web/blogfork.telegram.org/constructor/maskCoords.html new file mode 100644 index 0000000000..de209e21a5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/maskCoords.html @@ -0,0 +1,172 @@ + + + + + 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/web/blogfork.telegram.org/constructor/message.html b/data/web/blogfork.telegram.org/constructor/message.html new file mode 100644 index 0000000000..9fbbff8a0a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/message.html @@ -0,0 +1,315 @@ + + + + + message + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

message

+ +

A message

+

+ +
+
message#38116ee0 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 noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long 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 reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = 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
noforwardsflags.26?trueWhether this message is protected and thus cannot be forwarded
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?longID 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
reactionsflags.20?MessageReactionsReactions to this message
restriction_reasonflags.22?Vector<RestrictionReason>Contains the reason why access to this message must be restricted.
ttl_periodflags.25?intTime To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.
+

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/web/blogfork.telegram.org/constructor/messageActionBotAllowed.html b/data/web/blogfork.telegram.org/constructor/messageActionBotAllowed.html new file mode 100644 index 0000000000..abfcc0869f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionBotAllowed.html @@ -0,0 +1,152 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageActionChannelCreate.html b/data/web/blogfork.telegram.org/constructor/messageActionChannelCreate.html new file mode 100644 index 0000000000..3e07ef8fbf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionChannelCreate.html @@ -0,0 +1,150 @@ + + + + + messageActionChannelCreate + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChannelCreate

+ +

The channel was created

+

+ +
+
messageActionChannelCreate#95d2ac92 title:string = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
titlestringOriginal channel/supergroup title
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionChannelMigrateFrom.html b/data/web/blogfork.telegram.org/constructor/messageActionChannelMigrateFrom.html new file mode 100644 index 0000000000..22da6885dd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionChannelMigrateFrom.html @@ -0,0 +1,158 @@ + + + + + messageActionChannelMigrateFrom + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChannelMigrateFrom

+ +

Indicates the channel was migrated from the specified chat

+

+ +
+
messageActionChannelMigrateFrom#ea3948e9 title:string chat_id:long = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
titlestringThe old chat title
chat_idlongThe old chat ID
+

Type

+

MessageAction

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionChatAddUser.html b/data/web/blogfork.telegram.org/constructor/messageActionChatAddUser.html new file mode 100644 index 0000000000..2100171f50 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionChatAddUser.html @@ -0,0 +1,150 @@ + + + + + messageActionChatAddUser + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatAddUser

+ +

New member in the group

+

+ +
+
messageActionChatAddUser#15cefd00 users:Vector<long> = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
usersVector<long>Users that were invited to the chat
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionChatCreate.html b/data/web/blogfork.telegram.org/constructor/messageActionChatCreate.html new file mode 100644 index 0000000000..202e6e2718 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionChatCreate.html @@ -0,0 +1,155 @@ + + + + + messageActionChatCreate + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatCreate

+ +

Group created

+

+ +
+
messageActionChatCreate#bd47cbad title:string users:Vector<long> = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
titlestringGroup name
usersVector<long>List of group members
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionChatDeletePhoto.html b/data/web/blogfork.telegram.org/constructor/messageActionChatDeletePhoto.html new file mode 100644 index 0000000000..b85dfaf9de --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionChatDeletePhoto.html @@ -0,0 +1,135 @@ + + + + + messageActionChatDeletePhoto + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatDeletePhoto

+ +

Group profile photo removed.

+

+ +
+
messageActionChatDeletePhoto#95e3fbef = MessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionChatDeleteUser.html b/data/web/blogfork.telegram.org/constructor/messageActionChatDeleteUser.html new file mode 100644 index 0000000000..4942e8102a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionChatDeleteUser.html @@ -0,0 +1,150 @@ + + + + + messageActionChatDeleteUser + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatDeleteUser

+ +

User left the group.

+

+ +
+
messageActionChatDeleteUser#a43f30cc user_id:long = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongLeaving user ID
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionChatEditPhoto.html b/data/web/blogfork.telegram.org/constructor/messageActionChatEditPhoto.html new file mode 100644 index 0000000000..655d1e7a7f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionChatEditPhoto.html @@ -0,0 +1,150 @@ + + + + + messageActionChatEditPhoto + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatEditPhoto

+ +

Group profile changed

+

+ +
+
messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
photoPhotoNew group profile photo
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionChatEditTitle.html b/data/web/blogfork.telegram.org/constructor/messageActionChatEditTitle.html new file mode 100644 index 0000000000..e97cd90dbb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionChatEditTitle.html @@ -0,0 +1,150 @@ + + + + + messageActionChatEditTitle + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatEditTitle

+ +

Group name changed.

+

+ +
+
messageActionChatEditTitle#b5a1ce5a title:string = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
titlestringNew group name
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionChatJoinedByLink.html b/data/web/blogfork.telegram.org/constructor/messageActionChatJoinedByLink.html new file mode 100644 index 0000000000..12cffaa201 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionChatJoinedByLink.html @@ -0,0 +1,150 @@ + + + + + messageActionChatJoinedByLink + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatJoinedByLink

+ +

A user joined the chat via an invite link

+

+ +
+
messageActionChatJoinedByLink#31224c3 inviter_id:long = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
inviter_idlongID of the user that created the invite link
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionChatJoinedByRequest.html b/data/web/blogfork.telegram.org/constructor/messageActionChatJoinedByRequest.html new file mode 100644 index 0000000000..74ee3afa65 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionChatJoinedByRequest.html @@ -0,0 +1,135 @@ + + + + + messageActionChatJoinedByRequest + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatJoinedByRequest

+ +

A user was accepted into the group by an admin

+

+ +
+
messageActionChatJoinedByRequest#ebbca3cb = MessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionChatMigrateTo.html b/data/web/blogfork.telegram.org/constructor/messageActionChatMigrateTo.html new file mode 100644 index 0000000000..0b2d1835ea --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionChatMigrateTo.html @@ -0,0 +1,153 @@ + + + + + messageActionChatMigrateTo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionChatMigrateTo

+ +

Indicates the chat was migrated to the specified supergroup

+

+ +
+
messageActionChatMigrateTo#e1037f92 channel_id:long = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
channel_idlongThe supergroup it was migrated to
+

Type

+

MessageAction

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionContactSignUp.html b/data/web/blogfork.telegram.org/constructor/messageActionContactSignUp.html new file mode 100644 index 0000000000..c296e6398f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionContactSignUp.html @@ -0,0 +1,135 @@ + + + + + messageActionContactSignUp + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionContactSignUp

+ +

A contact just signed up to telegram

+

+ +
+
messageActionContactSignUp#f3f25f76 = MessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionCustomAction.html b/data/web/blogfork.telegram.org/constructor/messageActionCustomAction.html new file mode 100644 index 0000000000..91a63284c7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionCustomAction.html @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageActionEmpty.html b/data/web/blogfork.telegram.org/constructor/messageActionEmpty.html new file mode 100644 index 0000000000..b9c63b15de --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionEmpty.html @@ -0,0 +1,135 @@ + + + + + messageActionEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionEmpty

+ +

Empty constructor.

+

+ +
+
messageActionEmpty#b6aef7b0 = MessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionGameScore.html b/data/web/blogfork.telegram.org/constructor/messageActionGameScore.html new file mode 100644 index 0000000000..97daa74600 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionGameScore.html @@ -0,0 +1,155 @@ + + + + + messageActionGameScore + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionGameScore

+ +

Someone scored in a game

+

+ +
+
messageActionGameScore#92a72876 game_id:long score:int = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
game_idlongGame ID
scoreintScore
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionGeoProximityReached.html b/data/web/blogfork.telegram.org/constructor/messageActionGeoProximityReached.html new file mode 100644 index 0000000000..17024f8c47 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionGeoProximityReached.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageActionGroupCall.html b/data/web/blogfork.telegram.org/constructor/messageActionGroupCall.html new file mode 100644 index 0000000000..41c37f4d16 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionGroupCall.html @@ -0,0 +1,160 @@ + + + + + messageActionGroupCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionGroupCall

+ +

The group call has ended

+

+ +
+
messageActionGroupCall#7a0d7f42 flags:# call:InputGroupCall duration:flags.0?int = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
callInputGroupCallGroup call
durationflags.0?intGroup call duration
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionGroupCallScheduled.html b/data/web/blogfork.telegram.org/constructor/messageActionGroupCallScheduled.html new file mode 100644 index 0000000000..d776788fab --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionGroupCallScheduled.html @@ -0,0 +1,155 @@ + + + + + messageActionGroupCallScheduled + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionGroupCallScheduled

+ +

A group call was scheduled

+

+ +
+
messageActionGroupCallScheduled#b3a07661 call:InputGroupCall schedule_date:int = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
callInputGroupCallThe group call
schedule_dateintWhen is this group call scheduled to start
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionHistoryClear.html b/data/web/blogfork.telegram.org/constructor/messageActionHistoryClear.html new file mode 100644 index 0000000000..03cb077168 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionHistoryClear.html @@ -0,0 +1,135 @@ + + + + + messageActionHistoryClear + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionHistoryClear

+ +

Chat history was cleared

+

+ +
+
messageActionHistoryClear#9fbab604 = MessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionInviteToGroupCall.html b/data/web/blogfork.telegram.org/constructor/messageActionInviteToGroupCall.html new file mode 100644 index 0000000000..4d63bb20c4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionInviteToGroupCall.html @@ -0,0 +1,155 @@ + + + + + messageActionInviteToGroupCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionInviteToGroupCall

+ +

A set of users was invited to the group call

+

+ +
+
messageActionInviteToGroupCall#502f92f7 call:InputGroupCall users:Vector<long> = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
callInputGroupCallThe group call
usersVector<long>The invited users
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionPaymentSent.html b/data/web/blogfork.telegram.org/constructor/messageActionPaymentSent.html new file mode 100644 index 0000000000..b952caf959 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionPaymentSent.html @@ -0,0 +1,157 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageActionPaymentSentMe.html b/data/web/blogfork.telegram.org/constructor/messageActionPaymentSentMe.html new file mode 100644 index 0000000000..500fde0f83 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionPaymentSentMe.html @@ -0,0 +1,182 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageActionPhoneCall.html b/data/web/blogfork.telegram.org/constructor/messageActionPhoneCall.html new file mode 100644 index 0000000000..59d0a19663 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionPhoneCall.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageActionPinMessage.html b/data/web/blogfork.telegram.org/constructor/messageActionPinMessage.html new file mode 100644 index 0000000000..ba48562aa8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionPinMessage.html @@ -0,0 +1,135 @@ + + + + + messageActionPinMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionPinMessage

+ +

A message was pinned

+

+ +
+
messageActionPinMessage#94bd38ed = MessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionScreenshotTaken.html b/data/web/blogfork.telegram.org/constructor/messageActionScreenshotTaken.html new file mode 100644 index 0000000000..c76da16597 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionScreenshotTaken.html @@ -0,0 +1,135 @@ + + + + + messageActionScreenshotTaken + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionScreenshotTaken

+ +

A screenshot of the chat was taken

+

+ +
+
messageActionScreenshotTaken#4792929b = MessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionSecureValuesSent.html b/data/web/blogfork.telegram.org/constructor/messageActionSecureValuesSent.html new file mode 100644 index 0000000000..944056ac2f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionSecureValuesSent.html @@ -0,0 +1,152 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageActionSecureValuesSentMe.html b/data/web/blogfork.telegram.org/constructor/messageActionSecureValuesSentMe.html new file mode 100644 index 0000000000..592c3539f5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionSecureValuesSentMe.html @@ -0,0 +1,157 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageActionSetChatTheme.html b/data/web/blogfork.telegram.org/constructor/messageActionSetChatTheme.html new file mode 100644 index 0000000000..dac7f342c3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionSetChatTheme.html @@ -0,0 +1,150 @@ + + + + + messageActionSetChatTheme + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionSetChatTheme

+ +

The chat theme was changed

+

+ +
+
messageActionSetChatTheme#aa786345 emoticon:string = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
emoticonstringThe emoji that identifies a chat theme
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageActionSetMessagesTTL.html b/data/web/blogfork.telegram.org/constructor/messageActionSetMessagesTTL.html new file mode 100644 index 0000000000..e9c37a15f2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageActionSetMessagesTTL.html @@ -0,0 +1,150 @@ + + + + + messageActionSetMessagesTTL + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageActionSetMessagesTTL

+ +

The Time-To-Live of messages in this chat was changed.

+

+ +
+
messageActionSetMessagesTTL#aa1afbfd period:int = MessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
periodintNew Time-To-Live
+

Type

+

MessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageEmpty.html b/data/web/blogfork.telegram.org/constructor/messageEmpty.html new file mode 100644 index 0000000000..8084a51784 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEmpty.html @@ -0,0 +1,160 @@ + + + + + messageEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEmpty

+ +

Empty constructor, non-existent message.

+

+ +
+
messageEmpty#90a6ca84 flags:# id:int peer_id:flags.0?Peer = Message;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
idintMessage identifier
peer_idflags.0?PeerPeer ID, the chat where this message was sent
+

Type

+

Message

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageEntityBankCard.html b/data/web/blogfork.telegram.org/constructor/messageEntityBankCard.html new file mode 100644 index 0000000000..138109c292 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityBankCard.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityBlockquote.html b/data/web/blogfork.telegram.org/constructor/messageEntityBlockquote.html new file mode 100644 index 0000000000..ede0e990f7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityBlockquote.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityBold.html b/data/web/blogfork.telegram.org/constructor/messageEntityBold.html new file mode 100644 index 0000000000..08ca1b2a0c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityBold.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityBotCommand.html b/data/web/blogfork.telegram.org/constructor/messageEntityBotCommand.html new file mode 100644 index 0000000000..1dee6b1abe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityBotCommand.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityCashtag.html b/data/web/blogfork.telegram.org/constructor/messageEntityCashtag.html new file mode 100644 index 0000000000..64284b60c4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityCashtag.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityCode.html b/data/web/blogfork.telegram.org/constructor/messageEntityCode.html new file mode 100644 index 0000000000..843646c22d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityCode.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityEmail.html b/data/web/blogfork.telegram.org/constructor/messageEntityEmail.html new file mode 100644 index 0000000000..a404d0b3be --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityEmail.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityHashtag.html b/data/web/blogfork.telegram.org/constructor/messageEntityHashtag.html new file mode 100644 index 0000000000..be2c96a423 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityHashtag.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityItalic.html b/data/web/blogfork.telegram.org/constructor/messageEntityItalic.html new file mode 100644 index 0000000000..0a32cded44 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityItalic.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityMention.html b/data/web/blogfork.telegram.org/constructor/messageEntityMention.html new file mode 100644 index 0000000000..6a02b83986 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityMention.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityMentionName.html b/data/web/blogfork.telegram.org/constructor/messageEntityMentionName.html new file mode 100644 index 0000000000..c4fb12ef8b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityMentionName.html @@ -0,0 +1,165 @@ + + + + + messageEntityMentionName + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntityMentionName

+ +

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

+

+ +
+
messageEntityMentionName#dc7b1140 offset:int length:int user_id:long = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetintOffset of message entity within message (in UTF-8 codepoints)
lengthintLength of message entity within message (in UTF-8 codepoints)
user_idlongIdentifier 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/web/blogfork.telegram.org/constructor/messageEntityPhone.html b/data/web/blogfork.telegram.org/constructor/messageEntityPhone.html new file mode 100644 index 0000000000..4f49721330 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityPhone.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityPre.html b/data/web/blogfork.telegram.org/constructor/messageEntityPre.html new file mode 100644 index 0000000000..f37e963c19 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityPre.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntitySpoiler.html b/data/web/blogfork.telegram.org/constructor/messageEntitySpoiler.html new file mode 100644 index 0000000000..2ec43cc49a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntitySpoiler.html @@ -0,0 +1,155 @@ + + + + + messageEntitySpoiler + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageEntitySpoiler

+ +

Message entity representing a spoiler

+

+ +
+
messageEntitySpoiler#32ca960f 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/web/blogfork.telegram.org/constructor/messageEntityStrike.html b/data/web/blogfork.telegram.org/constructor/messageEntityStrike.html new file mode 100644 index 0000000000..e9fc049af6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityStrike.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityTextUrl.html b/data/web/blogfork.telegram.org/constructor/messageEntityTextUrl.html new file mode 100644 index 0000000000..bf55f8bf41 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityTextUrl.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityUnderline.html b/data/web/blogfork.telegram.org/constructor/messageEntityUnderline.html new file mode 100644 index 0000000000..630a6e02b2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityUnderline.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityUnknown.html b/data/web/blogfork.telegram.org/constructor/messageEntityUnknown.html new file mode 100644 index 0000000000..1b34ec32c0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityUnknown.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageEntityUrl.html b/data/web/blogfork.telegram.org/constructor/messageEntityUrl.html new file mode 100644 index 0000000000..ed60ee6c8c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageEntityUrl.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageFwdHeader.html b/data/web/blogfork.telegram.org/constructor/messageFwdHeader.html new file mode 100644 index 0000000000..b2560a88fd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageFwdHeader.html @@ -0,0 +1,198 @@ + + + + + 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
importedflags.7?trueWhether this message was imported from a foreign chat service, click here for more info »
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

+

Related pages

+

Imported messages

+

Telegram allows importing messages and media from foreign chat apps.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageInteractionCounters.html b/data/web/blogfork.telegram.org/constructor/messageInteractionCounters.html new file mode 100644 index 0000000000..ad9a1d141a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageInteractionCounters.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageMediaContact.html b/data/web/blogfork.telegram.org/constructor/messageMediaContact.html new file mode 100644 index 0000000000..3af0eaefc2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaContact.html @@ -0,0 +1,170 @@ + + + + + messageMediaContact + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaContact

+ +

Attached contact.

+

+ +
+
messageMediaContact#70322949 phone_number:string first_name:string last_name:string vcard:string user_id:long = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
phone_numberstringPhone number
first_namestringContact's first name
last_namestringContact's last name
vcardstringVCARD of contact
user_idlongUser identifier or 0, if the user with the given phone number is not registered
+

Type

+

MessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageMediaDice.html b/data/web/blogfork.telegram.org/constructor/messageMediaDice.html new file mode 100644 index 0000000000..e590731375 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaDice.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageMediaDocument.html b/data/web/blogfork.telegram.org/constructor/messageMediaDocument.html new file mode 100644 index 0000000000..719910dccb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaDocument.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageMediaEmpty.html b/data/web/blogfork.telegram.org/constructor/messageMediaEmpty.html new file mode 100644 index 0000000000..a6494e29ac --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaEmpty.html @@ -0,0 +1,135 @@ + + + + + messageMediaEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaEmpty

+ +

Empty constructor.

+

+ +
+
messageMediaEmpty#3ded6320 = MessageMedia;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageMediaGame.html b/data/web/blogfork.telegram.org/constructor/messageMediaGame.html new file mode 100644 index 0000000000..8854c7634e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaGame.html @@ -0,0 +1,150 @@ + + + + + messageMediaGame + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaGame

+ +

Telegram game

+

+ +
+
messageMediaGame#fdb19008 game:Game = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
gameGameGame
+

Type

+

MessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageMediaGeo.html b/data/web/blogfork.telegram.org/constructor/messageMediaGeo.html new file mode 100644 index 0000000000..63b54fc08c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaGeo.html @@ -0,0 +1,150 @@ + + + + + messageMediaGeo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaGeo

+ +

Attached map.

+

+ +
+
messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
geoGeoPointGeoPoint
+

Type

+

MessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageMediaGeoLive.html b/data/web/blogfork.telegram.org/constructor/messageMediaGeoLive.html new file mode 100644 index 0000000000..91720d56cd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaGeoLive.html @@ -0,0 +1,173 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageMediaInvoice.html b/data/web/blogfork.telegram.org/constructor/messageMediaInvoice.html new file mode 100644 index 0000000000..b72f0c2d44 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaInvoice.html @@ -0,0 +1,201 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageMediaPhoto.html b/data/web/blogfork.telegram.org/constructor/messageMediaPhoto.html new file mode 100644 index 0000000000..ce583a3bd6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaPhoto.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageMediaPoll.html b/data/web/blogfork.telegram.org/constructor/messageMediaPoll.html new file mode 100644 index 0000000000..13988c998c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaPoll.html @@ -0,0 +1,155 @@ + + + + + messageMediaPoll + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaPoll

+ +

Poll

+

+ +
+
messageMediaPoll#4bd6e798 poll:Poll results:PollResults = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
pollPollThe poll
resultsPollResultsThe results of the poll
+

Type

+

MessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageMediaUnsupported.html b/data/web/blogfork.telegram.org/constructor/messageMediaUnsupported.html new file mode 100644 index 0000000000..8b9c0842d7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaUnsupported.html @@ -0,0 +1,135 @@ + + + + + messageMediaUnsupported + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaUnsupported

+ +

Current version of the client does not support this media type.

+

+ +
+
messageMediaUnsupported#9f84f49e = MessageMedia;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageMediaVenue.html b/data/web/blogfork.telegram.org/constructor/messageMediaVenue.html new file mode 100644 index 0000000000..d617ca2db2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaVenue.html @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageMediaWebPage.html b/data/web/blogfork.telegram.org/constructor/messageMediaWebPage.html new file mode 100644 index 0000000000..cbe1397c3a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageMediaWebPage.html @@ -0,0 +1,150 @@ + + + + + messageMediaWebPage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageMediaWebPage

+ +

Preview of webpage

+

+ +
+
messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
webpageWebPageWebpage preview
+

Type

+

MessageMedia

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messagePeerReaction.html b/data/web/blogfork.telegram.org/constructor/messagePeerReaction.html new file mode 100644 index 0000000000..a329702465 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messagePeerReaction.html @@ -0,0 +1,173 @@ + + + + + messagePeerReaction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messagePeerReaction

+ +

How a certain peer reacted to the message

+

+ +
+
messagePeerReaction#51b67eff flags:# big:flags.0?true unread:flags.1?true peer_id:Peer reaction:string = MessagePeerReaction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
bigflags.0?trueWhether the specified message reaction » should elicit a bigger and longer reaction
unreadflags.1?trueWhether the reaction wasn't yet marked as read by the current user
peer_idPeerPeer that reacted to the message
reactionstringReaction emoji
+

Type

+

MessagePeerReaction

+

Related pages

+

Message reactions

+

Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageRange.html b/data/web/blogfork.telegram.org/constructor/messageRange.html new file mode 100644 index 0000000000..f9745280e2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageRange.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messageReactions.html b/data/web/blogfork.telegram.org/constructor/messageReactions.html new file mode 100644 index 0000000000..51fed58849 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageReactions.html @@ -0,0 +1,179 @@ + + + + + messageReactions + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageReactions

+ +

Message reactions »

+

+ +
+
messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
minflags.0?trueSimilar to min objects, used for message reaction » constructors that are the same for all users so they don't have the reactions sent by the current user (you can use messages.getMessagesReactions to get the full reaction info).
can_see_listflags.2?trueWhether messages.getMessageReactionsList can be used to see how each specific peer reacted to the message
resultsVector<ReactionCount>Reactions
recent_reactionsflags.1?Vector<MessagePeerReaction>List of recent peers and their reactions
+

Type

+

MessageReactions

+

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.

+

Message reactions

+

Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.

+

messages.getMessagesReactions

+

Get message reactions »

+

messages.getMessageReactionsList

+

Get message reaction list, along with the sender of each reaction.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageReplies.html b/data/web/blogfork.telegram.org/constructor/messageReplies.html new file mode 100644 index 0000000000..cf6ee730ae --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageReplies.html @@ -0,0 +1,192 @@ + + + + + messageReplies + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageReplies

+ +

Info about the comment section of a channel post, or a simple message thread

+

+ +
+
messageReplies#83d60fc2 flags:# comments:flags.0?true replies:int replies_pts:int recent_repliers:flags.1?Vector<Peer> channel_id:flags.0?long 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?longFor 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/web/blogfork.telegram.org/constructor/messageReplyHeader.html b/data/web/blogfork.telegram.org/constructor/messageReplyHeader.html new file mode 100644 index 0000000000..bb0063fcd4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageReplyHeader.html @@ -0,0 +1,168 @@ + + + + + messageReplyHeader + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageReplyHeader

+ +

Message replies and thread information

+

+ +
+
messageReplyHeader#a6d57763 flags:# reply_to_scheduled:flags.2?true 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/web/blogfork.telegram.org/constructor/messageService.html b/data/web/blogfork.telegram.org/constructor/messageService.html new file mode 100644 index 0000000000..2cd722403e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageService.html @@ -0,0 +1,215 @@ + + + + + messageService + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageService

+ +

Indicates a service message

+

+ +
+
messageService#2b085862 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 ttl_period:flags.25?int = 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
ttl_periodflags.25?intTime To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.
+

Type

+

Message

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageUserReaction.html b/data/web/blogfork.telegram.org/constructor/messageUserReaction.html new file mode 100644 index 0000000000..5e68372fc0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageUserReaction.html @@ -0,0 +1,155 @@ + + + + + messageUserReaction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageUserReaction

+ +

Message reaction

+

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

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintID of user that reacted this way
reactionstringReaction (UTF8 emoji)
+

Type

+

MessageUserReaction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageUserVote.html b/data/web/blogfork.telegram.org/constructor/messageUserVote.html new file mode 100644 index 0000000000..8959d35c78 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageUserVote.html @@ -0,0 +1,160 @@ + + + + + messageUserVote + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageUserVote

+ +

How a user voted in a poll

+

+ +
+
messageUserVote#34d247b4 user_id:long option:bytes date:int = MessageUserVote;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser ID
optionbytesThe option chosen by the user
dateintWhen did the user cast the vote
+

Type

+

MessageUserVote

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageUserVoteInputOption.html b/data/web/blogfork.telegram.org/constructor/messageUserVoteInputOption.html new file mode 100644 index 0000000000..7af92ea62c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageUserVoteInputOption.html @@ -0,0 +1,158 @@ + + + + + messageUserVoteInputOption + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageUserVoteInputOption

+ +

How a user voted in a poll (reduced constructor, returned if an option was provided to messages.getPollVotes)

+

+ +
+
messageUserVoteInputOption#3ca5b0ec user_id:long date:int = MessageUserVote;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongThe 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/web/blogfork.telegram.org/constructor/messageUserVoteMultiple.html b/data/web/blogfork.telegram.org/constructor/messageUserVoteMultiple.html new file mode 100644 index 0000000000..df414b3603 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageUserVoteMultiple.html @@ -0,0 +1,160 @@ + + + + + messageUserVoteMultiple + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messageUserVoteMultiple

+ +

How a user voted in a multiple-choice poll

+

+ +
+
messageUserVoteMultiple#8a65e557 user_id:long options:Vector<bytes> date:int = MessageUserVote;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser ID
optionsVector<bytes>Options chosen by the user
dateintWhen did the user cast their votes
+

Type

+

MessageUserVote

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messageViews.html b/data/web/blogfork.telegram.org/constructor/messageViews.html new file mode 100644 index 0000000000..dc2fd3d5a1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messageViews.html @@ -0,0 +1,168 @@ + + + + + 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?intView count 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/web/blogfork.telegram.org/constructor/messages.affectedFoundMessages b/data/web/blogfork.telegram.org/constructor/messages.affectedFoundMessages new file mode 100644 index 0000000000..f6b6d1fdc1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.affectedFoundMessages @@ -0,0 +1,168 @@ + + + + + messages.affectedFoundMessages + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.affectedFoundMessages

+ +

Messages found and affected by changes

+

+ +
+
messages.affectedFoundMessages#ef8d3e6c pts:int pts_count:int offset:int messages:Vector<int> = messages.AffectedFoundMessages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ptsintEvent count after generation
pts_countintNumber of events that were generated
offsetintIf bigger than zero, the request must be repeated to remove more messages
messagesVector<int>Affected message IDs
+

Type

+

messages.AffectedFoundMessages

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.affectedHistory b/data/web/blogfork.telegram.org/constructor/messages.affectedHistory new file mode 100644 index 0000000000..a9c2d3cfe3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.affectedHistory @@ -0,0 +1,160 @@ + + + + + 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 occurred 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/web/blogfork.telegram.org/constructor/messages.affectedMessages b/data/web/blogfork.telegram.org/constructor/messages.affectedMessages new file mode 100644 index 0000000000..47d71b89d1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.affectedMessages @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.allStickers b/data/web/blogfork.telegram.org/constructor/messages.allStickers new file mode 100644 index 0000000000..0949d2bb47 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.allStickers @@ -0,0 +1,158 @@ + + + + + messages.allStickers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.allStickers

+ +

Info about all installed stickers

+

+ +
+
messages.allStickers#cdbbcebb hash:long sets:Vector<StickerSet> = messages.AllStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashlongHash 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/web/blogfork.telegram.org/constructor/messages.allStickersNotModified b/data/web/blogfork.telegram.org/constructor/messages.allStickersNotModified new file mode 100644 index 0000000000..39ba2e3788 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.allStickersNotModified @@ -0,0 +1,135 @@ + + + + + messages.allStickersNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.allStickersNotModified

+ +

Info about all installed stickers hasn't changed

+

+ +
+
messages.allStickersNotModified#e86602c3 = messages.AllStickers;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.AllStickers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.archivedStickers b/data/web/blogfork.telegram.org/constructor/messages.archivedStickers new file mode 100644 index 0000000000..d9eed6f3b9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.archivedStickers @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.availableReactions b/data/web/blogfork.telegram.org/constructor/messages.availableReactions new file mode 100644 index 0000000000..23ef10dd53 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.availableReactions @@ -0,0 +1,160 @@ + + + + + messages.availableReactions + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.availableReactions

+ +

Animations and metadata associated with message reactions »

+

+ +
+
messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashintHash for pagination, for more info click here
reactionsVector<AvailableReaction>Animations and metadata associated with message reactions »
+

Type

+

messages.AvailableReactions

+

Related pages

+

Pagination in the API

+

How to fetch results from large lists of objects.

+

Message reactions

+

Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.availableReactionsNotModified b/data/web/blogfork.telegram.org/constructor/messages.availableReactionsNotModified new file mode 100644 index 0000000000..b9f9124cb6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.availableReactionsNotModified @@ -0,0 +1,135 @@ + + + + + messages.availableReactionsNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.availableReactionsNotModified

+ +

No new reactions are available

+

+ +
+
messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.AvailableReactions

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.botCallbackAnswer b/data/web/blogfork.telegram.org/constructor/messages.botCallbackAnswer new file mode 100644 index 0000000000..a168e61352 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.botCallbackAnswer @@ -0,0 +1,180 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.botResults b/data/web/blogfork.telegram.org/constructor/messages.botResults new file mode 100644 index 0000000000..e0cae75d5e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.botResults @@ -0,0 +1,185 @@ + + + + + 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 them 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/web/blogfork.telegram.org/constructor/messages.channelMessages b/data/web/blogfork.telegram.org/constructor/messages.channelMessages new file mode 100644 index 0000000000..f04e387bfa --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.channelMessages @@ -0,0 +1,188 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.chatAdminsWithInvites b/data/web/blogfork.telegram.org/constructor/messages.chatAdminsWithInvites new file mode 100644 index 0000000000..a97e83b6fc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.chatAdminsWithInvites @@ -0,0 +1,155 @@ + + + + + messages.chatAdminsWithInvites + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.chatAdminsWithInvites

+ +

Info about chat invites generated by admins.

+

+ +
+
messages.chatAdminsWithInvites#b69b72d7 admins:Vector<ChatAdminWithInvites> users:Vector<User> = messages.ChatAdminsWithInvites;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
adminsVector<ChatAdminWithInvites>Info about chat invites generated by admins.
usersVector<User>Mentioned users
+

Type

+

messages.ChatAdminsWithInvites

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.chatFull b/data/web/blogfork.telegram.org/constructor/messages.chatFull new file mode 100644 index 0000000000..c6a0ded1b9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.chatFull @@ -0,0 +1,163 @@ + + + + + messages.chatFull + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.chatFull

+ +

Full info about a channel, supergroup, gigagroup or basic group.

+

+ +
+
messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
full_chatChatFullFull info
chatsVector<Chat>Mentioned chats
usersVector<User>Mentioned users
+

Type

+

messages.ChatFull

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.chatInviteImporters b/data/web/blogfork.telegram.org/constructor/messages.chatInviteImporters new file mode 100644 index 0000000000..8b87b9cb0a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.chatInviteImporters @@ -0,0 +1,160 @@ + + + + + messages.chatInviteImporters + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.chatInviteImporters

+ +

Info about the users that joined the chat using a specific chat invite

+

+ +
+
messages.chatInviteImporters#81b6b00a count:int importers:Vector<ChatInviteImporter> users:Vector<User> = messages.ChatInviteImporters;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countintNumber of users that joined
importersVector<ChatInviteImporter>The users that joined
usersVector<User>The users that joined
+

Type

+

messages.ChatInviteImporters

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.chats b/data/web/blogfork.telegram.org/constructor/messages.chats new file mode 100644 index 0000000000..a63d6e36f3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.chats @@ -0,0 +1,150 @@ + + + + + messages.chats + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.chats

+ +

List of chats with auxiliary data.

+

+ +
+
messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chatsVector<Chat>List of chats
+

Type

+

messages.Chats

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.chatsSlice b/data/web/blogfork.telegram.org/constructor/messages.chatsSlice new file mode 100644 index 0000000000..b9c8d5f3c1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.chatsSlice @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.checkedHistoryImportPeer b/data/web/blogfork.telegram.org/constructor/messages.checkedHistoryImportPeer new file mode 100644 index 0000000000..c626ef4653 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.checkedHistoryImportPeer @@ -0,0 +1,153 @@ + + + + + messages.checkedHistoryImportPeer + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.checkedHistoryImportPeer

+ +

Contains a confirmation text to be shown to the user, upon importing chat history, click here for more info ».

+

+ +
+
messages.checkedHistoryImportPeer#a24de717 confirm_text:string = messages.CheckedHistoryImportPeer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
confirm_textstringA confirmation text to be shown to the user, upon importing chat history ».
+

Type

+

messages.CheckedHistoryImportPeer

+

Related pages

+

Imported messages

+

Telegram allows importing messages and media from foreign chat apps.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.dhConfig b/data/web/blogfork.telegram.org/constructor/messages.dhConfig new file mode 100644 index 0000000000..55a4b066c3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.dhConfig @@ -0,0 +1,165 @@ + + + + + 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
versionintVersion of set of parameters
randombytesRandom sequence of bytes of assigned length
+

Type

+

messages.DhConfig

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.dhConfigNotModified b/data/web/blogfork.telegram.org/constructor/messages.dhConfigNotModified new file mode 100644 index 0000000000..7a3868588c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.dhConfigNotModified @@ -0,0 +1,150 @@ + + + + + messages.dhConfigNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.dhConfigNotModified

+ +

Configuring parameters did not change.

+

+ +
+
messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
randombytesRandom sequence of bytes of assigned length
+

Type

+

messages.DhConfig

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.dialogs b/data/web/blogfork.telegram.org/constructor/messages.dialogs new file mode 100644 index 0000000000..f8d7551328 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.dialogs @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.dialogsNotModified b/data/web/blogfork.telegram.org/constructor/messages.dialogsNotModified new file mode 100644 index 0000000000..896d196aad --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.dialogsNotModified @@ -0,0 +1,150 @@ + + + + + messages.dialogsNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.dialogsNotModified

+ +

Dialogs haven't changed

+

+ +
+
messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
countintNumber of dialogs found server-side by the query
+

Type

+

messages.Dialogs

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.dialogsSlice b/data/web/blogfork.telegram.org/constructor/messages.dialogsSlice new file mode 100644 index 0000000000..ad96173cf3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.dialogsSlice @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.discussionMessage b/data/web/blogfork.telegram.org/constructor/messages.discussionMessage new file mode 100644 index 0000000000..1f9302d22e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.discussionMessage @@ -0,0 +1,188 @@ + + + + + messages.discussionMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.discussionMessage

+ +

Information about a message thread

+

+ +
+
messages.discussionMessage#a6341782 flags:# messages:Vector<Message> max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int unread_count: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
unread_countintNumber of unread messages
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/web/blogfork.telegram.org/constructor/messages.exportedChatInvite b/data/web/blogfork.telegram.org/constructor/messages.exportedChatInvite new file mode 100644 index 0000000000..c5a07c6e79 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.exportedChatInvite @@ -0,0 +1,155 @@ + + + + + messages.exportedChatInvite + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.exportedChatInvite

+ +

Info about a chat invite

+

+ +
+
messages.exportedChatInvite#1871be50 invite:ExportedChatInvite users:Vector<User> = messages.ExportedChatInvite;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
inviteExportedChatInviteInfo about the chat invite
usersVector<User>Mentioned users
+

Type

+

messages.ExportedChatInvite

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.exportedChatInviteReplaced b/data/web/blogfork.telegram.org/constructor/messages.exportedChatInviteReplaced new file mode 100644 index 0000000000..dcf794e5f5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.exportedChatInviteReplaced @@ -0,0 +1,160 @@ + + + + + messages.exportedChatInviteReplaced + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.exportedChatInviteReplaced

+ +

The specified chat invite was replaced with another one

+

+ +
+
messages.exportedChatInviteReplaced#222600ef invite:ExportedChatInvite new_invite:ExportedChatInvite users:Vector<User> = messages.ExportedChatInvite;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
inviteExportedChatInviteThe replaced chat invite
new_inviteExportedChatInviteThe invite that replaces the previous invite
usersVector<User>Mentioned users
+

Type

+

messages.ExportedChatInvite

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.exportedChatInvites b/data/web/blogfork.telegram.org/constructor/messages.exportedChatInvites new file mode 100644 index 0000000000..ad48afd4c8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.exportedChatInvites @@ -0,0 +1,160 @@ + + + + + messages.exportedChatInvites + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.exportedChatInvites

+ +

Info about chat invites exported by a certain admin.

+

+ +
+
messages.exportedChatInvites#bdc62dcc count:int invites:Vector<ExportedChatInvite> users:Vector<User> = messages.ExportedChatInvites;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countintNumber of invites exported by the admin
invitesVector<ExportedChatInvite>Exported invites
usersVector<User>Info about the admin
+

Type

+

messages.ExportedChatInvites

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.favedStickers b/data/web/blogfork.telegram.org/constructor/messages.favedStickers new file mode 100644 index 0000000000..d2dece8cc2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.favedStickers @@ -0,0 +1,163 @@ + + + + + messages.favedStickers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.favedStickers

+ +

Favorited stickers

+

+ +
+
messages.favedStickers#2cb51097 hash:long packs:Vector<StickerPack> stickers:Vector<Document> = messages.FavedStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashlongHash 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/web/blogfork.telegram.org/constructor/messages.favedStickersNotModified b/data/web/blogfork.telegram.org/constructor/messages.favedStickersNotModified new file mode 100644 index 0000000000..4c0d2e63ec --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.favedStickersNotModified @@ -0,0 +1,135 @@ + + + + + messages.favedStickersNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.favedStickersNotModified

+ +

No new favorited stickers were found

+

+ +
+
messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.FavedStickers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.featuredStickers b/data/web/blogfork.telegram.org/constructor/messages.featuredStickers new file mode 100644 index 0000000000..91ce7ee2a2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.featuredStickers @@ -0,0 +1,168 @@ + + + + + messages.featuredStickers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.featuredStickers

+ +

Featured stickersets

+

+ +
+
messages.featuredStickers#84c02310 hash:long count:int sets:Vector<StickerSetCovered> unread:Vector<long> = messages.FeaturedStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashlongHash 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/web/blogfork.telegram.org/constructor/messages.featuredStickersNotModified b/data/web/blogfork.telegram.org/constructor/messages.featuredStickersNotModified new file mode 100644 index 0000000000..d8327f5b8e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.featuredStickersNotModified @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.foundStickerSets b/data/web/blogfork.telegram.org/constructor/messages.foundStickerSets new file mode 100644 index 0000000000..5b817cd17c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.foundStickerSets @@ -0,0 +1,158 @@ + + + + + messages.foundStickerSets + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.foundStickerSets

+ +

Found stickersets

+

+ +
+
messages.foundStickerSets#8af09dd2 hash:long sets:Vector<StickerSetCovered> = messages.FoundStickerSets;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashlongHash 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/web/blogfork.telegram.org/constructor/messages.foundStickerSetsNotModified b/data/web/blogfork.telegram.org/constructor/messages.foundStickerSetsNotModified new file mode 100644 index 0000000000..a3a29e3fac --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.foundStickerSetsNotModified @@ -0,0 +1,135 @@ + + + + + messages.foundStickerSetsNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.foundStickerSetsNotModified

+ +

No further results were found

+

+ +
+
messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.FoundStickerSets

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.highScores b/data/web/blogfork.telegram.org/constructor/messages.highScores new file mode 100644 index 0000000000..6f23f5845f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.highScores @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.historyImport b/data/web/blogfork.telegram.org/constructor/messages.historyImport new file mode 100644 index 0000000000..dd35f228a3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.historyImport @@ -0,0 +1,153 @@ + + + + + messages.historyImport + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.historyImport

+ +

ID of a specific chat import session, click here for more info ».

+

+ +
+
messages.historyImport#1662af0b id:long = messages.HistoryImport;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idlongHistory import ID
+

Type

+

messages.HistoryImport

+

Related pages

+

Imported messages

+

Telegram allows importing messages and media from foreign chat apps.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.historyImportParsed b/data/web/blogfork.telegram.org/constructor/messages.historyImportParsed new file mode 100644 index 0000000000..b8e48e29fe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.historyImportParsed @@ -0,0 +1,169 @@ + + + + + messages.historyImportParsed + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.historyImportParsed

+ +

Contains information about a chat export file generated by a foreign chat app, click here for more info.
+If neither the pm or group flags are set, the specified chat export was generated from a chat of unknown type.

+

+ +
+
messages.historyImportParsed#5e0fb7b9 flags:# pm:flags.0?true group:flags.1?true title:flags.2?string = messages.HistoryImportParsed;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
pmflags.0?trueThe chat export file was generated from a private chat.
groupflags.1?trueThe chat export file was generated from a group chat.
titleflags.2?stringTitle of the chat.
+

Type

+

messages.HistoryImportParsed

+

Related pages

+

Imported messages

+

Telegram allows importing messages and media from foreign chat apps.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.inactiveChats b/data/web/blogfork.telegram.org/constructor/messages.inactiveChats new file mode 100644 index 0000000000..fbee3cf2e8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.inactiveChats @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.messageEditData b/data/web/blogfork.telegram.org/constructor/messages.messageEditData new file mode 100644 index 0000000000..59990cefd9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.messageEditData @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.messageReactionsList b/data/web/blogfork.telegram.org/constructor/messages.messageReactionsList new file mode 100644 index 0000000000..0ae205a3d4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.messageReactionsList @@ -0,0 +1,178 @@ + + + + + messages.messageReactionsList + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.messageReactionsList

+ +

List of peers that reacted to a specific message

+

+ +
+
messages.messageReactionsList#31bd492d flags:# count:int reactions:Vector<MessagePeerReaction> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
countintTotal number of reactions matching query
reactionsVector<MessagePeerReaction>List of peers that reacted to a specific message
chatsVector<Chat>Mentioned chats
usersVector<User>Mentioned users
next_offsetflags.0?stringIf set, indicates the next offset to use to load more results by invoking messages.getMessageReactionsList.
+

Type

+

messages.MessageReactionsList

+

Related pages

+

messages.getMessageReactionsList

+

Get message reaction list, along with the sender of each reaction.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.messageViews b/data/web/blogfork.telegram.org/constructor/messages.messageViews new file mode 100644 index 0000000000..912e69fb7a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.messageViews @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.messages b/data/web/blogfork.telegram.org/constructor/messages.messages new file mode 100644 index 0000000000..4150970f00 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.messages @@ -0,0 +1,160 @@ + + + + + messages.messages + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.messages

+ +

Full list of messages with auxiliary 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/web/blogfork.telegram.org/constructor/messages.messagesNotModified b/data/web/blogfork.telegram.org/constructor/messages.messagesNotModified new file mode 100644 index 0000000000..48dc90ebc2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.messagesNotModified @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.messagesSlice b/data/web/blogfork.telegram.org/constructor/messages.messagesSlice new file mode 100644 index 0000000000..b9b34bab09 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.messagesSlice @@ -0,0 +1,188 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.peerDialogs b/data/web/blogfork.telegram.org/constructor/messages.peerDialogs new file mode 100644 index 0000000000..347e34f0b5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.peerDialogs @@ -0,0 +1,173 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.peerSettings b/data/web/blogfork.telegram.org/constructor/messages.peerSettings new file mode 100644 index 0000000000..374ac5ced5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.peerSettings @@ -0,0 +1,160 @@ + + + + + messages.peerSettings + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.peerSettings

+ +

Peer settings

+

+ +
+
messages.peerSettings#6880b94d settings:PeerSettings chats:Vector<Chat> users:Vector<User> = messages.PeerSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
settingsPeerSettingsPeer settings
chatsVector<Chat>Mentioned chats
usersVector<User>Mentioned users
+

Type

+

messages.PeerSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.recentStickers b/data/web/blogfork.telegram.org/constructor/messages.recentStickers new file mode 100644 index 0000000000..ea9fb22c65 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.recentStickers @@ -0,0 +1,168 @@ + + + + + messages.recentStickers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.recentStickers

+ +

Recently used stickers

+

+ +
+
messages.recentStickers#88d37c56 hash:long packs:Vector<StickerPack> stickers:Vector<Document> dates:Vector<int> = messages.RecentStickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashlongHash 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/web/blogfork.telegram.org/constructor/messages.recentStickersNotModified b/data/web/blogfork.telegram.org/constructor/messages.recentStickersNotModified new file mode 100644 index 0000000000..9047f17c04 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.recentStickersNotModified @@ -0,0 +1,135 @@ + + + + + messages.recentStickersNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.recentStickersNotModified

+ +

No new recent sticker was found

+

+ +
+
messages.recentStickersNotModified#b17f890 = messages.RecentStickers;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.RecentStickers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.savedGifs b/data/web/blogfork.telegram.org/constructor/messages.savedGifs new file mode 100644 index 0000000000..e66f911efb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.savedGifs @@ -0,0 +1,158 @@ + + + + + messages.savedGifs + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.savedGifs

+ +

Saved gifs

+

+ +
+
messages.savedGifs#84a02a0d hash:long gifs:Vector<Document> = messages.SavedGifs;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashlongHash 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/web/blogfork.telegram.org/constructor/messages.savedGifsNotModified b/data/web/blogfork.telegram.org/constructor/messages.savedGifsNotModified new file mode 100644 index 0000000000..b4cfbe1ad3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.savedGifsNotModified @@ -0,0 +1,135 @@ + + + + + messages.savedGifsNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.savedGifsNotModified

+ +

No new saved gifs were found

+

+ +
+
messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.SavedGifs

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.searchCounter b/data/web/blogfork.telegram.org/constructor/messages.searchCounter new file mode 100644 index 0000000000..ca89e3ac35 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.searchCounter @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.searchResultsCalendar b/data/web/blogfork.telegram.org/constructor/messages.searchResultsCalendar new file mode 100644 index 0000000000..e71d87147c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.searchResultsCalendar @@ -0,0 +1,198 @@ + + + + + messages.searchResultsCalendar + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.searchResultsCalendar

+ +

Information about found messages sent on a specific day

+

+ +
+
messages.searchResultsCalendar#147ee23c flags:# inexact:flags.0?true count:int min_date:int min_msg_id:int offset_id_offset:flags.1?int periods:Vector<SearchResultsCalendarPeriod> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.SearchResultsCalendar;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
inexactflags.0?trueIf set, indicates that the results may be inexact
countintTotal number of results matching query
min_dateintStarting timestamp of attached messages
min_msg_idintEnding timestamp of attached messages
offset_id_offsetflags.1?intIndicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if 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}.
periodsVector<SearchResultsCalendarPeriod>Used to split the messages by days: multiple SearchResultsCalendarPeriod constructors are returned, each containing information about the first, last and total number of messages matching the filter that were sent on a specific day.
This information can be easily used to split the returned messages by day.
messagesVector<Message>Messages
chatsVector<Chat>Mentioned chats
usersVector<User>Mentioned users
+

Type

+

messages.SearchResultsCalendar

+

Related pages

+

SearchResultsCalendarPeriod

+

Information about found messages sent on a specific day, used to split the messages in messages.searchResultsCalendar constructors by days.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.searchResultsPositions b/data/web/blogfork.telegram.org/constructor/messages.searchResultsPositions new file mode 100644 index 0000000000..7be9f792cd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.searchResultsPositions @@ -0,0 +1,155 @@ + + + + + messages.searchResultsPositions + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.searchResultsPositions

+ +

Information about sparse positions of messages

+

+ +
+
messages.searchResultsPositions#53b22baf count:int positions:Vector<SearchResultsPosition> = messages.SearchResultsPositions;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countintTotal number of found messages
positionsVector<SearchResultsPosition>List of message positions
+

Type

+

messages.SearchResultsPositions

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.sentEncryptedFile b/data/web/blogfork.telegram.org/constructor/messages.sentEncryptedFile new file mode 100644 index 0000000000..6ea99021a4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.sentEncryptedFile @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.sentEncryptedMessage b/data/web/blogfork.telegram.org/constructor/messages.sentEncryptedMessage new file mode 100644 index 0000000000..df3621c70d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.sentEncryptedMessage @@ -0,0 +1,150 @@ + + + + + messages.sentEncryptedMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sentEncryptedMessage

+ +

Message without file attachments sent to an encrypted file.

+

+ +
+
messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
dateintDate of sending
+

Type

+

messages.SentEncryptedMessage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.sponsoredMessages b/data/web/blogfork.telegram.org/constructor/messages.sponsoredMessages new file mode 100644 index 0000000000..7d56af75f9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.sponsoredMessages @@ -0,0 +1,160 @@ + + + + + messages.sponsoredMessages + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.sponsoredMessages

+ +

A set of sponsored messages associated to a channel

+

+ +
+
messages.sponsoredMessages#65a4c7d5 messages:Vector<SponsoredMessage> chats:Vector<Chat> users:Vector<User> = messages.SponsoredMessages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messagesVector<SponsoredMessage>Sponsored messages
chatsVector<Chat>Chats mentioned in the sponsored messages
usersVector<User>Users mentioned in the sponsored messages
+

Type

+

messages.SponsoredMessages

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.stickerSet b/data/web/blogfork.telegram.org/constructor/messages.stickerSet new file mode 100644 index 0000000000..766009b391 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.stickerSet @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.stickerSetInstallResultArchive b/data/web/blogfork.telegram.org/constructor/messages.stickerSetInstallResultArchive new file mode 100644 index 0000000000..59aaf0d67f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.stickerSetInstallResultArchive @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/messages.stickerSetInstallResultSuccess b/data/web/blogfork.telegram.org/constructor/messages.stickerSetInstallResultSuccess new file mode 100644 index 0000000000..cf68da9322 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.stickerSetInstallResultSuccess @@ -0,0 +1,135 @@ + + + + + messages.stickerSetInstallResultSuccess + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.stickerSetInstallResultSuccess

+ +

The stickerset was installed successfully

+

+ +
+
messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.StickerSetInstallResult

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.stickerSetNotModified b/data/web/blogfork.telegram.org/constructor/messages.stickerSetNotModified new file mode 100644 index 0000000000..1dc36c871e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.stickerSetNotModified @@ -0,0 +1,135 @@ + + + + + messages.stickerSetNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.stickerSetNotModified

+ +

The stickerset hasn't changed

+

+ +
+
messages.stickerSetNotModified#d3f924eb = messages.StickerSet;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.StickerSet

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.stickers b/data/web/blogfork.telegram.org/constructor/messages.stickers new file mode 100644 index 0000000000..79a7c6e101 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.stickers @@ -0,0 +1,158 @@ + + + + + messages.stickers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.stickers

+ +

Found stickers

+

+ +
+
messages.stickers#30a6ec7e hash:long stickers:Vector<Document> = messages.Stickers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashlongHash 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/web/blogfork.telegram.org/constructor/messages.stickersNotModified b/data/web/blogfork.telegram.org/constructor/messages.stickersNotModified new file mode 100644 index 0000000000..fc7a1b7b25 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.stickersNotModified @@ -0,0 +1,135 @@ + + + + + messages.stickersNotModified + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.stickersNotModified

+ +

No new stickers were found for the given query

+

+ +
+
messages.stickersNotModified#f1749a22 = messages.Stickers;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.Stickers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.translateNoResult b/data/web/blogfork.telegram.org/constructor/messages.translateNoResult new file mode 100644 index 0000000000..5b133fd6fa --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.translateNoResult @@ -0,0 +1,135 @@ + + + + + messages.translateNoResult + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.translateNoResult

+ +

No translation is available

+

+ +
+
messages.translateNoResult#67ca4737 = messages.TranslatedText;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.TranslatedText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.translateResultText b/data/web/blogfork.telegram.org/constructor/messages.translateResultText new file mode 100644 index 0000000000..33424009cf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.translateResultText @@ -0,0 +1,150 @@ + + + + + messages.translateResultText + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.translateResultText

+ +

Translated text

+

+ +
+
messages.translateResultText#a214f7d0 text:string = messages.TranslatedText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textstringTranslated text
+

Type

+

messages.TranslatedText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/messages.votesList b/data/web/blogfork.telegram.org/constructor/messages.votesList new file mode 100644 index 0000000000..194bd38493 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/messages.votesList @@ -0,0 +1,173 @@ + + + + + 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/web/blogfork.telegram.org/constructor/nearestDc.html b/data/web/blogfork.telegram.org/constructor/nearestDc.html new file mode 100644 index 0000000000..5ecc614156 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/nearestDc.html @@ -0,0 +1,160 @@ + + + + + nearestDc + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

nearestDc

+ +

Nearest data center, 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 center
nearest_dcintNumber of nearest data center
+

Type

+

NearestDc

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/notifyBroadcasts.html b/data/web/blogfork.telegram.org/constructor/notifyBroadcasts.html new file mode 100644 index 0000000000..23ad079c12 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/notifyBroadcasts.html @@ -0,0 +1,135 @@ + + + + + notifyBroadcasts + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

notifyBroadcasts

+ +

Channel notification settings

+

+ +
+
notifyBroadcasts#d612e8ef = NotifyPeer;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

NotifyPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/notifyChats.html b/data/web/blogfork.telegram.org/constructor/notifyChats.html new file mode 100644 index 0000000000..0c0859efa2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/notifyChats.html @@ -0,0 +1,135 @@ + + + + + notifyChats + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

notifyChats

+ +

Notifications generated by all groups.

+

+ +
+
notifyChats#c007cec3 = NotifyPeer;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

NotifyPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/notifyPeer.html b/data/web/blogfork.telegram.org/constructor/notifyPeer.html new file mode 100644 index 0000000000..fd5b0f406e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/notifyPeer.html @@ -0,0 +1,150 @@ + + + + + notifyPeer + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

notifyPeer

+ +

Notifications generated by a certain user or group.

+

+ +
+
notifyPeer#9fd40bd8 peer:Peer = NotifyPeer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerPeeruser or group
+

Type

+

NotifyPeer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/notifyUsers.html b/data/web/blogfork.telegram.org/constructor/notifyUsers.html new file mode 100644 index 0000000000..77b3be8952 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/notifyUsers.html @@ -0,0 +1,135 @@ + + + + + notifyUsers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

notifyUsers

+ +

Notifications generated by all users.

+

+ +
+
notifyUsers#b4c83b4c = NotifyPeer;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

NotifyPeer

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

null

+ +

Corresponds to an arbitrary empty object.

+

+ +
+
null#56730bcc = Null;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Null

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/page.html b/data/web/blogfork.telegram.org/constructor/page.html new file mode 100644 index 0000000000..97d714c388 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/page.html @@ -0,0 +1,193 @@ + + + + + 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?intView count
+

Type

+

Page

+

Related pages

+

messages.getWebPagePreview

+

Get preview of webpage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockAnchor.html b/data/web/blogfork.telegram.org/constructor/pageBlockAnchor.html new file mode 100644 index 0000000000..bcc6759c2b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockAnchor.html @@ -0,0 +1,150 @@ + + + + + pageBlockAnchor + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockAnchor

+ +

Link to section within the page itself (like <a href="#target">anchor</a>)

+

+ +
+
pageBlockAnchor#ce0d37b0 name:string = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
namestringName of target section
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockAudio.html b/data/web/blogfork.telegram.org/constructor/pageBlockAudio.html new file mode 100644 index 0000000000..bd48be6a71 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockAudio.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageBlockAuthorDate.html b/data/web/blogfork.telegram.org/constructor/pageBlockAuthorDate.html new file mode 100644 index 0000000000..cb2d2d0664 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockAuthorDate.html @@ -0,0 +1,155 @@ + + + + + pageBlockAuthorDate + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockAuthorDate

+ +

Author and date of creation of article

+

+ +
+
pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
authorRichTextAuthor name
published_dateintDate of publication
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockBlockquote.html b/data/web/blogfork.telegram.org/constructor/pageBlockBlockquote.html new file mode 100644 index 0000000000..78ce7bf3c4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockBlockquote.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageBlockChannel.html b/data/web/blogfork.telegram.org/constructor/pageBlockChannel.html new file mode 100644 index 0000000000..ce2431d21a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockChannel.html @@ -0,0 +1,150 @@ + + + + + pageBlockChannel + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockChannel

+ +

Reference to a telegram channel

+

+ +
+
pageBlockChannel#ef1751b5 channel:Chat = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
channelChatThe channel/supergroup/chat
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockCollage.html b/data/web/blogfork.telegram.org/constructor/pageBlockCollage.html new file mode 100644 index 0000000000..87cc48914f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockCollage.html @@ -0,0 +1,155 @@ + + + + + pageBlockCollage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockCollage

+ +

Collage of media

+

+ +
+
pageBlockCollage#65a0fa4d items:Vector<PageBlock> caption:PageCaption = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
itemsVector<PageBlock>Media elements
captionPageCaptionCaption
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockCover.html b/data/web/blogfork.telegram.org/constructor/pageBlockCover.html new file mode 100644 index 0000000000..ceca3ef0e8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockCover.html @@ -0,0 +1,150 @@ + + + + + pageBlockCover + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockCover

+ +

A page cover

+

+ +
+
pageBlockCover#39f23300 cover:PageBlock = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
coverPageBlockCover
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockDetails.html b/data/web/blogfork.telegram.org/constructor/pageBlockDetails.html new file mode 100644 index 0000000000..df1479c350 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockDetails.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageBlockDivider.html b/data/web/blogfork.telegram.org/constructor/pageBlockDivider.html new file mode 100644 index 0000000000..9f2eb62d52 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockDivider.html @@ -0,0 +1,135 @@ + + + + + pageBlockDivider + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockDivider

+ +

An empty block separating a page

+

+ +
+
pageBlockDivider#db20b188 = PageBlock;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockEmbed.html b/data/web/blogfork.telegram.org/constructor/pageBlockEmbed.html new file mode 100644 index 0000000000..637e10d593 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockEmbed.html @@ -0,0 +1,190 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageBlockEmbedPost.html b/data/web/blogfork.telegram.org/constructor/pageBlockEmbedPost.html new file mode 100644 index 0000000000..13b885e74f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockEmbedPost.html @@ -0,0 +1,180 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageBlockFooter.html b/data/web/blogfork.telegram.org/constructor/pageBlockFooter.html new file mode 100644 index 0000000000..f35972b831 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockFooter.html @@ -0,0 +1,150 @@ + + + + + pageBlockFooter + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockFooter

+ +

Page footer

+

+ +
+
pageBlockFooter#48870999 text:RichText = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextContents
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockHeader.html b/data/web/blogfork.telegram.org/constructor/pageBlockHeader.html new file mode 100644 index 0000000000..c3d7a8dc76 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockHeader.html @@ -0,0 +1,150 @@ + + + + + pageBlockHeader + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockHeader

+ +

Page header

+

+ +
+
pageBlockHeader#bfd064ec text:RichText = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextContents
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockKicker.html b/data/web/blogfork.telegram.org/constructor/pageBlockKicker.html new file mode 100644 index 0000000000..38fedf0871 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockKicker.html @@ -0,0 +1,150 @@ + + + + + pageBlockKicker + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockKicker

+ +

Kicker

+

+ +
+
pageBlockKicker#1e148390 text:RichText = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextContents
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockList.html b/data/web/blogfork.telegram.org/constructor/pageBlockList.html new file mode 100644 index 0000000000..f44348cedd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockList.html @@ -0,0 +1,150 @@ + + + + + pageBlockList + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockList

+ +

Unordered list of IV blocks

+

+ +
+
pageBlockList#e4e88011 items:Vector<PageListItem> = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
itemsVector<PageListItem>List of blocks in an IV page
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockMap.html b/data/web/blogfork.telegram.org/constructor/pageBlockMap.html new file mode 100644 index 0000000000..b44e70bb7f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockMap.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageBlockOrderedList.html b/data/web/blogfork.telegram.org/constructor/pageBlockOrderedList.html new file mode 100644 index 0000000000..ea6c4fd2b9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockOrderedList.html @@ -0,0 +1,150 @@ + + + + + pageBlockOrderedList + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockOrderedList

+ +

Ordered list of IV blocks

+

+ +
+
pageBlockOrderedList#9a8ae1e1 items:Vector<PageListOrderedItem> = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
itemsVector<PageListOrderedItem>List items
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockParagraph.html b/data/web/blogfork.telegram.org/constructor/pageBlockParagraph.html new file mode 100644 index 0000000000..c9e8a6cf4b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockParagraph.html @@ -0,0 +1,150 @@ + + + + + pageBlockParagraph + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockParagraph

+ +

A paragraph

+

+ +
+
pageBlockParagraph#467a0766 text:RichText = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockPhoto.html b/data/web/blogfork.telegram.org/constructor/pageBlockPhoto.html new file mode 100644 index 0000000000..8ee85310da --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockPhoto.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageBlockPreformatted.html b/data/web/blogfork.telegram.org/constructor/pageBlockPreformatted.html new file mode 100644 index 0000000000..42355160aa --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockPreformatted.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageBlockPullquote.html b/data/web/blogfork.telegram.org/constructor/pageBlockPullquote.html new file mode 100644 index 0000000000..39d744eacb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockPullquote.html @@ -0,0 +1,155 @@ + + + + + pageBlockPullquote + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockPullquote

+ +

Pullquote

+

+ +
+
pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
captionRichTextCaption
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockRelatedArticles.html b/data/web/blogfork.telegram.org/constructor/pageBlockRelatedArticles.html new file mode 100644 index 0000000000..f11ca46830 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockRelatedArticles.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageBlockSlideshow.html b/data/web/blogfork.telegram.org/constructor/pageBlockSlideshow.html new file mode 100644 index 0000000000..8299533c6e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockSlideshow.html @@ -0,0 +1,155 @@ + + + + + pageBlockSlideshow + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockSlideshow

+ +

Slideshow

+

+ +
+
pageBlockSlideshow#31f9590 items:Vector<PageBlock> caption:PageCaption = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
itemsVector<PageBlock>Slideshow items
captionPageCaptionCaption
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockSubheader.html b/data/web/blogfork.telegram.org/constructor/pageBlockSubheader.html new file mode 100644 index 0000000000..c02481e81d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockSubheader.html @@ -0,0 +1,150 @@ + + + + + pageBlockSubheader + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockSubheader

+ +

Subheader

+

+ +
+
pageBlockSubheader#f12bb6e1 text:RichText = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextSubheader
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockSubtitle.html b/data/web/blogfork.telegram.org/constructor/pageBlockSubtitle.html new file mode 100644 index 0000000000..4115dfc0ba --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockSubtitle.html @@ -0,0 +1,150 @@ + + + + + pageBlockSubtitle + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockSubtitle

+ +

Subtitle

+

+ +
+
pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockTable.html b/data/web/blogfork.telegram.org/constructor/pageBlockTable.html new file mode 100644 index 0000000000..f2e5ae94ce --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockTable.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageBlockTitle.html b/data/web/blogfork.telegram.org/constructor/pageBlockTitle.html new file mode 100644 index 0000000000..36b3b0f31c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockTitle.html @@ -0,0 +1,150 @@ + + + + + pageBlockTitle + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockTitle

+ +

Title

+

+ +
+
pageBlockTitle#70abc3fd text:RichText = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextTitle
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockUnsupported.html b/data/web/blogfork.telegram.org/constructor/pageBlockUnsupported.html new file mode 100644 index 0000000000..8e1fe3102c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockUnsupported.html @@ -0,0 +1,135 @@ + + + + + pageBlockUnsupported + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockUnsupported

+ +

Unsupported IV element

+

+ +
+
pageBlockUnsupported#13567e8a = PageBlock;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageBlockVideo.html b/data/web/blogfork.telegram.org/constructor/pageBlockVideo.html new file mode 100644 index 0000000000..94df7f83c3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageBlockVideo.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageCaption.html b/data/web/blogfork.telegram.org/constructor/pageCaption.html new file mode 100644 index 0000000000..a21bd3eee7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageCaption.html @@ -0,0 +1,155 @@ + + + + + pageCaption + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageCaption

+ +

Page caption

+

+ +
+
pageCaption#6f747657 text:RichText credit:RichText = PageCaption;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextCaption
creditRichTextCredits
+

Type

+

PageCaption

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageListItemBlocks.html b/data/web/blogfork.telegram.org/constructor/pageListItemBlocks.html new file mode 100644 index 0000000000..fd6712afa6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageListItemBlocks.html @@ -0,0 +1,150 @@ + + + + + pageListItemBlocks + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageListItemBlocks

+ +

List item

+

+ +
+
pageListItemBlocks#25e073fc blocks:Vector<PageBlock> = PageListItem;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
blocksVector<PageBlock>Blocks
+

Type

+

PageListItem

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageListItemText.html b/data/web/blogfork.telegram.org/constructor/pageListItemText.html new file mode 100644 index 0000000000..543eac94e5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageListItemText.html @@ -0,0 +1,150 @@ + + + + + pageListItemText + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageListItemText

+ +

List item

+

+ +
+
pageListItemText#b92fb6cd text:RichText = PageListItem;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
+

Type

+

PageListItem

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageListOrderedItemBlocks.html b/data/web/blogfork.telegram.org/constructor/pageListOrderedItemBlocks.html new file mode 100644 index 0000000000..32e23b65ab --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageListOrderedItemBlocks.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageListOrderedItemText.html b/data/web/blogfork.telegram.org/constructor/pageListOrderedItemText.html new file mode 100644 index 0000000000..d291e247f8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageListOrderedItemText.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pageRelatedArticle.html b/data/web/blogfork.telegram.org/constructor/pageRelatedArticle.html new file mode 100644 index 0000000000..8747b3982f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageRelatedArticle.html @@ -0,0 +1,185 @@ + + + + + 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 publication
+

Type

+

PageRelatedArticle

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/pageTableCell.html b/data/web/blogfork.telegram.org/constructor/pageTableCell.html new file mode 100644 index 0000000000..a4498a1999 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageTableCell.html @@ -0,0 +1,190 @@ + + + + + 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-aligned 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/web/blogfork.telegram.org/constructor/pageTableRow.html b/data/web/blogfork.telegram.org/constructor/pageTableRow.html new file mode 100644 index 0000000000..b104e8c59e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pageTableRow.html @@ -0,0 +1,150 @@ + + + + + pageTableRow + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pageTableRow

+ +

Table row

+

+ +
+
pageTableRow#e0c0c5e5 cells:Vector<PageTableCell> = PageTableRow;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
cellsVector<PageTableCell>Table cells
+

Type

+

PageTableRow

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.html b/data/web/blogfork.telegram.org/constructor/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.html new file mode 100644 index 0000000000..135c2909dd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.html @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/passwordKdfAlgoUnknown.html b/data/web/blogfork.telegram.org/constructor/passwordKdfAlgoUnknown.html new file mode 100644 index 0000000000..f5bdd2ef87 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/passwordKdfAlgoUnknown.html @@ -0,0 +1,135 @@ + + + + + passwordKdfAlgoUnknown + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

passwordKdfAlgoUnknown

+ +

Unknown KDF (most likely, the client is outdated and does not support the specified KDF algorithm)

+

+ +
+
passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PasswordKdfAlgo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/paymentCharge.html b/data/web/blogfork.telegram.org/constructor/paymentCharge.html new file mode 100644 index 0000000000..bcec1321b9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/paymentCharge.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/paymentRequestedInfo.html b/data/web/blogfork.telegram.org/constructor/paymentRequestedInfo.html new file mode 100644 index 0000000000..d94fcc4d15 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/paymentRequestedInfo.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/paymentSavedCredentialsCard.html b/data/web/blogfork.telegram.org/constructor/paymentSavedCredentialsCard.html new file mode 100644 index 0000000000..ba5b80febc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/paymentSavedCredentialsCard.html @@ -0,0 +1,155 @@ + + + + + paymentSavedCredentialsCard + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

paymentSavedCredentialsCard

+ +

Saved credit card

+

+ +
+
paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idstringCard ID
titlestringTitle
+

Type

+

PaymentSavedCredentials

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/payments.ValidatedRequestedInfo b/data/web/blogfork.telegram.org/constructor/payments.ValidatedRequestedInfo new file mode 100644 index 0000000000..e3b92b6796 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/payments.ValidatedRequestedInfo @@ -0,0 +1,160 @@ + + + + + payments.ValidatedRequestedInfo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.ValidatedRequestedInfo

+ +

Validated user-provided info

+

+ +
+
payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = payments.ValidatedRequestedInfo;

+

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/web/blogfork.telegram.org/constructor/payments.bankCardData b/data/web/blogfork.telegram.org/constructor/payments.bankCardData new file mode 100644 index 0000000000..6fa1f7ae15 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/payments.bankCardData @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/payments.paymentForm b/data/web/blogfork.telegram.org/constructor/payments.paymentForm new file mode 100644 index 0000000000..75398adacd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/payments.paymentForm @@ -0,0 +1,213 @@ + + + + + payments.paymentForm + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.paymentForm

+ +

Payment form

+

+ +
+
payments.paymentForm#1694761b flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long invoice:Invoice provider_id:long 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)
form_idlongForm ID
bot_idlongBot ID
invoiceInvoiceInvoice
provider_idlongPayment 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:

- apple_pay_merchant_id: Apple Pay merchant ID
- google_pay_public_key: Google Pay public key
- 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/web/blogfork.telegram.org/constructor/payments.paymentReceipt b/data/web/blogfork.telegram.org/constructor/payments.paymentReceipt new file mode 100644 index 0000000000..9b89976b5c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/payments.paymentReceipt @@ -0,0 +1,222 @@ + + + + + payments.paymentReceipt + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.paymentReceipt

+ +

Receipt

+

+ +
+
payments.paymentReceipt#70c4fe03 flags:# date:int bot_id:long provider_id:long title:string description:string photo:flags.2?WebDocument invoice:Invoice info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption tip_amount:flags.3?long 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_idlongBot ID
provider_idlongProvider ID
titlestringTitle
descriptionstringDescription
photoflags.2?WebDocumentPhoto
invoiceInvoiceInvoice
infoflags.0?PaymentRequestedInfoInfo
shippingflags.1?ShippingOptionSelected shipping option
tip_amountflags.3?longTipped amount
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/web/blogfork.telegram.org/constructor/payments.paymentResult b/data/web/blogfork.telegram.org/constructor/payments.paymentResult new file mode 100644 index 0000000000..18e85c442a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/payments.paymentResult @@ -0,0 +1,150 @@ + + + + + payments.paymentResult + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

payments.paymentResult

+ +

Payment result

+

+ +
+
payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
updatesUpdatesInfo about the payment
+

Type

+

payments.PaymentResult

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/payments.paymentVerificationNeeded b/data/web/blogfork.telegram.org/constructor/payments.paymentVerificationNeeded new file mode 100644 index 0000000000..830b5bd035 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/payments.paymentVerificationNeeded @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/payments.savedInfo b/data/web/blogfork.telegram.org/constructor/payments.savedInfo new file mode 100644 index 0000000000..73b6136524 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/payments.savedInfo @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/peerBlocked.html b/data/web/blogfork.telegram.org/constructor/peerBlocked.html new file mode 100644 index 0000000000..e0b5aeb36d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/peerBlocked.html @@ -0,0 +1,155 @@ + + + + + peerBlocked + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

peerBlocked

+ +

Information about a blocked peer

+

+ +
+
peerBlocked#e8fd8014 peer_id:Peer date:int = PeerBlocked;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peer_idPeerPeer ID
dateintWhen was the peer blocked
+

Type

+

PeerBlocked

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/peerChannel.html b/data/web/blogfork.telegram.org/constructor/peerChannel.html new file mode 100644 index 0000000000..f68f99bb87 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/peerChannel.html @@ -0,0 +1,150 @@ + + + + + peerChannel + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

peerChannel

+ +

Channel/supergroup

+

+ +
+
peerChannel#a2a5371e channel_id:long = Peer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
channel_idlongChannel ID
+

Type

+

Peer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/peerChat.html b/data/web/blogfork.telegram.org/constructor/peerChat.html new file mode 100644 index 0000000000..366799faa0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/peerChat.html @@ -0,0 +1,150 @@ + + + + + peerChat + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

peerChat

+ +

Group.

+

+ +
+
peerChat#36c6019a chat_id:long = Peer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chat_idlongGroup identifier
+

Type

+

Peer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/peerLocated.html b/data/web/blogfork.telegram.org/constructor/peerLocated.html new file mode 100644 index 0000000000..7f2fdb8621 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/peerLocated.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/peerNotifySettings.html b/data/web/blogfork.telegram.org/constructor/peerNotifySettings.html new file mode 100644 index 0000000000..47dbc5830b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/peerNotifySettings.html @@ -0,0 +1,185 @@ + + + + + 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/web/blogfork.telegram.org/constructor/peerSelfLocated.html b/data/web/blogfork.telegram.org/constructor/peerSelfLocated.html new file mode 100644 index 0000000000..2710a4ce43 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/peerSelfLocated.html @@ -0,0 +1,150 @@ + + + + + peerSelfLocated + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

peerSelfLocated

+ +

Current peer

+

+ +
+
peerSelfLocated#f8ec284b expires:int = PeerLocated;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
expiresintExpiry of geolocation info for current peer
+

Type

+

PeerLocated

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/peerSettings.html b/data/web/blogfork.telegram.org/constructor/peerSettings.html new file mode 100644 index 0000000000..eb06f0f92e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/peerSettings.html @@ -0,0 +1,215 @@ + + + + + peerSettings + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

peerSettings

+ +

List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat bar

+

+ +
+
peerSettings#a518110d 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 request_chat_broadcast:flags.10?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?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 as irrelevant for this location
autoarchivedflags.7?trueWhether this peer was automatically archived according to privacy settings and can be unarchived
invite_membersflags.8?trueIf set, this is a recently created group chat to which new members can be invited
request_chat_broadcastflags.10?trueThis flag is set if request_chat_title and request_chat_date fields are set and the join request » is related to a channel (otherwise if only the request fields are set, the join request » is related to a chat).
geo_distanceflags.6?intDistance in meters between us and this peer
request_chat_titleflags.9?stringIf set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the chat/channel's title.
request_chat_dateflags.9?intIf set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the timestamp when the join request » was sent.
+

Type

+

PeerSettings

+

Related pages

+

globalPrivacySettings

+

Global privacy settings

+

Invites

+

Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/peerUser.html b/data/web/blogfork.telegram.org/constructor/peerUser.html new file mode 100644 index 0000000000..1cd7b8a1b2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/peerUser.html @@ -0,0 +1,150 @@ + + + + + peerUser + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

peerUser

+ +

Chat partner

+

+ +
+
peerUser#59511722 user_id:long = Peer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser identifier
+

Type

+

Peer

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phone.exportedGroupCallInvite b/data/web/blogfork.telegram.org/constructor/phone.exportedGroupCallInvite new file mode 100644 index 0000000000..feda674c8d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phone.exportedGroupCallInvite @@ -0,0 +1,150 @@ + + + + + phone.exportedGroupCallInvite + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.exportedGroupCallInvite

+ +

An invite to a group call or livestream

+

+ +
+
phone.exportedGroupCallInvite#204bd158 link:string = phone.ExportedGroupCallInvite;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
linkstringInvite link
+

Type

+

phone.ExportedGroupCallInvite

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phone.groupCall b/data/web/blogfork.telegram.org/constructor/phone.groupCall new file mode 100644 index 0000000000..5256f1543c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phone.groupCall @@ -0,0 +1,173 @@ + + + + + phone.groupCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.groupCall

+ +

Contains info about a group call, and partial info about its participants.

+

+ +
+
phone.groupCall#9e727aad call:GroupCall participants:Vector<GroupCallParticipant> participants_next_offset:string chats:Vector<Chat> users:Vector<User> = phone.GroupCall;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
callGroupCallInfo about the group call
participantsVector<GroupCallParticipant>A partial list of participants.
participants_next_offsetstringNext offset to use when fetching the remaining participants using phone.getGroupParticipants
chatsVector<Chat>Chats mentioned in the participants vector
usersVector<User>Users mentioned in the participants vector
+

Type

+

phone.GroupCall

+

Related pages

+

phone.getGroupParticipants

+

Get group call participants

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phone.groupCallStreamChannels b/data/web/blogfork.telegram.org/constructor/phone.groupCallStreamChannels new file mode 100644 index 0000000000..cc50c662d4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phone.groupCallStreamChannels @@ -0,0 +1,150 @@ + + + + + phone.groupCallStreamChannels + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.groupCallStreamChannels

+ +

Info about RTMP streams in a group call or livestream

+

+ +
+
phone.groupCallStreamChannels#d0e482b2 channels:Vector<GroupCallStreamChannel> = phone.GroupCallStreamChannels;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
channelsVector<GroupCallStreamChannel>RTMP streams
+

Type

+

phone.GroupCallStreamChannels

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phone.groupCallStreamRtmpUrl b/data/web/blogfork.telegram.org/constructor/phone.groupCallStreamRtmpUrl new file mode 100644 index 0000000000..e9febdcce9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phone.groupCallStreamRtmpUrl @@ -0,0 +1,155 @@ + + + + + phone.groupCallStreamRtmpUrl + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.groupCallStreamRtmpUrl

+ +

RTMP URL and stream key to be used in streaming software

+

+ +
+
phone.groupCallStreamRtmpUrl#2dbf3432 url:string key:string = phone.GroupCallStreamRtmpUrl;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringRTMP URL
keystringStream key
+

Type

+

phone.GroupCallStreamRtmpUrl

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phone.groupParticipants b/data/web/blogfork.telegram.org/constructor/phone.groupParticipants new file mode 100644 index 0000000000..2f98bd7f1e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phone.groupParticipants @@ -0,0 +1,178 @@ + + + + + phone.groupParticipants + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.groupParticipants

+ +

Info about the participants of a group call or livestream

+

+ +
+
phone.groupParticipants#f47751b6 count:int participants:Vector<GroupCallParticipant> next_offset:string chats:Vector<Chat> users:Vector<User> version:int = phone.GroupParticipants;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countintNumber of participants
participantsVector<GroupCallParticipant>List of participants
next_offsetstringIf not empty, the specified list of participants is partial, and more participants can be fetched specifying this parameter as offset in phone.getGroupParticipants.
chatsVector<Chat>Mentioned chats
usersVector<User>Mentioned users
versionintVersion info
+

Type

+

phone.GroupParticipants

+

Related pages

+

phone.getGroupParticipants

+

Get group call participants

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phone.joinAsPeers b/data/web/blogfork.telegram.org/constructor/phone.joinAsPeers new file mode 100644 index 0000000000..f39998406f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phone.joinAsPeers @@ -0,0 +1,160 @@ + + + + + phone.joinAsPeers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phone.joinAsPeers

+ +

A list of peers that can be used to join a group call, presenting yourself as a specific user/channel.

+

+ +
+
phone.joinAsPeers#afe5623f peers:Vector<Peer> chats:Vector<Chat> users:Vector<User> = phone.JoinAsPeers;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peersVector<Peer>Peers
chatsVector<Chat>Chats mentioned in the peers vector
usersVector<User>Users mentioned in the peers vector
+

Type

+

phone.JoinAsPeers

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phone.phoneCall b/data/web/blogfork.telegram.org/constructor/phone.phoneCall new file mode 100644 index 0000000000..27bb686c83 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phone.phoneCall @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/phoneCall.html b/data/web/blogfork.telegram.org/constructor/phoneCall.html new file mode 100644 index 0000000000..e104b4c73c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneCall.html @@ -0,0 +1,212 @@ + + + + + phoneCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCall

+ +

Phone call

+

+ +
+
phoneCall#967f7c67 flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long 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_idlongUser ID of the creator of the call
participant_idlongUser 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/web/blogfork.telegram.org/constructor/phoneCallAccepted.html b/data/web/blogfork.telegram.org/constructor/phoneCallAccepted.html new file mode 100644 index 0000000000..21152e55d6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneCallAccepted.html @@ -0,0 +1,192 @@ + + + + + phoneCallAccepted + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallAccepted

+ +

An accepted phone call

+

+ +
+
phoneCallAccepted#3660c311 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long 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_idlongID of the call creator
participant_idlongID 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/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonBusy.html b/data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonBusy.html new file mode 100644 index 0000000000..a57c43e1c3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonBusy.html @@ -0,0 +1,135 @@ + + + + + phoneCallDiscardReasonBusy + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallDiscardReasonBusy

+ +

The phone call was discarded because the user is busy in another call

+

+ +
+
phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PhoneCallDiscardReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonDisconnect.html b/data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonDisconnect.html new file mode 100644 index 0000000000..5cb46005a7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonDisconnect.html @@ -0,0 +1,135 @@ + + + + + phoneCallDiscardReasonDisconnect + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallDiscardReasonDisconnect

+ +

The phone call was disconnected

+

+ +
+
phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PhoneCallDiscardReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonHangup.html b/data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonHangup.html new file mode 100644 index 0000000000..44171185b3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonHangup.html @@ -0,0 +1,135 @@ + + + + + phoneCallDiscardReasonHangup + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallDiscardReasonHangup

+ +

The phone call was ended normally

+

+ +
+
phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PhoneCallDiscardReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonMissed.html b/data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonMissed.html new file mode 100644 index 0000000000..4276ecfee9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneCallDiscardReasonMissed.html @@ -0,0 +1,135 @@ + + + + + phoneCallDiscardReasonMissed + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallDiscardReasonMissed

+ +

The phone call was missed

+

+ +
+
phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PhoneCallDiscardReason

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phoneCallDiscarded.html b/data/web/blogfork.telegram.org/constructor/phoneCallDiscarded.html new file mode 100644 index 0000000000..afc0d3332f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneCallDiscarded.html @@ -0,0 +1,185 @@ + + + + + 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/web/blogfork.telegram.org/constructor/phoneCallEmpty.html b/data/web/blogfork.telegram.org/constructor/phoneCallEmpty.html new file mode 100644 index 0000000000..3d07a91683 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneCallEmpty.html @@ -0,0 +1,150 @@ + + + + + phoneCallEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallEmpty

+ +

Empty constructor

+

+ +
+
phoneCallEmpty#5366c915 id:long = PhoneCall;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idlongCall ID
+

Type

+

PhoneCall

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phoneCallProtocol.html b/data/web/blogfork.telegram.org/constructor/phoneCallProtocol.html new file mode 100644 index 0000000000..fe537e3ae9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneCallProtocol.html @@ -0,0 +1,182 @@ + + + + + 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/web/blogfork.telegram.org/constructor/phoneCallRequested.html b/data/web/blogfork.telegram.org/constructor/phoneCallRequested.html new file mode 100644 index 0000000000..5a3d4dbefe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneCallRequested.html @@ -0,0 +1,192 @@ + + + + + phoneCallRequested + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallRequested

+ +

Requested phone call

+

+ +
+
phoneCallRequested#14b0ed0c flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long 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_idlongID of the creator of the phone call
participant_idlongID 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/web/blogfork.telegram.org/constructor/phoneCallWaiting.html b/data/web/blogfork.telegram.org/constructor/phoneCallWaiting.html new file mode 100644 index 0000000000..541825ec8c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneCallWaiting.html @@ -0,0 +1,190 @@ + + + + + phoneCallWaiting + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

phoneCallWaiting

+ +

Incoming phone call

+

+ +
+
phoneCallWaiting#c5226f17 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long 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_idlongAdmin ID
participant_idlongParticipant ID
protocolPhoneCallProtocolPhone call protocol info
receive_dateflags.0?intWhen was the phone call received
+

Type

+

PhoneCall

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/phoneConnection.html b/data/web/blogfork.telegram.org/constructor/phoneConnection.html new file mode 100644 index 0000000000..44bd229389 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneConnection.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/phoneConnectionWebrtc.html b/data/web/blogfork.telegram.org/constructor/phoneConnectionWebrtc.html new file mode 100644 index 0000000000..856276d14a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/phoneConnectionWebrtc.html @@ -0,0 +1,190 @@ + + + + + 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/web/blogfork.telegram.org/constructor/photo.html b/data/web/blogfork.telegram.org/constructor/photo.html new file mode 100644 index 0000000000..6a9a0bba1d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/photo.html @@ -0,0 +1,195 @@ + + + + + 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/web/blogfork.telegram.org/constructor/photoCachedSize.html b/data/web/blogfork.telegram.org/constructor/photoCachedSize.html new file mode 100644 index 0000000000..57e80063df --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/photoCachedSize.html @@ -0,0 +1,170 @@ + + + + + photoCachedSize + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

photoCachedSize

+ +

Description of an image and its content.

+

+ +
+
photoCachedSize#21e1ad6 type:string w:int h:int bytes:bytes = PhotoSize;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typestringThumbnail type
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/web/blogfork.telegram.org/constructor/photoEmpty.html b/data/web/blogfork.telegram.org/constructor/photoEmpty.html new file mode 100644 index 0000000000..6299ec7786 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/photoEmpty.html @@ -0,0 +1,150 @@ + + + + + photoEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

photoEmpty

+ +

Empty constructor, non-existent photo

+

+ +
+
photoEmpty#2331b22d id:long = Photo;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idlongPhoto identifier
+

Type

+

Photo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/photoPathSize.html b/data/web/blogfork.telegram.org/constructor/photoPathSize.html new file mode 100644 index 0000000000..c16d6993fd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/photoPathSize.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/photoSize.html b/data/web/blogfork.telegram.org/constructor/photoSize.html new file mode 100644 index 0000000000..aa36df8334 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/photoSize.html @@ -0,0 +1,170 @@ + + + + + photoSize + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

photoSize

+ +

Image description.

+

+ +
+
photoSize#75c78e60 type:string w:int h:int size:int = PhotoSize;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typestringThumbnail type
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/web/blogfork.telegram.org/constructor/photoSizeEmpty.html b/data/web/blogfork.telegram.org/constructor/photoSizeEmpty.html new file mode 100644 index 0000000000..88d3a98bbb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/photoSizeEmpty.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/photoSizeProgressive.html b/data/web/blogfork.telegram.org/constructor/photoSizeProgressive.html new file mode 100644 index 0000000000..7585ebb43d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/photoSizeProgressive.html @@ -0,0 +1,170 @@ + + + + + photoSizeProgressive + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

photoSizeProgressive

+ +

Progressively encoded photosize

+

+ +
+
photoSizeProgressive#fa3efb95 type:string w:int h:int sizes:Vector<int> = PhotoSize;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typestringPhotosize type
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/web/blogfork.telegram.org/constructor/photoStrippedSize.html b/data/web/blogfork.telegram.org/constructor/photoStrippedSize.html new file mode 100644 index 0000000000..b4091a9472 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/photoStrippedSize.html @@ -0,0 +1,162 @@ + + + + + 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/web/blogfork.telegram.org/constructor/photos.photo b/data/web/blogfork.telegram.org/constructor/photos.photo new file mode 100644 index 0000000000..d59961859c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/photos.photo @@ -0,0 +1,155 @@ + + + + + photos.photo + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

photos.photo

+ +

Photo with auxiliary data.

+

+ +
+
photos.photo#20212ca8 photo:Photo users:Vector<User> = photos.Photo;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
photoPhotoPhoto
usersVector<User>Users
+

Type

+

photos.Photo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/photos.photos b/data/web/blogfork.telegram.org/constructor/photos.photos new file mode 100644 index 0000000000..c866b68e0e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/photos.photos @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/photos.photosSlice b/data/web/blogfork.telegram.org/constructor/photos.photosSlice new file mode 100644 index 0000000000..eef9b9ca62 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/photos.photosSlice @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/poll.html b/data/web/blogfork.telegram.org/constructor/poll.html new file mode 100644 index 0000000000..85eaf86c5f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/poll.html @@ -0,0 +1,198 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pollAnswer.html b/data/web/blogfork.telegram.org/constructor/pollAnswer.html new file mode 100644 index 0000000000..59af31ca23 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pollAnswer.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/pollAnswerVoters.html b/data/web/blogfork.telegram.org/constructor/pollAnswerVoters.html new file mode 100644 index 0000000000..1d0d0ec894 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pollAnswerVoters.html @@ -0,0 +1,173 @@ + + + + + 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 quizzes, 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/web/blogfork.telegram.org/constructor/pollResults.html b/data/web/blogfork.telegram.org/constructor/pollResults.html new file mode 100644 index 0000000000..7d9f1da5ae --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/pollResults.html @@ -0,0 +1,187 @@ + + + + + pollResults + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

pollResults

+ +

Results of poll

+

+ +
+
pollResults#dcb82ea3 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<long> 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<long>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/web/blogfork.telegram.org/constructor/popularContact.html b/data/web/blogfork.telegram.org/constructor/popularContact.html new file mode 100644 index 0000000000..5bc3edbc49 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/popularContact.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/postAddress.html b/data/web/blogfork.telegram.org/constructor/postAddress.html new file mode 100644 index 0000000000..25943f987a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/postAddress.html @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/privacyKeyAddedByPhone.html b/data/web/blogfork.telegram.org/constructor/privacyKeyAddedByPhone.html new file mode 100644 index 0000000000..bfd71eca97 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyKeyAddedByPhone.html @@ -0,0 +1,135 @@ + + + + + privacyKeyAddedByPhone + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyKeyAddedByPhone

+ +

Whether people can add you to their contact list by your phone number

+

+ +
+
privacyKeyAddedByPhone#42ffd42b = PrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyKeyChatInvite.html b/data/web/blogfork.telegram.org/constructor/privacyKeyChatInvite.html new file mode 100644 index 0000000000..abc009c0b6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyKeyChatInvite.html @@ -0,0 +1,135 @@ + + + + + privacyKeyChatInvite + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyKeyChatInvite

+ +

Whether the user can be invited to chats

+

+ +
+
privacyKeyChatInvite#500e6dfa = PrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyKeyForwards.html b/data/web/blogfork.telegram.org/constructor/privacyKeyForwards.html new file mode 100644 index 0000000000..1423ec54d6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyKeyForwards.html @@ -0,0 +1,135 @@ + + + + + privacyKeyForwards + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyKeyForwards

+ +

Whether messages forwarded from the user will be anonymously forwarded

+

+ +
+
privacyKeyForwards#69ec56a3 = PrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyKeyPhoneCall.html b/data/web/blogfork.telegram.org/constructor/privacyKeyPhoneCall.html new file mode 100644 index 0000000000..b8a31997d6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyKeyPhoneCall.html @@ -0,0 +1,135 @@ + + + + + privacyKeyPhoneCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyKeyPhoneCall

+ +

Whether the user accepts phone calls

+

+ +
+
privacyKeyPhoneCall#3d662b7b = PrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyKeyPhoneNumber.html b/data/web/blogfork.telegram.org/constructor/privacyKeyPhoneNumber.html new file mode 100644 index 0000000000..2fb50bd949 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyKeyPhoneNumber.html @@ -0,0 +1,135 @@ + + + + + privacyKeyPhoneNumber + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyKeyPhoneNumber

+ +

Whether the user allows us to see his phone number

+

+ +
+
privacyKeyPhoneNumber#d19ae46d = PrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyKeyPhoneP2P.html b/data/web/blogfork.telegram.org/constructor/privacyKeyPhoneP2P.html new file mode 100644 index 0000000000..cd496b4458 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyKeyPhoneP2P.html @@ -0,0 +1,135 @@ + + + + + privacyKeyPhoneP2P + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyKeyPhoneP2P

+ +

Whether P2P connections in phone calls are allowed

+

+ +
+
privacyKeyPhoneP2P#39491cc8 = PrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyKeyProfilePhoto.html b/data/web/blogfork.telegram.org/constructor/privacyKeyProfilePhoto.html new file mode 100644 index 0000000000..735d5c53e5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyKeyProfilePhoto.html @@ -0,0 +1,135 @@ + + + + + privacyKeyProfilePhoto + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyKeyProfilePhoto

+ +

Whether the profile picture of the user is visible

+

+ +
+
privacyKeyProfilePhoto#96151fed = PrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyKeyStatusTimestamp.html b/data/web/blogfork.telegram.org/constructor/privacyKeyStatusTimestamp.html new file mode 100644 index 0000000000..b3f0b6da51 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyKeyStatusTimestamp.html @@ -0,0 +1,135 @@ + + + + + privacyKeyStatusTimestamp + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyKeyStatusTimestamp

+ +

Whether we can see the last online timestamp

+

+ +
+
privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyKey

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyValueAllowAll.html b/data/web/blogfork.telegram.org/constructor/privacyValueAllowAll.html new file mode 100644 index 0000000000..78bf885345 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyValueAllowAll.html @@ -0,0 +1,135 @@ + + + + + privacyValueAllowAll + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueAllowAll

+ +

Allow all users

+

+ +
+
privacyValueAllowAll#65427b82 = PrivacyRule;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyValueAllowChatParticipants.html b/data/web/blogfork.telegram.org/constructor/privacyValueAllowChatParticipants.html new file mode 100644 index 0000000000..aff0fbac3c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyValueAllowChatParticipants.html @@ -0,0 +1,150 @@ + + + + + privacyValueAllowChatParticipants + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueAllowChatParticipants

+ +

Allow all participants of certain chats

+

+ +
+
privacyValueAllowChatParticipants#6b134e8e chats:Vector<long> = PrivacyRule;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chatsVector<long>Allowed chats
+

Type

+

PrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyValueAllowContacts.html b/data/web/blogfork.telegram.org/constructor/privacyValueAllowContacts.html new file mode 100644 index 0000000000..e3ee526692 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyValueAllowContacts.html @@ -0,0 +1,135 @@ + + + + + privacyValueAllowContacts + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueAllowContacts

+ +

Allow all contacts

+

+ +
+
privacyValueAllowContacts#fffe1bac = PrivacyRule;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyValueAllowUsers.html b/data/web/blogfork.telegram.org/constructor/privacyValueAllowUsers.html new file mode 100644 index 0000000000..995b888d4c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyValueAllowUsers.html @@ -0,0 +1,150 @@ + + + + + privacyValueAllowUsers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueAllowUsers

+ +

Allow only certain users

+

+ +
+
privacyValueAllowUsers#b8905fb2 users:Vector<long> = PrivacyRule;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
usersVector<long>Allowed users
+

Type

+

PrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyValueDisallowAll.html b/data/web/blogfork.telegram.org/constructor/privacyValueDisallowAll.html new file mode 100644 index 0000000000..a38c9a83b8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyValueDisallowAll.html @@ -0,0 +1,135 @@ + + + + + privacyValueDisallowAll + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueDisallowAll

+ +

Disallow all users

+

+ +
+
privacyValueDisallowAll#8b73e763 = PrivacyRule;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyValueDisallowChatParticipants.html b/data/web/blogfork.telegram.org/constructor/privacyValueDisallowChatParticipants.html new file mode 100644 index 0000000000..be33cdfe5c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyValueDisallowChatParticipants.html @@ -0,0 +1,150 @@ + + + + + privacyValueDisallowChatParticipants + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueDisallowChatParticipants

+ +

Disallow only participants of certain chats

+

+ +
+
privacyValueDisallowChatParticipants#41c87565 chats:Vector<long> = PrivacyRule;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chatsVector<long>Disallowed chats
+

Type

+

PrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyValueDisallowContacts.html b/data/web/blogfork.telegram.org/constructor/privacyValueDisallowContacts.html new file mode 100644 index 0000000000..1d018c0542 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyValueDisallowContacts.html @@ -0,0 +1,135 @@ + + + + + privacyValueDisallowContacts + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueDisallowContacts

+ +

Disallow only contacts

+

+ +
+
privacyValueDisallowContacts#f888fa1a = PrivacyRule;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

PrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/privacyValueDisallowUsers.html b/data/web/blogfork.telegram.org/constructor/privacyValueDisallowUsers.html new file mode 100644 index 0000000000..09b3affaa8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/privacyValueDisallowUsers.html @@ -0,0 +1,150 @@ + + + + + privacyValueDisallowUsers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

privacyValueDisallowUsers

+ +

Disallow only certain users

+

+ +
+
privacyValueDisallowUsers#e4621141 users:Vector<long> = PrivacyRule;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
usersVector<long>Disallowed users
+

Type

+

PrivacyRule

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/reactionCount.html b/data/web/blogfork.telegram.org/constructor/reactionCount.html new file mode 100644 index 0000000000..a36a110b6e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/reactionCount.html @@ -0,0 +1,165 @@ + + + + + reactionCount + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

reactionCount

+ +

Reactions

+

+ +
+
reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
chosenflags.0?trueWhether the current user sent this reaction
reactionstringReaction (a UTF8 emoji)
countintNUmber of users that reacted with this emoji
+

Type

+

ReactionCount

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/receivedNotifyMessage.html b/data/web/blogfork.telegram.org/constructor/receivedNotifyMessage.html new file mode 100644 index 0000000000..45e16de29c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/receivedNotifyMessage.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/recentMeUrlChat.html b/data/web/blogfork.telegram.org/constructor/recentMeUrlChat.html new file mode 100644 index 0000000000..5e622a60b8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/recentMeUrlChat.html @@ -0,0 +1,155 @@ + + + + + recentMeUrlChat + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

recentMeUrlChat

+ +

Recent t.me link to a chat

+

+ +
+
recentMeUrlChat#b2da71d2 url:string chat_id:long = RecentMeUrl;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringt.me URL
chat_idlongChat ID
+

Type

+

RecentMeUrl

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/recentMeUrlChatInvite.html b/data/web/blogfork.telegram.org/constructor/recentMeUrlChatInvite.html new file mode 100644 index 0000000000..7249aef6f9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/recentMeUrlChatInvite.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/recentMeUrlStickerSet.html b/data/web/blogfork.telegram.org/constructor/recentMeUrlStickerSet.html new file mode 100644 index 0000000000..729cd797ef --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/recentMeUrlStickerSet.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/recentMeUrlUnknown.html b/data/web/blogfork.telegram.org/constructor/recentMeUrlUnknown.html new file mode 100644 index 0000000000..319e9d43ca --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/recentMeUrlUnknown.html @@ -0,0 +1,150 @@ + + + + + recentMeUrlUnknown + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

recentMeUrlUnknown

+ +

Unknown t.me url

+

+ +
+
recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
urlstringURL
+

Type

+

RecentMeUrl

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/recentMeUrlUser.html b/data/web/blogfork.telegram.org/constructor/recentMeUrlUser.html new file mode 100644 index 0000000000..a43bf7d4e1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/recentMeUrlUser.html @@ -0,0 +1,155 @@ + + + + + recentMeUrlUser + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

recentMeUrlUser

+ +

Recent t.me link to a user

+

+ +
+
recentMeUrlUser#b92c09e2 url:string user_id:long = RecentMeUrl;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringURL
user_idlongUser ID
+

Type

+

RecentMeUrl

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/replyInlineMarkup.html b/data/web/blogfork.telegram.org/constructor/replyInlineMarkup.html new file mode 100644 index 0000000000..b996370504 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/replyInlineMarkup.html @@ -0,0 +1,150 @@ + + + + + replyInlineMarkup + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

replyInlineMarkup

+ +

Bot or inline keyboard

+

+ +
+
replyInlineMarkup#48a30254 rows:Vector<KeyboardButtonRow> = ReplyMarkup;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
rowsVector<KeyboardButtonRow>Bot or inline keyboard rows
+

Type

+

ReplyMarkup

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/replyKeyboardForceReply.html b/data/web/blogfork.telegram.org/constructor/replyKeyboardForceReply.html new file mode 100644 index 0000000000..235a60d139 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/replyKeyboardForceReply.html @@ -0,0 +1,165 @@ + + + + + replyKeyboardForceReply + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

replyKeyboardForceReply

+ +

Force the user to send a reply

+

+ +
+
replyKeyboardForceReply#86b40b08 flags:# single_use:flags.1?true selective:flags.2?true placeholder:flags.3?string = 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.
placeholderflags.3?stringThe placeholder to be shown in the input field when the keyboard is active; 1-64 characters.
+

Type

+

ReplyMarkup

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/replyKeyboardHide.html b/data/web/blogfork.telegram.org/constructor/replyKeyboardHide.html new file mode 100644 index 0000000000..d68297b268 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/replyKeyboardHide.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/replyKeyboardMarkup.html b/data/web/blogfork.telegram.org/constructor/replyKeyboardMarkup.html new file mode 100644 index 0000000000..6277b5fb38 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/replyKeyboardMarkup.html @@ -0,0 +1,175 @@ + + + + + replyKeyboardMarkup + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

replyKeyboardMarkup

+ +

Bot keyboard

+

+ +
+
replyKeyboardMarkup#85dd99d1 flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector<KeyboardButtonRow> placeholder:flags.3?string = 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
placeholderflags.3?stringThe placeholder to be shown in the input field when the keyboard is active; 1-64 characters.
+

Type

+

ReplyMarkup

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/restrictionReason.html b/data/web/blogfork.telegram.org/constructor/restrictionReason.html new file mode 100644 index 0000000000..f2a0c0dcec --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/restrictionReason.html @@ -0,0 +1,161 @@ + + + + + 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/web/blogfork.telegram.org/constructor/savedPhoneContact.html b/data/web/blogfork.telegram.org/constructor/savedPhoneContact.html new file mode 100644 index 0000000000..b3884d7a84 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/savedPhoneContact.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/searchResultPosition.html b/data/web/blogfork.telegram.org/constructor/searchResultPosition.html new file mode 100644 index 0000000000..61068a55d4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/searchResultPosition.html @@ -0,0 +1,160 @@ + + + + + searchResultPosition + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

searchResultPosition

+ +

Information about a message in a specific position

+

+ +
+
searchResultPosition#7f648b67 msg_id:int date:int offset:int = SearchResultsPosition;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
msg_idintMessage ID
dateintWhen was the message sent
offsetint0-based message position in the full list of suitable messages
+

Type

+

SearchResultsPosition

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/searchResultsCalendarPeriod.html b/data/web/blogfork.telegram.org/constructor/searchResultsCalendarPeriod.html new file mode 100644 index 0000000000..9ef0353464 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/searchResultsCalendarPeriod.html @@ -0,0 +1,169 @@ + + + + + searchResultsCalendarPeriod + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

searchResultsCalendarPeriod

+ +

Information about found messages sent on a specific day, used to split the messages in messages.searchResultsCalendar constructors by days.

+

Multiple searchResultsCalendarPeriod constructors are returned in messages.searchResultsCalendar, each containing information about the first, last and total number of messages matching the filter that were sent on a specific day.

+

+ +
+
searchResultsCalendarPeriod#c9b0539f date:int min_msg_id:int max_msg_id:int count:int = SearchResultsCalendarPeriod;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dateintThe day this object is referring to.
min_msg_idintFirst message ID that was sent on this day.
max_msg_idintLast message ID that was sent on this day.
countintAll messages that were sent on this day.
+

Type

+

SearchResultsCalendarPeriod

+

Related pages

+

messages.searchResultsCalendar

+

Information about found messages sent on a specific day

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureCredentialsEncrypted.html b/data/web/blogfork.telegram.org/constructor/secureCredentialsEncrypted.html new file mode 100644 index 0000000000..133eb53b3a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureCredentialsEncrypted.html @@ -0,0 +1,162 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureData.html b/data/web/blogfork.telegram.org/constructor/secureData.html new file mode 100644 index 0000000000..798d489d65 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureData.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureFile.html b/data/web/blogfork.telegram.org/constructor/secureFile.html new file mode 100644 index 0000000000..6a9f9efe6d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureFile.html @@ -0,0 +1,183 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureFileEmpty.html b/data/web/blogfork.telegram.org/constructor/secureFileEmpty.html new file mode 100644 index 0000000000..831265638d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureFileEmpty.html @@ -0,0 +1,135 @@ + + + + + secureFileEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureFileEmpty

+ +

Empty constructor

+

+ +
+
secureFileEmpty#64199744 = SecureFile;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureFile

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.html b/data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.html new file mode 100644 index 0000000000..0cb982958c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.html @@ -0,0 +1,150 @@ + + + + + securePasswordKdfAlgoPBKDF2HMACSHA512iter100000 + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

securePasswordKdfAlgoPBKDF2HMACSHA512iter100000

+ +

PBKDF2 with SHA512 and 100000 iterations KDF algo

+

+ +
+
securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
saltbytesSalt
+

Type

+

SecurePasswordKdfAlgo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoSHA512.html b/data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoSHA512.html new file mode 100644 index 0000000000..de3dc3a249 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoSHA512.html @@ -0,0 +1,150 @@ + + + + + securePasswordKdfAlgoSHA512 + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

securePasswordKdfAlgoSHA512

+ +

SHA512 KDF algo

+

+ +
+
securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
saltbytesSalt
+

Type

+

SecurePasswordKdfAlgo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoUnknown.html b/data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoUnknown.html new file mode 100644 index 0000000000..86f31ca235 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/securePasswordKdfAlgoUnknown.html @@ -0,0 +1,135 @@ + + + + + securePasswordKdfAlgoUnknown + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

securePasswordKdfAlgoUnknown

+ +

Unknown KDF algo (most likely the client has to be updated)

+

+ +
+
securePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecurePasswordKdfAlgo

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/securePlainEmail.html b/data/web/blogfork.telegram.org/constructor/securePlainEmail.html new file mode 100644 index 0000000000..d3b825f41b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/securePlainEmail.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/securePlainPhone.html b/data/web/blogfork.telegram.org/constructor/securePlainPhone.html new file mode 100644 index 0000000000..4738429cb6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/securePlainPhone.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureRequiredType.html b/data/web/blogfork.telegram.org/constructor/secureRequiredType.html new file mode 100644 index 0000000000..36c662c388 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureRequiredType.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureRequiredTypeOneOf.html b/data/web/blogfork.telegram.org/constructor/secureRequiredTypeOneOf.html new file mode 100644 index 0000000000..0a0ea10f75 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureRequiredTypeOneOf.html @@ -0,0 +1,150 @@ + + + + + secureRequiredTypeOneOf + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureRequiredTypeOneOf

+ +

One of

+

+ +
+
secureRequiredTypeOneOf#27477b4 types:Vector<SecureRequiredType> = SecureRequiredType;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
typesVector<SecureRequiredType>Secure required value types
+

Type

+

SecureRequiredType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureSecretSettings.html b/data/web/blogfork.telegram.org/constructor/secureSecretSettings.html new file mode 100644 index 0000000000..e8ca10b402 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureSecretSettings.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureValue.html b/data/web/blogfork.telegram.org/constructor/secureValue.html new file mode 100644 index 0000000000..a410d36d72 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValue.html @@ -0,0 +1,197 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureValueError.html b/data/web/blogfork.telegram.org/constructor/secureValueError.html new file mode 100644 index 0000000000..c570d4ef7e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueError.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureValueErrorData.html b/data/web/blogfork.telegram.org/constructor/secureValueErrorData.html new file mode 100644 index 0000000000..1121c2d748 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueErrorData.html @@ -0,0 +1,178 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureValueErrorFile.html b/data/web/blogfork.telegram.org/constructor/secureValueErrorFile.html new file mode 100644 index 0000000000..c794d44bda --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueErrorFile.html @@ -0,0 +1,171 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureValueErrorFiles.html b/data/web/blogfork.telegram.org/constructor/secureValueErrorFiles.html new file mode 100644 index 0000000000..72868537e6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueErrorFiles.html @@ -0,0 +1,171 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureValueErrorFrontSide.html b/data/web/blogfork.telegram.org/constructor/secureValueErrorFrontSide.html new file mode 100644 index 0000000000..5c343ac859 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueErrorFrontSide.html @@ -0,0 +1,169 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureValueErrorReverseSide.html b/data/web/blogfork.telegram.org/constructor/secureValueErrorReverseSide.html new file mode 100644 index 0000000000..fcca413486 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueErrorReverseSide.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureValueErrorSelfie.html b/data/web/blogfork.telegram.org/constructor/secureValueErrorSelfie.html new file mode 100644 index 0000000000..e4ff93df6a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueErrorSelfie.html @@ -0,0 +1,169 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureValueErrorTranslationFile.html b/data/web/blogfork.telegram.org/constructor/secureValueErrorTranslationFile.html new file mode 100644 index 0000000000..198aa3ec1d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueErrorTranslationFile.html @@ -0,0 +1,181 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureValueErrorTranslationFiles.html b/data/web/blogfork.telegram.org/constructor/secureValueErrorTranslationFiles.html new file mode 100644 index 0000000000..367d10eb18 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueErrorTranslationFiles.html @@ -0,0 +1,181 @@ + + + + + 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/web/blogfork.telegram.org/constructor/secureValueHash.html b/data/web/blogfork.telegram.org/constructor/secureValueHash.html new file mode 100644 index 0000000000..34c9ed22ed --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueHash.html @@ -0,0 +1,155 @@ + + + + + secureValueHash + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueHash

+ +

Secure value hash

+

+ +
+
secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
typeSecureValueTypeSecure value type
hashbytesHash
+

Type

+

SecureValueHash

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypeAddress.html b/data/web/blogfork.telegram.org/constructor/secureValueTypeAddress.html new file mode 100644 index 0000000000..1c6ea79576 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypeAddress.html @@ -0,0 +1,135 @@ + + + + + secureValueTypeAddress + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypeAddress

+ +

Address

+

+ +
+
secureValueTypeAddress#cbe31e26 = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypeBankStatement.html b/data/web/blogfork.telegram.org/constructor/secureValueTypeBankStatement.html new file mode 100644 index 0000000000..ae90489121 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypeBankStatement.html @@ -0,0 +1,135 @@ + + + + + secureValueTypeBankStatement + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypeBankStatement

+ +

Bank statement

+

+ +
+
secureValueTypeBankStatement#89137c0d = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypeDriverLicense.html b/data/web/blogfork.telegram.org/constructor/secureValueTypeDriverLicense.html new file mode 100644 index 0000000000..6b6e8fbe9f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypeDriverLicense.html @@ -0,0 +1,135 @@ + + + + + secureValueTypeDriverLicense + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypeDriverLicense

+ +

Driver's license

+

+ +
+
secureValueTypeDriverLicense#6e425c4 = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypeEmail.html b/data/web/blogfork.telegram.org/constructor/secureValueTypeEmail.html new file mode 100644 index 0000000000..6fc698dac5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypeEmail.html @@ -0,0 +1,135 @@ + + + + + secureValueTypeEmail + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypeEmail

+ +

Email

+

+ +
+
secureValueTypeEmail#8e3ca7ee = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypeIdentityCard.html b/data/web/blogfork.telegram.org/constructor/secureValueTypeIdentityCard.html new file mode 100644 index 0000000000..5e85ffb6bb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypeIdentityCard.html @@ -0,0 +1,135 @@ + + + + + secureValueTypeIdentityCard + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypeIdentityCard

+ +

Identity card

+

+ +
+
secureValueTypeIdentityCard#a0d0744b = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypeInternalPassport.html b/data/web/blogfork.telegram.org/constructor/secureValueTypeInternalPassport.html new file mode 100644 index 0000000000..ce52a1bfec --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypeInternalPassport.html @@ -0,0 +1,137 @@ + + + + + secureValueTypeInternalPassport + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypeInternalPassport

+ +

Internal passport

+

+ +
+
secureValueTypeInternalPassport#99a48f23 = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypePassport.html b/data/web/blogfork.telegram.org/constructor/secureValueTypePassport.html new file mode 100644 index 0000000000..0f5db90d60 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypePassport.html @@ -0,0 +1,135 @@ + + + + + secureValueTypePassport + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypePassport

+ +

Passport

+

+ +
+
secureValueTypePassport#3dac6a00 = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypePassportRegistration.html b/data/web/blogfork.telegram.org/constructor/secureValueTypePassportRegistration.html new file mode 100644 index 0000000000..a907f7c61f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypePassportRegistration.html @@ -0,0 +1,137 @@ + + + + + secureValueTypePassportRegistration + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypePassportRegistration

+ +

Internal registration passport

+

+ +
+
secureValueTypePassportRegistration#99e3806a = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+

Related pages

+

Telegram Passport Manual

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypePersonalDetails.html b/data/web/blogfork.telegram.org/constructor/secureValueTypePersonalDetails.html new file mode 100644 index 0000000000..2aa042d85e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypePersonalDetails.html @@ -0,0 +1,135 @@ + + + + + secureValueTypePersonalDetails + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypePersonalDetails

+ +

Personal details

+

+ +
+
secureValueTypePersonalDetails#9d2a81e3 = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypePhone.html b/data/web/blogfork.telegram.org/constructor/secureValueTypePhone.html new file mode 100644 index 0000000000..f3333a255a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypePhone.html @@ -0,0 +1,135 @@ + + + + + secureValueTypePhone + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypePhone

+ +

Phone

+

+ +
+
secureValueTypePhone#b320aadb = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypeRentalAgreement.html b/data/web/blogfork.telegram.org/constructor/secureValueTypeRentalAgreement.html new file mode 100644 index 0000000000..a36eca0362 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypeRentalAgreement.html @@ -0,0 +1,135 @@ + + + + + secureValueTypeRentalAgreement + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypeRentalAgreement

+ +

Rental agreement

+

+ +
+
secureValueTypeRentalAgreement#8b883488 = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypeTemporaryRegistration.html b/data/web/blogfork.telegram.org/constructor/secureValueTypeTemporaryRegistration.html new file mode 100644 index 0000000000..e38285e062 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypeTemporaryRegistration.html @@ -0,0 +1,135 @@ + + + + + secureValueTypeTemporaryRegistration + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypeTemporaryRegistration

+ +

Temporary registration

+

+ +
+
secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/secureValueTypeUtilityBill.html b/data/web/blogfork.telegram.org/constructor/secureValueTypeUtilityBill.html new file mode 100644 index 0000000000..4aa1a9b64b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/secureValueTypeUtilityBill.html @@ -0,0 +1,135 @@ + + + + + secureValueTypeUtilityBill + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

secureValueTypeUtilityBill

+ +

Utility bill

+

+ +
+
secureValueTypeUtilityBill#fc36954e = SecureValueType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SecureValueType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageCancelAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageCancelAction.html new file mode 100644 index 0000000000..eed1f1a53e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageCancelAction.html @@ -0,0 +1,135 @@ + + + + + sendMessageCancelAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageCancelAction

+ +

Invalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload.

+

+ +
+
sendMessageCancelAction#fd5ec8f5 = SendMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageChooseContactAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageChooseContactAction.html new file mode 100644 index 0000000000..581da2a8d6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageChooseContactAction.html @@ -0,0 +1,135 @@ + + + + + sendMessageChooseContactAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageChooseContactAction

+ +

User is selecting a contact to share.

+

+ +
+
sendMessageChooseContactAction#628cbc6f = SendMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageChooseStickerAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageChooseStickerAction.html new file mode 100644 index 0000000000..b5a30748fd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageChooseStickerAction.html @@ -0,0 +1,135 @@ + + + + + sendMessageChooseStickerAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageChooseStickerAction

+ +

User is choosing a sticker

+

+ +
+
sendMessageChooseStickerAction#b05ac6b1 = SendMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageEmojiInteraction.html b/data/web/blogfork.telegram.org/constructor/sendMessageEmojiInteraction.html new file mode 100644 index 0000000000..a681ec6987 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageEmojiInteraction.html @@ -0,0 +1,163 @@ + + + + + sendMessageEmojiInteraction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageEmojiInteraction

+ +

User has clicked on an animated emoji triggering a reaction, click here for more info ».

+

+ +
+
sendMessageEmojiInteraction#25972bcb emoticon:string msg_id:int interaction:DataJSON = SendMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
emoticonstringEmoji
msg_idintMessage ID of the animated emoji that was clicked
interactionDataJSONA JSON object with interaction info, click here for more info »
+

Type

+

SendMessageAction

+

Related pages

+

Animated Emojis

+

Graphical telegram clients should transform emojis into their respective animated version.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageEmojiInteractionSeen.html b/data/web/blogfork.telegram.org/constructor/sendMessageEmojiInteractionSeen.html new file mode 100644 index 0000000000..2279e27bf1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageEmojiInteractionSeen.html @@ -0,0 +1,153 @@ + + + + + sendMessageEmojiInteractionSeen + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageEmojiInteractionSeen

+ +

User is watching an animated emoji reaction triggered by another user, click here for more info ».

+

+ +
+
sendMessageEmojiInteractionSeen#b665902e emoticon:string = SendMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
emoticonstringEmoji
+

Type

+

SendMessageAction

+

Related pages

+

Animated Emojis

+

Graphical telegram clients should transform emojis into their respective animated version.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageGamePlayAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageGamePlayAction.html new file mode 100644 index 0000000000..3d4cabe690 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageGamePlayAction.html @@ -0,0 +1,135 @@ + + + + + sendMessageGamePlayAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageGamePlayAction

+ +

User is playing a game

+

+ +
+
sendMessageGamePlayAction#dd6a8f48 = SendMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageGeoLocationAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageGeoLocationAction.html new file mode 100644 index 0000000000..cd7e967cd1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageGeoLocationAction.html @@ -0,0 +1,135 @@ + + + + + sendMessageGeoLocationAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageGeoLocationAction

+ +

User is selecting a location to share.

+

+ +
+
sendMessageGeoLocationAction#176f8ba1 = SendMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageHistoryImportAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageHistoryImportAction.html new file mode 100644 index 0000000000..f050a9ad65 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageHistoryImportAction.html @@ -0,0 +1,150 @@ + + + + + sendMessageHistoryImportAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageHistoryImportAction

+ +

Chat history is being imported

+

+ +
+
sendMessageHistoryImportAction#dbda9246 progress:int = SendMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
progressintProgress percentage
+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageRecordAudioAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageRecordAudioAction.html new file mode 100644 index 0000000000..65be99fb54 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageRecordAudioAction.html @@ -0,0 +1,135 @@ + + + + + sendMessageRecordAudioAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageRecordAudioAction

+ +

User is recording a voice message.

+

+ +
+
sendMessageRecordAudioAction#d52f73f7 = SendMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageRecordRoundAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageRecordRoundAction.html new file mode 100644 index 0000000000..95f04b93b0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageRecordRoundAction.html @@ -0,0 +1,135 @@ + + + + + sendMessageRecordRoundAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageRecordRoundAction

+ +

User is recording a round video to share

+

+ +
+
sendMessageRecordRoundAction#88f27fbc = SendMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageRecordVideoAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageRecordVideoAction.html new file mode 100644 index 0000000000..0989a20c2e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageRecordVideoAction.html @@ -0,0 +1,135 @@ + + + + + sendMessageRecordVideoAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageRecordVideoAction

+ +

User is recording a video.

+

+ +
+
sendMessageRecordVideoAction#a187d66f = SendMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageTypingAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageTypingAction.html new file mode 100644 index 0000000000..69d0f419da --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageTypingAction.html @@ -0,0 +1,135 @@ + + + + + sendMessageTypingAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageTypingAction

+ +

User is typing.

+

+ +
+
sendMessageTypingAction#16bf744e = SendMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageUploadAudioAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageUploadAudioAction.html new file mode 100644 index 0000000000..71db0c887e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageUploadAudioAction.html @@ -0,0 +1,150 @@ + + + + + sendMessageUploadAudioAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageUploadAudioAction

+ +

User is uploading a voice message.

+

+ +
+
sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
progressintProgress percentage
+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageUploadDocumentAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageUploadDocumentAction.html new file mode 100644 index 0000000000..c181f0ca9d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageUploadDocumentAction.html @@ -0,0 +1,150 @@ + + + + + sendMessageUploadDocumentAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageUploadDocumentAction

+ +

User is uploading a file.

+

+ +
+
sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
progressintProgress percentage
+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageUploadPhotoAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageUploadPhotoAction.html new file mode 100644 index 0000000000..0fe2c42e98 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageUploadPhotoAction.html @@ -0,0 +1,150 @@ + + + + + sendMessageUploadPhotoAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageUploadPhotoAction

+ +

User is uploading a photo.

+

+ +
+
sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
progressintProgress percentage
+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageUploadRoundAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageUploadRoundAction.html new file mode 100644 index 0000000000..037fa302dc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageUploadRoundAction.html @@ -0,0 +1,150 @@ + + + + + sendMessageUploadRoundAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageUploadRoundAction

+ +

User is uploading a round video

+

+ +
+
sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
progressintProgress percentage
+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sendMessageUploadVideoAction.html b/data/web/blogfork.telegram.org/constructor/sendMessageUploadVideoAction.html new file mode 100644 index 0000000000..28ad94474b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sendMessageUploadVideoAction.html @@ -0,0 +1,150 @@ + + + + + sendMessageUploadVideoAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sendMessageUploadVideoAction

+ +

User is uploading a video.

+

+ +
+
sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
progressintProgress percentage
+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/shippingOption.html b/data/web/blogfork.telegram.org/constructor/shippingOption.html new file mode 100644 index 0000000000..5a4c24cdbc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/shippingOption.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/speakingInGroupCallAction.html b/data/web/blogfork.telegram.org/constructor/speakingInGroupCallAction.html new file mode 100644 index 0000000000..a30fcb2634 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/speakingInGroupCallAction.html @@ -0,0 +1,135 @@ + + + + + speakingInGroupCallAction + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

speakingInGroupCallAction

+ +

User is currently speaking in the group call

+

+ +
+
speakingInGroupCallAction#d92c2285 = SendMessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

SendMessageAction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/sponsoredMessage.html b/data/web/blogfork.telegram.org/constructor/sponsoredMessage.html new file mode 100644 index 0000000000..7bf631675b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/sponsoredMessage.html @@ -0,0 +1,193 @@ + + + + + sponsoredMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

sponsoredMessage

+ +

A sponsored message.

+

+ +
+
sponsoredMessage#3a836df8 flags:# recommended:flags.5?true random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string message:string entities:flags.1?Vector<MessageEntity> = SponsoredMessage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
random_idbytesMessage ID
from_idflags.3?PeerID of the sender of the message
chat_inviteflags.4?ChatInviteInformation about the chat invite hash specified in chat_invite_hash
chat_invite_hashflags.4?stringChat invite
channel_postflags.2?intOptional link to a channel post if from_id points to a channel
start_paramflags.0?stringParameter for the bot start message if the sponsored chat is a chat with a bot.
messagestringSponsored message
entitiesflags.1?Vector<MessageEntity>Message entities for styled text
+

Type

+

SponsoredMessage

+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/stats.broadcastStats b/data/web/blogfork.telegram.org/constructor/stats.broadcastStats new file mode 100644 index 0000000000..4e8310e7cc --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/stats.broadcastStats @@ -0,0 +1,223 @@ + + + + + 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 (pie chart)
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/web/blogfork.telegram.org/constructor/stats.megagroupStats b/data/web/blogfork.telegram.org/constructor/stats.megagroupStats new file mode 100644 index 0000000000..fec6d09c6e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/stats.megagroupStats @@ -0,0 +1,233 @@ + + + + + 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 (pie chart)
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/web/blogfork.telegram.org/constructor/stats.messageStats b/data/web/blogfork.telegram.org/constructor/stats.messageStats new file mode 100644 index 0000000000..dc952447d2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/stats.messageStats @@ -0,0 +1,150 @@ + + + + + stats.messageStats + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

stats.messageStats

+ +

Message statistics

+

+ +
+
stats.messageStats#8999f295 views_graph:StatsGraph = stats.MessageStats;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
views_graphStatsGraphMessage view graph
+

Type

+

stats.MessageStats

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/statsAbsValueAndPrev.html b/data/web/blogfork.telegram.org/constructor/statsAbsValueAndPrev.html new file mode 100644 index 0000000000..32f3874692 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/statsAbsValueAndPrev.html @@ -0,0 +1,155 @@ + + + + + statsAbsValueAndPrev + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

statsAbsValueAndPrev

+ +

Statistics value couple; initial 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/web/blogfork.telegram.org/constructor/statsDateRangeDays.html b/data/web/blogfork.telegram.org/constructor/statsDateRangeDays.html new file mode 100644 index 0000000000..b7e62e386f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/statsDateRangeDays.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/statsGraph.html b/data/web/blogfork.telegram.org/constructor/statsGraph.html new file mode 100644 index 0000000000..fcdde4e77e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/statsGraph.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/statsGraphAsync.html b/data/web/blogfork.telegram.org/constructor/statsGraphAsync.html new file mode 100644 index 0000000000..427102f89b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/statsGraphAsync.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/statsGraphError.html b/data/web/blogfork.telegram.org/constructor/statsGraphError.html new file mode 100644 index 0000000000..12f635dd33 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/statsGraphError.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/statsGroupTopAdmin.html b/data/web/blogfork.telegram.org/constructor/statsGroupTopAdmin.html new file mode 100644 index 0000000000..81e16a05df --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/statsGroupTopAdmin.html @@ -0,0 +1,168 @@ + + + + + statsGroupTopAdmin + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

statsGroupTopAdmin

+ +

Information about an active admin in a supergroup

+

+ +
+
statsGroupTopAdmin#d7584c87 user_id:long deleted:int kicked:int banned:int = StatsGroupTopAdmin;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser 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/web/blogfork.telegram.org/constructor/statsGroupTopInviter.html b/data/web/blogfork.telegram.org/constructor/statsGroupTopInviter.html new file mode 100644 index 0000000000..6c42b4d26b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/statsGroupTopInviter.html @@ -0,0 +1,158 @@ + + + + + statsGroupTopInviter + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

statsGroupTopInviter

+ +

Information about an active supergroup inviter

+

+ +
+
statsGroupTopInviter#535f779d user_id:long invitations:int = StatsGroupTopInviter;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser 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/web/blogfork.telegram.org/constructor/statsGroupTopPoster.html b/data/web/blogfork.telegram.org/constructor/statsGroupTopPoster.html new file mode 100644 index 0000000000..8547b4fe3e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/statsGroupTopPoster.html @@ -0,0 +1,163 @@ + + + + + statsGroupTopPoster + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

statsGroupTopPoster

+ +

Information about an active user in a supergroup

+

+ +
+
statsGroupTopPoster#9d04af9b user_id:long messages:int avg_chars:int = StatsGroupTopPoster;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser 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/web/blogfork.telegram.org/constructor/statsPercentValue.html b/data/web/blogfork.telegram.org/constructor/statsPercentValue.html new file mode 100644 index 0000000000..6c9c5f91e9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/statsPercentValue.html @@ -0,0 +1,159 @@ + + + + + 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/web/blogfork.telegram.org/constructor/statsURL.html b/data/web/blogfork.telegram.org/constructor/statsURL.html new file mode 100644 index 0000000000..1f73a4b955 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/statsURL.html @@ -0,0 +1,150 @@ + + + + + statsURL + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

statsURL

+ +

URL with chat statistics

+

+ +
+
statsURL#47a971e0 url:string = StatsURL;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
urlstringChat statistics
+

Type

+

StatsURL

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/stickerPack.html b/data/web/blogfork.telegram.org/constructor/stickerPack.html new file mode 100644 index 0000000000..eab2fba545 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/stickerPack.html @@ -0,0 +1,159 @@ + + + + + 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/web/blogfork.telegram.org/constructor/stickerSet.html b/data/web/blogfork.telegram.org/constructor/stickerSet.html new file mode 100644 index 0000000000..62c267658e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/stickerSet.html @@ -0,0 +1,225 @@ + + + + + stickerSet + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

stickerSet

+ +

Represents a stickerset (stickerpack)

+

+ +
+
stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector<PhotoSize> thumb_dc_id:flags.4?int thumb_version: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
videosflags.6?trueIs this a video 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
thumbsflags.4?Vector<PhotoSize>Stickerset thumbnail
thumb_dc_idflags.4?intDC ID of thumbnail
thumb_versionflags.4?intThumbnail version
countintNumber of stickers in pack
hashintHash
+

Type

+

StickerSet

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/stickerSetCovered.html b/data/web/blogfork.telegram.org/constructor/stickerSetCovered.html new file mode 100644 index 0000000000..49e0b77894 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/stickerSetCovered.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/stickerSetMultiCovered.html b/data/web/blogfork.telegram.org/constructor/stickerSetMultiCovered.html new file mode 100644 index 0000000000..11fbbed44c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/stickerSetMultiCovered.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/stickers.suggestedShortName b/data/web/blogfork.telegram.org/constructor/stickers.suggestedShortName new file mode 100644 index 0000000000..6635ed5206 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/stickers.suggestedShortName @@ -0,0 +1,150 @@ + + + + + stickers.suggestedShortName + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

stickers.suggestedShortName

+ +

A suggested short name for a stickerpack

+

+ +
+
stickers.suggestedShortName#85fea03f short_name:string = stickers.SuggestedShortName;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
short_namestringSuggested short name
+

Type

+

stickers.SuggestedShortName

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/storage.fileGif b/data/web/blogfork.telegram.org/constructor/storage.fileGif new file mode 100644 index 0000000000..86f85b25b0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/storage.fileGif @@ -0,0 +1,135 @@ + + + + + storage.fileGif + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

storage.fileGif

+ +

GIF image. MIME type: image/gif.

+

+ +
+
storage.fileGif#cae1aadf = storage.FileType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

storage.FileType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/storage.fileJpeg b/data/web/blogfork.telegram.org/constructor/storage.fileJpeg new file mode 100644 index 0000000000..aa577150e4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/storage.fileJpeg @@ -0,0 +1,135 @@ + + + + + storage.fileJpeg + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

storage.fileJpeg

+ +

JPEG image. MIME type: image/jpeg.

+

+ +
+
storage.fileJpeg#7efe0e = storage.FileType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

storage.FileType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/storage.fileMov b/data/web/blogfork.telegram.org/constructor/storage.fileMov new file mode 100644 index 0000000000..6e693fb5fe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/storage.fileMov @@ -0,0 +1,135 @@ + + + + + storage.fileMov + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

storage.fileMov

+ +

Quicktime video. MIME type: video/quicktime.

+

+ +
+
storage.fileMov#4b09ebbc = storage.FileType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

storage.FileType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/storage.fileMp3 b/data/web/blogfork.telegram.org/constructor/storage.fileMp3 new file mode 100644 index 0000000000..6b7c83c3f6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/storage.fileMp3 @@ -0,0 +1,135 @@ + + + + + storage.fileMp3 + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

storage.fileMp3

+ +

Mp3 audio. MIME type: audio/mpeg.

+

+ +
+
storage.fileMp3#528a0677 = storage.FileType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

storage.FileType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/storage.fileMp4 b/data/web/blogfork.telegram.org/constructor/storage.fileMp4 new file mode 100644 index 0000000000..4e9b485bee --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/storage.fileMp4 @@ -0,0 +1,135 @@ + + + + + storage.fileMp4 + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

storage.fileMp4

+ +

MPEG-4 video. MIME type: video/mp4.

+

+ +
+
storage.fileMp4#b3cea0e4 = storage.FileType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

storage.FileType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/storage.filePartial b/data/web/blogfork.telegram.org/constructor/storage.filePartial new file mode 100644 index 0000000000..b300c4a436 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/storage.filePartial @@ -0,0 +1,135 @@ + + + + + storage.filePartial + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

storage.filePartial

+ +

Part of a bigger file.

+

+ +
+
storage.filePartial#40bc6f52 = storage.FileType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

storage.FileType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/storage.filePdf b/data/web/blogfork.telegram.org/constructor/storage.filePdf new file mode 100644 index 0000000000..c2a17693f3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/storage.filePdf @@ -0,0 +1,135 @@ + + + + + storage.filePdf + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

storage.filePdf

+ +

PDF document image. MIME type: application/pdf.

+

+ +
+
storage.filePdf#ae1e508d = storage.FileType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

storage.FileType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/storage.filePng b/data/web/blogfork.telegram.org/constructor/storage.filePng new file mode 100644 index 0000000000..b68e241ff8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/storage.filePng @@ -0,0 +1,135 @@ + + + + + storage.filePng + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

storage.filePng

+ +

PNG image. MIME type: image/png.

+

+ +
+
storage.filePng#a4f63c0 = storage.FileType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

storage.FileType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/storage.fileUnknown b/data/web/blogfork.telegram.org/constructor/storage.fileUnknown new file mode 100644 index 0000000000..bcb3e4af23 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/storage.fileUnknown @@ -0,0 +1,135 @@ + + + + + storage.fileUnknown + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

storage.fileUnknown

+ +

Unknown type.

+

+ +
+
storage.fileUnknown#aa963b05 = storage.FileType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

storage.FileType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/storage.fileWebp b/data/web/blogfork.telegram.org/constructor/storage.fileWebp new file mode 100644 index 0000000000..7635f894a0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/storage.fileWebp @@ -0,0 +1,135 @@ + + + + + storage.fileWebp + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

storage.fileWebp

+ +

WEBP image. MIME type: image/webp.

+

+ +
+
storage.fileWebp#1081464c = storage.FileType;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

storage.FileType

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textAnchor.html b/data/web/blogfork.telegram.org/constructor/textAnchor.html new file mode 100644 index 0000000000..0250e6deac --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textAnchor.html @@ -0,0 +1,155 @@ + + + + + textAnchor + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textAnchor

+ +

Text linking to another section of the page

+

+ +
+
textAnchor#35553762 text:RichText name:string = RichText;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
namestringSection name
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textBold.html b/data/web/blogfork.telegram.org/constructor/textBold.html new file mode 100644 index 0000000000..06925c446a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textBold.html @@ -0,0 +1,150 @@ + + + + + textBold + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textBold

+ +

Bold text

+

+ +
+
textBold#6724abc4 text:RichText = RichText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textConcat.html b/data/web/blogfork.telegram.org/constructor/textConcat.html new file mode 100644 index 0000000000..469d12bc1a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textConcat.html @@ -0,0 +1,150 @@ + + + + + textConcat + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textConcat

+ +

Concatenation of rich texts

+

+ +
+
textConcat#7e6260d7 texts:Vector<RichText> = RichText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textsVector<RichText>Concatenated rich texts
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textEmail.html b/data/web/blogfork.telegram.org/constructor/textEmail.html new file mode 100644 index 0000000000..b9059436a6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textEmail.html @@ -0,0 +1,155 @@ + + + + + textEmail + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textEmail

+ +

Rich text email link

+

+ +
+
textEmail#de5a0dd6 text:RichText email:string = RichText;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextLink text
emailstringEmail address
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textEmpty.html b/data/web/blogfork.telegram.org/constructor/textEmpty.html new file mode 100644 index 0000000000..08e1271e18 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textEmpty.html @@ -0,0 +1,135 @@ + + + + + textEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textEmpty

+ +

Empty rich text element

+

+ +
+
textEmpty#dc3d824f = RichText;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textFixed.html b/data/web/blogfork.telegram.org/constructor/textFixed.html new file mode 100644 index 0000000000..3789384577 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textFixed.html @@ -0,0 +1,150 @@ + + + + + textFixed + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textFixed

+ +

fixed-width rich text

+

+ +
+
textFixed#6c3f19b9 text:RichText = RichText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textImage.html b/data/web/blogfork.telegram.org/constructor/textImage.html new file mode 100644 index 0000000000..fe39f5c594 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textImage.html @@ -0,0 +1,160 @@ + + + + + textImage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textImage

+ +

Inline image

+

+ +
+
textImage#81ccf4f document_id:long w:int h:int = RichText;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
document_idlongDocument ID
wintWidth
hintHeight
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textItalic.html b/data/web/blogfork.telegram.org/constructor/textItalic.html new file mode 100644 index 0000000000..1912e1e6e7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textItalic.html @@ -0,0 +1,150 @@ + + + + + textItalic + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textItalic

+ +

Italic text

+

+ +
+
textItalic#d912a59c text:RichText = RichText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textMarked.html b/data/web/blogfork.telegram.org/constructor/textMarked.html new file mode 100644 index 0000000000..4a6b034cd8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textMarked.html @@ -0,0 +1,150 @@ + + + + + textMarked + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textMarked

+ +

Highlighted text

+

+ +
+
textMarked#34b8621 text:RichText = RichText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textPhone.html b/data/web/blogfork.telegram.org/constructor/textPhone.html new file mode 100644 index 0000000000..e39b7b9841 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textPhone.html @@ -0,0 +1,155 @@ + + + + + textPhone + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textPhone

+ +

Rich text linked to a phone number

+

+ +
+
textPhone#1ccb966a text:RichText phone:string = RichText;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
phonestringPhone number
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textPlain.html b/data/web/blogfork.telegram.org/constructor/textPlain.html new file mode 100644 index 0000000000..976c37e0fe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textPlain.html @@ -0,0 +1,150 @@ + + + + + textPlain + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textPlain

+ +

Plain text

+

+ +
+
textPlain#744694e0 text:string = RichText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textstringText
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textStrike.html b/data/web/blogfork.telegram.org/constructor/textStrike.html new file mode 100644 index 0000000000..478fcbd699 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textStrike.html @@ -0,0 +1,150 @@ + + + + + textStrike + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textStrike

+ +

Strikethrough text

+

+ +
+
textStrike#9bf8bb95 text:RichText = RichText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textSubscript.html b/data/web/blogfork.telegram.org/constructor/textSubscript.html new file mode 100644 index 0000000000..b63503417d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textSubscript.html @@ -0,0 +1,150 @@ + + + + + textSubscript + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textSubscript

+ +

Subscript text

+

+ +
+
textSubscript#ed6a8504 text:RichText = RichText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textSuperscript.html b/data/web/blogfork.telegram.org/constructor/textSuperscript.html new file mode 100644 index 0000000000..6d0357ba91 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textSuperscript.html @@ -0,0 +1,150 @@ + + + + + textSuperscript + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textSuperscript

+ +

Superscript text

+

+ +
+
textSuperscript#c7fb5e01 text:RichText = RichText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textUnderline.html b/data/web/blogfork.telegram.org/constructor/textUnderline.html new file mode 100644 index 0000000000..6d32069f8b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textUnderline.html @@ -0,0 +1,150 @@ + + + + + textUnderline + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

textUnderline

+ +

Underlined text

+

+ +
+
textUnderline#c12622c4 text:RichText = RichText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textRichTextText
+

Type

+

RichText

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/textUrl.html b/data/web/blogfork.telegram.org/constructor/textUrl.html new file mode 100644 index 0000000000..8f40e5af74 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/textUrl.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/theme.html b/data/web/blogfork.telegram.org/constructor/theme.html new file mode 100644 index 0000000000..c0812efaeb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/theme.html @@ -0,0 +1,205 @@ + + + + + theme + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

theme

+ +

Theme

+

+ +
+
theme#a00e67d6 flags:# creator:flags.0?true default:flags.1?true for_chat:flags.5?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?Vector<ThemeSettings> emoticon:flags.6?string installs_count:flags.4?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
for_chatflags.5?trueWhether this theme is meant to be used as a chat theme
idlongTheme ID
access_hashlongTheme access hash
slugstringUnique theme ID
titlestringTheme name
documentflags.2?DocumentTheme
settingsflags.3?Vector<ThemeSettings>Theme settings
emoticonflags.6?stringTheme emoji
installs_countflags.4?intInstallation count
+

Type

+

Theme

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/themeSettings.html b/data/web/blogfork.telegram.org/constructor/themeSettings.html new file mode 100644 index 0000000000..77298ffde1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/themeSettings.html @@ -0,0 +1,180 @@ + + + + + themeSettings + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

themeSettings

+ +

Theme settings

+

+ +
+
themeSettings#fa58b6d4 flags:# message_colors_animated:flags.2?true base_theme:BaseTheme accent_color:int outbox_accent_color:flags.3?int message_colors:flags.0?Vector<int> wallpaper:flags.1?WallPaper = ThemeSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
message_colors_animatedflags.2?trueIf set, the freeform gradient fill needs to be animated on every sent message.
base_themeBaseThemeBase theme
accent_colorintAccent color, ARGB format
outbox_accent_colorflags.3?intAccent color of outgoing messages in ARGB format
message_colorsflags.0?Vector<int>The fill to be used as a background for outgoing messages, in RGB24 format.
If just one or two equal colors are provided, describes a solid fill of a background.
If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.
If three or four colors are provided, describes a freeform gradient fill of a background.
wallpaperflags.1?WallPaperWallpaper
+

Type

+

ThemeSettings

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/topPeer.html b/data/web/blogfork.telegram.org/constructor/topPeer.html new file mode 100644 index 0000000000..8a1f707266 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/topPeer.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/topPeerCategoryBotsInline.html b/data/web/blogfork.telegram.org/constructor/topPeerCategoryBotsInline.html new file mode 100644 index 0000000000..8859427b44 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/topPeerCategoryBotsInline.html @@ -0,0 +1,135 @@ + + + + + topPeerCategoryBotsInline + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryBotsInline

+ +

Most used inline bots

+

+ +
+
topPeerCategoryBotsInline#148677e2 = TopPeerCategory;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

TopPeerCategory

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/topPeerCategoryBotsPM.html b/data/web/blogfork.telegram.org/constructor/topPeerCategoryBotsPM.html new file mode 100644 index 0000000000..6c60c11f0a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/topPeerCategoryBotsPM.html @@ -0,0 +1,135 @@ + + + + + topPeerCategoryBotsPM + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryBotsPM

+ +

Most used bots

+

+ +
+
topPeerCategoryBotsPM#ab661b5b = TopPeerCategory;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

TopPeerCategory

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/topPeerCategoryChannels.html b/data/web/blogfork.telegram.org/constructor/topPeerCategoryChannels.html new file mode 100644 index 0000000000..5635989db4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/topPeerCategoryChannels.html @@ -0,0 +1,135 @@ + + + + + topPeerCategoryChannels + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryChannels

+ +

Most frequently visited channels

+

+ +
+
topPeerCategoryChannels#161d9628 = TopPeerCategory;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

TopPeerCategory

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/topPeerCategoryCorrespondents.html b/data/web/blogfork.telegram.org/constructor/topPeerCategoryCorrespondents.html new file mode 100644 index 0000000000..584d07bcc7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/topPeerCategoryCorrespondents.html @@ -0,0 +1,135 @@ + + + + + topPeerCategoryCorrespondents + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryCorrespondents

+ +

Users we've chatted most frequently with

+

+ +
+
topPeerCategoryCorrespondents#637b7ed = TopPeerCategory;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

TopPeerCategory

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/topPeerCategoryForwardChats.html b/data/web/blogfork.telegram.org/constructor/topPeerCategoryForwardChats.html new file mode 100644 index 0000000000..3450ea69c2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/topPeerCategoryForwardChats.html @@ -0,0 +1,135 @@ + + + + + topPeerCategoryForwardChats + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryForwardChats

+ +

Chats to which the users often forwards messages to

+

+ +
+
topPeerCategoryForwardChats#fbeec0f0 = TopPeerCategory;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

TopPeerCategory

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/topPeerCategoryForwardUsers.html b/data/web/blogfork.telegram.org/constructor/topPeerCategoryForwardUsers.html new file mode 100644 index 0000000000..eba0a6fe4d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/topPeerCategoryForwardUsers.html @@ -0,0 +1,135 @@ + + + + + topPeerCategoryForwardUsers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryForwardUsers

+ +

Users to which the users often forwards messages to

+

+ +
+
topPeerCategoryForwardUsers#a8406ca9 = TopPeerCategory;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

TopPeerCategory

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/topPeerCategoryGroups.html b/data/web/blogfork.telegram.org/constructor/topPeerCategoryGroups.html new file mode 100644 index 0000000000..37d3e9e23c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/topPeerCategoryGroups.html @@ -0,0 +1,135 @@ + + + + + topPeerCategoryGroups + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryGroups

+ +

Often-opened groups and supergroups

+

+ +
+
topPeerCategoryGroups#bd17a14a = TopPeerCategory;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

TopPeerCategory

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/topPeerCategoryPeers.html b/data/web/blogfork.telegram.org/constructor/topPeerCategoryPeers.html new file mode 100644 index 0000000000..6b72c33492 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/topPeerCategoryPeers.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/topPeerCategoryPhoneCalls.html b/data/web/blogfork.telegram.org/constructor/topPeerCategoryPhoneCalls.html new file mode 100644 index 0000000000..ca521eef84 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/topPeerCategoryPhoneCalls.html @@ -0,0 +1,135 @@ + + + + + topPeerCategoryPhoneCalls + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

topPeerCategoryPhoneCalls

+ +

Most frequently called users

+

+ +
+
topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

TopPeerCategory

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/true.html b/data/web/blogfork.telegram.org/constructor/true.html new file mode 100644 index 0000000000..716d7758fd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/true.html @@ -0,0 +1,137 @@ + + + + + true + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

true

+ +

See predefined identifiers.

+

+ +
+
true#3fedd339 = True;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

True

+

Related pages

+

TL-formal

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateBotCallbackQuery.html b/data/web/blogfork.telegram.org/constructor/updateBotCallbackQuery.html new file mode 100644 index 0000000000..6204c966ba --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateBotCallbackQuery.html @@ -0,0 +1,185 @@ + + + + + updateBotCallbackQuery + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotCallbackQuery

+ +

A callback button was pressed, and the button data was sent to the bot that created the button

+

+ +
+
updateBotCallbackQuery#b9cfc48d flags:# query_id:long user_id:long 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_idlongID 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/web/blogfork.telegram.org/constructor/updateBotChatInviteRequester.html b/data/web/blogfork.telegram.org/constructor/updateBotChatInviteRequester.html new file mode 100644 index 0000000000..429a6d28f8 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateBotChatInviteRequester.html @@ -0,0 +1,182 @@ + + + + + updateBotChatInviteRequester + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotChatInviteRequester

+ +

Someone has requested to join a chat or channel (bots only, users will receive an updatePendingJoinRequests, instead)

+

+ +
+
updateBotChatInviteRequester#11dfa986 peer:Peer date:int user_id:long about:string invite:ExportedChatInvite qts:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerThe chat or channel in question
dateintWhen was the join request » made
user_idlongThe user ID that is asking to join the chat or channel
aboutstringBio of the user
inviteExportedChatInviteChat invite link that was used by the user to send the join request »
qtsintQTS event sequence identifier
+

Type

+

Update

+

Related pages

+

Invites

+

Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+

updatePendingJoinRequests

+

Someone has requested to join a chat or channel

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateBotCommands.html b/data/web/blogfork.telegram.org/constructor/updateBotCommands.html new file mode 100644 index 0000000000..ae42efcac5 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateBotCommands.html @@ -0,0 +1,162 @@ + + + + + updateBotCommands + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotCommands

+ +

The command set of a certain bot in a certain chat has changed.

+

+ +
+
updateBotCommands#4d712f2e peer:Peer bot_id:long commands:Vector<BotCommand> = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerThe affected chat
bot_idlongID of the bot that changed its command set
commandsVector<BotCommand>New bot commands
+

Type

+

Update

+

Related pages

+

Telegram Bot API

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateBotInlineQuery.html b/data/web/blogfork.telegram.org/constructor/updateBotInlineQuery.html new file mode 100644 index 0000000000..e835935d70 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateBotInlineQuery.html @@ -0,0 +1,180 @@ + + + + + updateBotInlineQuery + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotInlineQuery

+ +

An incoming inline query

+

+ +
+
updateBotInlineQuery#496f379c flags:# query_id:long user_id:long query:string geo:flags.0?GeoPoint peer_type:flags.1?InlineQueryPeerType offset:string = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
query_idlongQuery ID
user_idlongUser that sent the query
querystringText of query
geoflags.0?GeoPointAttached geolocation
peer_typeflags.1?InlineQueryPeerTypeType of the chat from which the inline query was sent.
offsetstringOffset to navigate through results
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateBotInlineSend.html b/data/web/blogfork.telegram.org/constructor/updateBotInlineSend.html new file mode 100644 index 0000000000..d97ed27e8b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateBotInlineSend.html @@ -0,0 +1,175 @@ + + + + + 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#12f12a07 flags:# user_id:long query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
user_idlongThe 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/web/blogfork.telegram.org/constructor/updateBotPrecheckoutQuery.html b/data/web/blogfork.telegram.org/constructor/updateBotPrecheckoutQuery.html new file mode 100644 index 0000000000..72e1e58720 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateBotPrecheckoutQuery.html @@ -0,0 +1,187 @@ + + + + + updateBotPrecheckoutQuery + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotPrecheckoutQuery

+ +

This object contains information about an incoming pre-checkout query.

+

+ +
+
updateBotPrecheckoutQuery#8caa9a96 flags:# query_id:long user_id:long 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_idlongUser 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/web/blogfork.telegram.org/constructor/updateBotShippingQuery.html b/data/web/blogfork.telegram.org/constructor/updateBotShippingQuery.html new file mode 100644 index 0000000000..d429846b34 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateBotShippingQuery.html @@ -0,0 +1,165 @@ + + + + + updateBotShippingQuery + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotShippingQuery

+ +

This object contains information about an incoming shipping query.

+

+ +
+
updateBotShippingQuery#b5aefd7d query_id:long user_id:long payload:bytes shipping_address:PostAddress = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
query_idlongUnique query identifier
user_idlongUser who sent the query
payloadbytesBot specified invoice payload
shipping_addressPostAddressUser specified shipping address
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateBotStopped.html b/data/web/blogfork.telegram.org/constructor/updateBotStopped.html new file mode 100644 index 0000000000..a740fefe8a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateBotStopped.html @@ -0,0 +1,168 @@ + + + + + updateBotStopped + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotStopped

+ +

A bot was stopped or re-started.

+

+ +
+
updateBotStopped#c4870a49 user_id:long date:int stopped:Bool qts:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongThe bot ID
dateintWhen did this action occur
stoppedBoolWhether the bot was stopped or started
qtsintNew qts value, see updates » for more info.
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateBotWebhookJSON.html b/data/web/blogfork.telegram.org/constructor/updateBotWebhookJSON.html new file mode 100644 index 0000000000..13a5aab03e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateBotWebhookJSON.html @@ -0,0 +1,150 @@ + + + + + updateBotWebhookJSON + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateBotWebhookJSON

+ +

A new incoming event; for bots only

+

+ +
+
updateBotWebhookJSON#8317c0c3 data:DataJSON = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
dataDataJSONThe event
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateBotWebhookJSONQuery.html b/data/web/blogfork.telegram.org/constructor/updateBotWebhookJSONQuery.html new file mode 100644 index 0000000000..00b9190820 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateBotWebhookJSONQuery.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateChannel.html b/data/web/blogfork.telegram.org/constructor/updateChannel.html new file mode 100644 index 0000000000..05ce87b721 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChannel.html @@ -0,0 +1,150 @@ + + + + + updateChannel + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannel

+ +

A new channel is available

+

+ +
+
updateChannel#635b4c09 channel_id:long = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
channel_idlongChannel ID
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChannelAvailableMessages.html b/data/web/blogfork.telegram.org/constructor/updateChannelAvailableMessages.html new file mode 100644 index 0000000000..228d842c63 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChannelAvailableMessages.html @@ -0,0 +1,158 @@ + + + + + updateChannelAvailableMessages + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelAvailableMessages

+ +

The history of a channel/supergroup was hidden.

+

+ +
+
updateChannelAvailableMessages#b23fc698 channel_id:long available_min_id:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idlongChannel/supergroup ID
available_min_idintIdentifier of a maximum unavailable message in a channel due to hidden history.
+

Type

+

Update

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChannelMessageForwards.html b/data/web/blogfork.telegram.org/constructor/updateChannelMessageForwards.html new file mode 100644 index 0000000000..f0fe797ec6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChannelMessageForwards.html @@ -0,0 +1,160 @@ + + + + + updateChannelMessageForwards + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelMessageForwards

+ +

The forward counter of a message in a channel has changed

+

+ +
+
updateChannelMessageForwards#d29a27f4 channel_id:long id:int forwards:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idlongChannel ID
idintID of the message
forwardsintNew forward counter
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChannelMessageViews.html b/data/web/blogfork.telegram.org/constructor/updateChannelMessageViews.html new file mode 100644 index 0000000000..6ea519280e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChannelMessageViews.html @@ -0,0 +1,160 @@ + + + + + updateChannelMessageViews + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelMessageViews

+ +

The view counter of a message in a channel has changed

+

+ +
+
updateChannelMessageViews#f226ac08 channel_id:long id:int views:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idlongChannel ID
idintID of the message
viewsintNew view counter
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChannelParticipant.html b/data/web/blogfork.telegram.org/constructor/updateChannelParticipant.html new file mode 100644 index 0000000000..8ed7778f45 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChannelParticipant.html @@ -0,0 +1,195 @@ + + + + + updateChannelParticipant + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelParticipant

+ +

A participant has left, joined, was banned or admined in a channel or supergroup.

+

+ +
+
updateChannelParticipant#985d3abb flags:# channel_id:long date:int actor_id:long user_id:long prev_participant:flags.0?ChannelParticipant new_participant:flags.1?ChannelParticipant invite:flags.2?ExportedChatInvite qts:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
channel_idlongChannel ID
dateintDate of the event
actor_idlongUser that triggered the change (inviter, admin that kicked the user, or the even the user_id itself)
user_idlongUser that was affected by the change
prev_participantflags.0?ChannelParticipantPrevious participant status
new_participantflags.1?ChannelParticipantNew participant status
inviteflags.2?ExportedChatInviteChat invite used to join the channel/supergroup
qtsintNew qts value, see updates » for more info.
+

Type

+

Update

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChannelReadMessagesContents.html b/data/web/blogfork.telegram.org/constructor/updateChannelReadMessagesContents.html new file mode 100644 index 0000000000..5a0a5f8c77 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChannelReadMessagesContents.html @@ -0,0 +1,158 @@ + + + + + updateChannelReadMessagesContents + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelReadMessagesContents

+ +

The specified channel/supergroup messages were read

+

+ +
+
updateChannelReadMessagesContents#44bdd535 channel_id:long messages:Vector<int> = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idlongChannel/supergroup ID
messagesVector<int>IDs of messages that were read
+

Type

+

Update

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChannelTooLong.html b/data/web/blogfork.telegram.org/constructor/updateChannelTooLong.html new file mode 100644 index 0000000000..0e3e4cc3de --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChannelTooLong.html @@ -0,0 +1,164 @@ + + + + + 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#108d941f flags:# channel_id:long pts:flags.0?int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
channel_idlongThe 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/web/blogfork.telegram.org/constructor/updateChannelUserTyping.html b/data/web/blogfork.telegram.org/constructor/updateChannelUserTyping.html new file mode 100644 index 0000000000..105b44aa3d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChannelUserTyping.html @@ -0,0 +1,175 @@ + + + + + updateChannelUserTyping + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelUserTyping

+ +

A user is typing in a supergroup, channel or message thread

+

+ +
+
updateChannelUserTyping#8c88c923 flags:# channel_id:long top_msg_id:flags.0?int from_id:Peer action:SendMessageAction = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
channel_idlongChannel ID
top_msg_idflags.0?intThread ID
from_idPeerThe peer that is typing
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, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChannelWebPage.html b/data/web/blogfork.telegram.org/constructor/updateChannelWebPage.html new file mode 100644 index 0000000000..fdaf6a466d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChannelWebPage.html @@ -0,0 +1,170 @@ + + + + + updateChannelWebPage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChannelWebPage

+ +

A webpage preview of a link in a channel/supergroup message was generated

+

+ +
+
updateChannelWebPage#2f2ba99f channel_id:long webpage:WebPage pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idlongChannel/supergroup ID
webpageWebPageGenerated webpage preview
ptsintEvent count after generation
pts_countintNumber of events that were generated
+

Type

+

Update

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChat.html b/data/web/blogfork.telegram.org/constructor/updateChat.html new file mode 100644 index 0000000000..97fa6c03a6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChat.html @@ -0,0 +1,150 @@ + + + + + updateChat + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChat

+ +

A new chat is available

+

+ +
+
updateChat#f89a6a4e chat_id:long = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
chat_idlongChat ID
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChatDefaultBannedRights.html b/data/web/blogfork.telegram.org/constructor/updateChatDefaultBannedRights.html new file mode 100644 index 0000000000..dec6746b3f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChatDefaultBannedRights.html @@ -0,0 +1,163 @@ + + + + + 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, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChatParticipant.html b/data/web/blogfork.telegram.org/constructor/updateChatParticipant.html new file mode 100644 index 0000000000..49f490d5c7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChatParticipant.html @@ -0,0 +1,195 @@ + + + + + updateChatParticipant + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatParticipant

+ +

A user has joined or left a specific chat

+

+ +
+
updateChatParticipant#d087663a flags:# chat_id:long date:int actor_id:long user_id:long prev_participant:flags.0?ChatParticipant new_participant:flags.1?ChatParticipant invite:flags.2?ExportedChatInvite qts:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
chat_idlongChat ID
dateintWhen did this event occur
actor_idlongUser that triggered the change (inviter, admin that kicked the user, or the even the user_id itself)
user_idlongUser that was affected by the change
prev_participantflags.0?ChatParticipantPrevious participant info (empty if this participant just joined)
new_participantflags.1?ChatParticipantNew participant info (empty if this participant just left)
inviteflags.2?ExportedChatInviteThe invite that was used to join the group
qtsintNew qts value, see updates » for more info.
+

Type

+

Update

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChatParticipantAdd.html b/data/web/blogfork.telegram.org/constructor/updateChatParticipantAdd.html new file mode 100644 index 0000000000..e3580d8c51 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChatParticipantAdd.html @@ -0,0 +1,170 @@ + + + + + updateChatParticipantAdd + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatParticipantAdd

+ +

New group member.

+

+ +
+
updateChatParticipantAdd#3dda5451 chat_id:long user_id:long inviter_id:long date:int version:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idlongGroup ID
user_idlongID of the new member
inviter_idlongID of the user, who added member to the group
dateintWhen was the participant added
versionintChat version number
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChatParticipantAdmin.html b/data/web/blogfork.telegram.org/constructor/updateChatParticipantAdmin.html new file mode 100644 index 0000000000..3a27e250a7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChatParticipantAdmin.html @@ -0,0 +1,168 @@ + + + + + updateChatParticipantAdmin + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatParticipantAdmin

+ +

Admin permissions of a user in a basic group were changed

+

+ +
+
updateChatParticipantAdmin#d7ca61a2 chat_id:long user_id:long is_admin:Bool version:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idlongChat ID
user_idlongID 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, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChatParticipantDelete.html b/data/web/blogfork.telegram.org/constructor/updateChatParticipantDelete.html new file mode 100644 index 0000000000..d5a1c9959b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChatParticipantDelete.html @@ -0,0 +1,160 @@ + + + + + updateChatParticipantDelete + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatParticipantDelete

+ +

A member has left the group.

+

+ +
+
updateChatParticipantDelete#e32f3d77 chat_id:long user_id:long version:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idlongGroup ID
user_idlongID 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/web/blogfork.telegram.org/constructor/updateChatParticipants.html b/data/web/blogfork.telegram.org/constructor/updateChatParticipants.html new file mode 100644 index 0000000000..9e2a9d8726 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChatParticipants.html @@ -0,0 +1,150 @@ + + + + + updateChatParticipants + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatParticipants

+ +

Composition of chat participants changed.

+

+ +
+
updateChatParticipants#7761198 participants:ChatParticipants = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
participantsChatParticipantsUpdated chat participants
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateChatUserTyping.html b/data/web/blogfork.telegram.org/constructor/updateChatUserTyping.html new file mode 100644 index 0000000000..2322cf384f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateChatUserTyping.html @@ -0,0 +1,163 @@ + + + + + updateChatUserTyping + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatUserTyping

+ +

The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing

+

+ +
+
updateChatUserTyping#83487af0 chat_id:long from_id:Peer action:SendMessageAction = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idlongGroup id
from_idPeerPeer that started typing (can be the chat itself, in case of anonymous admins).
actionSendMessageActionType of action
Parameter added in Layer 17.
+

Type

+

Update

+

Related pages

+

Layers

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateConfig.html b/data/web/blogfork.telegram.org/constructor/updateConfig.html new file mode 100644 index 0000000000..eb3c657eb1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateConfig.html @@ -0,0 +1,138 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateContactsReset.html b/data/web/blogfork.telegram.org/constructor/updateContactsReset.html new file mode 100644 index 0000000000..125dd9f500 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateContactsReset.html @@ -0,0 +1,135 @@ + + + + + updateContactsReset + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateContactsReset

+ +

All contacts were deleted

+

+ +
+
updateContactsReset#7084a7be = Update;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateDcOptions.html b/data/web/blogfork.telegram.org/constructor/updateDcOptions.html new file mode 100644 index 0000000000..9b6f627d1a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateDcOptions.html @@ -0,0 +1,150 @@ + + + + + updateDcOptions + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDcOptions

+ +

Changes in the data center configuration options.

+

+ +
+
updateDcOptions#8e5e9873 dc_options:Vector<DcOption> = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
dc_optionsVector<DcOption>New connection options
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateDeleteChannelMessages.html b/data/web/blogfork.telegram.org/constructor/updateDeleteChannelMessages.html new file mode 100644 index 0000000000..8b3d4b88af --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateDeleteChannelMessages.html @@ -0,0 +1,170 @@ + + + + + updateDeleteChannelMessages + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateDeleteChannelMessages

+ +

Some messages in a supergroup/channel were deleted

+

+ +
+
updateDeleteChannelMessages#c32d5b12 channel_id:long messages:Vector<int> pts:int pts_count:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idlongChannel 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, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateDeleteMessages.html b/data/web/blogfork.telegram.org/constructor/updateDeleteMessages.html new file mode 100644 index 0000000000..7c5eb31c62 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateDeleteMessages.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateDeleteScheduledMessages.html b/data/web/blogfork.telegram.org/constructor/updateDeleteScheduledMessages.html new file mode 100644 index 0000000000..08530489fb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateDeleteScheduledMessages.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateDialogFilter.html b/data/web/blogfork.telegram.org/constructor/updateDialogFilter.html new file mode 100644 index 0000000000..3bf8964d34 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateDialogFilter.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateDialogFilterOrder.html b/data/web/blogfork.telegram.org/constructor/updateDialogFilterOrder.html new file mode 100644 index 0000000000..3982ee79fd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateDialogFilterOrder.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateDialogFilters.html b/data/web/blogfork.telegram.org/constructor/updateDialogFilters.html new file mode 100644 index 0000000000..79e4ccd3de --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateDialogFilters.html @@ -0,0 +1,138 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateDialogPinned.html b/data/web/blogfork.telegram.org/constructor/updateDialogPinned.html new file mode 100644 index 0000000000..ee17caf008 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateDialogPinned.html @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateDialogUnreadMark.html b/data/web/blogfork.telegram.org/constructor/updateDialogUnreadMark.html new file mode 100644 index 0000000000..a3aff5440b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateDialogUnreadMark.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateDraftMessage.html b/data/web/blogfork.telegram.org/constructor/updateDraftMessage.html new file mode 100644 index 0000000000..04c6aec982 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateDraftMessage.html @@ -0,0 +1,158 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateEditChannelMessage.html b/data/web/blogfork.telegram.org/constructor/updateEditChannelMessage.html new file mode 100644 index 0000000000..8b2542801f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateEditChannelMessage.html @@ -0,0 +1,165 @@ + + + + + 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, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateEditMessage.html b/data/web/blogfork.telegram.org/constructor/updateEditMessage.html new file mode 100644 index 0000000000..cafda093c0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateEditMessage.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateEncryptedChatTyping.html b/data/web/blogfork.telegram.org/constructor/updateEncryptedChatTyping.html new file mode 100644 index 0000000000..0201574dcf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateEncryptedChatTyping.html @@ -0,0 +1,150 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateEncryptedMessagesRead.html b/data/web/blogfork.telegram.org/constructor/updateEncryptedMessagesRead.html new file mode 100644 index 0000000000..013a7f34c1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateEncryptedMessagesRead.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateEncryption.html b/data/web/blogfork.telegram.org/constructor/updateEncryption.html new file mode 100644 index 0000000000..84fab8f757 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateEncryption.html @@ -0,0 +1,155 @@ + + + + + updateEncryption + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateEncryption

+ +

Change of state in an encrypted chat.

+

+ +
+
updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chatEncryptedChatEncrypted chat
dateintDate of change
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateFavedStickers.html b/data/web/blogfork.telegram.org/constructor/updateFavedStickers.html new file mode 100644 index 0000000000..fc7beedfa1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateFavedStickers.html @@ -0,0 +1,138 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateFolderPeers.html b/data/web/blogfork.telegram.org/constructor/updateFolderPeers.html new file mode 100644 index 0000000000..affb0c5ca7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateFolderPeers.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateGeoLiveViewed.html b/data/web/blogfork.telegram.org/constructor/updateGeoLiveViewed.html new file mode 100644 index 0000000000..78e6251a35 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateGeoLiveViewed.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateGroupCall.html b/data/web/blogfork.telegram.org/constructor/updateGroupCall.html new file mode 100644 index 0000000000..41d50b27da --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateGroupCall.html @@ -0,0 +1,158 @@ + + + + + updateGroupCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateGroupCall

+ +

A new groupcall was started

+

+ +
+
updateGroupCall#14b24500 chat_id:long call:GroupCall = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idlongThe channel/supergroup where this group call or livestream takes place
callGroupCallInfo about the group call or livestream
+

Type

+

Update

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateGroupCallConnection.html b/data/web/blogfork.telegram.org/constructor/updateGroupCallConnection.html new file mode 100644 index 0000000000..ec90631ad7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateGroupCallConnection.html @@ -0,0 +1,160 @@ + + + + + updateGroupCallConnection + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateGroupCallConnection

+ +

New WebRTC parameters

+

+ +
+
updateGroupCallConnection#b783982 flags:# presentation:flags.0?true params:DataJSON = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
presentationflags.0?trueAre these parameters related to the screen capture session currently in progress?
paramsDataJSONWebRTC parameters
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateGroupCallParticipants.html b/data/web/blogfork.telegram.org/constructor/updateGroupCallParticipants.html new file mode 100644 index 0000000000..8f1d8f725b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateGroupCallParticipants.html @@ -0,0 +1,160 @@ + + + + + updateGroupCallParticipants + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateGroupCallParticipants

+ +

The participant list of a certain group call has changed

+

+ +
+
updateGroupCallParticipants#f2ebdb4e call:InputGroupCall participants:Vector<GroupCallParticipant> version:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
callInputGroupCallGroup call
participantsVector<GroupCallParticipant>New participant list
versionintVersion
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateInlineBotCallbackQuery.html b/data/web/blogfork.telegram.org/constructor/updateInlineBotCallbackQuery.html new file mode 100644 index 0000000000..79e0c9ed9f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateInlineBotCallbackQuery.html @@ -0,0 +1,180 @@ + + + + + updateInlineBotCallbackQuery + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateInlineBotCallbackQuery

+ +

This notification is received by bots when a button is pressed

+

+ +
+
updateInlineBotCallbackQuery#691e9052 flags:# query_id:long user_id:long 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_idlongID 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/web/blogfork.telegram.org/constructor/updateLangPack.html b/data/web/blogfork.telegram.org/constructor/updateLangPack.html new file mode 100644 index 0000000000..bc8444d166 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateLangPack.html @@ -0,0 +1,150 @@ + + + + + updateLangPack + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateLangPack

+ +

Language pack updated

+

+ +
+
updateLangPack#56022f4d difference:LangPackDifference = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
differenceLangPackDifferenceChanged strings
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateLangPackTooLong.html b/data/web/blogfork.telegram.org/constructor/updateLangPackTooLong.html new file mode 100644 index 0000000000..8a443ce94a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateLangPackTooLong.html @@ -0,0 +1,153 @@ + + + + + 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 language pack

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateLoginToken.html b/data/web/blogfork.telegram.org/constructor/updateLoginToken.html new file mode 100644 index 0000000000..8e005bec8d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateLoginToken.html @@ -0,0 +1,135 @@ + + + + + updateLoginToken + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateLoginToken

+ +

A login token (for login via QR code) was accepted.

+

+ +
+
updateLoginToken#564fe691 = Update;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateMessageID.html b/data/web/blogfork.telegram.org/constructor/updateMessageID.html new file mode 100644 index 0000000000..fe67fd4a2a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateMessageID.html @@ -0,0 +1,158 @@ + + + + + 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_idlongPreviously transferred client random_id identifier
+

Type

+

Update

+

Related pages

+

Message

+

Object describing a message.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateMessagePoll.html b/data/web/blogfork.telegram.org/constructor/updateMessagePoll.html new file mode 100644 index 0000000000..67cd297eaf --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateMessagePoll.html @@ -0,0 +1,165 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateMessagePollVote.html b/data/web/blogfork.telegram.org/constructor/updateMessagePollVote.html new file mode 100644 index 0000000000..5d17ae05ce --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateMessagePollVote.html @@ -0,0 +1,168 @@ + + + + + updateMessagePollVote + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateMessagePollVote

+ +

A specific user has voted in a poll

+

+ +
+
updateMessagePollVote#106395c9 poll_id:long user_id:long options:Vector<bytes> qts:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
poll_idlongPoll ID
user_idlongUser ID
optionsVector<bytes>Chosen option(s)
qtsintNew qts value, see updates » for more info.
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateMessageReactions.html b/data/web/blogfork.telegram.org/constructor/updateMessageReactions.html new file mode 100644 index 0000000000..2c3f65fc57 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateMessageReactions.html @@ -0,0 +1,163 @@ + + + + + updateMessageReactions + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateMessageReactions

+ +

New message reactions » are available

+

+ +
+
updateMessageReactions#154798c3 peer:Peer msg_id:int reactions:MessageReactions = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerPeer
msg_idintMessage ID
reactionsMessageReactionsReactions
+

Type

+

Update

+

Related pages

+

Message reactions

+

Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateNewChannelMessage.html b/data/web/blogfork.telegram.org/constructor/updateNewChannelMessage.html new file mode 100644 index 0000000000..c4026bb445 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateNewChannelMessage.html @@ -0,0 +1,165 @@ + + + + + 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, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateNewEncryptedMessage.html b/data/web/blogfork.telegram.org/constructor/updateNewEncryptedMessage.html new file mode 100644 index 0000000000..1d89cd6169 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateNewEncryptedMessage.html @@ -0,0 +1,158 @@ + + + + + updateNewEncryptedMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateNewEncryptedMessage

+ +

New encrypted message.

+

+ +
+
updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
messageEncryptedMessageMessage
qtsintNew qts value, see updates » for more info.
+

Type

+

Update

+

Related pages

+

Working with Updates

+

How to subscribe to updates and handle them properly.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateNewMessage.html b/data/web/blogfork.telegram.org/constructor/updateNewMessage.html new file mode 100644 index 0000000000..bd26c9120c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateNewMessage.html @@ -0,0 +1,160 @@ + + + + + updateNewMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateNewMessage

+ +

New message in a private chat or in a basic 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/web/blogfork.telegram.org/constructor/updateNewScheduledMessage.html b/data/web/blogfork.telegram.org/constructor/updateNewScheduledMessage.html new file mode 100644 index 0000000000..b87d83428b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateNewScheduledMessage.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateNewStickerSet.html b/data/web/blogfork.telegram.org/constructor/updateNewStickerSet.html new file mode 100644 index 0000000000..d75f9cb5fd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateNewStickerSet.html @@ -0,0 +1,150 @@ + + + + + updateNewStickerSet + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateNewStickerSet

+ +

A new stickerset was installed

+

+ +
+
updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
stickersetmessages.StickerSetThe installed stickerset
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateNotifySettings.html b/data/web/blogfork.telegram.org/constructor/updateNotifySettings.html new file mode 100644 index 0000000000..cc6dcf935f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateNotifySettings.html @@ -0,0 +1,155 @@ + + + + + updateNotifySettings + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateNotifySettings

+ +

Changes in notification settings.

+

+ +
+
updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerNotifyPeerNotification source
notify_settingsPeerNotifySettingsNew notification settings
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updatePeerBlocked.html b/data/web/blogfork.telegram.org/constructor/updatePeerBlocked.html new file mode 100644 index 0000000000..e3030493bb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePeerBlocked.html @@ -0,0 +1,155 @@ + + + + + updatePeerBlocked + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePeerBlocked

+ +

A peer was blocked

+

+ +
+
updatePeerBlocked#246a4b22 peer_id:Peer blocked:Bool = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peer_idPeerThe blocked peer
blockedBoolWhether the peer was blocked or unblocked
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updatePeerHistoryTTL.html b/data/web/blogfork.telegram.org/constructor/updatePeerHistoryTTL.html new file mode 100644 index 0000000000..41d2d6f062 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePeerHistoryTTL.html @@ -0,0 +1,160 @@ + + + + + updatePeerHistoryTTL + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePeerHistoryTTL

+ +

The Time-To-Live for messages sent by the current user in a specific chat has changed

+

+ +
+
updatePeerHistoryTTL#bb9bb9a5 flags:# peer:Peer ttl_period:flags.0?int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
peerPeerThe chat
ttl_periodflags.0?intThe new Time-To-Live
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updatePeerLocated.html b/data/web/blogfork.telegram.org/constructor/updatePeerLocated.html new file mode 100644 index 0000000000..b8400af57c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePeerLocated.html @@ -0,0 +1,150 @@ + + + + + updatePeerLocated + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePeerLocated

+ +

List of peers near you was updated

+

+ +
+
updatePeerLocated#b4afcfb0 peers:Vector<PeerLocated> = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peersVector<PeerLocated>Geolocated peer list update
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updatePeerSettings.html b/data/web/blogfork.telegram.org/constructor/updatePeerSettings.html new file mode 100644 index 0000000000..84ba4628b1 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePeerSettings.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updatePendingJoinRequests.html b/data/web/blogfork.telegram.org/constructor/updatePendingJoinRequests.html new file mode 100644 index 0000000000..c81ca915ab --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePendingJoinRequests.html @@ -0,0 +1,163 @@ + + + + + updatePendingJoinRequests + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePendingJoinRequests

+ +

Someone has requested to join a chat or channel

+

+ +
+
updatePendingJoinRequests#7063c3db peer:Peer requests_pending:int recent_requesters:Vector<long> = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeerChat or channel
requests_pendingintNumber of pending join requests » for the chat or channel
recent_requestersVector<long>IDs of users that have recently requested to join
+

Type

+

Update

+

Related pages

+

Invites

+

Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updatePhoneCall.html b/data/web/blogfork.telegram.org/constructor/updatePhoneCall.html new file mode 100644 index 0000000000..8ef3b37edd --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePhoneCall.html @@ -0,0 +1,150 @@ + + + + + updatePhoneCall + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePhoneCall

+ +

An incoming phone call

+

+ +
+
updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
phone_callPhoneCallPhone call
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updatePhoneCallSignalingData.html b/data/web/blogfork.telegram.org/constructor/updatePhoneCallSignalingData.html new file mode 100644 index 0000000000..2bb292442a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePhoneCallSignalingData.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updatePinnedChannelMessages.html b/data/web/blogfork.telegram.org/constructor/updatePinnedChannelMessages.html new file mode 100644 index 0000000000..1bf5407618 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePinnedChannelMessages.html @@ -0,0 +1,180 @@ + + + + + updatePinnedChannelMessages + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updatePinnedChannelMessages

+ +

Messages were pinned/unpinned in a channel/supergroup

+

+ +
+
updatePinnedChannelMessages#5bb98608 flags:# pinned:flags.0?true channel_id:long 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_idlongChannel 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, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updatePinnedDialogs.html b/data/web/blogfork.telegram.org/constructor/updatePinnedDialogs.html new file mode 100644 index 0000000000..cd315c6af2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePinnedDialogs.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updatePinnedMessages.html b/data/web/blogfork.telegram.org/constructor/updatePinnedMessages.html new file mode 100644 index 0000000000..1e9bac11bb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePinnedMessages.html @@ -0,0 +1,178 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updatePrivacy.html b/data/web/blogfork.telegram.org/constructor/updatePrivacy.html new file mode 100644 index 0000000000..cf7dac2784 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePrivacy.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updatePtsChanged.html b/data/web/blogfork.telegram.org/constructor/updatePtsChanged.html new file mode 100644 index 0000000000..72fcd2d091 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatePtsChanged.html @@ -0,0 +1,138 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateReadChannelDiscussionInbox.html b/data/web/blogfork.telegram.org/constructor/updateReadChannelDiscussionInbox.html new file mode 100644 index 0000000000..2c24f38769 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateReadChannelDiscussionInbox.html @@ -0,0 +1,180 @@ + + + + + updateReadChannelDiscussionInbox + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadChannelDiscussionInbox

+ +

Incoming comments in a discussion thread were marked as read

+

+ +
+
updateReadChannelDiscussionInbox#d6b19546 flags:# channel_id:long top_msg_id:int read_max_id:int broadcast_id:flags.0?long broadcast_post:flags.0?int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
channel_idlongDiscussion 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?longIf 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, supergroups, gigagroups and basic groups

+

How to handle channels, supergroups, gigagroups, basic 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/web/blogfork.telegram.org/constructor/updateReadChannelDiscussionOutbox.html b/data/web/blogfork.telegram.org/constructor/updateReadChannelDiscussionOutbox.html new file mode 100644 index 0000000000..5e8116b6bb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateReadChannelDiscussionOutbox.html @@ -0,0 +1,165 @@ + + + + + updateReadChannelDiscussionOutbox + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadChannelDiscussionOutbox

+ +

Outgoing comments in a discussion thread were marked as read

+

+ +
+
updateReadChannelDiscussionOutbox#695c9e7c channel_id:long top_msg_id:int read_max_id:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idlongSupergroup 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, supergroups, gigagroups and basic groups

+

How to handle channels, supergroups, gigagroups, basic 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/web/blogfork.telegram.org/constructor/updateReadChannelInbox.html b/data/web/blogfork.telegram.org/constructor/updateReadChannelInbox.html new file mode 100644 index 0000000000..7c972a9bf3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateReadChannelInbox.html @@ -0,0 +1,182 @@ + + + + + updateReadChannelInbox + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadChannelInbox

+ +

Incoming messages in a channel/supergroup were read

+

+ +
+
updateReadChannelInbox#922e6e10 flags:# folder_id:flags.0?int channel_id:long 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_idlongChannel/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, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateReadChannelOutbox.html b/data/web/blogfork.telegram.org/constructor/updateReadChannelOutbox.html new file mode 100644 index 0000000000..1dc34d229d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateReadChannelOutbox.html @@ -0,0 +1,158 @@ + + + + + updateReadChannelOutbox + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadChannelOutbox

+ +

Outgoing messages in a channel/supergroup were read

+

+ +
+
updateReadChannelOutbox#b75f99a9 channel_id:long max_id:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channel_idlongChannel/supergroup ID
max_idintPosition up to which all outgoing messages are read.
+

Type

+

Update

+

Related pages

+

Channels, supergroups, gigagroups and basic groups

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateReadFeaturedStickers.html b/data/web/blogfork.telegram.org/constructor/updateReadFeaturedStickers.html new file mode 100644 index 0000000000..9038267bae --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateReadFeaturedStickers.html @@ -0,0 +1,135 @@ + + + + + updateReadFeaturedStickers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateReadFeaturedStickers

+ +

Some featured stickers were marked as read

+

+ +
+
updateReadFeaturedStickers#571d2742 = Update;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateReadHistoryInbox.html b/data/web/blogfork.telegram.org/constructor/updateReadHistoryInbox.html new file mode 100644 index 0000000000..e5b34c59fe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateReadHistoryInbox.html @@ -0,0 +1,185 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateReadHistoryOutbox.html b/data/web/blogfork.telegram.org/constructor/updateReadHistoryOutbox.html new file mode 100644 index 0000000000..b0d5f13c7c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateReadHistoryOutbox.html @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateReadMessagesContents.html b/data/web/blogfork.telegram.org/constructor/updateReadMessagesContents.html new file mode 100644 index 0000000000..9a20f3f54a --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateReadMessagesContents.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateRecentStickers.html b/data/web/blogfork.telegram.org/constructor/updateRecentStickers.html new file mode 100644 index 0000000000..bd07a71002 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateRecentStickers.html @@ -0,0 +1,135 @@ + + + + + updateRecentStickers + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateRecentStickers

+ +

The recent sticker list was updated

+

+ +
+
updateRecentStickers#9a422c20 = Update;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateSavedGifs.html b/data/web/blogfork.telegram.org/constructor/updateSavedGifs.html new file mode 100644 index 0000000000..195a195cb9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateSavedGifs.html @@ -0,0 +1,135 @@ + + + + + updateSavedGifs + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateSavedGifs

+ +

The saved gif list has changed, the client should refetch it using messages.getSavedGifs

+

+ +
+
updateSavedGifs#9375341e = Update;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateServiceNotification.html b/data/web/blogfork.telegram.org/constructor/updateServiceNotification.html new file mode 100644 index 0000000000..f43f07193e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateServiceNotification.html @@ -0,0 +1,186 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateShort.html b/data/web/blogfork.telegram.org/constructor/updateShort.html new file mode 100644 index 0000000000..7e61d759db --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateShort.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateShortChatMessage.html b/data/web/blogfork.telegram.org/constructor/updateShortChatMessage.html new file mode 100644 index 0000000000..5f9df99313 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateShortChatMessage.html @@ -0,0 +1,235 @@ + + + + + updateShortChatMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateShortChatMessage

+ +

Shortened constructor containing info on one new incoming text message from a chat

+

+ +
+
updateShortChatMessage#4d6deea5 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:long chat_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = 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_idlongID of the sender of the message
chat_idlongID 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?longInfo about the inline bot used to generate this message
reply_toflags.3?MessageReplyHeaderReply (thread) information
entitiesflags.7?Vector<MessageEntity>Entities for styled text
ttl_periodflags.25?intTime To Live of the message, once updateShortChatMessage.date+updateShortChatMessage.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.
+

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/web/blogfork.telegram.org/constructor/updateShortMessage.html b/data/web/blogfork.telegram.org/constructor/updateShortMessage.html new file mode 100644 index 0000000000..5108142f63 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateShortMessage.html @@ -0,0 +1,232 @@ + + + + + updateShortMessage + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateShortMessage

+ +

Info about a message sent to (received from) another user

+

+ +
+
updateShortMessage#313bc7f8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = 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_idlongThe 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?longInfo about the inline bot used to generate this message
reply_toflags.3?MessageReplyHeaderReply and thread information
entitiesflags.7?Vector<MessageEntity>Entities for styled text
ttl_periodflags.25?intTime To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.
+

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/web/blogfork.telegram.org/constructor/updateShortSentMessage.html b/data/web/blogfork.telegram.org/constructor/updateShortSentMessage.html new file mode 100644 index 0000000000..fc60104146 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateShortSentMessage.html @@ -0,0 +1,195 @@ + + + + + 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#9015e101 flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = 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
ttl_periodflags.25?intTime To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.
+

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/web/blogfork.telegram.org/constructor/updateStickerSets.html b/data/web/blogfork.telegram.org/constructor/updateStickerSets.html new file mode 100644 index 0000000000..3eee9fd84c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateStickerSets.html @@ -0,0 +1,135 @@ + + + + + updateStickerSets + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateStickerSets

+ +

Installed stickersets have changed, the client should refetch them using messages.getAllStickers

+

+ +
+
updateStickerSets#43ae3dec = Update;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateStickerSetsOrder.html b/data/web/blogfork.telegram.org/constructor/updateStickerSetsOrder.html new file mode 100644 index 0000000000..3e082f7017 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateStickerSetsOrder.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updateTheme.html b/data/web/blogfork.telegram.org/constructor/updateTheme.html new file mode 100644 index 0000000000..05207dfca3 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateTheme.html @@ -0,0 +1,150 @@ + + + + + updateTheme + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateTheme

+ +

A cloud theme was updated

+

+ +
+
updateTheme#8216fba3 theme:Theme = Update;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
themeThemeTheme
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateUserName.html b/data/web/blogfork.telegram.org/constructor/updateUserName.html new file mode 100644 index 0000000000..6108021bf7 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateUserName.html @@ -0,0 +1,170 @@ + + + + + updateUserName + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateUserName

+ +

Changes the user's first name, last name and username.

+

+ +
+
updateUserName#c3f202e0 user_id:long first_name:string last_name:string username:string = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser 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 schema changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateUserPhone.html b/data/web/blogfork.telegram.org/constructor/updateUserPhone.html new file mode 100644 index 0000000000..ea4572785c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateUserPhone.html @@ -0,0 +1,155 @@ + + + + + updateUserPhone + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateUserPhone

+ +

A user's phone number was changed

+

+ +
+
updateUserPhone#5492a13 user_id:long phone:string = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser ID
phonestringNew phone number
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateUserPhoto.html b/data/web/blogfork.telegram.org/constructor/updateUserPhoto.html new file mode 100644 index 0000000000..53f77d5957 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateUserPhoto.html @@ -0,0 +1,168 @@ + + + + + updateUserPhoto + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateUserPhoto

+ +

Change of contact's profile photo.

+

+ +
+
updateUserPhoto#f227868c user_id:long date:int photo:UserProfilePhoto previous:Bool = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser 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/web/blogfork.telegram.org/constructor/updateUserStatus.html b/data/web/blogfork.telegram.org/constructor/updateUserStatus.html new file mode 100644 index 0000000000..d9c17c80f6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateUserStatus.html @@ -0,0 +1,155 @@ + + + + + updateUserStatus + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateUserStatus

+ +

Contact status update.

+

+ +
+
updateUserStatus#e5bdf8de user_id:long status:UserStatus = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser identifier
statusUserStatusNew status
+

Type

+

Update

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateUserTyping.html b/data/web/blogfork.telegram.org/constructor/updateUserTyping.html new file mode 100644 index 0000000000..a261b8c4ad --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateUserTyping.html @@ -0,0 +1,158 @@ + + + + + updateUserTyping + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updateUserTyping

+ +

The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing

+

+ +
+
updateUserTyping#c01e857f user_id:long action:SendMessageAction = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idlongUser id
actionSendMessageActionAction type
Param added in Layer 17.
+

Type

+

Update

+

Related pages

+

Layers

+

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

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updateWebPage.html b/data/web/blogfork.telegram.org/constructor/updateWebPage.html new file mode 100644 index 0000000000..651ba5435e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updateWebPage.html @@ -0,0 +1,163 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updates.channelDifference b/data/web/blogfork.telegram.org/constructor/updates.channelDifference new file mode 100644 index 0000000000..81b39557db --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updates.channelDifference @@ -0,0 +1,188 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updates.channelDifferenceEmpty b/data/web/blogfork.telegram.org/constructor/updates.channelDifferenceEmpty new file mode 100644 index 0000000000..bbba24823c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updates.channelDifferenceEmpty @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updates.channelDifferenceTooLong b/data/web/blogfork.telegram.org/constructor/updates.channelDifferenceTooLong new file mode 100644 index 0000000000..548e37c1bb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updates.channelDifferenceTooLong @@ -0,0 +1,202 @@ + + + + + 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 (assuming the existence of a persistent database to locally store messages):

+
    +
  1. Delete all known messages in the chat, begin from scratch by refetching all messages manually with messages.getHistory. It is easy to implement, but suddenly disappearing messages look awful to the user.
  2. +
  3. Save all messages loaded in the memory until application restart, but delete all messages from the database. Messages left in the memory must be lazily updated using calls to messages.getHistory.
    +It will look much smoother to the user, they will need to redownload messages only after client restart.
    +Unsynchronized messages left in memory shouldn't be saved to the database, results of messages.getHistory and messages.getMessages must be used to update the 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 when paginating through or searching the local message history after application restart and will be available only through individual message queries.
    +Every message should still be checked using messages.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 when paginating through or searching the local message history.
    +The messages should still be lazily checked using messages.getHistory, but they are still available offline.
    +It is the best way for gaps support, but it is pretty hard to implement correctly.
  8. +
+

It should be also noted that some messages like live location messages shouldn't be deleted.

+

+ +
+
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/web/blogfork.telegram.org/constructor/updates.difference b/data/web/blogfork.telegram.org/constructor/updates.difference new file mode 100644 index 0000000000..d75651bc02 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updates.difference @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updates.differenceEmpty b/data/web/blogfork.telegram.org/constructor/updates.differenceEmpty new file mode 100644 index 0000000000..fe6b3a97eb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updates.differenceEmpty @@ -0,0 +1,155 @@ + + + + + updates.differenceEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updates.differenceEmpty

+ +

No events.

+

+ +
+
updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dateintCurrent date
seqintNumber of sent updates
+

Type

+

updates.Difference

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updates.differenceSlice b/data/web/blogfork.telegram.org/constructor/updates.differenceSlice new file mode 100644 index 0000000000..9f7ed75722 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updates.differenceSlice @@ -0,0 +1,178 @@ + + + + + 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 messages
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/web/blogfork.telegram.org/constructor/updates.differenceTooLong b/data/web/blogfork.telegram.org/constructor/updates.differenceTooLong new file mode 100644 index 0000000000..e0e7722757 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updates.differenceTooLong @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updates.html b/data/web/blogfork.telegram.org/constructor/updates.html new file mode 100644 index 0000000000..ae7a1b28df --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updates.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updates.state b/data/web/blogfork.telegram.org/constructor/updates.state new file mode 100644 index 0000000000..f304ff3319 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updates.state @@ -0,0 +1,173 @@ + + + + + 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 occurred in a text box
qtsintPosition in a sequence of updates in secret chats. For further details refer to article secret chats
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.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/updatesCombined.html b/data/web/blogfork.telegram.org/constructor/updatesCombined.html new file mode 100644 index 0000000000..f3f399837e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatesCombined.html @@ -0,0 +1,175 @@ + + + + + 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/web/blogfork.telegram.org/constructor/updatesTooLong.html b/data/web/blogfork.telegram.org/constructor/updatesTooLong.html new file mode 100644 index 0000000000..e71025eb71 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/updatesTooLong.html @@ -0,0 +1,138 @@ + + + + + updatesTooLong + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

updatesTooLong

+ +

Too many updates, it is necessary to execute updates.getDifference.

+

+ +
+
updatesTooLong#e317af7e = Updates;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

Updates

+

Related pages

+

updates.getDifference

+

Get new updates.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/upload.cdnFile b/data/web/blogfork.telegram.org/constructor/upload.cdnFile new file mode 100644 index 0000000000..20e78fad52 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/upload.cdnFile @@ -0,0 +1,152 @@ + + + + + upload.cdnFile + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.cdnFile

+ +

Represent a chunk of a CDN file.

+

+ +
+
upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
bytesbytesThe data
+

Type

+

upload.CdnFile

+

Related pages

+

Encrypted CDNs for Speed and Security

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/upload.cdnFileReuploadNeeded b/data/web/blogfork.telegram.org/constructor/upload.cdnFileReuploadNeeded new file mode 100644 index 0000000000..6e7a0df43b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/upload.cdnFileReuploadNeeded @@ -0,0 +1,152 @@ + + + + + upload.cdnFileReuploadNeeded + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

upload.cdnFileReuploadNeeded

+ +

The file was cleared from the temporary RAM cache of the CDN and has to be re-uploaded.

+

+ +
+
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/web/blogfork.telegram.org/constructor/upload.file b/data/web/blogfork.telegram.org/constructor/upload.file new file mode 100644 index 0000000000..843a1f5b1d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/upload.file @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/upload.fileCdnRedirect b/data/web/blogfork.telegram.org/constructor/upload.fileCdnRedirect new file mode 100644 index 0000000000..acd900bb65 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/upload.fileCdnRedirect @@ -0,0 +1,172 @@ + + + + + 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/web/blogfork.telegram.org/constructor/upload.webFile b/data/web/blogfork.telegram.org/constructor/upload.webFile new file mode 100644 index 0000000000..0ff5993349 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/upload.webFile @@ -0,0 +1,173 @@ + + + + + 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/web/blogfork.telegram.org/constructor/urlAuthResultAccepted.html b/data/web/blogfork.telegram.org/constructor/urlAuthResultAccepted.html new file mode 100644 index 0000000000..775f983abe --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/urlAuthResultAccepted.html @@ -0,0 +1,153 @@ + + + + + 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/web/blogfork.telegram.org/constructor/urlAuthResultDefault.html b/data/web/blogfork.telegram.org/constructor/urlAuthResultDefault.html new file mode 100644 index 0000000000..c9c156bad0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/urlAuthResultDefault.html @@ -0,0 +1,138 @@ + + + + + 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/web/blogfork.telegram.org/constructor/urlAuthResultRequest.html b/data/web/blogfork.telegram.org/constructor/urlAuthResultRequest.html new file mode 100644 index 0000000000..29b001add9 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/urlAuthResultRequest.html @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/user.html b/data/web/blogfork.telegram.org/constructor/user.html new file mode 100644 index 0000000000..6a38628d16 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/user.html @@ -0,0 +1,290 @@ + + + + + user + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

user

+ +

Indicates info about a certain user

+

+ +
+
user#3ff6ecb0 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 fake:flags.26?true id:long 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
fakeflags.26?trueIf set, this user was reported by many users as a fake or scam user: be careful when interacting with them.
idlongID 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/web/blogfork.telegram.org/constructor/userEmpty.html b/data/web/blogfork.telegram.org/constructor/userEmpty.html new file mode 100644 index 0000000000..e822336dd0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/userEmpty.html @@ -0,0 +1,150 @@ + + + + + userEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

userEmpty

+ +

Empty constructor, non-existent user.

+

+ +
+
userEmpty#d3bc4b7a id:long = User;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idlongUser identifier or 0
+

Type

+

User

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/userFull.html b/data/web/blogfork.telegram.org/constructor/userFull.html new file mode 100644 index 0000000000..3a727bea0e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/userFull.html @@ -0,0 +1,247 @@ + + + + + userFull + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

userFull

+ +

Extended user info

+

+ +
+
userFull#cf366521 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 id:long 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 ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string = 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 them
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
idlongUser ID
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
ttl_periodflags.14?intTime To Live of all messages in this chat; once a message is this many seconds old, it must be deleted.
theme_emoticonflags.15?stringEmoji associated with chat theme
private_forward_nameflags.16?stringAnonymized text to be shown instead of the the user's name on forwarded messages
+

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/web/blogfork.telegram.org/constructor/userProfilePhoto.html b/data/web/blogfork.telegram.org/constructor/userProfilePhoto.html new file mode 100644 index 0000000000..1a6a2172a2 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/userProfilePhoto.html @@ -0,0 +1,175 @@ + + + + + userProfilePhoto + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

userProfilePhoto

+ +

User profile photo.

+

+ +
+
userProfilePhoto#82d1f706 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes 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
stripped_thumbflags.1?bytesStripped 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 schema changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/userProfilePhotoEmpty.html b/data/web/blogfork.telegram.org/constructor/userProfilePhotoEmpty.html new file mode 100644 index 0000000000..6b0c674050 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/userProfilePhotoEmpty.html @@ -0,0 +1,135 @@ + + + + + userProfilePhotoEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

userProfilePhotoEmpty

+ +

Profile photo has not been set, or was hidden.

+

+ +
+
userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

UserProfilePhoto

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/userStatusEmpty.html b/data/web/blogfork.telegram.org/constructor/userStatusEmpty.html new file mode 100644 index 0000000000..9b2df1dcc6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/userStatusEmpty.html @@ -0,0 +1,135 @@ + + + + + userStatusEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

userStatusEmpty

+ +

User status has not been set yet.

+

+ +
+
userStatusEmpty#9d05049 = UserStatus;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

UserStatus

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/userStatusLastMonth.html b/data/web/blogfork.telegram.org/constructor/userStatusLastMonth.html new file mode 100644 index 0000000000..b0d9d7e8ab --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/userStatusLastMonth.html @@ -0,0 +1,135 @@ + + + + + userStatusLastMonth + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

userStatusLastMonth

+ +

Online status: last seen last month

+

+ +
+
userStatusLastMonth#77ebc742 = UserStatus;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

UserStatus

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/userStatusLastWeek.html b/data/web/blogfork.telegram.org/constructor/userStatusLastWeek.html new file mode 100644 index 0000000000..b9e44360f6 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/userStatusLastWeek.html @@ -0,0 +1,135 @@ + + + + + userStatusLastWeek + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

userStatusLastWeek

+ +

Online status: last seen last week

+

+ +
+
userStatusLastWeek#7bf09fc = UserStatus;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

UserStatus

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/userStatusOffline.html b/data/web/blogfork.telegram.org/constructor/userStatusOffline.html new file mode 100644 index 0000000000..9bc839658e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/userStatusOffline.html @@ -0,0 +1,150 @@ + + + + + userStatusOffline + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

userStatusOffline

+ +

The user's offline status.

+

+ +
+
userStatusOffline#8c703f was_online:int = UserStatus;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
was_onlineintTime the user was last seen online
+

Type

+

UserStatus

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/userStatusOnline.html b/data/web/blogfork.telegram.org/constructor/userStatusOnline.html new file mode 100644 index 0000000000..f48d770dda --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/userStatusOnline.html @@ -0,0 +1,150 @@ + + + + + userStatusOnline + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

userStatusOnline

+ +

Online status of the user.

+

+ +
+
userStatusOnline#edb93949 expires:int = UserStatus;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
expiresintTime to expiration of the current online status
+

Type

+

UserStatus

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/userStatusRecently.html b/data/web/blogfork.telegram.org/constructor/userStatusRecently.html new file mode 100644 index 0000000000..ce668820b0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/userStatusRecently.html @@ -0,0 +1,135 @@ + + + + + userStatusRecently + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

userStatusRecently

+ +

Online status: last seen recently

+

+ +
+
userStatusRecently#e26f42f1 = UserStatus;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

UserStatus

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/users.userFull b/data/web/blogfork.telegram.org/constructor/users.userFull new file mode 100644 index 0000000000..f9bb120b79 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/users.userFull @@ -0,0 +1,160 @@ + + + + + users.userFull + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

users.userFull

+ +

Full user information

+

+ +
+
users.userFull#3b6d152e full_user:UserFull chats:Vector<Chat> users:Vector<User> = users.UserFull;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
full_userUserFullFull user information
chatsVector<Chat>Mentioned chats
usersVector<User>Mentioned users
+

Type

+

users.UserFull

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/vector.html b/data/web/blogfork.telegram.org/constructor/vector.html new file mode 100644 index 0000000000..ab0a5225ca --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/vector.html @@ -0,0 +1,137 @@ + + + + + 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/web/blogfork.telegram.org/constructor/videoSize.html b/data/web/blogfork.telegram.org/constructor/videoSize.html new file mode 100644 index 0000000000..6e8e637cbb --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/videoSize.html @@ -0,0 +1,178 @@ + + + + + videoSize + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

videoSize

+ +

Animated profile picture in MPEG4 format

+

+ +
+
videoSize#de33b094 flags:# type:string 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
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/web/blogfork.telegram.org/constructor/wallPaper.html b/data/web/blogfork.telegram.org/constructor/wallPaper.html new file mode 100644 index 0000000000..645893242b --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/wallPaper.html @@ -0,0 +1,195 @@ + + + + + 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/web/blogfork.telegram.org/constructor/wallPaperNoFile.html b/data/web/blogfork.telegram.org/constructor/wallPaperNoFile.html new file mode 100644 index 0000000000..70e7a7d21f --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/wallPaperNoFile.html @@ -0,0 +1,174 @@ + + + + + wallPaperNoFile + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

wallPaperNoFile

+ +

Wallpaper with no file access hash, used for example when deleting (unsave=true) wallpapers using account.saveWallPaper, specifying just the wallpaper ID.
+Also used for some default wallpapers which contain only colours.

+

+ +
+
wallPaperNoFile#e0804116 id:long flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongWallpaper ID
flags#Flags, see TL conditional fields
defaultflags.1?trueWhether this is the default wallpaper
darkflags.4?trueDark mode
settingsflags.2?WallPaperSettingsWallpaper settings
+

Type

+

WallPaper

+

Related pages

+

account.saveWallPaper

+

Install/uninstall wallpaper

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/wallPaperSettings.html b/data/web/blogfork.telegram.org/constructor/wallPaperSettings.html new file mode 100644 index 0000000000..dc72484e18 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/wallPaperSettings.html @@ -0,0 +1,190 @@ + + + + + wallPaperSettings + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

wallPaperSettings

+ +

Wallpaper settings

+

+ +
+
wallPaperSettings#1dc1bca4 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int third_background_color:flags.5?int fourth_background_color:flags.6?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
third_background_colorflags.5?intIf set, a PNG pattern is to be combined with the first, second and third background colors (RGB24 format) in a freeform gradient
fourth_background_colorflags.6?intIf set, a PNG pattern is to be combined with the first, second, third and fourth background colors (RGB24 format) in a freeform 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/web/blogfork.telegram.org/constructor/webAuthorization.html b/data/web/blogfork.telegram.org/constructor/webAuthorization.html new file mode 100644 index 0000000000..bd4c68cc9e --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/webAuthorization.html @@ -0,0 +1,192 @@ + + + + + webAuthorization + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

webAuthorization

+ +

Represents a bot logged in using the Telegram login widget

+

+ +
+
webAuthorization#a6f8f452 hash:long bot_id:long domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashlongAuthorization hash
bot_idlongBot 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/web/blogfork.telegram.org/constructor/webDocument.html b/data/web/blogfork.telegram.org/constructor/webDocument.html new file mode 100644 index 0000000000..731a96566c --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/webDocument.html @@ -0,0 +1,170 @@ + + + + + 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/web/blogfork.telegram.org/constructor/webDocumentNoProxy.html b/data/web/blogfork.telegram.org/constructor/webDocumentNoProxy.html new file mode 100644 index 0000000000..4afa6efc2d --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/webDocumentNoProxy.html @@ -0,0 +1,168 @@ + + + + + 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/web/blogfork.telegram.org/constructor/webPage.html b/data/web/blogfork.telegram.org/constructor/webPage.html new file mode 100644 index 0000000000..d2a49c1bb4 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/webPage.html @@ -0,0 +1,243 @@ + + + + + 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/web/blogfork.telegram.org/constructor/webPageAttributeTheme.html b/data/web/blogfork.telegram.org/constructor/webPageAttributeTheme.html new file mode 100644 index 0000000000..77f25dbb60 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/webPageAttributeTheme.html @@ -0,0 +1,160 @@ + + + + + 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/web/blogfork.telegram.org/constructor/webPageEmpty.html b/data/web/blogfork.telegram.org/constructor/webPageEmpty.html new file mode 100644 index 0000000000..b36a1e59b0 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/webPageEmpty.html @@ -0,0 +1,150 @@ + + + + + webPageEmpty + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

webPageEmpty

+ +

No preview is available for the webpage

+

+ +
+
webPageEmpty#eb1477e8 id:long = WebPage;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
idlongPreview ID
+

Type

+

WebPage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/constructor/webPageNotModified.html b/data/web/blogfork.telegram.org/constructor/webPageNotModified.html new file mode 100644 index 0000000000..ddc62f2cab --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/webPageNotModified.html @@ -0,0 +1,155 @@ + + + + + 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/web/blogfork.telegram.org/constructor/webPagePending.html b/data/web/blogfork.telegram.org/constructor/webPagePending.html new file mode 100644 index 0000000000..aac636ff91 --- /dev/null +++ b/data/web/blogfork.telegram.org/constructor/webPagePending.html @@ -0,0 +1,155 @@ + + + + + webPagePending + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

webPagePending

+ +

A preview of the webpage is currently being generated

+

+ +
+
webPagePending#c586da1c id:long date:int = WebPage;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
idlongID of preview
dateintWhen was the processing started
+

Type

+

WebPage

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/css/bootstrap-extra.css b/data/web/blogfork.telegram.org/css/bootstrap-extra.css new file mode 100644 index 0000000000..8a35b6069b --- /dev/null +++ b/data/web/blogfork.telegram.org/css/bootstrap-extra.css @@ -0,0 +1,3274 @@ +/* glyph */ +@font-face { + font-family: 'Glyphicons Halflings'; + src: url('../fonts/glyphicons-halflings-regular.eot'); + src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); +} +.glyphicon { + position: relative; + top: 1px; + display: inline-block; + font-family: 'Glyphicons Halflings'; + font-style: normal; + font-weight: normal; + line-height: 1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.glyphicon-asterisk:before { + content: "\2a"; +} +.glyphicon-plus:before { + content: "\2b"; +} +.glyphicon-euro:before { + content: "\20ac"; +} +.glyphicon-minus:before { + content: "\2212"; +} +.glyphicon-cloud:before { + content: "\2601"; +} +.glyphicon-envelope:before { + content: "\2709"; +} +.glyphicon-pencil:before { + content: "\270f"; +} +.glyphicon-glass:before { + content: "\e001"; +} +.glyphicon-music:before { + content: "\e002"; +} +.glyphicon-search:before { + content: "\e003"; +} +.glyphicon-heart:before { + content: "\e005"; +} +.glyphicon-star:before { + content: "\e006"; +} +.glyphicon-star-empty:before { + content: "\e007"; +} +.glyphicon-user:before { + content: "\e008"; +} +.glyphicon-film:before { + content: "\e009"; +} +.glyphicon-th-large:before { + content: "\e010"; +} +.glyphicon-th:before { + content: "\e011"; +} +.glyphicon-th-list:before { + content: "\e012"; +} +.glyphicon-ok:before { + content: "\e013"; +} +.glyphicon-remove:before { + content: "\e014"; +} +.glyphicon-zoom-in:before { + content: "\e015"; +} +.glyphicon-zoom-out:before { + content: "\e016"; +} +.glyphicon-off:before { + content: "\e017"; +} +.glyphicon-signal:before { + content: "\e018"; +} +.glyphicon-cog:before { + content: "\e019"; +} +.glyphicon-trash:before { + content: "\e020"; +} +.glyphicon-home:before { + content: "\e021"; +} +.glyphicon-file:before { + content: "\e022"; +} +.glyphicon-time:before { + content: "\e023"; +} +.glyphicon-road:before { + content: "\e024"; +} +.glyphicon-download-alt:before { + content: "\e025"; +} +.glyphicon-download:before { + content: "\e026"; +} +.glyphicon-upload:before { + content: "\e027"; +} +.glyphicon-inbox:before { + content: "\e028"; +} +.glyphicon-play-circle:before { + content: "\e029"; +} +.glyphicon-repeat:before { + content: "\e030"; +} +.glyphicon-refresh:before { + content: "\e031"; +} +.glyphicon-list-alt:before { + content: "\e032"; +} +.glyphicon-lock:before { + content: "\e033"; +} +.glyphicon-flag:before { + content: "\e034"; +} +.glyphicon-headphones:before { + content: "\e035"; +} +.glyphicon-volume-off:before { + content: "\e036"; +} +.glyphicon-volume-down:before { + content: "\e037"; +} +.glyphicon-volume-up:before { + content: "\e038"; +} +.glyphicon-qrcode:before { + content: "\e039"; +} +.glyphicon-barcode:before { + content: "\e040"; +} +.glyphicon-tag:before { + content: "\e041"; +} +.glyphicon-tags:before { + content: "\e042"; +} +.glyphicon-book:before { + content: "\e043"; +} +.glyphicon-bookmark:before { + content: "\e044"; +} +.glyphicon-print:before { + content: "\e045"; +} +.glyphicon-camera:before { + content: "\e046"; +} +.glyphicon-font:before { + content: "\e047"; +} +.glyphicon-bold:before { + content: "\e048"; +} +.glyphicon-italic:before { + content: "\e049"; +} +.glyphicon-text-height:before { + content: "\e050"; +} +.glyphicon-text-width:before { + content: "\e051"; +} +.glyphicon-align-left:before { + content: "\e052"; +} +.glyphicon-align-center:before { + content: "\e053"; +} +.glyphicon-align-right:before { + content: "\e054"; +} +.glyphicon-align-justify:before { + content: "\e055"; +} +.glyphicon-list:before { + content: "\e056"; +} +.glyphicon-indent-left:before { + content: "\e057"; +} +.glyphicon-indent-right:before { + content: "\e058"; +} +.glyphicon-facetime-video:before { + content: "\e059"; +} +.glyphicon-picture:before { + content: "\e060"; +} +.glyphicon-map-marker:before { + content: "\e062"; +} +.glyphicon-adjust:before { + content: "\e063"; +} +.glyphicon-tint:before { + content: "\e064"; +} +.glyphicon-edit:before { + content: "\e065"; +} +.glyphicon-share:before { + content: "\e066"; +} +.glyphicon-check:before { + content: "\e067"; +} +.glyphicon-move:before { + content: "\e068"; +} +.glyphicon-step-backward:before { + content: "\e069"; +} +.glyphicon-fast-backward:before { + content: "\e070"; +} +.glyphicon-backward:before { + content: "\e071"; +} +.glyphicon-play:before { + content: "\e072"; +} +.glyphicon-pause:before { + content: "\e073"; +} +.glyphicon-stop:before { + content: "\e074"; +} +.glyphicon-forward:before { + content: "\e075"; +} +.glyphicon-fast-forward:before { + content: "\e076"; +} +.glyphicon-step-forward:before { + content: "\e077"; +} +.glyphicon-eject:before { + content: "\e078"; +} +.glyphicon-chevron-left:before { + content: "\e079"; +} +.glyphicon-chevron-right:before { + content: "\e080"; +} +.glyphicon-plus-sign:before { + content: "\e081"; +} +.glyphicon-minus-sign:before { + content: "\e082"; +} +.glyphicon-remove-sign:before { + content: "\e083"; +} +.glyphicon-ok-sign:before { + content: "\e084"; +} +.glyphicon-question-sign:before { + content: "\e085"; +} +.glyphicon-info-sign:before { + content: "\e086"; +} +.glyphicon-screenshot:before { + content: "\e087"; +} +.glyphicon-remove-circle:before { + content: "\e088"; +} +.glyphicon-ok-circle:before { + content: "\e089"; +} +.glyphicon-ban-circle:before { + content: "\e090"; +} +.glyphicon-arrow-left:before { + content: "\e091"; +} +.glyphicon-arrow-right:before { + content: "\e092"; +} +.glyphicon-arrow-up:before { + content: "\e093"; +} +.glyphicon-arrow-down:before { + content: "\e094"; +} +.glyphicon-share-alt:before { + content: "\e095"; +} +.glyphicon-resize-full:before { + content: "\e096"; +} +.glyphicon-resize-small:before { + content: "\e097"; +} +.glyphicon-exclamation-sign:before { + content: "\e101"; +} +.glyphicon-gift:before { + content: "\e102"; +} +.glyphicon-leaf:before { + content: "\e103"; +} +.glyphicon-fire:before { + content: "\e104"; +} +.glyphicon-eye-open:before { + content: "\e105"; +} +.glyphicon-eye-close:before { + content: "\e106"; +} +.glyphicon-warning-sign:before { + content: "\e107"; +} +.glyphicon-plane:before { + content: "\e108"; +} +.glyphicon-calendar:before { + content: "\e109"; +} +.glyphicon-random:before { + content: "\e110"; +} +.glyphicon-comment:before { + content: "\e111"; +} +.glyphicon-magnet:before { + content: "\e112"; +} +.glyphicon-chevron-up:before { + content: "\e113"; +} +.glyphicon-chevron-down:before { + content: "\e114"; +} +.glyphicon-retweet:before { + content: "\e115"; +} +.glyphicon-shopping-cart:before { + content: "\e116"; +} +.glyphicon-folder-close:before { + content: "\e117"; +} +.glyphicon-folder-open:before { + content: "\e118"; +} +.glyphicon-resize-vertical:before { + content: "\e119"; +} +.glyphicon-resize-horizontal:before { + content: "\e120"; +} +.glyphicon-hdd:before { + content: "\e121"; +} +.glyphicon-bullhorn:before { + content: "\e122"; +} +.glyphicon-bell:before { + content: "\e123"; +} +.glyphicon-certificate:before { + content: "\e124"; +} +.glyphicon-thumbs-up:before { + content: "\e125"; +} +.glyphicon-thumbs-down:before { + content: "\e126"; +} +.glyphicon-hand-right:before { + content: "\e127"; +} +.glyphicon-hand-left:before { + content: "\e128"; +} +.glyphicon-hand-up:before { + content: "\e129"; +} +.glyphicon-hand-down:before { + content: "\e130"; +} +.glyphicon-circle-arrow-right:before { + content: "\e131"; +} +.glyphicon-circle-arrow-left:before { + content: "\e132"; +} +.glyphicon-circle-arrow-up:before { + content: "\e133"; +} +.glyphicon-circle-arrow-down:before { + content: "\e134"; +} +.glyphicon-globe:before { + content: "\e135"; +} +.glyphicon-wrench:before { + content: "\e136"; +} +.glyphicon-tasks:before { + content: "\e137"; +} +.glyphicon-filter:before { + content: "\e138"; +} +.glyphicon-briefcase:before { + content: "\e139"; +} +.glyphicon-fullscreen:before { + content: "\e140"; +} +.glyphicon-dashboard:before { + content: "\e141"; +} +.glyphicon-paperclip:before { + content: "\e142"; +} +.glyphicon-heart-empty:before { + content: "\e143"; +} +.glyphicon-link:before { + content: "\e144"; +} +.glyphicon-phone:before { + content: "\e145"; +} +.glyphicon-pushpin:before { + content: "\e146"; +} +.glyphicon-usd:before { + content: "\e148"; +} +.glyphicon-gbp:before { + content: "\e149"; +} +.glyphicon-sort:before { + content: "\e150"; +} +.glyphicon-sort-by-alphabet:before { + content: "\e151"; +} +.glyphicon-sort-by-alphabet-alt:before { + content: "\e152"; +} +.glyphicon-sort-by-order:before { + content: "\e153"; +} +.glyphicon-sort-by-order-alt:before { + content: "\e154"; +} +.glyphicon-sort-by-attributes:before { + content: "\e155"; +} +.glyphicon-sort-by-attributes-alt:before { + content: "\e156"; +} +.glyphicon-unchecked:before { + content: "\e157"; +} +.glyphicon-expand:before { + content: "\e158"; +} +.glyphicon-collapse-down:before { + content: "\e159"; +} +.glyphicon-collapse-up:before { + content: "\e160"; +} +.glyphicon-log-in:before { + content: "\e161"; +} +.glyphicon-flash:before { + content: "\e162"; +} +.glyphicon-log-out:before { + content: "\e163"; +} +.glyphicon-new-window:before { + content: "\e164"; +} +.glyphicon-record:before { + content: "\e165"; +} +.glyphicon-save:before { + content: "\e166"; +} +.glyphicon-open:before { + content: "\e167"; +} +.glyphicon-saved:before { + content: "\e168"; +} +.glyphicon-import:before { + content: "\e169"; +} +.glyphicon-export:before { + content: "\e170"; +} +.glyphicon-send:before { + content: "\e171"; +} +.glyphicon-floppy-disk:before { + content: "\e172"; +} +.glyphicon-floppy-saved:before { + content: "\e173"; +} +.glyphicon-floppy-remove:before { + content: "\e174"; +} +.glyphicon-floppy-save:before { + content: "\e175"; +} +.glyphicon-floppy-open:before { + content: "\e176"; +} +.glyphicon-credit-card:before { + content: "\e177"; +} +.glyphicon-transfer:before { + content: "\e178"; +} +.glyphicon-cutlery:before { + content: "\e179"; +} +.glyphicon-header:before { + content: "\e180"; +} +.glyphicon-compressed:before { + content: "\e181"; +} +.glyphicon-earphone:before { + content: "\e182"; +} +.glyphicon-phone-alt:before { + content: "\e183"; +} +.glyphicon-tower:before { + content: "\e184"; +} +.glyphicon-stats:before { + content: "\e185"; +} +.glyphicon-sd-video:before { + content: "\e186"; +} +.glyphicon-hd-video:before { + content: "\e187"; +} +.glyphicon-subtitles:before { + content: "\e188"; +} +.glyphicon-sound-stereo:before { + content: "\e189"; +} +.glyphicon-sound-dolby:before { + content: "\e190"; +} +.glyphicon-sound-5-1:before { + content: "\e191"; +} +.glyphicon-sound-6-1:before { + content: "\e192"; +} +.glyphicon-sound-7-1:before { + content: "\e193"; +} +.glyphicon-copyright-mark:before { + content: "\e194"; +} +.glyphicon-registration-mark:before { + content: "\e195"; +} +.glyphicon-cloud-download:before { + content: "\e197"; +} +.glyphicon-cloud-upload:before { + content: "\e198"; +} +.glyphicon-tree-conifer:before { + content: "\e199"; +} +.glyphicon-tree-deciduous:before { + content: "\e200"; +} + + +/*btn*/ +.btn { + display: inline-block; + margin-bottom: 0; + font-weight: normal; + text-align: center; + vertical-align: middle; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 6px 12px; + font-size: 12px; + line-height: 1.42857143; + border-radius: 4px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.btn:focus, +.btn:active:focus, +.btn.active:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +.btn:hover, +.btn:focus { + color: #333333; + text-decoration: none; +} +.btn:active, +.btn.active { + outline: 0; + background-image: none; + -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); +} +.btn.disabled, +.btn[disabled], +fieldset[disabled] .btn { + cursor: not-allowed; + pointer-events: none; + opacity: 0.65; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + box-shadow: none; +} +.btn-default { + color: #333333; + background-color: #ffffff; + border-color: #cccccc; +} +.btn-default:hover, +.btn-default:focus, +.btn-default:active, +.btn-default.active, +.open > .dropdown-toggle.btn-default { + color: #333333; + background-color: #e6e6e6; + border-color: #adadad; +} +.btn-default:active, +.btn-default.active, +.open > .dropdown-toggle.btn-default { + background-image: none; +} +.btn-default.disabled, +.btn-default[disabled], +fieldset[disabled] .btn-default, +.btn-default.disabled:hover, +.btn-default[disabled]:hover, +fieldset[disabled] .btn-default:hover, +.btn-default.disabled:focus, +.btn-default[disabled]:focus, +fieldset[disabled] .btn-default:focus, +.btn-default.disabled:active, +.btn-default[disabled]:active, +fieldset[disabled] .btn-default:active, +.btn-default.disabled.active, +.btn-default[disabled].active, +fieldset[disabled] .btn-default.active { + background-color: #ffffff; + border-color: #cccccc; +} +.btn-default .badge { + color: #ffffff; + background-color: #333333; +} +.btn-primary { + color: #ffffff; + background-color: #428bca; + border-color: #357ebd; +} +.btn-primary:hover, +.btn-primary:focus, +.btn-primary:active, +.btn-primary.active, +.open > .dropdown-toggle.btn-primary { + color: #ffffff; + background-color: #3071a9; + border-color: #285e8e; +} +.btn-primary:active, +.btn-primary.active, +.open > .dropdown-toggle.btn-primary { + background-image: none; +} +.btn-primary.disabled, +.btn-primary[disabled], +fieldset[disabled] .btn-primary, +.btn-primary.disabled:hover, +.btn-primary[disabled]:hover, +fieldset[disabled] .btn-primary:hover, +.btn-primary.disabled:focus, +.btn-primary[disabled]:focus, +fieldset[disabled] .btn-primary:focus, +.btn-primary.disabled:active, +.btn-primary[disabled]:active, +fieldset[disabled] .btn-primary:active, +.btn-primary.disabled.active, +.btn-primary[disabled].active, +fieldset[disabled] .btn-primary.active { + background-color: #428bca; + border-color: #357ebd; +} +.btn-primary .badge { + color: #428bca; + background-color: #ffffff; +} +.btn-success { + color: #ffffff; + background-color: #5cb85c; + border-color: #4cae4c; +} +.btn-success:hover, +.btn-success:focus, +.btn-success:active, +.btn-success.active, +.open > .dropdown-toggle.btn-success { + color: #ffffff; + background-color: #449d44; + border-color: #398439; +} +.btn-success:active, +.btn-success.active, +.open > .dropdown-toggle.btn-success { + background-image: none; +} +.btn-success.disabled, +.btn-success[disabled], +fieldset[disabled] .btn-success, +.btn-success.disabled:hover, +.btn-success[disabled]:hover, +fieldset[disabled] .btn-success:hover, +.btn-success.disabled:focus, +.btn-success[disabled]:focus, +fieldset[disabled] .btn-success:focus, +.btn-success.disabled:active, +.btn-success[disabled]:active, +fieldset[disabled] .btn-success:active, +.btn-success.disabled.active, +.btn-success[disabled].active, +fieldset[disabled] .btn-success.active { + background-color: #5cb85c; + border-color: #4cae4c; +} +.btn-success .badge { + color: #5cb85c; + background-color: #ffffff; +} +.btn-info { + color: #ffffff; + background-color: #5bc0de; + border-color: #46b8da; +} +.btn-info:hover, +.btn-info:focus, +.btn-info:active, +.btn-info.active, +.open > .dropdown-toggle.btn-info { + color: #ffffff; + background-color: #31b0d5; + border-color: #269abc; +} +.btn-info:active, +.btn-info.active, +.open > .dropdown-toggle.btn-info { + background-image: none; +} +.btn-info.disabled, +.btn-info[disabled], +fieldset[disabled] .btn-info, +.btn-info.disabled:hover, +.btn-info[disabled]:hover, +fieldset[disabled] .btn-info:hover, +.btn-info.disabled:focus, +.btn-info[disabled]:focus, +fieldset[disabled] .btn-info:focus, +.btn-info.disabled:active, +.btn-info[disabled]:active, +fieldset[disabled] .btn-info:active, +.btn-info.disabled.active, +.btn-info[disabled].active, +fieldset[disabled] .btn-info.active { + background-color: #5bc0de; + border-color: #46b8da; +} +.btn-info .badge { + color: #5bc0de; + background-color: #ffffff; +} +.btn-warning { + color: #ffffff; + background-color: #f0ad4e; + border-color: #eea236; +} +.btn-warning:hover, +.btn-warning:focus, +.btn-warning:active, +.btn-warning.active, +.open > .dropdown-toggle.btn-warning { + color: #ffffff; + background-color: #ec971f; + border-color: #d58512; +} +.btn-warning:active, +.btn-warning.active, +.open > .dropdown-toggle.btn-warning { + background-image: none; +} +.btn-warning.disabled, +.btn-warning[disabled], +fieldset[disabled] .btn-warning, +.btn-warning.disabled:hover, +.btn-warning[disabled]:hover, +fieldset[disabled] .btn-warning:hover, +.btn-warning.disabled:focus, +.btn-warning[disabled]:focus, +fieldset[disabled] .btn-warning:focus, +.btn-warning.disabled:active, +.btn-warning[disabled]:active, +fieldset[disabled] .btn-warning:active, +.btn-warning.disabled.active, +.btn-warning[disabled].active, +fieldset[disabled] .btn-warning.active { + background-color: #f0ad4e; + border-color: #eea236; +} +.btn-warning .badge { + color: #f0ad4e; + background-color: #ffffff; +} +.btn-danger { + color: #ffffff; + background-color: #d9534f; + border-color: #d43f3a; +} +.btn-danger:hover, +.btn-danger:focus, +.btn-danger:active, +.btn-danger.active, +.open > .dropdown-toggle.btn-danger { + color: #ffffff; + background-color: #c9302c; + border-color: #ac2925; +} +.btn-danger:active, +.btn-danger.active, +.open > .dropdown-toggle.btn-danger { + background-image: none; +} +.btn-danger.disabled, +.btn-danger[disabled], +fieldset[disabled] .btn-danger, +.btn-danger.disabled:hover, +.btn-danger[disabled]:hover, +fieldset[disabled] .btn-danger:hover, +.btn-danger.disabled:focus, +.btn-danger[disabled]:focus, +fieldset[disabled] .btn-danger:focus, +.btn-danger.disabled:active, +.btn-danger[disabled]:active, +fieldset[disabled] .btn-danger:active, +.btn-danger.disabled.active, +.btn-danger[disabled].active, +fieldset[disabled] .btn-danger.active { + background-color: #d9534f; + border-color: #d43f3a; +} +.btn-danger .badge { + color: #d9534f; + background-color: #ffffff; +} +.btn-link { + color: #0088cc; + font-weight: normal; + cursor: pointer; + border-radius: 0; +} +.btn-link, +.btn-link:active, +.btn-link[disabled], +fieldset[disabled] .btn-link { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none; +} +.btn-link, +.btn-link:hover, +.btn-link:focus, +.btn-link:active { + border-color: transparent; +} +.btn-link:hover, +.btn-link:focus { + color: #0088cc; + text-decoration: underline; + background-color: transparent; +} +.btn-link[disabled]:hover, +fieldset[disabled] .btn-link:hover, +.btn-link[disabled]:focus, +fieldset[disabled] .btn-link:focus { + color: #777777; + text-decoration: none; +} +.btn-lg { + padding: 10px 16px; + font-size: 15px; + line-height: 1.33; + border-radius: 6px; +} +.btn-sm { + padding: 5px 10px; + font-size: 11px; + line-height: 1.5; + border-radius: 3px; +} +.btn-xs { + padding: 1px 5px; + font-size: 11px; + line-height: 1.5; + border-radius: 3px; +} +.btn-block { + display: block; + width: 100%; +} +.btn-block + .btn-block { + margin-top: 5px; +} +input[type="submit"].btn-block, +input[type="reset"].btn-block, +input[type="button"].btn-block { + width: 100%; +} + +.img-responsive { + display: block; + width: 100% \9; + max-width: 100%; + height: auto; +} +.img-rounded { + border-radius: 6px; +} +.img-thumbnail { + padding: 4px; + line-height: 1.42857143; + background-color: #ffffff; + border: 1px solid #dddddd; + border-radius: 0; + -webkit-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; + display: inline-block; + width: 100% \9; + max-width: 100%; + height: auto; +} +.img-circle { + border-radius: 50%; +} + + + +.row { + margin-left: -15px; + margin-right: -15px; +} +.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { + position: relative; + min-height: 1px; + padding-left: 15px; + padding-right: 15px; +} +.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { + float: left; +} +.col-xs-12 { + width: 100%; +} +.col-xs-11 { + width: 91.66666667%; +} +.col-xs-10 { + width: 83.33333333%; +} +.col-xs-9 { + width: 75%; +} +.col-xs-8 { + width: 66.66666667%; +} +.col-xs-7 { + width: 58.33333333%; +} +.col-xs-6 { + width: 50%; +} +.col-xs-5 { + width: 41.66666667%; +} +.col-xs-4 { + width: 33.33333333%; +} +.col-xs-3 { + width: 25%; +} +.col-xs-2 { + width: 16.66666667%; +} +.col-xs-1 { + width: 8.33333333%; +} +.col-xs-pull-12 { + right: 100%; +} +.col-xs-pull-11 { + right: 91.66666667%; +} +.col-xs-pull-10 { + right: 83.33333333%; +} +.col-xs-pull-9 { + right: 75%; +} +.col-xs-pull-8 { + right: 66.66666667%; +} +.col-xs-pull-7 { + right: 58.33333333%; +} +.col-xs-pull-6 { + right: 50%; +} +.col-xs-pull-5 { + right: 41.66666667%; +} +.col-xs-pull-4 { + right: 33.33333333%; +} +.col-xs-pull-3 { + right: 25%; +} +.col-xs-pull-2 { + right: 16.66666667%; +} +.col-xs-pull-1 { + right: 8.33333333%; +} +.col-xs-pull-0 { + right: auto; +} +.col-xs-push-12 { + left: 100%; +} +.col-xs-push-11 { + left: 91.66666667%; +} +.col-xs-push-10 { + left: 83.33333333%; +} +.col-xs-push-9 { + left: 75%; +} +.col-xs-push-8 { + left: 66.66666667%; +} +.col-xs-push-7 { + left: 58.33333333%; +} +.col-xs-push-6 { + left: 50%; +} +.col-xs-push-5 { + left: 41.66666667%; +} +.col-xs-push-4 { + left: 33.33333333%; +} +.col-xs-push-3 { + left: 25%; +} +.col-xs-push-2 { + left: 16.66666667%; +} +.col-xs-push-1 { + left: 8.33333333%; +} +.col-xs-push-0 { + left: auto; +} +.col-xs-offset-12 { + margin-left: 100%; +} +.col-xs-offset-11 { + margin-left: 91.66666667%; +} +.col-xs-offset-10 { + margin-left: 83.33333333%; +} +.col-xs-offset-9 { + margin-left: 75%; +} +.col-xs-offset-8 { + margin-left: 66.66666667%; +} +.col-xs-offset-7 { + margin-left: 58.33333333%; +} +.col-xs-offset-6 { + margin-left: 50%; +} +.col-xs-offset-5 { + margin-left: 41.66666667%; +} +.col-xs-offset-4 { + margin-left: 33.33333333%; +} +.col-xs-offset-3 { + margin-left: 25%; +} +.col-xs-offset-2 { + margin-left: 16.66666667%; +} +.col-xs-offset-1 { + margin-left: 8.33333333%; +} +.col-xs-offset-0 { + margin-left: 0%; +} +@media (min-width: 768px) { + .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { + float: left; + } + .col-sm-12 { + width: 100%; + } + .col-sm-11 { + width: 91.66666667%; + } + .col-sm-10 { + width: 83.33333333%; + } + .col-sm-9 { + width: 75%; + } + .col-sm-8 { + width: 66.66666667%; + } + .col-sm-7 { + width: 58.33333333%; + } + .col-sm-6 { + width: 50%; + } + .col-sm-5 { + width: 41.66666667%; + } + .col-sm-4 { + width: 33.33333333%; + } + .col-sm-3 { + width: 25%; + } + .col-sm-2 { + width: 16.66666667%; + } + .col-sm-1 { + width: 8.33333333%; + } + .col-sm-pull-12 { + right: 100%; + } + .col-sm-pull-11 { + right: 91.66666667%; + } + .col-sm-pull-10 { + right: 83.33333333%; + } + .col-sm-pull-9 { + right: 75%; + } + .col-sm-pull-8 { + right: 66.66666667%; + } + .col-sm-pull-7 { + right: 58.33333333%; + } + .col-sm-pull-6 { + right: 50%; + } + .col-sm-pull-5 { + right: 41.66666667%; + } + .col-sm-pull-4 { + right: 33.33333333%; + } + .col-sm-pull-3 { + right: 25%; + } + .col-sm-pull-2 { + right: 16.66666667%; + } + .col-sm-pull-1 { + right: 8.33333333%; + } + .col-sm-pull-0 { + right: auto; + } + .col-sm-push-12 { + left: 100%; + } + .col-sm-push-11 { + left: 91.66666667%; + } + .col-sm-push-10 { + left: 83.33333333%; + } + .col-sm-push-9 { + left: 75%; + } + .col-sm-push-8 { + left: 66.66666667%; + } + .col-sm-push-7 { + left: 58.33333333%; + } + .col-sm-push-6 { + left: 50%; + } + .col-sm-push-5 { + left: 41.66666667%; + } + .col-sm-push-4 { + left: 33.33333333%; + } + .col-sm-push-3 { + left: 25%; + } + .col-sm-push-2 { + left: 16.66666667%; + } + .col-sm-push-1 { + left: 8.33333333%; + } + .col-sm-push-0 { + left: auto; + } + .col-sm-offset-12 { + margin-left: 100%; + } + .col-sm-offset-11 { + margin-left: 91.66666667%; + } + .col-sm-offset-10 { + margin-left: 83.33333333%; + } + .col-sm-offset-9 { + margin-left: 75%; + } + .col-sm-offset-8 { + margin-left: 66.66666667%; + } + .col-sm-offset-7 { + margin-left: 58.33333333%; + } + .col-sm-offset-6 { + margin-left: 50%; + } + .col-sm-offset-5 { + margin-left: 41.66666667%; + } + .col-sm-offset-4 { + margin-left: 33.33333333%; + } + .col-sm-offset-3 { + margin-left: 25%; + } + .col-sm-offset-2 { + margin-left: 16.66666667%; + } + .col-sm-offset-1 { + margin-left: 8.33333333%; + } + .col-sm-offset-0 { + margin-left: 0%; + } +} +@media (min-width: 992px) { + .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { + float: left; + } + .col-md-12 { + width: 100%; + } + .col-md-11 { + width: 91.66666667%; + } + .col-md-10 { + width: 83.33333333%; + } + .col-md-9 { + width: 75%; + } + .col-md-8 { + width: 66.66666667%; + } + .col-md-7 { + width: 58.33333333%; + } + .col-md-6 { + width: 50%; + } + .col-md-5 { + width: 41.66666667%; + } + .col-md-4 { + width: 33.33333333%; + } + .col-md-3 { + width: 25%; + } + .col-md-2 { + width: 16.66666667%; + } + .col-md-1 { + width: 8.33333333%; + } + .col-md-pull-12 { + right: 100%; + } + .col-md-pull-11 { + right: 91.66666667%; + } + .col-md-pull-10 { + right: 83.33333333%; + } + .col-md-pull-9 { + right: 75%; + } + .col-md-pull-8 { + right: 66.66666667%; + } + .col-md-pull-7 { + right: 58.33333333%; + } + .col-md-pull-6 { + right: 50%; + } + .col-md-pull-5 { + right: 41.66666667%; + } + .col-md-pull-4 { + right: 33.33333333%; + } + .col-md-pull-3 { + right: 25%; + } + .col-md-pull-2 { + right: 16.66666667%; + } + .col-md-pull-1 { + right: 8.33333333%; + } + .col-md-pull-0 { + right: auto; + } + .col-md-push-12 { + left: 100%; + } + .col-md-push-11 { + left: 91.66666667%; + } + .col-md-push-10 { + left: 83.33333333%; + } + .col-md-push-9 { + left: 75%; + } + .col-md-push-8 { + left: 66.66666667%; + } + .col-md-push-7 { + left: 58.33333333%; + } + .col-md-push-6 { + left: 50%; + } + .col-md-push-5 { + left: 41.66666667%; + } + .col-md-push-4 { + left: 33.33333333%; + } + .col-md-push-3 { + left: 25%; + } + .col-md-push-2 { + left: 16.66666667%; + } + .col-md-push-1 { + left: 8.33333333%; + } + .col-md-push-0 { + left: auto; + } + .col-md-offset-12 { + margin-left: 100%; + } + .col-md-offset-11 { + margin-left: 91.66666667%; + } + .col-md-offset-10 { + margin-left: 83.33333333%; + } + .col-md-offset-9 { + margin-left: 75%; + } + .col-md-offset-8 { + margin-left: 66.66666667%; + } + .col-md-offset-7 { + margin-left: 58.33333333%; + } + .col-md-offset-6 { + margin-left: 50%; + } + .col-md-offset-5 { + margin-left: 41.66666667%; + } + .col-md-offset-4 { + margin-left: 33.33333333%; + } + .col-md-offset-3 { + margin-left: 25%; + } + .col-md-offset-2 { + margin-left: 16.66666667%; + } + .col-md-offset-1 { + margin-left: 8.33333333%; + } + .col-md-offset-0 { + margin-left: 0%; + } +} +@media (min-width: 1200px) { + .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { + float: left; + } + .col-lg-12 { + width: 100%; + } + .col-lg-11 { + width: 91.66666667%; + } + .col-lg-10 { + width: 83.33333333%; + } + .col-lg-9 { + width: 75%; + } + .col-lg-8 { + width: 66.66666667%; + } + .col-lg-7 { + width: 58.33333333%; + } + .col-lg-6 { + width: 50%; + } + .col-lg-5 { + width: 41.66666667%; + } + .col-lg-4 { + width: 33.33333333%; + } + .col-lg-3 { + width: 25%; + } + .col-lg-2 { + width: 16.66666667%; + } + .col-lg-1 { + width: 8.33333333%; + } + .col-lg-pull-12 { + right: 100%; + } + .col-lg-pull-11 { + right: 91.66666667%; + } + .col-lg-pull-10 { + right: 83.33333333%; + } + .col-lg-pull-9 { + right: 75%; + } + .col-lg-pull-8 { + right: 66.66666667%; + } + .col-lg-pull-7 { + right: 58.33333333%; + } + .col-lg-pull-6 { + right: 50%; + } + .col-lg-pull-5 { + right: 41.66666667%; + } + .col-lg-pull-4 { + right: 33.33333333%; + } + .col-lg-pull-3 { + right: 25%; + } + .col-lg-pull-2 { + right: 16.66666667%; + } + .col-lg-pull-1 { + right: 8.33333333%; + } + .col-lg-pull-0 { + right: auto; + } + .col-lg-push-12 { + left: 100%; + } + .col-lg-push-11 { + left: 91.66666667%; + } + .col-lg-push-10 { + left: 83.33333333%; + } + .col-lg-push-9 { + left: 75%; + } + .col-lg-push-8 { + left: 66.66666667%; + } + .col-lg-push-7 { + left: 58.33333333%; + } + .col-lg-push-6 { + left: 50%; + } + .col-lg-push-5 { + left: 41.66666667%; + } + .col-lg-push-4 { + left: 33.33333333%; + } + .col-lg-push-3 { + left: 25%; + } + .col-lg-push-2 { + left: 16.66666667%; + } + .col-lg-push-1 { + left: 8.33333333%; + } + .col-lg-push-0 { + left: auto; + } + .col-lg-offset-12 { + margin-left: 100%; + } + .col-lg-offset-11 { + margin-left: 91.66666667%; + } + .col-lg-offset-10 { + margin-left: 83.33333333%; + } + .col-lg-offset-9 { + margin-left: 75%; + } + .col-lg-offset-8 { + margin-left: 66.66666667%; + } + .col-lg-offset-7 { + margin-left: 58.33333333%; + } + .col-lg-offset-6 { + margin-left: 50%; + } + .col-lg-offset-5 { + margin-left: 41.66666667%; + } + .col-lg-offset-4 { + margin-left: 33.33333333%; + } + .col-lg-offset-3 { + margin-left: 25%; + } + .col-lg-offset-2 { + margin-left: 16.66666667%; + } + .col-lg-offset-1 { + margin-left: 8.33333333%; + } + .col-lg-offset-0 { + margin-left: 0%; + } +} + + + + +.form-control { + display: block; + width: 100%; + height: 31px; + padding: 6px 12px; + font-size: 12px; + line-height: 1.42857143; + color: #555555; + background-color: #ffffff; + background-image: none; + border: 1px solid #cccccc; + border-radius: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; +} +.form-control:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); +} +.form-control::-moz-placeholder { + color: #777777; + opacity: 1; +} +.form-control:-ms-input-placeholder { + color: #777777; +} +.form-control::-webkit-input-placeholder { + color: #777777; +} +.form-control[disabled], +.form-control[readonly], +fieldset[disabled] .form-control { + cursor: not-allowed; + background-color: #eeeeee; + opacity: 1; +} +textarea.form-control { + height: auto; +} +input[type="search"] { + -webkit-appearance: none; +} +input[type="date"], +input[type="time"], +input[type="datetime-local"], +input[type="month"] { + line-height: 31px; + line-height: 1.42857143 \0; +} +input[type="date"].input-sm, +input[type="time"].input-sm, +input[type="datetime-local"].input-sm, +input[type="month"].input-sm { + line-height: 28px; +} +input[type="date"].input-lg, +input[type="time"].input-lg, +input[type="datetime-local"].input-lg, +input[type="month"].input-lg { + line-height: 42px; +} +.form-group { + margin-bottom: 15px; +} +.radio, +.checkbox { + position: relative; + display: block; + min-height: 17px; + margin-top: 10px; + margin-bottom: 10px; +} +.radio label, +.checkbox label { + padding-left: 20px; + margin-bottom: 0; + font-weight: normal; + cursor: pointer; +} +.radio input[type="radio"], +.radio-inline input[type="radio"], +.checkbox input[type="checkbox"], +.checkbox-inline input[type="checkbox"] { + position: absolute; + margin-left: -20px; + margin-top: 4px \9; +} +.radio + .radio, +.checkbox + .checkbox { + margin-top: -5px; +} +.radio-inline, +.checkbox-inline { + display: inline-block; + padding-left: 20px; + margin-bottom: 0; + vertical-align: middle; + font-weight: normal; + cursor: pointer; +} +.radio-inline + .radio-inline, +.checkbox-inline + .checkbox-inline { + margin-top: 0; + margin-left: 10px; +} +input[type="radio"][disabled], +input[type="checkbox"][disabled], +input[type="radio"].disabled, +input[type="checkbox"].disabled, +fieldset[disabled] input[type="radio"], +fieldset[disabled] input[type="checkbox"] { + cursor: not-allowed; +} +.radio-inline.disabled, +.checkbox-inline.disabled, +fieldset[disabled] .radio-inline, +fieldset[disabled] .checkbox-inline { + cursor: not-allowed; +} +.radio.disabled label, +.checkbox.disabled label, +fieldset[disabled] .radio label, +fieldset[disabled] .checkbox label { + cursor: not-allowed; +} +.form-control-static { + padding-top: 7px; + padding-bottom: 7px; + margin-bottom: 0; +} +.form-control-static.input-lg, +.form-control-static.input-sm { + padding-left: 0; + padding-right: 0; +} +.input-sm, +.form-horizontal .form-group-sm .form-control { + height: 28px; + padding: 5px 10px; + font-size: 11px; + line-height: 1.5; + border-radius: 3px; +} +select.input-sm { + height: 28px; + line-height: 28px; +} +textarea.input-sm, +select[multiple].input-sm { + height: auto; +} +.input-lg, +.form-horizontal .form-group-lg .form-control { + height: 42px; + padding: 10px 16px; + font-size: 15px; + line-height: 1.33; + border-radius: 6px; +} +select.input-lg { + height: 42px; + line-height: 42px; +} +textarea.input-lg, +select[multiple].input-lg { + height: auto; +} +.has-feedback { + position: relative; +} +.has-feedback .form-control { + padding-right: 38.75px; +} +.form-control-feedback { + position: absolute; + top: 22px; + right: 0; + z-index: 2; + display: block; + width: 31px; + height: 31px; + line-height: 31px; + text-align: center; +} +.input-lg + .form-control-feedback { + width: 42px; + height: 42px; + line-height: 42px; +} +.input-sm + .form-control-feedback { + width: 28px; + height: 28px; + line-height: 28px; +} +.has-success .help-block, +.has-success .control-label, +.has-success .radio, +.has-success .checkbox, +.has-success .radio-inline, +.has-success .checkbox-inline { + color: #3c763d; +} +.has-success .form-control { + border-color: #3c763d; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); +} +.has-success .form-control:focus { + border-color: #2b542c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; +} +.has-success .input-group-addon { + color: #3c763d; + border-color: #3c763d; + background-color: #dff0d8; +} +.has-success .form-control-feedback { + color: #3c763d; +} +.has-warning .help-block, +.has-warning .control-label, +.has-warning .radio, +.has-warning .checkbox, +.has-warning .radio-inline, +.has-warning .checkbox-inline { + color: #8a6d3b; +} +.has-warning .form-control { + border-color: #8a6d3b; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); +} +.has-warning .form-control:focus { + border-color: #66512c; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; +} +.has-warning .input-group-addon { + color: #8a6d3b; + border-color: #8a6d3b; + background-color: #fcf8e3; +} +.has-warning .form-control-feedback { + color: #8a6d3b; +} +.has-error .help-block, +.has-error .control-label, +.has-error .radio, +.has-error .checkbox, +.has-error .radio-inline, +.has-error .checkbox-inline { + color: #a94442; +} +.has-error .form-control { + border-color: #a94442; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); +} +.has-error .form-control:focus { + border-color: #843534; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; +} +.has-error .input-group-addon { + color: #a94442; + border-color: #a94442; + background-color: #f2dede; +} +.has-error .form-control-feedback { + color: #a94442; +} +.has-feedback label.sr-only ~ .form-control-feedback { + top: 0; +} +.help-block { + display: block; + margin-top: 5px; + margin-bottom: 10px; + color: #737373; +} +@media (min-width: 768px) { + .form-inline .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .form-control { + display: inline-block; + width: auto; + vertical-align: middle; + } + .form-inline .input-group { + display: inline-table; + vertical-align: middle; + } + .form-inline .input-group .input-group-addon, + .form-inline .input-group .input-group-btn, + .form-inline .input-group .form-control { + width: auto; + } + .form-inline .input-group > .form-control { + width: 100%; + } + .form-inline .control-label { + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .radio, + .form-inline .checkbox { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle; + } + .form-inline .radio label, + .form-inline .checkbox label { + padding-left: 0; + } + .form-inline .radio input[type="radio"], + .form-inline .checkbox input[type="checkbox"] { + position: relative; + margin-left: 0; + } + .form-inline .has-feedback .form-control-feedback { + top: 0; + } +} +.form-horizontal .radio, +.form-horizontal .checkbox, +.form-horizontal .radio-inline, +.form-horizontal .checkbox-inline { + margin-top: 0; + margin-bottom: 0; + padding-top: 7px; +} +.form-horizontal .radio, +.form-horizontal .checkbox { + min-height: 24px; +} +.form-horizontal .form-group { + margin-left: -15px; + margin-right: -15px; +} +@media (min-width: 768px) { + .form-horizontal .control-label { + text-align: right; + margin-bottom: 0; + padding-top: 7px; + } +} +.form-horizontal .has-feedback .form-control-feedback { + top: 0; + right: 15px; +} +@media (min-width: 768px) { + .form-horizontal .form-group-lg .control-label { + padding-top: 14.3px; + } +} +@media (min-width: 768px) { + .form-horizontal .form-group-sm .control-label { + padding-top: 6px; + } +} + +.tooltip { + position: absolute; + z-index: 1070; + display: block; + visibility: visible; + font-size: 11px; + line-height: 1.4; + opacity: 0; + filter: alpha(opacity=0); +} +.tooltip.in { + opacity: 0.9; + filter: alpha(opacity=90); +} +.tooltip.top { + margin-top: -3px; + padding: 5px 0; +} +.tooltip.right { + margin-left: 3px; + padding: 0 5px; +} +.tooltip.bottom { + margin-top: 3px; + padding: 5px 0; +} +.tooltip.left { + margin-left: -3px; + padding: 0 5px; +} +.tooltip-inner { + max-width: 200px; + padding: 3px 8px; + color: #ffffff; + text-align: center; + text-decoration: none; + background-color: #000000; + border-radius: 4px; +} +.tooltip-arrow { + position: absolute; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; +} +.tooltip.top .tooltip-arrow { + bottom: 0; + left: 50%; + margin-left: -5px; + border-width: 5px 5px 0; + border-top-color: #000000; +} +.tooltip.top-left .tooltip-arrow { + bottom: 0; + left: 5px; + border-width: 5px 5px 0; + border-top-color: #000000; +} +.tooltip.top-right .tooltip-arrow { + bottom: 0; + right: 5px; + border-width: 5px 5px 0; + border-top-color: #000000; +} +.tooltip.right .tooltip-arrow { + top: 50%; + left: 0; + margin-top: -5px; + border-width: 5px 5px 5px 0; + border-right-color: #000000; +} +.tooltip.left .tooltip-arrow { + top: 50%; + right: 0; + margin-top: -5px; + border-width: 5px 0 5px 5px; + border-left-color: #000000; +} +.tooltip.bottom .tooltip-arrow { + top: 0; + left: 50%; + margin-left: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; +} +.tooltip.bottom-left .tooltip-arrow { + top: 0; + left: 5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; +} +.tooltip.bottom-right .tooltip-arrow { + top: 0; + right: 5px; + border-width: 0 5px 5px; + border-bottom-color: #000000; +} + +.modal-open { + overflow: hidden; +} +.modal { + display: none; + overflow: hidden; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1050; + -webkit-overflow-scrolling: touch; + outline: 0; +} +.modal.fade .modal-dialog { + -webkit-transform: translate3d(0, -25%, 0); + transform: translate3d(0, -25%, 0); + -webkit-transition: -webkit-transform 0.3s ease-out; + -moz-transition: -moz-transform 0.3s ease-out; + -o-transition: -o-transform 0.3s ease-out; + transition: transform 0.3s ease-out; +} +.modal.in .modal-dialog { + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.modal-open .modal { + overflow-x: hidden; + overflow-y: auto; +} +.modal-dialog { + position: relative; + width: auto; + margin: 10px; +} +.modal-content { + position: relative; + background-color: #ffffff; + border: 1px solid #999999; + border: 1px solid rgba(0, 0, 0, 0.2); + border-radius: 6px; + -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); + box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); + background-clip: padding-box; + outline: 0; +} +.modal-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + background-color: #000000; +} +.modal-backdrop.fade { + opacity: 0; + filter: alpha(opacity=0); +} +.modal-backdrop.in { + opacity: 0.5; + filter: alpha(opacity=50); +} +.modal-header { + padding: 15px; + border-bottom: 1px solid #e5e5e5; + min-height: 16.42857143px; +} +.modal-header .close { + margin-top: -2px; +} +.modal-title { + margin: 0; + line-height: 1.42857143; +} +.modal-body { + position: relative; + padding: 15px; +} +.modal-footer { + padding: 15px; + text-align: right; + border-top: 1px solid #e5e5e5; +} +.modal-footer .btn + .btn { + margin-left: 5px; + margin-bottom: 0; +} +.modal-footer .btn-group .btn + .btn { + margin-left: -1px; +} +.modal-footer .btn-block + .btn-block { + margin-left: 0; +} +.modal-scrollbar-measure { + position: absolute; + top: -9999px; + width: 50px; + height: 50px; + overflow: scroll; +} +@media (min-width: 768px) { + .modal-dialog { + width: 600px; + margin: 30px auto; + } + .modal-content { + -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); + } + .modal-sm { + width: 300px; + } +} +@media (min-width: 992px) { + .modal-lg { + width: 900px; + } +} + +.modal-footer:before, +.modal-footer:after { + content: " "; + display: table; +} +.navbar-collapse:after, +.modal-footer:after { + clear: both; +} + + +.alert { + padding: 15px; + margin-bottom: 17px; + border: 1px solid transparent; + border-radius: 0; +} +.alert h4 { + margin-top: 0; + color: inherit; +} +.alert .alert-link { + font-weight: bold; +} +.alert > p, +.alert > ul { + margin-bottom: 0; +} +.alert > p + p { + margin-top: 5px; +} +.alert-dismissable, +.alert-dismissible { + padding-right: 35px; +} +.alert-dismissable .close, +.alert-dismissible .close { + position: relative; + top: -2px; + right: -21px; + color: inherit; +} +.alert-success { + background-color: #dff0d8; + border-color: #d6e9c6; + color: #3c763d; +} +.alert-success hr { + border-top-color: #c9e2b3; +} +.alert-success .alert-link { + color: #2b542c; +} +.alert-info { + background-color: #d9edf7; + border-color: #bce8f1; + color: #31708f; +} +.alert-info hr { + border-top-color: #a6e1ec; +} +.alert-info .alert-link { + color: #245269; +} +.alert-warning { + background-color: #fcf8e3; + border-color: #faebcc; + color: #8a6d3b; +} +.alert-warning hr { + border-top-color: #f7e1b5; +} +.alert-warning .alert-link { + color: #66512c; +} +.alert-danger { + background-color: #f2dede; + border-color: #ebccd1; + color: #a94442; +} +.alert-danger hr { + border-top-color: #e4b9c0; +} + +.well { + min-height: 20px; + padding: 19px; + margin-bottom: 20px; + background-color: #f5f5f5; + border: 1px solid #e3e3e3; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); +} +.well blockquote { + border-color: #ddd; + border-color: rgba(0, 0, 0, 0.15); +} +.well-lg { + padding: 24px; + border-radius: 6px; +} +.well-sm { + padding: 9px; + border-radius: 3px; +} +.close { + float: right; + font-size: 18px; + font-weight: bold; + line-height: 1; + color: #000000; + text-shadow: 0 1px 0 #ffffff; + opacity: 0.2; + filter: alpha(opacity=20); +} +.close:hover, +.close:focus { + color: #000000; + text-decoration: none; + cursor: pointer; + opacity: 0.5; + filter: alpha(opacity=50); +} +button.close { + padding: 0; + cursor: pointer; + background: transparent; + border: 0; + -webkit-appearance: none; +} + + +/* Manually added pager */ +.pagination { + display: inline-block; + padding-left: 0; + margin: 20px 0; + border-radius: 4px; +} +.pagination > li { + display: inline; +} +.pagination > li > a, +.pagination > li > span { + position: relative; + float: left; + padding: 6px 12px; + line-height: 1.42857143; + text-decoration: none; + color: #337ab7; + background-color: #ffffff; + border: 1px solid #dddddd; + margin-left: -1px; +} +.pagination > li:first-child > a, +.pagination > li:first-child > span { + margin-left: 0; + border-bottom-left-radius: 4px; + border-top-left-radius: 4px; +} +.pagination > li:last-child > a, +.pagination > li:last-child > span { + border-bottom-right-radius: 4px; + border-top-right-radius: 4px; +} +.pagination > li > a:hover, +.pagination > li > span:hover, +.pagination > li > a:focus, +.pagination > li > span:focus { + z-index: 2; + color: #23527c; + background-color: #eeeeee; + border-color: #dddddd; +} +.pagination > .active > a, +.pagination > .active > span, +.pagination > .active > a:hover, +.pagination > .active > span:hover, +.pagination > .active > a:focus, +.pagination > .active > span:focus { + z-index: 3; + color: #ffffff; + background-color: #337ab7; + border-color: #337ab7; + cursor: default; +} +.pagination > .disabled > span, +.pagination > .disabled > span:hover, +.pagination > .disabled > span:focus, +.pagination > .disabled > a, +.pagination > .disabled > a:hover, +.pagination > .disabled > a:focus { + color: #777777; + background-color: #ffffff; + border-color: #dddddd; + cursor: not-allowed; +} +.pagination-lg > li > a, +.pagination-lg > li > span { + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; +} +.pagination-lg > li:first-child > a, +.pagination-lg > li:first-child > span { + border-bottom-left-radius: 6px; + border-top-left-radius: 6px; +} +.pagination-lg > li:last-child > a, +.pagination-lg > li:last-child > span { + border-bottom-right-radius: 6px; + border-top-right-radius: 6px; +} +.pagination-sm > li > a, +.pagination-sm > li > span { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; +} +.pagination-sm > li:first-child > a, +.pagination-sm > li:first-child > span { + border-bottom-left-radius: 3px; + border-top-left-radius: 3px; +} +.pagination-sm > li:last-child > a, +.pagination-sm > li:last-child > span { + border-bottom-right-radius: 3px; + border-top-right-radius: 3px; +} +.pager { + padding-left: 0; + margin: 20px 0; + list-style: none; + text-align: center; +} +.pager li { + display: inline; +} +.pager li > a, +.pager li > span { + display: inline-block; + padding: 5px 14px; + background-color: #ffffff; + border: 1px solid #dddddd; + border-radius: 15px; +} +.pager li > a:hover, +.pager li > a:focus { + text-decoration: none; + background-color: #eeeeee; +} +.pager .next > a, +.pager .next > span { + float: right; +} +.pager .previous > a, +.pager .previous > span { + float: left; +} +.pager .disabled > a, +.pager .disabled > a:hover, +.pager .disabled > a:focus, +.pager .disabled > span { + color: #777777; + background-color: #ffffff; + cursor: not-allowed; +} +.pager:before, +.pager:after { + content: " "; + display: table; +} +.pager:after { + clear: both; +} + +/* List and panel */ +.list-group { + margin-bottom: 20px; + padding-left: 0; +} +.list-group-item { + position: relative; + display: block; + padding: 10px 15px; + margin-bottom: -1px; + background-color: #ffffff; + border: 1px solid #dddddd; +} +.list-group-item:first-child { + border-top-right-radius: 4px; + border-top-left-radius: 4px; +} +.list-group-item:last-child { + margin-bottom: 0; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; +} +a.list-group-item, +button.list-group-item { + color: #555555; +} +a.list-group-item .list-group-item-heading, +button.list-group-item .list-group-item-heading { + color: #333333; +} +a.list-group-item:hover, +button.list-group-item:hover, +a.list-group-item:focus, +button.list-group-item:focus { + text-decoration: none; + color: #555555; + background-color: #f5f5f5; +} +button.list-group-item { + width: 100%; + text-align: left; +} +.list-group-item.disabled, +.list-group-item.disabled:hover, +.list-group-item.disabled:focus { + background-color: #eeeeee; + color: #777777; + cursor: not-allowed; +} +.list-group-item.disabled .list-group-item-heading, +.list-group-item.disabled:hover .list-group-item-heading, +.list-group-item.disabled:focus .list-group-item-heading { + color: inherit; +} +.list-group-item.disabled .list-group-item-text, +.list-group-item.disabled:hover .list-group-item-text, +.list-group-item.disabled:focus .list-group-item-text { + color: #777777; +} +.list-group-item.active, +.list-group-item.active:hover, +.list-group-item.active:focus { + z-index: 2; + color: #ffffff; + background-color: #337ab7; + border-color: #337ab7; +} +.list-group-item.active .list-group-item-heading, +.list-group-item.active:hover .list-group-item-heading, +.list-group-item.active:focus .list-group-item-heading, +.list-group-item.active .list-group-item-heading > small, +.list-group-item.active:hover .list-group-item-heading > small, +.list-group-item.active:focus .list-group-item-heading > small, +.list-group-item.active .list-group-item-heading > .small, +.list-group-item.active:hover .list-group-item-heading > .small, +.list-group-item.active:focus .list-group-item-heading > .small { + color: inherit; +} +.list-group-item.active .list-group-item-text, +.list-group-item.active:hover .list-group-item-text, +.list-group-item.active:focus .list-group-item-text { + color: #c7ddef; +} +.list-group-item-success { + color: #3c763d; + background-color: #dff0d8; +} +a.list-group-item-success, +button.list-group-item-success { + color: #3c763d; +} +a.list-group-item-success .list-group-item-heading, +button.list-group-item-success .list-group-item-heading { + color: inherit; +} +a.list-group-item-success:hover, +button.list-group-item-success:hover, +a.list-group-item-success:focus, +button.list-group-item-success:focus { + color: #3c763d; + background-color: #d0e9c6; +} +a.list-group-item-success.active, +button.list-group-item-success.active, +a.list-group-item-success.active:hover, +button.list-group-item-success.active:hover, +a.list-group-item-success.active:focus, +button.list-group-item-success.active:focus { + color: #fff; + background-color: #3c763d; + border-color: #3c763d; +} +.list-group-item-info { + color: #31708f; + background-color: #d9edf7; +} +a.list-group-item-info, +button.list-group-item-info { + color: #31708f; +} +a.list-group-item-info .list-group-item-heading, +button.list-group-item-info .list-group-item-heading { + color: inherit; +} +a.list-group-item-info:hover, +button.list-group-item-info:hover, +a.list-group-item-info:focus, +button.list-group-item-info:focus { + color: #31708f; + background-color: #c4e3f3; +} +a.list-group-item-info.active, +button.list-group-item-info.active, +a.list-group-item-info.active:hover, +button.list-group-item-info.active:hover, +a.list-group-item-info.active:focus, +button.list-group-item-info.active:focus { + color: #fff; + background-color: #31708f; + border-color: #31708f; +} +.list-group-item-warning { + color: #8a6d3b; + background-color: #fcf8e3; +} +a.list-group-item-warning, +button.list-group-item-warning { + color: #8a6d3b; +} +a.list-group-item-warning .list-group-item-heading, +button.list-group-item-warning .list-group-item-heading { + color: inherit; +} +a.list-group-item-warning:hover, +button.list-group-item-warning:hover, +a.list-group-item-warning:focus, +button.list-group-item-warning:focus { + color: #8a6d3b; + background-color: #faf2cc; +} +a.list-group-item-warning.active, +button.list-group-item-warning.active, +a.list-group-item-warning.active:hover, +button.list-group-item-warning.active:hover, +a.list-group-item-warning.active:focus, +button.list-group-item-warning.active:focus { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b; +} +.list-group-item-danger { + color: #a94442; + background-color: #f2dede; +} +a.list-group-item-danger, +button.list-group-item-danger { + color: #a94442; +} +a.list-group-item-danger .list-group-item-heading, +button.list-group-item-danger .list-group-item-heading { + color: inherit; +} +a.list-group-item-danger:hover, +button.list-group-item-danger:hover, +a.list-group-item-danger:focus, +button.list-group-item-danger:focus { + color: #a94442; + background-color: #ebcccc; +} +a.list-group-item-danger.active, +button.list-group-item-danger.active, +a.list-group-item-danger.active:hover, +button.list-group-item-danger.active:hover, +a.list-group-item-danger.active:focus, +button.list-group-item-danger.active:focus { + color: #fff; + background-color: #a94442; + border-color: #a94442; +} +.list-group-item-muted { + color: #777777; + background-color: #f7f7f7; +} +a.list-group-item-muted, +button.list-group-item-muted { + color: #777777; +} +a.list-group-item-muted .list-group-item-heading, +button.list-group-item-muted .list-group-item-heading { + color: inherit; +} +a.list-group-item-muted:hover, +button.list-group-item-muted:hover, +a.list-group-item-muted:focus, +button.list-group-item-muted:focus { + color: #777777; + background-color: #f1f1f1; +} +a.list-group-item-muted.active, +button.list-group-item-muted.active, +a.list-group-item-muted.active:hover, +button.list-group-item-muted.active:hover, +a.list-group-item-muted.active:focus, +button.list-group-item-muted.active:focus { + color: #fff; + background-color: #777777; + border-color: #777777; +} +.list-group-item-heading { + margin-top: 0; + margin-bottom: 0; +} +.list-group-item-text { + margin-top: 5px; + margin-bottom: 0; + line-height: 1.3; +} +.list-group-item-text:empty { + margin-top: 0; +} +.panel { + margin-bottom: 20px; + background-color: #ffffff; + border: 1px solid transparent; + border-radius: 4px; + -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); +} +.panel-body { + padding: 15px; +} +.panel-heading { + padding: 10px 15px; + border-bottom: 1px solid transparent; + border-top-right-radius: 3px; + border-top-left-radius: 3px; +} +.panel-heading > .dropdown .dropdown-toggle { + color: inherit; +} +.panel-title { + margin-top: 0; + margin-bottom: 0; + font-size: 16px; + color: inherit; +} +.panel-title > a, +.panel-title > small, +.panel-title > .small, +.panel-title > small > a, +.panel-title > .small > a { + color: inherit; +} +.panel-footer { + padding: 10px 15px; + background-color: #f5f5f5; + border-top: 1px solid #dddddd; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .list-group, +.panel > .panel-collapse > .list-group { + margin-bottom: 0; +} +.panel > .list-group .list-group-item, +.panel > .panel-collapse > .list-group .list-group-item { + border-width: 1px 0; + border-radius: 0; +} +.panel > .list-group:first-child .list-group-item:first-child, +.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { + border-top: 0; + border-top-right-radius: 3px; + border-top-left-radius: 3px; +} +.panel > .list-group:last-child .list-group-item:last-child, +.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { + border-bottom: 0; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child { + border-top-right-radius: 0; + border-top-left-radius: 0; +} +.panel-heading + .list-group .list-group-item:first-child { + border-top-width: 0; +} +.list-group + .panel-footer { + border-top-width: 0; +} +.panel > .table, +.panel > .table-responsive > .table, +.panel > .panel-collapse > .table { + margin-bottom: 0; +} +.panel > .table caption, +.panel > .table-responsive > .table caption, +.panel > .panel-collapse > .table caption { + padding-left: 15px; + padding-right: 15px; +} +.panel > .table:first-child, +.panel > .table-responsive:first-child > .table:first-child { + border-top-right-radius: 3px; + border-top-left-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child td:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, +.panel > .table:first-child > thead:first-child > tr:first-child th:first-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, +.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { + border-top-left-radius: 3px; +} +.panel > .table:first-child > thead:first-child > tr:first-child td:last-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, +.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, +.panel > .table:first-child > thead:first-child > tr:first-child th:last-child, +.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, +.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, +.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { + border-top-right-radius: 3px; +} +.panel > .table:last-child, +.panel > .table-responsive:last-child > .table:last-child { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { + border-bottom-left-radius: 3px; + border-bottom-right-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, +.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { + border-bottom-left-radius: 3px; +} +.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, +.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, +.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, +.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, +.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { + border-bottom-right-radius: 3px; +} +.panel > .panel-body + .table, +.panel > .panel-body + .table-responsive, +.panel > .table + .panel-body, +.panel > .table-responsive + .panel-body { + border-top: 1px solid #dddddd; +} +.panel > .table > tbody:first-child > tr:first-child th, +.panel > .table > tbody:first-child > tr:first-child td { + border-top: 0; +} +.panel > .table-bordered, +.panel > .table-responsive > .table-bordered { + border: 0; +} +.panel > .table-bordered > thead > tr > th:first-child, +.panel > .table-responsive > .table-bordered > thead > tr > th:first-child, +.panel > .table-bordered > tbody > tr > th:first-child, +.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, +.panel > .table-bordered > tfoot > tr > th:first-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, +.panel > .table-bordered > thead > tr > td:first-child, +.panel > .table-responsive > .table-bordered > thead > tr > td:first-child, +.panel > .table-bordered > tbody > tr > td:first-child, +.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, +.panel > .table-bordered > tfoot > tr > td:first-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { + border-left: 0; +} +.panel > .table-bordered > thead > tr > th:last-child, +.panel > .table-responsive > .table-bordered > thead > tr > th:last-child, +.panel > .table-bordered > tbody > tr > th:last-child, +.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, +.panel > .table-bordered > tfoot > tr > th:last-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, +.panel > .table-bordered > thead > tr > td:last-child, +.panel > .table-responsive > .table-bordered > thead > tr > td:last-child, +.panel > .table-bordered > tbody > tr > td:last-child, +.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, +.panel > .table-bordered > tfoot > tr > td:last-child, +.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { + border-right: 0; +} +.panel > .table-bordered > thead > tr:first-child > td, +.panel > .table-responsive > .table-bordered > thead > tr:first-child > td, +.panel > .table-bordered > tbody > tr:first-child > td, +.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, +.panel > .table-bordered > thead > tr:first-child > th, +.panel > .table-responsive > .table-bordered > thead > tr:first-child > th, +.panel > .table-bordered > tbody > tr:first-child > th, +.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { + border-bottom: 0; +} +.panel > .table-bordered > tbody > tr:last-child > td, +.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, +.panel > .table-bordered > tfoot > tr:last-child > td, +.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, +.panel > .table-bordered > tbody > tr:last-child > th, +.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, +.panel > .table-bordered > tfoot > tr:last-child > th, +.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { + border-bottom: 0; +} +.panel > .table-responsive { + border: 0; + margin-bottom: 0; +} +.panel-group { + margin-bottom: 20px; +} +.panel-group .panel { + margin-bottom: 0; + border-radius: 4px; +} +.panel-group .panel + .panel { + margin-top: 5px; +} +.panel-group .panel-heading { + border-bottom: 0; +} +.panel-group .panel-heading + .panel-collapse > .panel-body, +.panel-group .panel-heading + .panel-collapse > .list-group { + border-top: 1px solid #dddddd; +} +.panel-group .panel-footer { + border-top: 0; +} +.panel-group .panel-footer + .panel-collapse .panel-body { + border-bottom: 1px solid #dddddd; +} +.panel-default { + border-color: #dddddd; +} +.panel-default > .panel-heading { + color: #333333; + background-color: #f5f5f5; + border-color: #dddddd; +} +.panel-default > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #dddddd; +} +.panel-default > .panel-heading .badge { + color: #f5f5f5; + background-color: #333333; +} +.panel-default > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #dddddd; +} +.panel-primary { + border-color: #337ab7; +} +.panel-primary > .panel-heading { + color: #ffffff; + background-color: #337ab7; + border-color: #337ab7; +} +.panel-primary > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #337ab7; +} +.panel-primary > .panel-heading .badge { + color: #337ab7; + background-color: #ffffff; +} +.panel-primary > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #337ab7; +} +.panel-success { + border-color: #d6e9c6; +} +.panel-success > .panel-heading { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} +.panel-success > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #d6e9c6; +} +.panel-success > .panel-heading .badge { + color: #dff0d8; + background-color: #3c763d; +} +.panel-success > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #d6e9c6; +} +.panel-info { + border-color: #bce8f1; +} +.panel-info > .panel-heading { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1; +} +.panel-info > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #bce8f1; +} +.panel-info > .panel-heading .badge { + color: #d9edf7; + background-color: #31708f; +} +.panel-info > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #bce8f1; +} +.panel-warning { + border-color: #faebcc; +} +.panel-warning > .panel-heading { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; +} +.panel-warning > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #faebcc; +} +.panel-warning > .panel-heading .badge { + color: #fcf8e3; + background-color: #8a6d3b; +} +.panel-warning > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #faebcc; +} +.panel-danger { + border-color: #ebccd1; +} +.panel-danger > .panel-heading { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1; +} +.panel-danger > .panel-heading + .panel-collapse > .panel-body { + border-top-color: #ebccd1; +} +.panel-danger > .panel-heading .badge { + color: #f2dede; + background-color: #a94442; +} +.panel-danger > .panel-footer + .panel-collapse > .panel-body { + border-bottom-color: #ebccd1; +} + +/* Inline Group */ + +.input-group { + position: relative; + display: table; + border-collapse: separate; +} +.input-group[class*="col-"] { + float: none; + padding-left: 0; + padding-right: 0; +} +.input-group .form-control { + position: relative; + z-index: 2; + float: left; + width: 100%; + margin-bottom: 0; +} +.input-group .form-control:focus { + z-index: 3; +} +.input-group-lg > .form-control, +.input-group-lg > .input-group-addon, +.input-group-lg > .input-group-btn > .btn { + height: 41px; + padding: 10px 16px; + font-size: 15px; + line-height: 1.3333333; + border-radius: 6px; +} +select.input-group-lg > .form-control, +select.input-group-lg > .input-group-addon, +select.input-group-lg > .input-group-btn > .btn { + height: 41px; + line-height: 41px; +} +textarea.input-group-lg > .form-control, +textarea.input-group-lg > .input-group-addon, +textarea.input-group-lg > .input-group-btn > .btn, +select[multiple].input-group-lg > .form-control, +select[multiple].input-group-lg > .input-group-addon, +select[multiple].input-group-lg > .input-group-btn > .btn { + height: auto; +} +.input-group-sm > .form-control, +.input-group-sm > .input-group-addon, +.input-group-sm > .input-group-btn > .btn { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} +select.input-group-sm > .form-control, +select.input-group-sm > .input-group-addon, +select.input-group-sm > .input-group-btn > .btn { + height: 30px; + line-height: 30px; +} +textarea.input-group-sm > .form-control, +textarea.input-group-sm > .input-group-addon, +textarea.input-group-sm > .input-group-btn > .btn, +select[multiple].input-group-sm > .form-control, +select[multiple].input-group-sm > .input-group-addon, +select[multiple].input-group-sm > .input-group-btn > .btn { + height: auto; +} +.input-group-addon, +.input-group-btn, +.input-group .form-control { + display: table-cell; +} +.input-group-addon:not(:first-child):not(:last-child), +.input-group-btn:not(:first-child):not(:last-child), +.input-group .form-control:not(:first-child):not(:last-child) { + border-radius: 0; +} +.input-group-addon, +.input-group-btn { + width: 1%; + white-space: nowrap; + vertical-align: middle; +} +.input-group-addon { + padding: 6px 12px; + font-size: 14px; + font-weight: normal; + line-height: 1; + color: #555555; + text-align: center; + background-color: #eeeeee; + border: 1px solid #cccccc; + border-radius: 4px; +} +.input-group-addon.input-sm { + padding: 5px 10px; + font-size: 12px; + border-radius: 3px; +} +.input-group-addon.input-lg { + padding: 10px 16px; + font-size: 15px; + border-radius: 6px; +} +.input-group-addon input[type="radio"], +.input-group-addon input[type="checkbox"] { + margin-top: 0; +} +.input-group .form-control:first-child, +.input-group-addon:first-child, +.input-group-btn:first-child > .btn, +.input-group-btn:first-child > .btn-group > .btn, +.input-group-btn:first-child > .dropdown-toggle, +.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), +.input-group-btn:last-child > .btn-group:not(:last-child) > .btn { + border-bottom-right-radius: 0; + border-top-right-radius: 0; +} +.input-group-addon:first-child { + border-right: 0; +} +.input-group .form-control:last-child, +.input-group-addon:last-child, +.input-group-btn:last-child > .btn, +.input-group-btn:last-child > .btn-group > .btn, +.input-group-btn:last-child > .dropdown-toggle, +.input-group-btn:first-child > .btn:not(:first-child), +.input-group-btn:first-child > .btn-group:not(:first-child) > .btn { + border-bottom-left-radius: 0; + border-top-left-radius: 0; +} +.input-group-addon:last-child { + border-left: 0; +} +.input-group-btn { + position: relative; + font-size: 0; + white-space: nowrap; +} +.input-group-btn > .btn { + position: relative; +} +.input-group-btn > .btn + .btn { + margin-left: -1px; +} +.input-group-btn > .btn:hover, +.input-group-btn > .btn:focus, +.input-group-btn > .btn:active { + z-index: 2; +} +.input-group-btn:first-child > .btn, +.input-group-btn:first-child > .btn-group { + margin-right: -1px; +} +.input-group-btn:last-child > .btn, +.input-group-btn:last-child > .btn-group { + z-index: 2; + margin-left: -1px; +} +.clearfix:before, +.clearfix:after, +.form-horizontal .form-group:before, +.form-horizontal .form-group:after { + content: " "; + display: table; +} +.clearfix:after, +.form-horizontal .form-group:after { + clear: both; +} diff --git a/data/web/blogfork.telegram.org/css/bootstrap.min.css b/data/web/blogfork.telegram.org/css/bootstrap.min.css new file mode 100644 index 0000000000..b59e0626ca --- /dev/null +++ b/data/web/blogfork.telegram.org/css/bootstrap.min.css @@ -0,0 +1,10 @@ +/*! + * Bootstrap v3.2.0 (http://getbootstrap.com) + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ + +/*! + * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=92d2ac1b31978642b6b6) + * Config saved to config.json and https://gist.github.com/92d2ac1b31978642b6b6 + *//*! normalize.css v3.0.1 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Helvetica,Verdana,sans-serif;font-size:12px;line-height:1.42857143;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#2e87ca;text-decoration:none}a:hover,a:focus{color:#2e87ca;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive{display:block;width:100% \9;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;width:100% \9;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:17px;margin-bottom:17px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:normal;line-height:1;color:#777}h1,.h1,h2,.h2,h3,.h3{margin-top:17px;margin-bottom:8.5px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:8.5px;margin-bottom:8.5px}h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small,h4 .small,.h4 .small,h5 .small,.h5 .small,h6 .small,.h6 .small{font-size:75%}h1,.h1{font-size:31px}h2,.h2{font-size:25px}h3,.h3{font-size:21px}h4,.h4{font-size:15px}h5,.h5{font-size:12px}h6,.h6{font-size:11px}p{margin:0 0 8.5px}.lead{margin-bottom:17px;font-size:13px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:18px}}small,.small{font-size:91%}cite{font-style:normal}mark,.mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#428bca}a.text-primary:hover{color:#3071a9}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#428bca}a.bg-primary:hover{background-color:#3071a9}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:7.5px;margin:34px 0 17px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:8.5px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:17px}dt,dd{line-height:1.42857143}dt{font-weight:bold}dd{margin-left:0}@media (min-width:1px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:8.5px 17px;margin:0 0 17px;font-size:15px;border-left:5px solid #eee}blockquote p:last-child,blockquote ul:last-child,blockquote ol:last-child{margin-bottom:0}blockquote footer,blockquote small,blockquote .small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote footer:before,blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}.blockquote-reverse footer:before,blockquote.pull-right footer:before,.blockquote-reverse small:before,blockquote.pull-right small:before,.blockquote-reverse .small:before,blockquote.pull-right .small:before{content:''}.blockquote-reverse footer:after,blockquote.pull-right footer:after,.blockquote-reverse small:after,blockquote.pull-right small:after,.blockquote-reverse .small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}blockquote:before,blockquote:after{content:""}address{margin-bottom:17px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c61717;background-color:#feeae4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,0.25)}kbd kbd{padding:0;font-size:100%;box-shadow:none}pre{display:block;padding:8px;margin:0 0 8.5px;font-size:11px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;color:#546172;background-color:#ecf3f8;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}table{background-color:transparent}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:17px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #eee}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #eee}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:0}.table>tbody+tbody{border-top:2px solid #eee}.table .table{background-color:#fff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #eee}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #eee}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*="col-"]{position:static;float:none;display:table-column}table td[class*="col-"],table th[class*="col-"]{position:static;float:none;display:table-cell}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.table>thead>tr>td.info,.table>tbody>tr>td.info,.table>tfoot>tr>td.info,.table>thead>tr>th.info,.table>tbody>tr>th.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>tbody>tr.info>td,.table>tfoot>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr.info>th,.table>tfoot>tr.info>th{background-color:#d9edf7}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:12.75px;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #eee;-webkit-overflow-scrolling:touch}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:17px;font-size:18px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}input[type="range"]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:12px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:31px;padding:6px 12px;font-size:12px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6)}.form-control::-moz-placeholder{color:#777;opacity:1}.form-control:-ms-input-placeholder{color:#777}.form-control::-webkit-input-placeholder{color:#777}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}textarea.form-control{height:auto}input[type="search"]{-webkit-appearance:none}input[type="date"],input[type="time"],input[type="datetime-local"],input[type="month"]{line-height:31px;line-height:1.42857143 \0}input[type="date"].input-sm,input[type="time"].input-sm,input[type="datetime-local"].input-sm,input[type="month"].input-sm{line-height:28px}input[type="date"].input-lg,input[type="time"].input-lg,input[type="datetime-local"].input-lg,input[type="month"].input-lg{line-height:42px}.form-group{margin-bottom:15px}.radio,.checkbox{position:relative;display:block;min-height:17px;margin-top:10px;margin-bottom:10px}.radio label,.checkbox label{padding-left:20px;margin-bottom:0;font-weight:normal;cursor:pointer}.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{position:absolute;margin-left:-20px;margin-top:4px \9}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:normal;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"].disabled,input[type="checkbox"].disabled,fieldset[disabled] input[type="radio"],fieldset[disabled] input[type="checkbox"]{cursor:not-allowed}.radio-inline.disabled,.checkbox-inline.disabled,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.radio.disabled label,.checkbox.disabled label,fieldset[disabled] .radio label,fieldset[disabled] .checkbox label{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.input-sm,.form-horizontal .form-group-sm .form-control{height:28px;padding:5px 10px;font-size:11px;line-height:1.5;border-radius:3px}select.input-sm{height:28px;line-height:28px}textarea.input-sm,select[multiple].input-sm{height:auto}.input-lg,.form-horizontal .form-group-lg .form-control{height:42px;padding:10px 16px;font-size:15px;line-height:1.33;border-radius:6px}select.input-lg{height:42px;line-height:42px}textarea.input-lg,select[multiple].input-lg{height:auto}.has-feedback{position:relative}.has-feedback .form-control{padding-right:38.75px}.form-control-feedback{position:absolute;top:22px;right:0;z-index:2;display:block;width:31px;height:31px;line-height:31px;text-align:center}.input-lg+.form-control-feedback{width:42px;height:42px;line-height:42px}.input-sm+.form-control-feedback{width:28px;height:28px;line-height:28px}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.has-success .form-control-feedback{color:#3c763d}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.has-error .form-control-feedback{color:#a94442}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn,.form-inline .input-group .form-control{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .radio label,.form-inline .checkbox label{padding-left:0}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{margin-top:0;margin-bottom:0;padding-top:7px}.form-horizontal .radio,.form-horizontal .checkbox{min-height:24px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}@media (min-width:768px){.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.form-horizontal .has-feedback .form-control-feedback{top:0;right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.3px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;-o-transition:height .35s ease;transition:height .35s ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:12px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:7.5px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{text-decoration:none;color:#262626;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;outline:0;background-color:#428bca}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#777}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:11px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:1px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#777;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eee;border-color:#2e87ca}.nav .nav-divider{height:1px;margin:7.5px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#428bca}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:48px;margin-bottom:17px;border:1px solid transparent}@media (min-width:1px){.navbar{border-radius:4px}}@media (min-width:1px){.navbar-header{float:left}}.navbar-collapse{overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}@media (min-width:1px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block !important;height:auto !important;padding-bottom:0;overflow:visible !important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-left:0;padding-right:0}}.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:340px}@media (max-width:480px) and (orientation:landscape){.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:200px}}.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media (min-width:1px){.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:1px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}@media (min-width:1px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:15.5px 15px;font-size:15px;line-height:17px;height:48px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}@media (min-width:1px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:7px;margin-bottom:7px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:1px){.navbar-toggle{display:none}}.navbar-nav{margin:7.75px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:17px}@media (max-width:0){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:17px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media (min-width:1px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15.5px;padding-bottom:15.5px}.navbar-nav.navbar-right:last-child{margin-right:-15px}}@media (min-width:1px){.navbar-left{float:left !important}.navbar-right{float:right !important}}.navbar-form{margin-left:-15px;margin-right:-15px;padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);margin-top:8.5px;margin-bottom:8.5px}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn,.navbar-form .input-group .form-control{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .radio label,.navbar-form .checkbox label{padding-left:0}.navbar-form .radio input[type="radio"],.navbar-form .checkbox input[type="checkbox"]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:0){.navbar-form .form-group{margin-bottom:5px}}@media (min-width:1px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}.navbar-form.navbar-right:last-child{margin-right:-15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8.5px;margin-bottom:8.5px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:13px;margin-bottom:13px}.navbar-text{margin-top:15.5px;margin-bottom:15.5px}@media (min-width:1px){.navbar-text{float:left;margin-left:15px;margin-right:15px}.navbar-text.navbar-right:last-child{margin-right:0}}.navbar-default{background-color:#fcfcfc;border-color:#e8e8e8}.navbar-default .navbar-brand{color:#0a76ba}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#0a76ba;background-color:transparent}.navbar-default .navbar-text{color:#666}.navbar-default .navbar-nav>li>a{color:#666}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#0a76ba;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#0a76ba;background-color:#fcfcfc}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e8e8e8}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{background-color:#fcfcfc;color:#0a76ba}@media (max-width:0){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#666}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#0a76ba;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#0a76ba;background-color:#fcfcfc}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#666}.navbar-default .navbar-link:hover{color:#0a76ba}.navbar-default .btn-link{color:#666}.navbar-default .btn-link:hover,.navbar-default .btn-link:focus{color:#0a76ba}.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:hover,.navbar-default .btn-link[disabled]:focus,fieldset[disabled] .navbar-default .btn-link:focus{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#777}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#777}.navbar-inverse .navbar-nav>li>a{color:#777}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{background-color:#080808;color:#fff}@media (max-width:0){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#777}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#777}.navbar-inverse .btn-link:hover,.navbar-inverse .btn-link:focus{color:#fff}.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:hover,.navbar-inverse .btn-link[disabled]:focus,fieldset[disabled] .navbar-inverse .btn-link:focus{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:17px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.breadcrumb>.active{color:#777}.clearfix:before,.clearfix:after,.dl-horizontal dd:before,.dl-horizontal dd:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after{content:" ";display:table}.clearfix:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.nav:after,.navbar:after,.navbar-header:after,.navbar-collapse:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right !important}.pull-left{float:left !important}.hide{display:none !important}.show{display:block !important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none !important;visibility:hidden !important}.affix{position:fixed;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}@-ms-viewport{width:device-width}.visible-xs,.visible-sm,.visible-md,.visible-lg{display:none !important}.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block{display:none !important}@media (max-width:767px){.visible-xs{display:block !important}table.visible-xs{display:table}tr.visible-xs{display:table-row !important}th.visible-xs,td.visible-xs{display:table-cell !important}}@media (max-width:767px){.visible-xs-block{display:block !important}}@media (max-width:767px){.visible-xs-inline{display:inline !important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block !important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block !important}table.visible-sm{display:table}tr.visible-sm{display:table-row !important}th.visible-sm,td.visible-sm{display:table-cell !important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block !important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline !important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block !important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block !important}table.visible-md{display:table}tr.visible-md{display:table-row !important}th.visible-md,td.visible-md{display:table-cell !important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block !important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline !important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block !important}}@media (min-width:1200px){.visible-lg{display:block !important}table.visible-lg{display:table}tr.visible-lg{display:table-row !important}th.visible-lg,td.visible-lg{display:table-cell !important}}@media (min-width:1200px){.visible-lg-block{display:block !important}}@media (min-width:1200px){.visible-lg-inline{display:inline !important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block !important}}@media (max-width:767px){.hidden-xs{display:none !important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none !important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none !important}}@media (min-width:1200px){.hidden-lg{display:none !important}}.visible-print{display:none !important}@media print{.visible-print{display:block !important}table.visible-print{display:table}tr.visible-print{display:table-row !important}th.visible-print,td.visible-print{display:table-cell !important}}.visible-print-block{display:none !important}@media print{.visible-print-block{display:block !important}}.visible-print-inline{display:none !important}@media print{.visible-print-inline{display:inline !important}}.visible-print-inline-block{display:none !important}@media print{.visible-print-inline-block{display:inline-block !important}}@media print{.hidden-print{display:none !important}} \ No newline at end of file diff --git a/data/web/blogfork.telegram.org/css/core-widgets.css b/data/web/blogfork.telegram.org/css/core-widgets.css new file mode 100644 index 0000000000..6b86cfbf74 --- /dev/null +++ b/data/web/blogfork.telegram.org/css/core-widgets.css @@ -0,0 +1,105 @@ +.widget-accent-colors { + display: flex; + flex-wrap: nowrap; + justify-content: space-between; + max-width: 480px; + margin: 3px 0 0; +} +.widget-accent-colors .widget-accent-color-item { + position: relative; + flex-basis: 42px; + font-weight: normal; + text-align: center; + cursor: pointer; +} +.widget-accent-color-item input.radio { + position: absolute; + left: -5000px; +} +.widget-accent-color-item input.radio + .widget-color-circle:after { + position: absolute; + left: 0; + display: inline-block; + content: ''; + width: 100%; + height: 100%; + border-radius: 50%; + vertical-align: top; + background: url('data:image/svg+xml,%3Csvg height="15" viewBox="0 0 18 15" width="18" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23fff" fill-rule="evenodd"%3E%3Crect height="8" rx="1.472727" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -5.753048 6.110913)" width="3" x="3" y="6"/%3E%3Crect height="3" rx="1.472727" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -2.081475 9.974874)" width="16" x="3" y="6"/%3E%3C/g%3E%3C/svg%3E') no-repeat center 11px; + transition: transform 0.12s linear; + transform: scale3d(0, 0, 1); +} +.widget-accent-color-item input.radio + .widget-color-circle.bordered, +.widget-accent-color-item input.radio:checked + .widget-color-circle-custom.bordered { + box-shadow: inset 0 0 0 1px #eaeaea; +} +.widget-accent-color-item input.radio + .widget-color-circle-custom.bordered { + border: none; +} +.widget-accent-color-item input.radio + .widget-color-circle.light:after { + background-image: url('data:image/svg+xml,%3Csvg height="15" viewBox="0 0 18 15" width="18" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%2315202b" fill-rule="evenodd"%3E%3Crect height="8" rx="1.472727" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -5.753048 6.110913)" width="3" x="3" y="6"/%3E%3Crect height="3" rx="1.472727" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -2.081475 9.974874)" width="16" x="3" y="6"/%3E%3C/g%3E%3C/svg%3E'); +} +.widget-accent-color-item input.radio:checked + .widget-color-circle:after { + transform: scale3d(1, 1, 1); +} +.widget-color-circle { + position: relative; + display: inline-block; + vertical-align: top; + width: 36px; + height: 36px; + border-radius: 50%; + background-color: #319BE6; + transition: background-color 0.12s ease, box-shadow 0.12s ease; +} +.widget-color-circle-custom { + background-color: #F5F5F5; + color: #F5F5F5; +} +.widget-accent-color-item input.radio + .widget-color-circle-custom:before { + position: absolute; + left: 0; + display: inline-block; + content: ''; + width: 100%; + height: 100%; + vertical-align: top; + background: url('data:image/svg+xml,%3Csvg height="14" viewBox="0 0 15 14" width="15" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="m3.9468491 8.55631162c-1.3103539 0-2.36810946 1.04207749-2.36810946 2.33300928 0 1.0187474-.91566899 1.5553396-1.57873964 1.5553396.72622023.9487571 1.96553085 1.5553395 3.15747928 1.5553395 1.7445073 0 3.15747928-1.3920289 3.15747928-3.1106791 0-1.29093179-1.05775556-2.33300928-2.36810946-2.33300928zm10.8222602-7.28676572-1.0577555-1.04207749c-.3078543-.30329121-.8051572-.30329121-1.1130115 0l-7.07275356 6.96792112 2.170767 2.13859186 7.07275356-6.96792112c.3078543-.30329121.3078543-.79322316 0-1.09651437z" fill="%23bdbdbd"/%3E%3C/svg%3E') no-repeat center; + transition: opacity 0.12s ease; +} +.widget-color-label { + font-size: 12px; + line-height: 14px; + margin-top: 8px; + color: #333; +} +.widget-color-label-custom { + transition: opacity 0.12s ease; + position: absolute; + width: 100%; +} +.widget-accent-color-field-item { + transition: all .2s ease; + opacity: 0; +} +.widget-accent-color-field-item input.widget-accent-color-field { + font-size: 12px !important; + line-height: 14px !important; + text-transform: uppercase; + position: relative; + text-align: center; + margin-top: 3px !important; + padding: 5px 0 !important; + color: #222 !important; + width: 52px !important; +} +.widget-accent-color-item input.radio:checked ~ .widget-accent-color-field-item { + opacity: 1; +} +.widget-accent-color-item input.radio:checked ~ .widget-color-circle-custom { + background-color: currentColor !important; +} +.widget-accent-color-item input.radio:checked + .widget-color-circle-custom:before, +.widget-accent-color-item input.radio:checked ~ .widget-color-label-custom { + opacity: 0; +} diff --git a/data/web/blogfork.telegram.org/css/telegram-extra.css b/data/web/blogfork.telegram.org/css/telegram-extra.css new file mode 100644 index 0000000000..6b408d1ae4 --- /dev/null +++ b/data/web/blogfork.telegram.org/css/telegram-extra.css @@ -0,0 +1,246 @@ +.telegram-passport-wrap { + overflow: hidden; +} +.telegram-passport-form { + position: relative; +} +.telegram-passport-form .control-label { + line-height: 20px; + padding-top: 11px; +} +.telegram-passport-header { + font-size: 18px; + line-height: 27px; +} +.telegram-passport-greeting { + margin-right: 10px; +} +.telegram-passport-greeting a, +.telegram-passport-greeting a:hover { + color: inherit; +} +.telegram-passport-logout { + font-size: 16px; + font-weight: normal; +} +.telegram-passport-login-wrap { + margin: 10px 0 50px; + text-align: center; +} +.telegram-passport-relogin-wrap { + margin: 10px 0 50px; + text-align: center; +} +.telegram-passport-pending { + padding: 20px 0 40px; + text-align: center; +} +.telegram-passport-block-header, +.telegram-passport-item { + border-bottom: 1px solid #e7e7e7; +} +.telegram-passport-block-header, +.telegram-passport-item-name, +.telegram-passport-item-value { + padding: 15px 0; + line-height: 20px; +} +.telegram-passport-block-header { + margin: 25px 0 0; +} +.telegram-passport-item-name { + margin-right: 15px; + margin-bottom: -5px; + padding-bottom: 0; + float: left; +} +.telegram-passport-item-files, +.telegram-passport-item-value { + clear: left; + font-weight: bold; +} +.telegram-passport-item-value { + transition: color .12s linear; +} +.telegram-passport-item-files { + padding: 6px 0; +} +.telegram-passport-item-file { + padding: 6px 0; + min-height: 60px; +} +.telegram-passport-item .telegram-passport-checkbox-right .checkbox-input { + margin: 0; +} +.telegram-passport-item .telegram-passport-checkbox-right { + float: right; + margin: 40px -5px 10px; + padding: 5px; +} +.telegram-passport-item-files .checkbox-item-block { + margin: 6px 0; +} +.telegram-passport-item-file .telegram-passport-checkbox-right { + margin: 9px -5px; +} +.telegram-passport-scan-thumb { + display: inline-block; + width: 64px; + height: 48px; + background: #f7f7f7 no-repeat center; + background-size: cover; + float: left; + border-radius: 3px; + margin-right: 15px; +} +.telegram-passport-scan-name { + display: inline-block; + font-size: 14px; + padding: 3px 0 0; + transition: color .12s linear; + color: #2e87ca; +} +.telegram-passport-scan-size { + font-size: 13px; + padding: 1px 0 0; + font-weight: normal; + transition: color .12s linear; + color: #999; +} +.telegram-passport-item-value, +.telegram-passport-scan-info { + margin-right: 42px; +} +.telegram-passport-item .checkbox-item-block .checkbox-label { + transition: color .12s linear; +} +.telegram-passport-item.item-rejected .telegram-passport-item-value, +.telegram-passport-item-file.item-rejected .telegram-passport-scan-name, +.telegram-passport-item-file.item-rejected .telegram-passport-scan-size, +.telegram-passport-item .checkbox-item-block.item-rejected .checkbox-label { + color: #c93c3c; +} + +.telegram-passport-item .checkbox-item-block .checkbox-input-icon:before { + border-color: #eb5454; + background-color: #eb5454; + background-position: -3px -119px; +} +.telegram-passport-item .checkbox-item-block input.checkbox:checked + .checkbox-input .ripple { + background-color: rgba(235, 84, 84, .2); +} +.telegram-passport-errors-wrap { + text-align: right; + margin: 20px 16px 0; +} +.btn.telegram-passport-errors { + font-size: 15px; + font-weight: 500; + line-height: 20px; + border-radius: 6px; + background-color: transparent; + padding: 8px 16px 10px; + margin: 4px -16px; + border: none; + color: #c93c3c; + position: relative; + z-index: 1; +} +.btn.telegram-passport-errors:hover { + background-color: #f7e3e3; +} +.btn.telegram-passport-errors:focus { + outline: none; +} +.btn.telegram-passport-errors:active { + box-shadow: none; +} +.telegram-passport-errors-icon { + display: inline-block; + vertical-align: top; + width: 18px; + height: 19px; + margin: 1px 12px 0 0; + background: url(/img/passport_bug.png) no-repeat 0 0; +} +@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { + .telegram-passport-errors-icon { + background-image: url(/img/passport_bug_2x.png); + background-size: 18px 19px; + } +} +.telegram-passport-errors-sent { + font-size: 14px; + line-height: 20px; + padding: 13px 24px 0 0; + color: #999; + transition: opacity .12s linear; + opacity: 0; +} +.telegram-passport-errors-sent.shown { + opacity: 1; +} + +@media (min-width: 768px) { + .telegram-passport-login-wrap { + text-align: left; + } + .telegram-passport-relogin-wrap { + text-align: left; + margin: 50px 0 50px 240px; + } + .telegram-passport-item-files, + .telegram-passport-item-value { + clear: none; + margin-left: 240px; + } + .telegram-passport-item .telegram-passport-checkbox-right { + margin-top: 10px; + } + .telegram-passport-item-file .telegram-passport-checkbox-right { + margin: 9px -5px; + } + .telegram-passport-errors-wrap { + position: absolute; + right: 0; + margin: 50px 0 0; + } +} + +.telegram-passport-form .sub-control-label { + text-align: left; + margin: 11px 0 6px; +} +.telegram-passport-form .sub-control-label .radio-label { + font-weight: bold; +} +.telegram-passport-form .sub-control-label .radio-item + .radio-item, +.telegram-passport-form .sub-control-label .checkbox-item + .checkbox-item { + margin-left: 25px; +} +.telegram-passport-form label.control-label .radio-label { + font-weight: bold; +} +.passport-opt, +.passport-opt-col { + display: inline-block; + margin-left: 31px; + margin-top: -10px; +} +.passport-opt + .passport-opt, +.passport-opt-col + .passport-opt-col { + margin-left: 0; +} +@media (min-width: 992px) { + .passport-opt-col { + margin-left: 0; + margin-top: 0; + text-align: center; + } + .passport-opt-col .checkbox-label { + text-align: left; + } + .passport-opt-col .checkbox-item input.checkbox ~ .checkbox-label { + display: none; + } +} diff --git a/data/web/blogfork.telegram.org/css/telegram.css b/data/web/blogfork.telegram.org/css/telegram.css new file mode 100644 index 0000000000..83d698a0e1 --- /dev/null +++ b/data/web/blogfork.telegram.org/css/telegram.css @@ -0,0 +1,5087 @@ +body { + font: 12px/18px "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Verdana, sans-serif; + /*-webkit-font-smoothing: antialiased;*/ +} +html.native_fonts body { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; +} +html.lang_rtl { + direction: rtl; +} + +body, +html.theme_dark body.bg_light { + --text-color: #000; + --second-text-color: #7d7f81; + --accent-btn-color: #2481cc; + --accent-color-hover: #1a8ad5; + --body-bg: #fff; + --box-bg: #fff; + --box-bg-blured: rgba(255, 255, 255, .84); + --tme-logo-color: #363b40; + --accent-link-color: #2481cc; + + --icon-verified: url('data:image/svg+xml,%3Csvg height="26" viewBox="0 0 26 26" width="26" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="m14.378741 1.509638 1.818245 1.818557c.365651.365716.861601.571194 1.378741.571259l2.574273.000312c1.01361.000117 1.846494.773578 1.940861 1.762436l.008905.187798-.000312 2.5727c-.000065.517322.205439 1.013454.571259 1.379222l1.819649 1.819337c.714441.713427.759174 1.843179.134563 2.609139l-.134797.148109-1.819181 1.8182502c-.365963.3657823-.571558.8620196-.571493 1.3794456l.000312 2.5737972c.000559 1.0136048-.772668 1.846676-1.7615 1.9412861l-.188266.0084786-2.573792-.0003107c-.517426-.0000624-1.013675.2055248-1.379456.5714956l-1.818245 1.8191823c-.71331.7145515-1.843049.7594886-2.609113.1349998l-.148135-.1347645-1.8193435-1.8196542c-.3657628-.3658252-.8618987-.5713214-1.3792103-.571259l-2.5727052.0003107c-1.0136048.0001222-1.846676-.7731321-1.9412861-1.761968l-.0089492-.1877967-.0003107-2.5742678c-.0000624-.5171478-.2055495-1.0130926-.571259-1.3787397l-1.8185622-1.8182515c-.7139886-.713869-.758706-1.843647-.1340846-2.609607l.1338493-.148109 1.8190328-1.81935c.3655665-.365625.5709613-.861471.5710237-1.378494l.0003107-2.573181c.0006006-1.076777.8734635-1.949636 1.9502353-1.950234l2.5731758-.000312c.5170321-.000065 1.0128768-.205452 1.3785044-.571025l1.8193448-1.819038c.761592-.761449 1.996254-.761345 2.757716.000247zm3.195309 8.047806c-.426556-.34125-1.032655-.306293-1.417455.060333l-.099151.108173-4.448444 5.55815-1.7460313-1.74707-.1104961-.096564c-.4229264-.32188-1.0291801-.289692-1.4154413.096564-.3862612.386269-.4184492.992511-.0965653 1.41544l.0965653.1105 2.5999987 2.5999987.109876.0961467c.419874.320359 1.015131.2873897 1.397071-.0773773l.098579-.107692 5.2-6.4999961.083772-.120484c.273208-.455884.174278-1.054885-.252278-1.396122z" fill="%231c93e3" fill-rule="evenodd"/%3E%3C/svg%3E'); +} + +html.theme_dark body, +html body.bg_dark { + --text-color: #fff; + --accent-btn-color: #1c93e3; + --body-bg: #000; + --box-bg: #1e1e1e; + --box-bg-blured: rgba(34, 34, 34, .84); + --tme-logo-color: #fff; + --accent-link-color: #3ca1eb; + + --icon-verified: url('data:image/svg+xml,%3Csvg height="26" viewBox="0 0 26 26" width="26" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="m14.378741 1.509638 1.818245 1.818557c.365651.365716.861601.571194 1.378741.571259l2.574273.000312c1.01361.000117 1.846494.773578 1.940861 1.762436l.008905.187798-.000312 2.5727c-.000065.517322.205439 1.013454.571259 1.379222l1.819649 1.819337c.714441.713427.759174 1.843179.134563 2.609139l-.134797.148109-1.819181 1.8182502c-.365963.3657823-.571558.8620196-.571493 1.3794456l.000312 2.5737972c.000559 1.0136048-.772668 1.846676-1.7615 1.9412861l-.188266.0084786-2.573792-.0003107c-.517426-.0000624-1.013675.2055248-1.379456.5714956l-1.818245 1.8191823c-.71331.7145515-1.843049.7594886-2.609113.1349998l-.148135-.1347645-1.8193435-1.8196542c-.3657628-.3658252-.8618987-.5713214-1.3792103-.571259l-2.5727052.0003107c-1.0136048.0001222-1.846676-.7731321-1.9412861-1.761968l-.0089492-.1877967-.0003107-2.5742678c-.0000624-.5171478-.2055495-1.0130926-.571259-1.3787397l-1.8185622-1.8182515c-.7139886-.713869-.758706-1.843647-.1340846-2.609607l.1338493-.148109 1.8190328-1.81935c.3655665-.365625.5709613-.861471.5710237-1.378494l.0003107-2.573181c.0006006-1.076777.8734635-1.949636 1.9502353-1.950234l2.5731758-.000312c.5170321-.000065 1.0128768-.205452 1.3785044-.571025l1.8193448-1.819038c.761592-.761449 1.996254-.761345 2.757716.000247zm3.195309 8.047806c-.426556-.34125-1.032655-.306293-1.417455.060333l-.099151.108173-4.448444 5.55815-1.7460313-1.74707-.1104961-.096564c-.4229264-.32188-1.0291801-.289692-1.4154413.096564-.3862612.386269-.4184492.992511-.0965653 1.41544l.0965653.1105 2.5999987 2.5999987.109876.0961467c.419874.320359 1.015131.2873897 1.397071-.0773773l.098579-.107692 5.2-6.4999961.083772-.120484c.273208-.455884.174278-1.054885-.252278-1.396122z" fill="%2364b5ef" fill-rule="evenodd"/%3E%3C/svg%3E'); +} +body { + background: var(--body-bg); +} + +.no_transition, +.no_transition * { + transition: none !important; +} + +a, +a:hover { + color: #0088cc; +} +a:focus { + text-decoration: none; +} +a:hover { + text-decoration: underline; +} + +.container { + margin-right: auto; + margin-left: auto; + padding-left: 15px; + padding-right: 15px; +} +@media (min-width: 768px) { + .container { + width: 750px; + } +} +@media (min-width: 992px) { + .container { + width: 970px; + } +} +@media (min-width: 1200px) { + .container { + width: 1170px; + } +} +.container-fluid { + margin-right: auto; + margin-left: auto; + padding-left: 15px; + padding-right: 15px; +} +.row { + margin-left: -15px; + margin-right: -15px; +} + +.container:before { + content: " "; + display: table; +} +.container:after { + content: " "; + display: table; + clear: both; +} + +@media (min-width: 1px) { + .lang_rtl .navbar-nav, + .lang_rtl .navbar-nav > li { + float: right; + } + .lang_rtl .navbar-right { + float: left !important; + } +} + +.tl_page_head, +.dev_page_head { + position: fixed; + top: 0; + left: 0; + right: 0; + background: #fff; + margin-bottom: 0; +} +@supports(-webkit-backdrop-filter: blur(0px)) { + .tl_page_head, + .dev_page_head { + background: rgba(255, 255, 255, .84); + -webkit-backdrop-filter: blur(25px); + } +} +@supports(backdrop-filter: blur(0px)) { + .tl_page_head, + .dev_page_head { + background: rgba(255, 255, 255, .84); + backdrop-filter: blur(25px); + } +} +.navbar-tg .navbar-inner { + box-shadow: none; + -webkit-box-shadow: none; + border-bottom: 1px solid #e8e8e8; +} +.navbar-tg .nav a { + color: #0088cc; +} +.navbar-tg .nav a:hover, +.navbar-tg .nav .active a { + color: #0088cc; +} +.navbar-tg .nav > .active > a, +.navbar-tg .nav > .open > a, +.navbar-tg .nav > li > a:hover { + position: relative; +} +.navbar-tg .nav > li > a:after { + display: block; + height: 3px; + background: #179cde; + position: absolute; + border-radius: 2px 2px 0 0; + content: ""; + left: 4px; + right: 4px; + opacity: 0; + bottom: -1px; + -webkit-transition: opacity .2s ease-in-out, transform .2s ease-in-out; + -moz-transition: opacity .2s ease-in-out, transform .2s ease-in-out; + -ms-transition: opacity .2s ease-in-out, transform .2s ease-in-out; + + transform-origin: bottom; + transform: scaleX(0.3) scaleY(0); + +} +.navbar-tg .nav > .active > a:after, +.navbar-tg .nav > .open > a:after, +.navbar-tg .nav > li > a:hover:after { + opacity: 1; + transform: scaleX(1.0) scaleY(1.0); +} +.navbar-tg .nav > li > a, +.navbar-tg .nav > li > a:hover, +.navbar-tg .nav > li > a:focus { + background-color: transparent; +} + +.nav { + color: #a2a2a2; + font-size: 15px; + padding-left: 0; + padding-right: 0; +} + + +.caret { + display: inline-block; + background: url(../img/dropdown_1x.png) -2px -5px no-repeat; + border: 0; + width: 14px; + height: 6px; + margin-left: 2px; + vertical-align: middle; +} + + +.nav-pills > li > a { + font-size: 15px; + padding: 8px 17px; + border-radius: 0; +} + +.nav > li > a:hover, +.nav > li > a:focus { + background-color: #f0f6fa; + text-decoration: none; +} + +.nav .open > a, +.nav .open > a:hover, +.nav .open > a:focus, +.nav-pills > li.active > a, +.nav-pills > li.active > a:hover, +.nav-pills > li.active > a:focus { + box-shadow: none; + background-color: #1e98d4; + color: #FFF; + border: 0; +} + +.nav .open > a .caret, +.nav .open > a:hover .caret, +.nav .open > a:focus .caret { + background-position: -2px -15px; +} + +.dropdown-menu { + min-width: 177px; + padding: 0; + margin: 7px 0 0 0; + list-style: none; + font-size: 13px; + text-align: left; + background-color: #fff; + border-radius: 0; + border: 1px solid rgba(29,92,123,0.3); + box-shadow: 0 1px 1px rgba(20,60,83,0.1); + -webkit-box-shadow: 0 1px 1px rgba(20,60,83,0.1); +} +.dropdown-menu > li > a { + padding: 8px 18px; + margin: 0 -1px; + color: #08c; +} +.dropdown-menu > li > a:first-child { + margin-top: -1px; + padding-top: 9px; +} +.dropdown-menu > li > a:last-child { + margin-bottom: -1px; + padding-bottom: 9px; +} +.dropdown-menu > li > a:hover, +.dropdown-menu > li > a:focus, +.dropdown-menu > li.active > a { + text-decoration: none; + color: #FFF; + background-color: #1e98d4; +} + +#dev_page_content > ul:not(.nav), +#dev_page_content ul.bulleted, +#dev_page_content > ul:not(.nav) ul:not(.nav), +#dev_page_content > ol:not(.nav) ul:not(.nav), +#dev_page_content ul.bulleted ul.bulleted { + list-style-type: none; + padding-left: 10px; +} +.is_rtl #dev_page_content > ul:not(.nav), +.is_rtl #dev_page_content ul.bulleted, +.is_rtl #dev_page_content > ul:not(.nav) ul:not(.nav), +.is_rtl #dev_page_content > ol:not(.nav) ul:not(.nav), +.is_rtl #dev_page_content ul.bulleted ul.bulleted { + padding-right: 10px; + padding-left: 0; +} +#dev_page_content > ol { + padding-left: 25px; +} +#dev_page_content > ol > li { + padding-left: 5px; +} + + +#dev_page_content > ul:not(.nav) li, +#dev_page_content > ol:not(.nav) ul:not(.nav) li, +#dev_page_content ul.bulleted li { + background-image: url(../img/bullet.png?3); + background-repeat: no-repeat; + background-position: 0px 8px; + padding-left: 20px; +} + +.is_rtl #dev_page_content > ul:not(.nav) li, +.is_rtl #dev_page_content > ol:not(.nav) ul:not(.nav) li, +.is_rtl #dev_page_content ul.bulleted li { + background-position: 100% 8px; + padding-left: 0; + padding-right: 20px; +} + + + +.breadcrumb > li { + text-shadow: none; +} +.breadcrumb > li > .divider { + color: #c1d3e4; +} + +pre, code { + border: 0; +} +pre { + font-size: 13px; + color: #546172; + background: #ecf3f8; + border-radius: 0; +} +code { + background: #feeae4; + color: #c61717; + padding: 3px 5px; + border-radius: 0; +} +blockquote { + border-left-color: #179cde; +} +blockquote p { + font-size: 14px; + font-weight: normal; + line-height: 20px; + margin-bottom: 10px; +} +ul ul, ol ul, ul ol, ol ol { + margin-bottom: 8.5px; +} +.table td, .table th { + border-top-color: #eee; +} +h1, h2, h3, h4, h5, h6 { + font-weight: bold; + margin: 20px 0 10px 0; + position: relative; +} +h1 { + font-size: 20px; + margin-top: 32px; + margin-bottom: 12px; +} +h2 { + font-size: 20px; + margin-top: 32px; + margin-bottom: 12px; +} +h3 { + font-size: 20px; + margin-top: 32px; + margin-bottom: 10px; +} +h4 { + font-size: 16px; + margin-top: 29px; + margin-bottom: 7px; +} +h5 { + font-size: 16px; + margin-top: 29px; + margin-bottom: 7px; +} + +mark { + padding: .2em .4em; +} + +a.btn, +button.btn { + border-radius: 0; +} + +.form-control { + border-radius: 0; + box-shadow: none; +} + + +a.anchor { + text-decoration: none; + line-height: 1; + margin-left: -22px; + + cursor: default; + display: block; + position: absolute; + top: 0; + left: 0; + bottom: 0; + + border-top: 60px solid transparent; + margin-top: -60px; + -webkit-background-clip:padding-box; + -moz-background-clip:padding; + background-clip:padding-box; + outline: 0; +} +.is_rtl a.anchor { + margin-right: -22px; + margin-left: 0; +} + +a.anchor i.anchor-icon { + display: inline-block; + width: 18px; + height: 20px; + margin-top: 2px; + line-height: 14px; + vertical-align: text-top; + background: url(../img/link-icon.png) 0 0 no-repeat; + background-size: 17px 18px; + opacity: 0; + + cursor: pointer; + padding: 0; + position: relative; + z-index: 10; + + -webkit-transition: opacity .15s ease-in-out; + -moz-transition: opacity .15s ease-in-out; + -ms-transition: opacity .15s ease-in-out; + -o-transition: opacity .15s ease-in-out; + transition: opacity .15s ease-in-out; +} + +h1 a.anchor i.anchor-icon {margin-top: 2px;} +h2 a.anchor i.anchor-icon {margin-top: 2px;} +h3 a.anchor i.anchor-icon {margin-top: 2px;} +h4 a.anchor i.anchor-icon {margin-top: 0px;} + + +h1:hover a.anchor i.anchor-icon, +h2:hover a.anchor i.anchor-icon, +h3:hover a.anchor i.anchor-icon, +h4:hover a.anchor i.anchor-icon, +h5:hover a.anchor i.anchor-icon, +h6:hover a.anchor i.anchor-icon { + opacity: 0.6; +} +i.anchor-icon:hover { + opacity: 1 !important; +} + +.breadcrumb { + background-color: #ecf3fa; +} +.breadcrumb { + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +.breadcrumb li { + display: inline-block; + float: none; + white-space: nowrap; + text-overflow: ellipsis; +} +.breadcrumb > li + li:before { + padding: 0; + content: ""; +} +.icon-breadcrumb-divider { + display: inline-block; + background: url(../img/breadcrumb_divider_1x.png) 0 50% no-repeat; + width: 5px; + height: 18px; + line-height: 18px; + margin: 0 8px; + vertical-align: top; +} + +.slightly-pull-right { + float: right; +} +.slightly-pull-left { + float: left; +} + + +.back_to_top_wrap { + display: block; + pointer-events: none; + cursor: default; + position: fixed; + left: 0; + top: 50px; + bottom: 0; + outline: none; + box-shadow: none; + opacity: 0; + /*display: none;*/ + transition: opacity ease-in-out 0.2s; + -webkit-transition: opacity ease-in-out 0.2s; + direction: ltr; +} +.back_to_top_wrap.is_rtl { + left: auto; + right: 0; + direction: rtl; +} +.back_to_top_wrap.back_to_top_shown { + cursor: pointer; + pointer-events: all; + /*display: block;*/ + opacity: 1; +} +.back_to_top_wrap:hover { + text-decoration: none; +} +.back_to_top { + font-size: 15px; + width: 120px; + text-align: center; + padding: 18px 15px 18px 7px; + transition: background ease-in-out 0.2s; + -webkit-transition: background ease-in-out 0.2s; +} +.back_to_top_wrap:hover .back_to_top { + background: #ecf3f8; + background: rgba(174, 198, 215, 0.2); +} +.icon-to-top { + display: inline-block; + background: url(../img/back_to_top_1x.png) 0 50% no-repeat; + width: 16px; + height: 7px; + margin-right: 12px; + margin-top: 7px; + vertical-align: text-top; +} +.back_to_top_wrap.is_rtl .icon-to-top { + margin-left: 12px; + margin-right: 0; +} + + +.navbar-tg .navbar-twitter a { + padding-top: 14.5px; + padding-bottom: 14.5px; +} + +.tl_page_container, +.dev_page { + margin-top: 50px; +} +.tl_main_page_container { + padding: 0; +} + +.tl_main_wrap { + margin-top: 17px; +} +.tl_main_wrap h3 { + color: #222222; + font-size: 23px; + font-weight: 500; +} +.tl_main_award { + width: 100px; + height: 100px; + display: block; + background: url(../img/SiteAward.gif) 0 0 no-repeat; + margin: 2px; +} +.tl_main_card_animated { + width: 160px; + margin: 0 auto; +} +.tl_main_card_animated div { + padding-top: 100%; +} + +.no_access_wrap { + color: #999; + padding: 100px 40px; + text-align: center; + font-size: 18px; +} + +.side_blog_wrap { + background: #ecf3fa; + padding: 15px 20px 20px; + font-size: 12px; + width: 200px; +} +.tl_blog_side_blog .side_blog_wrap { + width: 180px; +} +.side_blog_header { + display: block; + color: #0088cc; + font-weight: bold; + font-size: 16px; + margin-bottom: 15px; +} +a.side_blog_entry { + display: block; + margin-top: 10px; +} +a.side_blog_entry:hover { + text-decoration: none; +} +.side_blog_date { + color: #000; + font-weight: bold; +} +.side_blog_title { + color: #0088cc; +} +a.side_blog_entry:hover .side_blog_title { + text-decoration: underline; +} +.side_tour_entry .side_blog_title { + font-size: 14px; +} + +.tl_main_bottom_blog, +.tl_blog_bottom_blog { + display: none; +} +.tl_main_side_blog { + position: relative; +} +.tl_main_side_blog .side_blog_wrap { + position: absolute; + margin-top: 20px; + right: 137px; +} +.lang_rtl .tl_main_side_blog .side_blog_wrap { + left: 137px; + right: auto; +} +.tl_main_bottom_blog { + margin: 0px 15px 20px; +} +.side_blog_wrap { + background: none; + padding: 5px 17px 5px 0; + margin: 0 0 17px 26px; + display: flex; + flex-wrap: nowrap; + flex-direction: row; + justify-content: start; + align-items: stretch; + align-content: start +} +.tl_blog_bottom_blog .side_blog_wrap { + margin: 0 0 0 10px; +} +.tl_blog_side_blog { + position: relative; +} +.tl_blog_side_blog .side_blog_wrap { + position: absolute; + margin-top: 50px; + right: -200px; +} +.lang_rtl .tl_blog_side_blog .side_blog_wrap { + left: -200px; + right: auto; +} +.side_blog_wrap:before { + content: ' '; + display: block; + width: 5px; + background: #179cde; + border-radius: 5px; + overflow: hidden; + flex: 0 0 auto; + margin: 0 17px 0 0; +} +.lang_rtl .side_blog_wrap:before { + margin: 0 0 0 17px; +} + + + +.tl_main_logo_wrap { + max-width: 400px; + margin: 0 auto; + padding: 20px 0 20px; +} +a.tl_main_logo { + display: block; + line-height: 0; + text-decoration: none !important; +} +svg.tl_main_logo, +image.tl_main_logo, +img.tl_main_logo { + display: block; + width: 128px; + height: 128px; + margin: 0 auto; +} +div.tl_main_logo { + display: block; + width: 144px; + height: 144px; + margin: -8px auto; + animation: 500ms steps(30) both; + background-repeat: no-repeat; + background-size: cover; +} +div.tl_main_logo.play { + animation-name: t-logo-play; +} +@-webkit-keyframes t-logo-play { + from { background-position: 0% 0%; } + to { background-position: 100% 0%; } +} +@keyframes t-logo-play { + from { background-position: 0% 0%; } + to { background-position: 100% 0%; } +} + +.tl_main_logo_title, +.tl_main_logo_title:hover { + font-size: 34px; + color: #222222; + text-align: center; + margin-top: 18px; + margin-bottom: 6px; + font-weight: normal; + letter-spacing: -2px; +} +.tl_main_logo_title_image { + display: block; + width: 144px; + height: 36px; + margin: 18px auto 6px; +} +.tl_main_logo_lead { + font-size: 20px; + line-height: 148%; + max-width: 285px; + margin: 0 auto; + color: #8c8c8c; + text-align: center; + padding: 1px 0 10px; + + font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Light", Helvetica, Arial , Verdana, sans-serif; + font-weight: 300; +} + + +.tl_main_head_download { + margin: 6px auto 35px; + max-width: 798px; + text-align: center; +} +.tl_main_download_btn { + display: inline-block; + color: #FFF; + font-size: 16px; + background: #a19481; + border-radius: 4px; + padding: 10px 15px; + line-height: 35px; + overflow: hidden; + width: 220px; + margin: 5px 8px; + text-align: center; +} +.tl_main_download_btn:hover { + background-color: #a99d8b; + color: #FFF; + text-decoration: none; +} +.tl_main_download_btn:active { + background-color: #998e7e; +} + +.tl_main_download_mobile { + text-align: center; + max-width: 1028px; + margin: 0 auto; +} +.tl_main_download_link { + text-align: center; + display: inline-block; + height: 300px; + padding-top: 262px; + padding-bottom: 20px; + margin: 40px 0; + font-size: 15px; + max-width: 100%; + position: relative; +} +a.tl_main_download_link:hover { + text-decoration: none; +} +a.tl_main_download_link:after { + display: block; + height: 3px; + background: #179cde; + position: absolute; + border-radius: 2px; + content: ""; + left: 4px; + right: 4px; + opacity: 0; + bottom: -1px; + -webkit-transition: opacity .2s ease-in-out, transform .2s ease-in-out; + -moz-transition: opacity .2s ease-in-out, transform .2s ease-in-out; + -ms-transition: opacity .2s ease-in-out, transform .2s ease-in-out; + + transform-origin: bottom; + transform: scaleX(0.3) scaleY(0); +} +a.tl_main_download_link:hover:after { + opacity: 1; + transform: scaleX(1.0) scaleY(1.0); +} + +.tl_main_download_link_android { + width: 28.210116857923%; + min-width: 245px; +} +.tl_main_download_link_ios { + width: 42.9961%; + min-width: 350px; +} +.tl_main_download_link_tdesktop { + display: none; + min-width: 320px; + background: url(../img/SiteTDesktop.jpg) 50% 0 no-repeat; +} + +.tl_main_download_image__ios, +.tl_main_download_image__android { + display: block; + position: absolute; + top: 50%; + left: 50%; + transform-origin: 50% 50%; + opacity: 1.0; + pointer-events: none; + -webkit-transition: opacity .1s ease-in-out; + -moz-transition: opacity .1s ease-in-out; + -ms-transition: opacity .1s ease-in-out; + padding: 0; + border: 0; +} +.tl_main_download_image__ios { + margin: -150px 0 0 -152px; + width: 304px; + height: 240px; + background: url(../img/SiteiOS.jpg?2) 50% 0 no-repeat; +} +.tl_main_download_image__android { + margin: -150px 0 0 -152px; + width: 304px; + height: 240px; + background: url(../img/SiteAndroid.jpg?2) 50% 0 no-repeat; +} + +.tl_main_video_player { + display: block; + position: absolute; + top: 50%; + left: 50%; + transform-origin: 50% 50%; + opacity: 0; + pointer-events: none; + -webkit-transition: opacity .1s ease-in-out; + -moz-transition: opacity .1s ease-in-out; + -ms-transition: opacity .1s ease-in-out; + padding: 0; + border: 0; +} +.tl_main_video_player.video__init_retina { + display: none; +} +.tl_main_video_player__android { + margin: -150px 0 0 -96px; + width: 192px; + height: 240px; +} +.tl_main_video_player__ios { + margin: -150px 0 0 -152px; + width: 304px; + height: 240px; +} +.video_play .tl_main_video_player { + opacity: 1; +} + + + + +.tl_main_download_more_btn { + margin-bottom: 0; + font-weight: normal; + text-align: center; + vertical-align: middle; + cursor: pointer; + background-image: none; + border: 0; + white-space: nowrap; + padding: 10px 16px; + font-size: 15px; + line-height: 1.33; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + color: #ffffff; + background-color: #318fd3; + margin-top: 5px; + display: none; + border-radius: 3px; +} +.tl_main_download_more_btn:hover { + color: #FFF; +} +.icon-arrow-more { + display: inline-block; + vertical-align: baseline; + width: 6px; + height: 11px; + background: url(../img/tl_arrow.png) 0 0 no-repeat; + margin-left: 10px; +} + +.tl_main_download_desktop_header { + text-align: center; +} +.tl_main_download_desktop_wrap1 { + height: 291px; + overflow: hidden; +} +.tl_main_download_desktop_wrap { + position: absolute; + left: 0; + right: 0; +} +.tl_main_download_desktop { + position: absolute; + left: 0; + right: 0; + min-width: 804px; + background: url(../img/SiteDesktop.jpg?2) 50% 19px no-repeat; + /*overflow: hidden;*/ +} + + + +.tl_main_download_desktop_links { + width: 595px; + margin: 0 auto; +} +.tl_main_download_desktop_link { + text-align: center; + display: inline-block; + padding: 270px 0 20px; + font-size: 15px; + vertical-align: top; + -webkit-transition: box-shadow .2s ease-in-out; + -moz-transition: box-shadow .2s ease-in-out; + -ms-transition: box-shadow .2s ease-in-out; + position: relative; + float: left; +} +.tl_main_download_desktop_link:hover { + text-decoration: none; +} +a.tl_main_download_desktop_link:hover { + text-decoration: none; +} +a.tl_main_download_desktop_link:after { + display: block; + height: 3px; + background: #179cde; + position: absolute; + border-radius: 2px; + content: ""; + left: 4px; + right: 4px; + opacity: 0; + bottom: -1px; + -webkit-transition: opacity .2s ease-in-out, transform .2s ease-in-out; + -moz-transition: opacity .2s ease-in-out, transform .2s ease-in-out; + -ms-transition: opacity .2s ease-in-out, transform .2s ease-in-out; + + transform-origin: bottom; + transform: scaleX(0.3) scaleY(0); +} +a.tl_main_download_desktop_link:hover:after { + opacity: 1; + transform: scaleX(1.0) scaleY(1.0); +} +.tl_main_download_link_td { + width: 52%; + padding-left: 20px; + padding-right: 20px; +} +.tl_main_download_link_osx { + width: 48%; +} +.tl_main_body { + margin-top: 40px; + padding-top: 5px; +} +.tl_main_body_header { + text-align: center; + margin-top: 0; + padding-top: 20px; +} + +.icon-android, +.icon-ios { + display: inline-block; + vertical-align: text-top; + width: 25px; + height: 27px; + background: 0 0 no-repeat; + margin-right: 10px; + margin-top: -6px; +} +.lang_rtl .icon-android, +.lang_rtl .icon-ios { + margin-right: 0; + margin-left: 10px; +} + +.icon-ios { + background-image: url(../img/SiteIconApple.svg); +} +.icon-android { + background-image: url(../img/SiteIconAndroid.svg); +} + +.icon { + display: inline-block; +} +.icon-twitter { + width: 21px; + height: 17px; + vertical-align: text-top; + background: url(../img/twitter.png) 0 0 no-repeat; + opacity: 0.9; +} +a:hover .icon-twitter { + opacity: 0.99; +} + +.app-icon { + display: inline-block; + width: 30px; + height: 30px; + line-height: 30px; + margin-right: 7px; + vertical-align: -9px; + background: no-repeat left; + background-size: cover; +} +.is_rtl .app-icon { + margin-right: 0; + margin-left: 7px; +} +.app-icon-android { + background-image: url(/img/app_icon_android.svg); +} +.app-icon-ios { + background-image: url(/img/app_icon_ios.svg); +} +.app-icon-macos { + background-image: url(/img/app_icon_macos.svg); +} +.app-icon-desktop { + background-image: url(/img/app_icon_desktop.svg); +} +.app-icon-webk { + background-image: url(/img/app_icon_webk.svg); +} +.app-icon-webz { + background-image: url(/img/app_icon_webz.svg); +} + + +.tl_main_cards { + max-width: 950px; + margin: 18px auto 0; + padding: 0; + display: flex; + flex-wrap: wrap; + justify-content: center; +} +.tl_main_card_cell { + position: relative; + min-height: 1px; + padding-left: 15px; + padding-right: 15px; + flex: 0 1 auto; + width: 100%; +} +@media (min-width: 768px) { + .tl_main_card_cell { + width: 50%; + } +} +@media (min-width: 992px) { + .tl_main_card_cell { + width: 33.33333%; + } +} + +.tl_main_card_wrap { + max-width: 260px; + margin: 0 auto; + padding: 20px 0 9px; +} +.tl_main_card { + background: url(../img/tl_card_fast.gif) 0 0 no-repeat; + background-size: 160px 160px; + width: 160px; + height: 160px; + margin: 0 auto; +} + +.tl_main_card_fast { + background-image: url(../img/tl_card_fast.gif); +} +.tl_main_card_powerful { + background-image: url(../img/tl_card_powerful.gif); +} +.tl_main_card_free { + background-image: url(../img/tl_card_free.gif); +} +.tl_main_card_secure { + background-image: url(../img/tl_card_secure.gif); +} +.tl_main_card_cloud { + background-image: url(../img/tl_card_cloud.gif); +} +.tl_main_card_private { + background-image: url(../img/tl_card_private.gif); +} +.tl_main_card_decentralized { + background-image: url(../img/tl_card_decentralized.gif); +} +.tl_main_card_open { + background-image: url(../img/tl_card_open.gif); +} +.tl_main_card_wecandoit { + background-image: url(../img/tl_card_wecandoit.gif); +} + +.tl_main_card_connect { + background-image: url(../img/tl_card_connect.gif); +} +.tl_main_card_coordinate { + background-image: url(../img/tl_card_coordinate.gif); +} +.tl_main_card_synchronize { + background-image: url(../img/tl_card_synchronize.gif); +} +.tl_main_card_build { + background-image: url(../img/tl_card_build.gif); +} +.tl_main_card_encrypt { + background-image: url(../img/tl_card_encrypt.gif); +} +.tl_main_card_send { + background-image: url(../img/tl_card_send.gif); +} +.tl_main_card_process { + background-image: url(../img/tl_card_process.gif); +} +.tl_main_card_destruct { + background-image: url(../img/tl_card_destruct.gif); +} +.tl_main_card_store { + background-image: url(../img/tl_card_store.gif); +} + +h3.tl_main_card_header { + color: #a19679; + text-align: center; + margin: 15px 0 6px; + font-size: 26px; + font-weight: normal; + letter-spacing: -1px; +} +.tl_main_cards_animated_wrap h3.tl_main_body_header { + padding: 0 10px; +} +.tl_main_cards_animated_wrap h3.tl_main_card_header { + color: #0088cc; +} +.tl_main_cards_animated_wrap { + padding-bottom: 20px; +} + +.tl_main_card_lead { + font-size: 15px; + line-height: 158%; + text-align: center; +} + +.tl_main_share { + margin: 24px auto 40px; + /*padding-bottom: 30px;*/ + max-width: 330px; + text-align: center; +} +.lang_rtl .tl_main_share { + max-width: none; +} +.tl_main_noshare { + height: 50px; +} +.tl_main_twitter_widget_wrap { + /*float: left;*/ + display: inline-block; +} +.tl_main_facebook_widget_wrap { + /*float: left;*/ + margin-right: 20px; + display: inline-block; +} +.fb_iframe_widget span { + vertical-align: baseline !important; +} + +.tl_blog_comments_widget { + margin: 0 -8px 40px; +} +.tl_blog_comments_widget iframe { + max-width: 100%; +} + +.tl_main_gplus_widget_wrap { + /*float: left;*/ + display: inline-block; +} + +.tl_twitter_share_btn { + display: inline-block; + border-radius: 16px; + background-color: #54a9eb; + cursor: pointer; + margin-right: 15px; + padding: 7px 17px; + color:#FFF; + font-weight: bold; +} +.lang_rtl .tl_twitter_share_btn { + margin-right: 0; + margin-left: 15px; +} +.tl_twitter_share_btn:hover, +.tl_twitter_share_btn:active, +.tl_twitter_share_btn:focus { + text-decoration: none; + color: #FFF; + outline: none; +} +.tl_twitter_share_cnt { + display: none; + color: #c4e3fb; +} + +.tl_blog_list_page_wrap { + max-width: 800px; + margin: 0 auto; +} +.tl_blog_list_page_wrap.tl_main_recent_news_wrap { + margin-top: 22px; + margin-bottom: 20px; +} +.tl_main_recent_news_header { + font-size: 16px; + font-weight: bold; + text-align: center; + margin-top: 42px; +} +.tlb_other_news_wrap .tl_main_recent_news_header { + margin-top: 22px; + font-size: 18px; +} +.tl_main_wrap .tl_main_recent_news_header { + margin-top: 66px; +} +.tl_main_download_mobile + .tl_main_recent_news_wrap .tl_main_recent_news_header, +.tl_main_download_mobile + .tl_main_recent_news_wrap { + margin-top: 12px; +} +.dev_blog_card_link_wrap:nth-child(odd) { + clear: left; +} +.dev_blog_card_link_wrap { + display: block; + max-width: 50%; + float: left; + padding: 15px 10px; +} +@media (max-width: 640px) { + .dev_blog_card_link_wrap { + max-width: 100%; + } +} +@media (min-width: 801px) { + .tl_main_recent_news_cards { + margin: 0 -15px; + } +} +.tlb_blog_page .dev_blog_card_link_wrap { + padding: 15px 0; +} +a.dev_blog_card_link_wrap:hover, +a.dev_blog_card_link_wrap:active, +a.dev_blog_card_link_wrap:focus { + text-decoration: none; +} +.dev_blog_card_image { + display: block; + max-width: 100%; + height: auto; + max-height: 220px; + margin: 0 auto; + -webkit-transition: opacity .2s ease-in-out; + -moz-transition: opacity .2s ease-in-out; + -ms-transition: opacity .2s ease-in-out; + opacity: 1; +} +.preload .dev_blog_card_image { + height: 220px; + max-height: initial; +} +a:hover .dev_blog_card_image { + opacity: 0.9; +} +.dev_blog_card_title { + margin: 12px 0 2px; + padding: 0 15px; + font-size: 16px; + line-height: 160%; +} +a.dev_blog_card_link_wrap:hover .dev_blog_card_title { + text-decoration: underline; +} +.dev_blog_card_lead { + color: #333; + font-size: 14px; + line-height: 160%; + padding: 0 15px; +} +.dev_blog_card_date { + margin-top: 4px; + font-size: 14px; + color: #888; + padding: 0 15px; +} +.tlb_blog_page .dev_blog_card_title, +.tlb_blog_page .dev_blog_card_lead, +.tlb_blog_page .dev_blog_card_date { + padding: 0 5px; +} +.pager_wrap { + margin-top: 40px; + clear: both; +} + + +.footer_wrap { + border-top: 1px solid #e8e8e8; + max-width: 925px; + margin: 10px auto 0; + padding: 28px 0 34px; +} +.footer_columns_wrap { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + -webkit-align-content: stretch; + -ms-flex-line-pack: stretch; + align-content: stretch; + -webkit-align-items: stretch; + -ms-flex-align: stretch; + align-items: stretch; + + margin: 0 auto; + max-width: 800px; + padding-left: 0; +} +.footer_mobile { + display: none; +} +.footer_column { + flex: 0 1 auto; + align-self: auto; +} +.footer_column_telegram { + flex: 0 1 290px; +} +.footer_column:last-child { + padding-right: 0; +} +.footer_column:first-child { + padding-left: 0; +} +.footer_column h5 { + font-size: 14px; + margin-top: 0; + margin-bottom: 9px; +} +.footer_column h5 a { + color: inherit; +} +.footer_column ul, +.footer_column ul li { + list-style: none; + margin: 0; + padding: 0; +} +.footer_column ul li { + font-size: 14px; + line-height: 23px; +} +.footer_privacy_description { + padding-top: 3px; + font-size: 13px; + line-height: 160%; +} +.footer_privacy_description p { + margin-bottom: 6px; +} +.footer_telegram_description { + font-size: 13px; +} + + + +.tl_mission_wrap #dev_page_content, +.tl_mission_wrap #dev_page_content p { + font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Light", Helvetica, Arial , Verdana, sans-serif; + font-weight: 300; + line-height: 160%; + font-size: 16px; +} + + + +/* Team */ +#dev_page_content.tl_team_wrap, +#dev_page_content.tl_team_wrap p { + line-height: 1.6; +} +.tl_team_lead { + margin-bottom: 30px; +} +.tl_team_member { + min-height: 120px; + position: relative; + margin-bottom: 30px; +} +.tl_team_member_photo_wrap { + position: absolute; + // float: left; + // margin-right: 25px; +} +.tl_team_member_photo { + width: 120px; + height: 120px; + display: block; + background: url('../img/team-sprite.png') 0 0 no-repeat; + background-size: 120px 1810px; +} + +.tl_team_member_pavel .tl_team_member_photo { + background-position: 0 0; +} +.tl_team_member_nikolay .tl_team_member_photo { + background-position: 0 -130px; +} +.tl_team_member_aliaksei .tl_team_member_photo { + background-position: 0 -260px; +} +.tl_team_member_vitalik .tl_team_member_photo { + background-position: 0 -390px; +} +.tl_team_member_arseny .tl_team_member_photo { + background-position: 0 -520px; +} +.tl_team_member_igor .tl_team_member_photo { + background-position: 0 -650px; +} +.tl_team_member_drklo .tl_team_member_photo { + background-position: 0 -780px; +} +.tl_team_member_peter .tl_team_member_photo { + background-position: 0 -910px; +} +.tl_team_member_john .tl_team_member_photo { + background-position: 0 -1040px; +} +.tl_team_member_kolar .tl_team_member_photo { + background-position: 0 -1170px; +} +.tl_team_member_ilya .tl_team_member_photo { + background-position: 0 -1300px; +} +.tl_team_member_igor1 .tl_team_member_photo { + background-position: 0 -1690px; +} +.tl_team_member_mike .tl_team_member_photo { + background-position: 0 -1560px; +} +.tl_team_member_grisha .tl_team_member_photo { + background-position: 0 -1430px; +} + + +.tl_team_member_name { + margin-left: 146px; +} +.tl_team_member_body { + margin-left: 146px; +} + +.tl_team_member_name { + margin-top: 5px; + font-size: 17px; +} +.tl_team_member_awards { + margin-top: 20px; + margin-bottom: 18px; + color: #0088cc; + font-size: 15px; +} +.tl_team_member_experience, +.tl_team_member_awards_list { + line-height: 1.8; +} +.tl_team_member_description { + margin-top: 20px; +} + + + +/* Core / dev */ + +.dev_page { + background: #FFF; + min-height: 500px; +} +#dev_page_content_wrap { + padding: 20px 0; + max-width: 800px; + margin: 0 auto; + direction: ltr; +} +#dev_page_content_wrap.is_rtl { + direction: rtl; +} +#dev_page_content, +#dev_page_content p { + font-size: 14px; + line-height: 1.5; +} +#dev_page_content p img.icon { + width: auto; + height: 20px; +} +#dev_page_content p img.icon, +#dev_page_content img.emoji { + vertical-align: top; + -webkit-user-drag: none; + user-drag: none; + cursor: text; +} +.dev_page_bread_crumbs .breadcrumb { + margin-bottom: 10px; + border-radius: 0; +} +#dev_page_title { + position: static; +} + +.dev_page_head .dev_page_head_logo { + margin-left: 0; +} +#dev_page_content_wrap blockquote { + padding: 5px 17px; +} +#dev_page_content_wrap pre { + overflow-x: auto; + border-radius: 0; +} + +#dev_page_content_wrap pre::-webkit-scrollbar { + visibility: visible; + display: block; + height: 15px; +} +#dev_page_content_wrap pre::-webkit-scrollbar-track:horizontal { + background: rgba(93, 144, 177, 0.2); + border-radius: 0; + height: 15px; +} +#dev_page_content_wrap pre::-webkit-scrollbar-thumb:horizontal { + background: rgba(93, 144, 177, 0.4); + border-radius: 0; + height: 15px; +} + +#dev_page_content_wrap .richcode { + display: block; + padding: 9.5px; + margin: 0 0 10px; + font-size: 13px; + line-height: 20px; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + + color: #546172; + background: #ecf3f8; + + font-family: Monaco,Menlo,Consolas,"Courier New",monospace; +} +#dev_page_content_wrap .richcode code { + background: #FFF; +} +.richcode p:last-child { + margin-bottom: 0; +} + +#dev_page_content_wrap pre code { + overflow-wrap: normal; + white-space: pre; +} +#dev_page_content_wrap a.current_page_link { + color: #468847; + text-decoration: underline; +} + +#dev_page_content_wrap a.nonexisting_page_link { + color: #FF0000; + text-decoration: underline; +} + +.dev_side_image { + max-width: 200px; + float: right; + padding: 0 0 0 20px; +} +.dev_side_image img { + max-width: 180px; +} +.dev_side_image picture { + max-width: 180px; +} + + +#dev_page_content_wrap pre.page_scheme { + margin: 20px 0 30px; +} +.dev_page_edit_form { + border-top: 1px solid #DDD; + padding-top: 50px; + max-width: 800px; + margin: 30px auto 0; + direction: ltr; +} +.dev_page_edit_form .CodeMirror { + font-size: 14px; + line-height: 20px; + font-family: Monaco, Menlo, Consolas, "Courier New", monospace; + border: 1px solid #eee; + height: auto; + position: relative; + + margin-bottom: 9px; + color: #555555; + border: 1px solid #ccc; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; + -moz-transition: border linear 0.2s, box-shadow linear 0.2s; + -ms-transition: border linear 0.2s, box-shadow linear 0.2s; + -o-transition: border linear 0.2s, box-shadow linear 0.2s; + transition: border linear 0.2s, box-shadow linear 0.2s; +} + +.dev_page_edit_form .CodeMirror-focused { + border-color: rgba(82, 168, 236, 0.8); + outline: 0; + outline: thin dotted \9; + + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); +} + +.dev_page_edit_form .CodeMirror-scroll { + overflow-y: hidden; + overflow-x: auto; +} + +.dev_page_edit_form .CodeMirror pre { + white-space: pre-wrap; + word-break: break-all; + word-wrap: break-word; +} + +.dev_page_edit_form #dev_page_diff .CodeMirror { + font-size: 12px; + margin-bottom: 0; +} +#dev_page_diff .CodeMirror-merge, +#dev_page_diff .CodeMirror-merge .CodeMirror { + height: auto; +} +#dev_page_diff .CodeMirror-merge-2pane { + display: flex; + border: 0; + margin-bottom: 9px; +} +#dev_page_diff .CodeMirror-merge-2pane .CodeMirror-merge-pane { + width: 48%; +} +#dev_page_diff .CodeMirror-merge-2pane .CodeMirror-merge-gap { + height: auto; + width: 4%; +} +#dev_page_diff .CodeMirror-merge-pane-rightmost { + position: static; + right: auto; +} +#dev_page_diff .CodeMirror-merge-scrolllock-wrap { + display: none; +} +#dev_page_diff .CodeMirror-merge-left .CodeMirror { + background: rgba(0,0,0,0.06); +} +#dev_page_diff .CodeMirror-merge-l-inserted, +#dev_page_diff .CodeMirror-merge-l-deleted { + background: none; +} +#dev_page_diff.dev_page_diff__wcolor .CodeMirror-merge-l-inserted { + /*background: rgba(0,200,0,0.18);*/ + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAYAAACddGYaAAAAGUlEQVQI12MwuCXy3+CWyH8GBgYGJgYkAABZbAQ9ELXurwAAAABJRU5ErkJggg==); + background-position: bottom left; + background-repeat: repeat-x; + background-color: #dfd; + /*border: 1px solid #4e4;*/ +} +#dev_page_diff.dev_page_diff__wcolor .CodeMirror-merge-l-deleted { + /*background: rgba(200,0,0,0.18);*/ + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAYAAACddGYaAAAAGUlEQVQI12M4Kyb2/6yY2H8GBgYGJgYkAABURgPz6Ks7wQAAAABJRU5ErkJggg==); + background-position: bottom left; + background-repeat: repeat-x; + background-color: #fdd; + /*border: 1px solid #e44;*/ +} + +.table-msg-schema td { + text-align: center; +} +.table-msg-schema>thead>tr>th, +.table-msg-schema>tbody>tr>th, +.table-msg-schema>tfoot>tr>th, +.table-msg-schema>thead>tr>td, +.table-msg-schema>tbody>tr>td, +.table-msg-schema>tfoot>tr>td { + border: 1px solid #d5d5d5; +} + +#dev_upload_btn { + cursor: pointer; + overflow: hidden; + position: relative; +} +.dev_upload_input { + cursor: pointer; + font-size: 72px !important; + opacity: 0.01; + position: absolute; + z-index: 100; + margin: 0; + padding: 0; + top: 0; + right: 0; +} + + +.app_edit_page { + width: 700px; + margin: 40px auto; +} +.app_lock_tt { + padding: 3px; + display: inline-block; +} +.app_lock_text { + font-size: 13px; +} + +.tg-table-stats { + font-size: 12px; +} +.tg-table-stats th a.active { + color: inherit; +} + +.dev_side_nav_wrap { + position: relative; +} +.dev_side_nav { + position: absolute; + width: 200px; + right: -200px; + z-index: 1; +} +.is_rtl .dev_side_nav { + left: -200px; + right: auto; +} +.is_rtl .dev_side_nav .nav { + padding-right: 0; + padding-left: 0; + padding-right: 0; +} +.dev_side_nav > ul { + width: 200px; + background: none; + padding: 10px 0 10px; +} +.dev_side_nav > ul::-webkit-scrollbar { + display: none; +} +.dev_side_nav > ul.affix-top { + position: relative; +} +.dev_side_nav > ul.affix { + position: fixed; + top: 0; + padding-top: 80px; + max-height: 100%; + overflow-y: scroll; +} +.dev_side_nav > ul.affix-bottom { + position: relative; + height: auto; + overflow-y: scroll; +} +.dev_side_nav li { + float: none !important; +} +.dev_side_nav li a { + border-left: 2px solid transparent; + padding: 10px 10px; + background: none !important; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.is_rtl .dev_side_nav li a { + border-right: 2px solid transparent; + border-left: 0; +} +.dev_side_nav li a { + display: block; + font-size: 13px; + font-weight: 500; + padding: 4px 20px 4px 18px; + font-weight: 700; + background-color: transparent; +} +.is_rtl .dev_side_nav li a { + padding: 4px 18px 4px 20px; +} +.dev_side_nav li li a { + padding-left: 15px; + padding: 1px 18px 1px 30px; + font-size: 12px; + font-weight: 400; +} +.is_rtl .dev_side_nav li li a { + padding: 1px 30px 1px 18px; +} +.dev_side_nav li a:hover { + border-color: rgba(23, 156, 222, 0.6); +} +.dev_side_nav li.active > a { + border-color: #179cde; +} +.dev_side_nav li ul { + display: none; +} +.dev_side_nav li.active ul { + display: block; +} + + +/* Core / dev end*/ + + + +/* Support */ +.support_wrap { + max-width: 800px; + background: #FFF; + margin: 0 auto; + padding: 20px 0; +} +.support_submit { +} + + +/* FAQ */ +.twitter_timeline_wrap { + width: 300px; + padding-top: 14px; +} +.is_rtl .dev_layer_select .dropdown-menu { + right: auto; + left: 0; +} + +.is_rtl { + direction: rtl; +} + +.is_rtl blockquote { + padding: 0 15px 0 0; + margin: 0 0 20px; + border-left: 0; + border-right: 5px solid #179cde; +} + +.is_rtl .pull-right, +.is_rtl .slightly-pull-right { + float: left; +} +.is_rtl .pull-left, +.is_rtl .slightly-pull-left { + float: right; +} + +.is_rtl .anchor { + left: auto; + right: 0; +} + +.top_lang_select.tlb_top_lang_select { + float: right; + margin: -4px -5px -4px 0; +} +.lang_rtl .top_lang_select.tlb_top_lang_select { + float: left; +} +.top_lang_select .dropdown-toggle { + display: block; + text-align: center; + padding-top: 15.5px; + padding-bottom: 15.5px; + font-size: 15px; + line-height: 17px; +} +.top_lang_select.tlb_top_lang_select a.dropdown-toggle { + padding: 8px 6px 8px 8px; + border-radius: 6px; + /*transition: background-color ease-in-out 0.2s, color ease-in-out 0.2s;*/ +} +.navbar-tg .top_lang_select.open a.dropdown-toggle:active, +.navbar-tg .top_lang_select.open a.dropdown-toggle:hover, +.navbar-tg .top_lang_select.open a.dropdown-toggle { + background: transparent; + color: #0088cc; +} +.top_lang_select.tlb_top_lang_select.open a.dropdown-toggle:hover, +.top_lang_select.tlb_top_lang_select.open a.dropdown-toggle:active, +.top_lang_select.tlb_top_lang_select.open a.dropdown-toggle { + background-color: #3faee8; + color: #fff; +} +.dev_top_lang_icon { + display: inline-block; + width: 16px; + height: 16px; + vertical-align: top; + line-height: 100%; + margin-right: 4px; + background: url("data:image/svg+xml;utf8,") no-repeat 0 0; +} +.lang_rtl .dev_top_lang_icon { + margin-right: 0; + margin-left: 4px; +} +.tlb_top_lang_select.open .dev_top_lang_icon { + background: url("data:image/svg+xml;utf8,") no-repeat 0 0; +} +.navbar-nav > li.top_lang_select > .dropdown-menu, +.top_lang_select.tlb_top_lang_select > .dropdown-menu { + width: 280px; + min-width: 280px; + border-radius: 8px; + padding: 14px; + right: 0; + left: auto; + margin-top: 4px; + box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, .10); + border-color: #e8e8e8; + + transition: transform ease-in-out 0.15s, opacity ease-out 0.15s; + transform-origin: top right; + transform: scaleX(0.15) scaleY(0.15); + display: block; + opacity: 0; + pointer-events: none; +} +.lang_rtl .navbar-nav > li.top_lang_select > .dropdown-menu, +.lang_rtl .top_lang_select.tlb_top_lang_select > .dropdown-menu { + transform-origin: top left; + right: auto; + left: 0; +} +body.preload .top_lang_select > .dropdown-menu, +.top_lang_select.tlb_top_lang_select > .dropdown-menu { + transition: none !important; +} +.navbar-nav > li.top_lang_select.open > .dropdown-menu, +.top_lang_select.tlb_top_lang_select.open > .dropdown-menu { + transform: scaleX(1.0) scaleY(1.0); + opacity: 1; + pointer-events: all; +} +.navbar-nav > li.top_lang_select > .dropdown-menu.dropdown-menu--short, +.top_lang_select.tlb_top_lang_select > .dropdown-menu.dropdown-menu--short { + width: 155px; + min-width: 155px; +} +@media (max-width: 640px) { + .navbar-nav > li.dev_top_lang_select > .dropdown-menu { + left: 0; + right: auto; + } +} +.top_lang_select .dropdown-menu li { + float: left; + display: block; + width: 125px; +} +.lang_rtl .top_lang_select .dropdown-menu li { + float: right; + text-align: right; +} + +.top_lang_select .dropdown-menu li.divider { + float: none; + clear: left; + width: auto; + margin: 6px 0; +} +.top_lang_select .dropdown-menu li a { + display: inline-block; + font-size: 13px; + max-width: 125px; + padding: 9px 10px; + border-radius: 4px; + white-space: normal; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + line-height: 15px; + margin: 0; +} +.top_lang_select .dropdown-menu li.long a { + font-size: 12px; +} +.top_lang_select .dropdown-menu li.missing a { + color: #777; +} +.navbar-nav > .top_lang_select .dropdown-menu li a:hover { + background: #e8f3fa; + color: #0088cc; +} +.top_lang_select.tlb_top_lang_select .dropdown-menu li a:hover { + background: #3faee8; + color: #fff; +} +.top_lang_select .dropdown-menu li.chosen a, +.top_lang_select .dropdown-menu li.chosen a:hover { + color: #000; + background: #fff; +} +.top_lang_select .minicaret { + display: inline-block; + width: 0; + height: 0; + margin-left: 2px; + vertical-align: middle; + border-top: 4px solid; + border-right: 4px solid transparent; + border-left: 4px solid transparent; +} +.lang_rtl .top_lang_select .minicaret { + margin-left: 0; + margin-right: 2px; +} + +#login_widget_config { + margin: 40px auto; +} +.form-group .dropdown + .dropdown { + margin-left: 15px; +} +.dropdown-label { + margin-right: 7px; + display: inline-block; + max-width: 300px; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + vertical-align: top; +} +.dropdown-label .muted { + color: #999; +} + +.textfield-item input.form-control, +.form-control-dropdown-select, +.form-control-static-item, +.textfield-item-placeholder { + font-size: 14px; + line-height: 20px; + font-weight: normal; +} +.textfield-item input.form-control, +.form-control-dropdown-select { + padding: 11px 0 10px; + border: none; + height: auto; + resize: none; + color: inherit; + background: transparent; + border-bottom: 1px solid #e0e0e0; + box-shadow: none; +} +.textfield-item input.form-control:focus { + box-shadow: none; +} +.form-control-static-item { + padding: 11px 0; +} + +.textfield-item { + display: block; + position: relative; +} +.textfield-item-underline { + display: block; + position: absolute; + bottom: 0; + left: 50%; + right: 50%; + height: 2px; + background: #39ade7; + transition: opacity .2s ease-out, left 0s .2s linear, right 0s .2s linear; + opacity: 0; +} +.textfield-item input.form-control:focus ~ .textfield-item-underline { + transition: left .2s ease-out, right .2s ease-out; + left: 0; + right: 0; + opacity: 1; +} +.textfield-item-placeholder { + bottom: 0; + color: #ccc; + color: rgba(0,0,0,.26); + left: 0; + right: 0; + pointer-events: none; + position: absolute; + display: block; + top: 11px; + width: 100%; + overflow: hidden; + white-space: nowrap; + text-align: left +} + +.textfield-item input.form-control::-webkit-input-placeholder { + color: #999; + color: rgba(0,0,0,.42); +} +.textfield-item input.form-control::-moz-placeholder { + color: #999; + color: rgba(0,0,0,.42); +} +.textfield-item input.form-control:-ms-input-placeholder { + color: #999; + color: rgba(0,0,0,.42); +} +.textfield-item input.form-control:focus::-webkit-input-placeholder { + color: #ccc; + color: rgba(0,0,0,.26); +} +.textfield-item input.form-control:focus::-moz-placeholder { + color: #ccc; + color: rgba(0,0,0,.26); +} +.textfield-item input.form-control:focus:-ms-input-placeholder { + color: #ccc; + color: rgba(0,0,0,.26); +} +.textfield-item-error { + color: #d45a58; + position: absolute; + font-size: 14px; + line-height: 19px; + min-height: 19px; + margin: 5px 0 -19px; + background: #fff; + width: 100%; + padding-bottom: 7px; + visibility: hidden; + display: block; +} +.textfield-item.is-invalid .textfield-item-error { + visibility: visible +} +.textfield-item.is-invalid input.form-control { + border-bottom: 1px solid #d50000; +} +.textfield-item.is-invalid .textfield-item-underline { + background: #d50000; +} +.control-label-item, +.form-telegram .control-label { + text-align: right; + margin-bottom: 0; + line-height: 20px; + padding-top: 11px; +} +.form-telegram .help-block { + font-size: 13px; + color: #808080; + margin-top: 10px; + margin-bottom: 5px; +} +.form-telegram .form-group { + margin-bottom: 20px; +} +.form-telegram textarea.form-control { + margin-top: 7px; +} +.form-telegram .form-control[readonly] { + cursor: text; + background: #fff; +} +.form-telegram .form-control[readonly]:focus { + border: 1px solid #ccc; + box-shadow: none; +} +.form-control-dropdown { + position: relative; +} +.form-control-dropdown.has-items:before { + content: ''; + position: absolute; + display: inline-block; + margin: 16px 10px 0; + width: 14px; + height: 9px; + background: url(/img/rc_icons.png?1) no-repeat -3px -144px; + right: 0; + top: 0; +} +.form-control-dropdown .form-control-dropdown-search { + position: absolute; + top: 0; + left: 0; + right: 0; + visibility: hidden; + opacity: 0; +} +.form-control-dropdown.open .form-control-dropdown-search { + visibility: visible; + opacity: 1; +} +.form-control-dropdown.open .form-control-dropdown-select { + visibility: hidden; + opacity: 0; +} +.form-control-dropdown-select { + color: #ccc; + color: rgba(0,0,0,.26); + cursor: pointer; + position: relative; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +.form-control-dropdown-select:focus { + outline: none; +} +.form-control-dropdown-select.is-dirty { + color: inherit; +} +.form-control-dropdown-button { + position: absolute; + display: inline-block; + transition: all .2s ease; + border: none; + padding: 0; + background: none !important; + visibility: hidden; + opacity: 0; + top: 0; + right: 0; +} +.form-control-dropdown-button:active { + box-shadow: none !important; +} +.form-control-dropdown-button:before { + content: ''; + display: inline-block; + margin: 16px 10px; + width: 14px; + height: 9px; + background: url(/img/rc_icons.png?1) no-repeat -3px -144px; + vertical-align: top; +} +.form-control-dropdown-list { + position: absolute; + left: -15px; + right: -15px; + margin: -2px 0; + background: #fff; + text-align: left; + padding: 7px 0; + box-shadow: 0 0 2px 1px rgba(0, 0, 0, .15); + border: none; + transition: all .2s ease; + visibility: hidden; + opacity: 0; + max-height: 220px; + overflow: auto; + overflow-x: hidden; + -webkit-overflow-scrolling: touch; + z-index: 10; +} +.form-control-dropdown.has-items .form-control-dropdown-button, +.form-control-dropdown.has-items.open .form-control-dropdown-list { + visibility: visible; + opacity: 1; +} +.form-control-dropdown-list-item, +.form-control-dropdown-list-no-results { + font-size: 14px; + line-height: 18px; + padding: 8px 15px; + cursor: pointer; +} +.form-control-static-item .small, +.form-control-dropdown-select .small, +.form-control-dropdown-list-item .small { + font-size: 13px; + line-height: 16px; + color: #a8a8a8; + padding-left: 8px; +} +.form-control-dropdown-search .form-control-dropdown-list-item:hover { + background: none; +} +.form-control-dropdown-search .form-control-dropdown-list-item.selected, +.form-control-dropdown-list-item:hover { + background: #f2f2f2; +} +.form-control-dropdown-list-no-results { + color: #a8a8a8; + cursor: auto; +} +.form-control-dropdown-select, +.form-control-dropdown input.form-control { + padding-right: 33px; +} +.help-block-item { + display: block; + font-size: 14px; + line-height: 18px; + margin-top: 5px; + margin-bottom: 0; + color: #a8a8a8; +} +.help-block-item a { + color: #76bfeb; +} + +.radio-item, +.checkbox-item { + display: inline-block; + vertical-align: top; + margin-bottom: 0; + font-size: 14px; + line-height: 20px; + font-weight: normal; +} +.radio-item-block, +.checkbox-item-block { + display: block; + margin: 6px 0 1px; + padding: 5px 0; + line-height: 20px; +} +.radio-item-block + .radio-item-block, +.checkbox-item-block + .checkbox-item-block { + margin-top: 1px; +} +.radio-item input.radio, +.checkbox-item input.checkbox { + position: absolute; + left: -5000px; +} +body.rtl .radio-item input.radio, +body.rtl .checkbox-item input.checkbox { + right: -5000px; + left: auto; +} +.radio-item input.radio ~ .radio-label, +.checkbox-item input.checkbox ~ .checkbox-label { + display: inline-block; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; + max-width: calc(100% - 31px); +} +.radio-item .radio-input, +.checkbox-item .checkbox-input { + display: inline-block; + vertical-align: top; + position: relative; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; + transition: opacity 0.12s linear; +} +.radio-item .radio-input + .radio-label, +.checkbox-item .checkbox-input + .checkbox-label { + margin-left: 11px; +} +body.rtl .radio-item .radio-input + .radio-label, +body.rtl .checkbox-item .checkbox-input + .checkbox-label { + margin-right: 11px; + margin-left: 0; +} +.radio-item .radio-input-icon, +.checkbox-item .checkbox-input-icon { + display: inline-block; + content: ''; + width: 20px; + height: 20px; + border: 2px solid #b3b3b3; + background: #fff; + border-radius: 10px; + vertical-align: top; + padding: 0; + cursor: pointer; + position: relative; +} +.radio-item .radio-input-icon:before, +.checkbox-item .checkbox-input-icon:before { + display: inline-block; + content: ''; + position: absolute; + width: 20px; + height: 20px; + border: 2px solid #54a9eb; + border-radius: 10px; + top: -2px; + left: -2px; + transition: opacity 0.12s linear; + opacity: 0; +} +.radio-item .radio-input-icon:after { + display: inline-block; + content: ''; + position: absolute; + width: 10px; + height: 10px; + background: #54a9eb; + border-radius: 5px; + top: 3px; + left: 3px; + transition: transform 0.12s linear; + transform: scale3d(0, 0, 1); +} +.radio-item input.radio:checked + .radio-input .radio-input-icon:before, +.checkbox-item input.checkbox:checked + .checkbox-input .checkbox-input-icon:before { + opacity: 1; +} +.radio-item input.radio:checked + .radio-input .radio-input-icon:after { + transform: scale3d(1, 1, 1); +} +.checkbox-item .checkbox-input-icon, +.checkbox-item .checkbox-input-icon:before { + width: 18px; + height: 18px; + margin: 1px; + border-radius: 3px; +} +.checkbox-item .checkbox-input-icon:before { + margin: 0; + background: #54a9eb url('data:image/svg+xml,%3Csvg height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23fff" fill-rule="evenodd"%3E%3Crect height="6" rx="1" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -6.746804 8.368629)" width="2" x="5.728427" y="9.328427"/%3E%3Crect height="11.5" rx="1" transform="matrix(.70710678 .70710678 -.70710678 .70710678 10.712311 -5.169417)" width="2" x="10.596194" y="4.596194"/%3E%3C/g%3E%3C/svg%3E') no-repeat center; +} +.radio-item input.radio:disabled + .radio-input, +.checkbox-item input.checkbox:disabled + .checkbox-input { + cursor: default; + pointer-events: none; + opacity: .65; +} + +.button-item { + font-size: 14px; + font-weight: 500; + line-height: 18px; + color: #fff; + background: #4ca3e2; + border-radius: 19px; + display: inline-block; + padding: 10px 26px; + text-transform: uppercase; + text-align: center; + vertical-align: middle; + border: none; + transition: background-color .2s ease; + white-space: nowrap; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.button-item-flat { + color: #1385d8; + background: transparent; +} +.button-item:hover { + background: #4199d9; +} +.button-item-flat:hover { + background: #e7f4fd; +} +.button-item-label { + display: inline-block; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + vertical-align: top; + position: relative; + z-index: 1; +} + +.button-item.ripple-handler, +.button-nostyle-item.ripple-handler { + position: relative; +} +.ripple-mask { + position: absolute; + left: 0; right: 0; + top: 0; bottom: 0; + transform: translateZ(0); + overflow: hidden; + pointer-events: none; +} +.radio-item .ripple-mask, +.checkbox-item .ripple-mask { + width: 32px; + height: 32px; + left: -6px; + top: -6px; + border-radius: 16px; +} +.button-nostyle-item .ripple-mask, +.button-item .ripple-mask { + border-radius: 19px; +} +.radio-item .ripple, +.checkbox-item .ripple { + position: absolute; + width: 80px; + height: 80px; + left: -24px; + top: -24px; + border-radius: 50%; + background-color: rgba(179, 179, 179, .2); + transition: transform .65s ease-out, opacity .65s ease-out, background-color .65s ease-out; + opacity: 0; +} +.radio-item input.radio:checked + .radio-input .ripple, +.checkbox-item input.checkbox:checked + .checkbox-input .ripple { + background-color: rgba(84, 169, 235, .2); +} +.button-nostyle-item .ripple, +.button-item .ripple { + position: absolute; + width: 200%; + left: 50%; top: 50%; + margin: -100% 0 0 -100%; + padding-top: 200%; + border-radius: 50%; + background-color: #3790cf; + transition: transform .65s ease-out, opacity .65s ease-out, background-color .65s ease-out; + opacity: 0; +} +.button-nostyle-item .ripple, +.button-item-flat .ripple { + background-color: #d9ebf7; +} + +.radio-item input.radio + .radio-label:before, +.checkbox-item input.checkbox + .checkbox-label:before { + display: inline-block; + content: ''; + width: 20px; + height: 20px; + vertical-align: top; + margin-right: 11px; + padding: 0; + background: url(/img/rc_icons.png?1) no-repeat; + cursor: pointer; +} +.radio-item input.radio + .radio-label:before { + background-position: 0 0; +} +.radio-item input.radio:checked + .radio-label:before { + background-position: 0 -30px; +} +.checkbox-item input.checkbox + .checkbox-label:before { + background-position: 0 -60px; +} +.checkbox-item input.checkbox:checked + .checkbox-label:before { + background-position: 0 -88px; +} +.radio-item-justified .radio-input { + float: left; +} +.radio-item-justified .radio-label { + float: left; + margin-right: 16px; +} +.radio-item-justified .radio-label:after { + content: ':'; + opacity: 0; + transition: opacity .2s ease; +} +.radio-item-justified .justified-wrap { + display: block; + padding: 5px 0; + margin: -5px 0; + overflow: hidden; + opacity: 0; + transition: opacity .2s ease; +} +.radio-item-justified .justified-wrap input.form-control { + cursor: inherit; +} +.radio-item-justified input.radio:checked ~ .justified-wrap, +.radio-item-justified input.radio:checked ~ .radio-label:after { + opacity: 1; +} +.radio-item-justified input.radio:checked ~ .justified-wrap input.form-control { + cursor: auto; +} +.radio-item-justified .textfield-item { + margin: -5px 0; +} +.radio-item-justified input.form-control { + padding: 5px 0 4px; +} + +.bgcolor0 { background: #e17076; } +.bgcolor1 { background: #faa774; } +.bgcolor2 { background: #a695e7; } +.bgcolor3 { background: #7bc862; } +.bgcolor4 { background: #6ec9cb; } +.bgcolor5 { background: #65aadd; } +.bgcolor6 { background: #ee7aae; } + +.dots-animated:after { + display: inline-block; + animation: dotty steps(1, end) 1s infinite; + content: '...'; + position: absolute; +} + +@-webkit-keyframes dotty { + 0%, 100% { content: ''; } + 25% { content: '.'; } + 50% { content: '..'; } + 75% { content: '...'; } +} +@keyframes dotty { + 0%, 100% { content: ''; } + 25% { content: '.'; } + 50% { content: '..'; } + 75% { content: '...'; } +} + +.widget_container { + padding: 10px 20px; + margin: -10px 0; + text-align: center; +} +.widget_container.dark { + background: #15202b; +} +.widget_container iframe { + vertical-align: top; +} + +button.dropdown-toggle:focus, +button.dropdown-toggle:active:focus { + outline: none; +} +.embed_code { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + white-space: pre-wrap; + word-break: break-all; + word-wrap: break-word; + text-align: left; + -webkit-appearance: none; +} + +.dev_page_nav_wrap > p > a:first-child { + color: #333; +} + +#dev_page_content .dev_page_nav_wrap ul { + list-style-type: none; + margin: 0; + padding: 0 0 20px; +} +#dev_page_content .dev_page_nav_wrap ul + h4 { + margin-top: 4px; +} +#dev_page_content .dev_page_nav_wrap ul li { + background: none; + padding-left: 0; + padding-top: 1px; + padding-bottom: 2px; +} + +.dev_page_image { + display: block; + max-width: 800px; + margin: 0 auto; + padding: 10px 0px 5px; +} +.tl_contest_page_wrap .dev_page_image { + max-width: 600px; +} + +.dev_page_tgsticker { + position: relative; + display: block; + max-width: 256px; +} +.dev_page_tgsticker img, +.dev_page_tgsticker canvas { + position: absolute; + top: 0; bottom: 0; + left: 0; right: 0; + width: 100%; + height: 100%; +} + +.dev_page_widget_item { + display: block; + width: 300px; + vertical-align: top; + max-width: 100%; + margin: 30px auto 10px; +} +.dev_page_widget_thumb { + display: inline-block; + vertical-align: top; + width: 100%; + padding-top: 66.6667%; + border-radius: 12px; + background: #f7f7f7 no-repeat center; + background-size: 100%; + -webkit-filter: brightness(100%); + -webkit-transition: all .2s ease; + -moz-transition: all .2s ease; + -o-transition: all .2s ease; + -ms-transition: all .2s ease; + transition: all .2s ease; +} +.dev_page_widget_thumb:hover { + -webkit-filter: brightness(94%); +} +.dev_page_widget_thumb_share { + background-image: url(/img/Widget_Share.svg?1); +} +.dev_page_widget_thumb_post { + background-image: url(/img/Widget_Post.svg?1); +} +.dev_page_widget_thumb_login { + background-image: url(/img/Widget_Login.svg?1); +} +.dev_page_widget_thumb_comments { + background-image: url(/img/Widget_Comments.svg?1); +} +.dev_page_widget_title { + font-size: 15px; + line-height: 1.5; + margin: 12px 0 0; + font-weight: bold; + text-align: center; +} +@media (min-width: 670px) { + .dev_page_widgets_list { + margin-right: -36px; + } + .dev_page_widget_item { + float: left; + margin-left: 0; + margin-right: 36px; + } + .dev_page_widget_title { + margin-top: 17px; + } +} + +/* Contest */ + +.tl_contest_page_wrap { + padding: 0 0 20px; + max-width: 600px; + margin: 0 auto; +} +.tl_contest_intro { + margin: 0; +} +.tl_contest_side_image_wrap { + position: relative; +} +.tl_contest_side_image { + margin: 50px 0 0 -180px; + width: 160px; + height: 160px; + position: absolute; +} +.tl_contest_side_image2 { + margin-top: 0px; +} +.tl_contest_side_image3 { + margin-top: 10px; +} +.tl_contest_page_wrap .tl_main_share { + margin: 0 0 20px; + text-align: left; +} +.lang_rtl .tl_contest_page_wrap .tl_main_share { + text-align: right; +} +.tl_contest_page_wrap #dev_page_title { + font-size: 24.5px; + line-height: 33px; + margin: 20px 0 10px 0; +} +.tl_contest_dl_btn { + padding: 0; +} +#traffic_log_wrap { + min-height: 300px; + /*max-height: 600px;*/ + /*overflow: auto;*/ + overflow-wrap: normal; + white-space: pre; +} + +.tl_contest_log { + padding-top: 10px; +} +.tl_contest_log h3 { + margin-top: 0; +} + +/* Blog */ +.blog_side_image_wrap { + position: relative; + direction: ltr; +} +.lang_rtl .blog_side_image_wrap { + direction: rtl; +} +.blog_side_image { + margin: -41px 0 0 -180px; + width: 160px; + height: 160px; + position: absolute; +} +.lang_rtl .blog_side_image { + margin: -41px -180px 0 0; +} + +.blog_side_centered_image_wrap { + position: relative; +} +a.blog_side_cetered_image, +a.blog_side_centered_image { + display: block; + width: 160px; + height: 160px; + margin: 10px auto 20px; +} +img.blog_side_cetered_image, +img.blog_side_centered_image { + width: 160px; + height: 160px; +} + +.tlb_blog_page .blog_side_image_wrap { + position: static; +} +.tlb_blog_page .blog_side_image { + display: block; + margin: 20px auto; + width: 160px; + height: 160px; + position: static; +} + +.blog_wide_image img { + width: 100%; + padding-bottom: 20px; +} +.blog_image_wrap { + width: 275px; + margin: 10px auto 20px; +} +.blog_image_wrap a { + +} +.blog_image_wrap img { + width: 275px; + padding: 10px 5px; +} +.blog_medium_image_wrap, +.blog_medium_image_wrap img { + width: 400px; +} + +.blog_wide_image_wrap, +.blog_wide_image_wrap img { + width: 100%; + max-width: auto; +} +#dev_page_content .blog_image_wrap p, +.tlb_page_wrap .tl_contest_page_wrap #dev_page_content .blog_image_wrap p { + text-align: center; + color: #808080; + font-size: 12px; + margin: 10px 0 0; + line-height: 150%; + padding: 0 10px; +} +.blog_footer { + font-style: italic; +} + +.blog_2images_wrap, +.blog_3images_wrap { + width: 564px; + margin: 20px auto 20px; +} +.blog_3images_wrap { + width: 575px; +} +.blog_2images_wrap:before, +.blog_2images_wrap:after, +.blog_3images_wrap:before, +.blog_3images_wrap:after { + content: " "; + display: table; +} +.blog_2images_wrap:after, +.blog_3images_wrap:after { + clear: both; +} +.blog_2images_wrap .blog_image_wrap, +.blog_3images_wrap .blog_image_wrap { + float: left; + margin-left: 0; + margin-right: 14px; +} +.blog_3images_wrap .blog_image_wrap { + margin-right: 10px; +} +.blog_2images_wrap .blog_image_wrap:last-child, +.blog_3images_wrap .blog_image_wrap:last-child { + margin-right: 0; +} + + +.blog_video_player_wrap { + max-width: 640px; + margin: 10px auto 20px; +} +.blog_video_player { + width: 100%; +} + + +/* My page */ +.my_page_wrap { + margin-top: 50px; + font-size: 14px; + line-height: 20px; +} +.my_page_wrap .container { + max-width: 570px; +} + +.my_page_wrap .tl_main_card { + margin: 0; +} +#my_login_form_wrap { + max-width: 400px; +} +.my_login_form_details { + margin: 10px 0 20px; +} + + +#my_login_form_wrap .btn { + box-shadow: none; + margin-bottom: 0; + font-size: 14px; + font-weight: normal; + line-height: 1.428571429; + text-align: center; + white-space: nowrap; + vertical-align: middle; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + border: 0; + border-radius: 4px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; + text-shadow: none; +} +#my_login_form_wrap .btn-primary { + color: #fff; + background-color: #428bca; + border-color: #357ebd; +} +#my_login_form_wrap .btn-danger { + color: #fff; + background-color: #d9534f; + border-color: #d43f3a; +} +#my_login_form_wrap .btn-success { + color: #fff; + background-color: #5cb85c; + border-color: #4cae4c; +} +.modal-header h4 { + position: static; +} + +.my_email_confirmation_result_wrap { + margin-top: 40px; +} +.my_email_confirmation_result_text { + padding: 10px; + font-size: 24px; + font-weight: bold; + line-height: 1.2; + text-align: center; +} + + +.smartphone_video_player_wrap { + width: 270px; + height: 555px; + margin: 20px auto; + position: relative; + background: #000 url(../img/iPhone6.png) 0 0 no-repeat; + background-size: 270px 555px; +} +.smartphone_video_player_iphone { + position: absolute; + margin-top: 69px; + margin-left: 18px; + border-radius: 3px; + overflow: hidden; + line-height: 0; +} +video.smartphone_video_player { + cursor: pointer; + width: 234px; + height: 416px; + line-height: 0; + margin: 0; + vertical-align: top; +} + + +.smarphone_device_nexus { + margin: 40px auto; + padding: 45px 14px 45px 14px; + width: 290px; + height: 514px; + background: #1e1e1e; + border-radius: 18.125px; + display: block; + position: relative; + box-sizing: content-box; +} +.smarphone_device_nexus:before { + -webkit-border-radius: 540px / 45px; + border-radius: 540px / 45px; + background: inherit; + content: ''; + top: 0; + position: absolute; + height: 103.1%; + width: calc(100% - 23px); + top: 50%; + left: 50%; + -moz-transform: translateX(-50%) translateY(-50%); + -webkit-transform: translateX(-50%) translateY(-50%); + -o-transform: translateX(-50%) translateY(-50%); + -ms-transform: translateX(-50%) translateY(-50%); + transform: translateX(-50%) translateY(-50%); + box-sizing: content-box; +} +.smarphone_device_nexus .top-bar { + width: calc(100% - 7px); + height: calc(100% - 5px); + position: absolute; + top: 3px; + left: 4px; + -webkit-border-radius: 18px; + border-radius: 18px; + background: #181818; + box-sizing: content-box; +} +.smarphone_device_nexus .top-bar:before { + -webkit-border-radius: 540px / 45px; + border-radius: 540px / 45px; + background: inherit; + content: ''; + top: 0; + position: absolute; + height: 103.0%; + width: calc(100% - 26px); + top: 50%; + left: 50%; + -moz-transform: translateX(-50%) translateY(-50%); + -webkit-transform: translateX(-50%) translateY(-50%); + -o-transform: translateX(-50%) translateY(-50%); + -ms-transform: translateX(-50%) translateY(-50%); + transform: translateX(-50%) translateY(-50%); + box-sizing: content-box; +} +.smarphone_device_nexus .bottom-bar{ + display: none; + box-sizing: content-box; +} +.smarphone_device_nexus .sleep { + width: 3px; + position: absolute; + left: -3px; + top: 99px; + height: 90px; + background: inherit; + -webkit-border-radius: 2px 0px 0px 2px; + border-radius: 2px 0px 0px 2px; + box-sizing: content-box; +} +.smarphone_device_nexus .volume { + width: 3px; + position: absolute; + right: -3px; + top: 63px; + height: 45px; + background: inherit; + -webkit-border-radius: 0px 2px 2px 0px; + border-radius: 0px 2px 2px 0px; + box-sizing: content-box; +} +.smarphone_device_nexus .camera { + background: #3c3d3d; + width: 9px; + height: 9px; + position: absolute; + top: 18px; + left: 50%; + z-index: 3; + margin-left: -5px; + border-radius: 100%; + box-sizing: content-box; +} +.smarphone_device_nexus .camera:before { + background: #3c3d3d; + width: 6px; + height: 6px; + content: ''; + display: block; + position: absolute; + top: 2px; + left: -90px; + z-index: 3; + border-radius: 100%; + box-sizing: content-box; +} +.smarphone_device_nexus .screen { + position: relative; + box-sizing: content-box; +} +.smarphone_device_nexus video { + display: block; + width: 290px; + height: 514px; + margin: 0 auto; +} + + +/* Telegram Me */ +.tgme_page_wrap { + font-family: 'Roboto', sans-serif; + color: var(--text-color); +} + +.tgme_background_wrap { + position: fixed; + left: 0; + top: 0; + width: 100%; + height: 100%; + pointer-events: none; + z-index: -1; + background: var(--body-bg); +} +.tgme_background { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; +} +.tgme_background.default { +} +.tgme_background.motion { + left: -10px; + top: -10px; + width: calc(100% + 20px); + height: calc(100% + 20px); + animation: bg-motion 10s linear infinite; +} +.tgme_background_pattern { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + mix-blend-mode: overlay; + background: center repeat; + background-size: 420px auto; + background-image: var(--pattern-url, none); + opacity: var(--pattern-intensity, 1); +} +.tgme_background_pattern.default { + opacity: 0.3; + background-image: url('/img/tgme/pattern.svg'); +} +html.theme_dark .tgme_background, +body.bg_dark .tgme_background { + -webkit-mask: center repeat; + -webkit-mask-size: 420px auto; + -webkit-mask-image: var(--pattern-url, none); + opacity: var(--pattern-intensity, 1); +} +html.theme_dark .tgme_background.default, +body.bg_dark .tgme_background.default { + opacity: 0.3; + -webkit-mask-image: url('/img/tgme/pattern.svg'); +} +body.bg_light .tgme_background, +body.bg_light .tgme_background.default { + -webkit-mask: none; + opacity: 1; +} +html.theme_dark .tgme_background_pattern, +body.bg_dark .tgme_background_pattern { + display: none; +} +body.bg_light .tgme_background_pattern { + display: block; +} + +@-webkit-keyframes bg-motion { + 20% { transform: translateX(0px); } + 25% { transform: translateX(-10px); } + 35% { transform: translateX(10px); } + 40% { transform: translateX(0px); } +} +@keyframes bg-motion { + 20% { transform: translateX(0px); } + 25% { transform: translateX(-10px); } + 35% { transform: translateX(10px); } + 40% { transform: translateX(0px); } +} + +.tgme_head_wrap { + position: fixed; + left: 0; + right: 0; + top: 0; + height: 54px; + padding: 10px 16px; + -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + background: var(--box-bg-blured); + -webkit-backdrop-filter: blur(25px); + backdrop-filter: blur(25px); + z-index: 1; +} +.tgme_head { + display: flex; + justify-content: space-between; +} +.tgme_head_brand { + display: inline-block; + vertical-align: top; +} +.tgme_logo { + display: inline-block; + vertical-align: top; +} +a.tgme_head_right_btn { + display: inline-block; + font-size: 14px; + line-height: 17px; + font-weight: bold; + -webkit-font-smoothing: antialiased; + text-transform: uppercase; + color: #fff; + background: var(--accent-btn-color); + padding: 9px 16px; + height: 34px; + border-radius: 17px; + text-align: center; + transition: all .15s ease .15s; +} +a.tgme_head_right_btn:hover, +a.tgme_head_right_btn:active { + text-decoration: none; + color: #fff; + background: var(--accent-color-hover); +} +a.tgme_head_dl_button { + display: block; + font-size: 16px; + line-height: 100%; + color: #FFF; + background: #32afed; + padding: 2px 15px 0 16px; + height: 45px; + line-height: 43px; + text-align: center; +} +.tlb_page_wrap a.tgme_head_dl_button { + color: #FFF; +} +a.tgme_head_dl_button:hover, +a.tgme_head_dl_button:active, +.tlb_page_wrap a.tgme_head_dl_button:hover, +.tlb_page_wrap a.tgme_head_dl_button:active { + color: #FFF; + background: #32afed; + text-decoration: none; +} +.tgme_icon_arrow { + display: inline-block; + background: url(/img/tgme/Arrow_1x.png) 0 0 no-repeat; + width: 8px; + height: 12px; + background-size: 8px 12px; + vertical-align: top; + margin-top: 15px; + margin-left: 9px; +} + +.tgme_body_wrap { + padding: 70px 16px 40px; +} +.tgme_page { + position: relative; + margin: 16px auto; + padding: 32px 0; + max-width: 400px; + background: var(--box-bg); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + border-radius: 16px; + transition: all .15s ease .15s; +} +.tgme_page a { + color: var(--accent-link-color); +} +.tgme_page_post { + max-width: 500px; + padding: 3px 0 0; + margin: 0 auto; + background: transparent; + box-shadow: none; + border-radius: 0; +} +.tgme_page_icon { + text-align: center; + margin-bottom: 20px; +} +.tgme_icon_user, +.tgme_icon_group, +.tgme_icon_stickers, +.tgme_icon_share, +.tgme_icon_invoice { + display: inline-block; + width: 48px; + height: 48px; + vertical-align: top; + background: center no-repeat; +} +.tgme_icon_user { + background-image: url('data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2248%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m40%204h-32c-2.2%200-4%201.8-4%204v31.1716c0%201.7818%202.15428%202.6741%203.41421%201.4142l4.58579-4.5858h28c2.2%200%204-1.8%204-4v-24c0-2.2-1.8-4-4-4zm-22%2016c0%201.1046-.8954%202-2%202-1.1046%200-2-.8954-2-2%200-1.1046.8954-2%202-2%201.1046%200%202%20.8954%202%202zm8%200c0%201.1046-.8954%202-2%202-1.1046%200-2-.8954-2-2%200-1.1046.8954-2%202-2%201.1046%200%202%20.8954%202%202zm8%200c0%201.1046-.8954%202-2%202-1.1046%200-2-.8954-2-2%200-1.1046.8954-2%202-2%201.1046%200%202%20.8954%202%202z%22%20fill%3D%22%231c93e3%22%2F%3E%3C%2Fsvg%3E'); +} +.tgme_icon_group { + background-image: url('data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2248%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m32%2022c3.32%200%205.98-2.68%205.98-6s-2.66-6-5.98-6-6%202.68-6%206%202.68%206%206%206zm-16%200c3.32%200%205.98-2.68%205.98-6s-2.66-6-5.98-6-6%202.68-6%206%202.68%206%206%206zm0%204c-4.66%200-14%202.34-14%207v3c0%201.1.9%202%202%202h24c1.1%200%202-.9%202-2v-3c0-4.66-9.34-7-14-7zm16%200c-.58%200-1.24.04-1.94.1.04.02.06.06.08.08%202.28%201.66%203.86%203.88%203.86%206.82v3c0%20.7-.14%201.38-.36%202h10.36c1.1%200%202-.9%202-2v-3c0-4.66-9.34-7-14-7z%22%20fill%3D%22%231c93e3%22%2F%3E%3C%2Fsvg%3E'); +} +.tgme_icon_stickers { + background-image: url('data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2248%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20clip-rule%3D%22evenodd%22%20d%3D%22m43.9851%2024.7787c.0099-.2583.0149-.5179.0149-.7787%200-4-3.9635-8.3925-7.5-12-3.6298-3.70272-8.5-8-12.5-8-.9492%200-1.883.06613-2.797.19403-.0628.00879-.1255.01787-.1881.02724-9.6298%201.44112-17.0149%209.74753-17.0149%2019.77873%200%2011.0457%208.9543%2020%2020%2020%2010.7849%200%2019.576-8.5365%2019.9851-19.2213zm-4.0143.1953c-.5033%208.383-7.4613%2015.026-15.9708%2015.026-8.8366%200-16-7.1634-16-16%200-7.9024%205.7289-14.46671%2013.2601-15.76631%201.492%209.17801%209.2306%2016.25971%2018.7107%2016.74031z%22%20fill%3D%22%231c93e3%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E'); +} +.tgme_icon_share { + background-image: url('data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2248%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m34%2014h-6c-1.1%200-2%20.9-2%202s.9%202%202%202h6c3.3%200%206%202.7%206%206s-2.7%206-6%206h-6c-1.1%200-2%20.9-2%202s.9%202%202%202h6c5.52%200%2010-4.48%2010-10s-4.48-10-10-10zm-18%2010c0%201.1.9%202%202%202h12c1.1%200%202-.9%202-2s-.9-2-2-2h-12c-1.1%200-2%20.9-2%202zm4%206h-6c-3.3%200-6-2.7-6-6s2.7-6%206-6h6c1.1%200%202-.9%202-2s-.9-2-2-2h-6c-5.52%200-10%204.48-10%2010s4.48%2010%2010%2010h6c1.1%200%202-.9%202-2s-.9-2-2-2z%22%20fill%3D%22%231c93e3%22%2F%3E%3C%2Fsvg%3E'); +} +.tgme_icon_invoice { + background-image: url('data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2248%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m23.6%2021.8c-4.54-1.18-6-2.4-6-4.3%200-2.18%202.02-3.7%205.4-3.7%202.84%200%204.26%201.08%204.78%202.8.24.8.9%201.4%201.74%201.4h.6c1.32%200%202.26-1.3%201.8-2.54-.84-2.36-2.8-4.32-5.92-5.08v-1.38c0-1.66-1.34-3-3-3s-3%201.34-3%203v1.32c-3.88.84-7%203.36-7%207.22%200%204.62%203.82%206.92%209.4%208.26%205%201.2%206%202.96%206%204.82%200%201.38-.98%203.58-5.4%203.58-3.3%200-5-1.18-5.66-2.86-.3-.78-.98-1.34-1.8-1.34h-.56c-1.34%200-2.28%201.36-1.78%202.6%201.14%202.78%203.8%204.42%206.8%205.06v1.34c0%201.66%201.34%203%203%203s3-1.34%203-3v-1.3c3.9-.74%207-3%207-7.1%200-5.68-4.86-7.62-9.4-8.8z%22%20fill%3D%22%231c93e3%22%2F%3E%3C%2Fsvg%3E'); +} +.tgme_page_photo { + text-align: center; + padding-bottom: 16px; +} +.tgme_page_photo_image { + width: 122px; + height: 122px; + border-radius: 61px; +} +.tgme_page_title { + font-size: 26px; + line-height: 32px; + font-weight: bold; + text-align: center; + max-width: 340px; + padding: 0 10px; + margin: 0 auto; + color: var(--text-color); + overflow: hidden; + text-overflow: ellipsis; +} +.verified-icon { + display: inline-block; + width: 1em; + height: 1em; + padding: 1px; + text-indent: -10em; + overflow: hidden; + background: var(--icon-verified) no-repeat 0 0; + background-size: 100%; + vertical-align: -4px; + margin-left: 8px; +} +.tgme_page_extra { + font-size: 15px; + line-height: 18px; + text-align: center; + padding: 6px 16px 0; + color: var(--second-text-color); +} +.tgme_page_desc_header, +.tgme_page_description, +.tgme_page_additional { + font-size: 16px; + line-height: 25px; + text-align: center; + margin: 10px 16px 0; + padding: 0; + overflow: hidden; + text-overflow: ellipsis; +} +.tgme_page_additional strong { + -webkit-font-smoothing: antialiased; +} +.tgme_page_desc_header, +.tgme_page_description { + display: -webkit-box; + -webkit-line-clamp: 5; + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; + max-height: 125px; + word-break: break-word; +} +.tgme_page_desc_header { + font-size: 19px; + line-height: 23px; + font-weight: bold; + max-height: 69px; + -webkit-line-clamp: 3; +} +.tgme_page_long_description { + max-height: none; + -webkit-line-clamp: unset; +} +.tgme_page_additional { + display: none; + font-size: 14px; + line-height: 23px; + margin-top: 32px; + color: #808080; +} +a.tgme_username_link, +a.tgme_username_link:hover, +a.tgme_username_link:active { + text-decoration: none; +} +.tgme_page_action { + text-align: center; + margin-top: 24px; + line-height: 0; +} +a.tgme_action_button, +a.tgme_action_button_new { + font-size: 14px; + line-height: 17px; + font-weight: bold; + -webkit-font-smoothing: antialiased; + color: #FFF; + background: #5dc390; + border-radius: 22px; + overflow: hidden; + display: inline-block; + padding: 13px 24px; + height: 42px; + text-transform: uppercase; + vertical-align: top; +} +a.tgme_action_button:hover, +a.tgme_action_button:active, +a.tgme_action_button_new:hover, +a.tgme_action_button_new:active { + color: #FFF; + background: #4bbc87; + text-decoration: none; +} +a.tgme_action_button_new { + background-color: var(--accent-btn-color); +} +a.tgme_action_button_new.shine { + background-image: linear-gradient(270deg, rgba(100, 181, 239, 0) 48.44%, #64b5ef 75.52%, rgba(100, 181, 239, 0) 100%); + background-repeat: no-repeat; + animation: bg-move linear 5s infinite; +} +a.tgme_action_button_new:hover, +a.tgme_action_button_new:active { + background-color: var(--accent-color-hover); +} + +@-webkit-keyframes bg-move { + 0% { background-position: -500px 0; } + 100% { background-position: 1000px 0; } +} +@keyframes bg-move { + 0% { background-position: -500px 0; } + 100% { background-position: 1000px 0; } +} + +.tgme_page_web_action { + margin-top: 18px; +} +.tgme_page_web_action a.tgme_action_button_new { + color: var(--accent-btn-color); + background: transparent; + box-shadow: inset 0 0 0 2px var(--accent-btn-color); +} +.tgme_page_web_action a.tgme_action_button_new:hover, +.tgme_page_web_action a.tgme_action_button_new:active { + color: var(--accent-btn-color); + background: transparent; + text-decoration: none; +} +.tgme_action_privacy_action { + margin-top: 12px; +} +.tgme_action_privacy_action a.tgme_action_privacy_button { + color: var(--accent-btn-color); + background: #fff; + border: 0; + padding: 13px 25px 11px; + font-size: 12px; +} +.tgme_action_privacy_action a.tgme_action_privacy_button:hover, +.tgme_action_privacy_action a.tgme_action_privacy_button:active { + color: var(--accent-btn-color); + background: #FFF; + text-decoration: none; +} + +.tgme_footer { + margin: 0 auto 50px; + border-top: 1px solid #e0e0e0; + max-width: 424px; + padding-top: 38px; +} + +.tgme_footer_description { + font-size: 17px; + line-height: 27px; + text-align: center; + max-width: 330px; + padding: 0 10px; + margin: 0 auto 0; +} +.tgme_footer_action { + text-align: center; + margin-top: 28px; + line-height: 0; +} +a.tgme_footer_dl_button { + background: #32afed; +} +a.tgme_footer_dl_button:hover, +a.tgme_footer_dl_button:active { + background: #1ca4e7; +} + +.tgme_page_widget { + margin: 0 -10px; +} +.tgme_page_widget iframe { + vertical-align: top; + max-width: 100%; + color-scheme: normal; +} +.tgme_page_widget_action { + text-align: center; + line-height: 0; +} +.tgme_page_widget_actions_wrap { + padding: 14px 0 0; +} +.tgme_page_widget_actions { + position: relative; + padding: 16px 0; + background-color: var(--box-bg); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + -webkit-backdrop-filter: blur(25px); + backdrop-filter: blur(25px); + border-radius: 16px; + max-width: 500px; + margin: 0 auto; + transition: + border-radius .15s ease-in-out, + max-width .15s ease-in-out, + background-color 0s linear; +} +.fixed_actions .tgme_page_widget_actions_wrap, +.sticky_actions .tgme_page_widget_actions_wrap { + position: fixed; + left: 0; + right: 0; + bottom: 0; + margin: 0 auto; +} +.sticky_actions .tgme_page_widget_actions_wrap { + position: sticky; +} +.sticky_actions .tgme_page_widget_actions_wrap.stuck { + margin: 0 -16px; +} +.fixed_actions .tgme_page_widget_actions, +.sticky_actions .tgme_page_widget_actions_wrap.stuck .tgme_page_widget_actions { + background-color: var(--box-bg-blured); + border-radius: 0; + max-width: 100%; + transition-delay: 0s, 0s, .15s; +} +@media (min-width: 800px) { + .fixed_actions .tgme_page_widget_actions, + .sticky_actions .tgme_page_widget_actions_wrap.stuck .tgme_page_widget_actions { + max-width: 600px; + border-radius: 16px 16px 0 0; + } + .sticky_actions .tgme_page_widget_actions_wrap.stuck .tgme_page_widget_actions { + margin: 0 auto; + } +} +.tgme_page_widget_actions_cont { + max-width: 500px; + margin: 0 auto; + display: flex; + justify-content: space-between; + flex-wrap: wrap; +} +.tgme_page_widget_actions .tgme_page_action { + position: relative; + margin: 0 auto; +} +.tgme_page_widget_action_right, +.tgme_page_widget_action_left { + width: 120px; + flex-grow: 2; + text-align: center; +} +.tgme_page_widget_action_right { + float: right; + order: 1; +} +.tgme_page_widget_action_left { + float: left; +} +.tgme_page_widget_actions a.tgme_action_web_button { + border: none; + background: none; + padding: 15px 10px 13px; +} +.tgme_page_widget_actions .tgme_page_web_action { + margin-top: 0; + text-align: inherit; +} +.tgme_page_context_action { + margin-top: 8px; +} +.tgme_page_context_action a.tgme_action_button_new { + font-weight: normal; + text-transform: none; +} +.tgme_page_embed_action { + text-align: center; + margin: 16px 16px 0; + display: none; + order: 3; + flex-basis: 100%; +} +.embed_opened .tgme_page_embed_action { + display: block; +} +.tgme_page_embed_btn { + line-height: 0; +} +.tgme_page_copy_action { + text-align: center; + margin: 7px 0 -9px; +} +.tgme_page_embed_btn a.tgme_action_button_new, +.tgme_page_context_btn a.tgme_action_button_new, +.tgme_page_copy_action a.tgme_action_button_new, +.tgme_page_widget_actions a.tgme_action_web_button { + color: #7D7F81; + padding: 13px 10px; + background: none; + box-shadow: none; + cursor: pointer; +} +.tgme_page_widget_actions a.tgme_action_web_button:hover, +.tgme_page_widget_actions a.tgme_action_web_button:active { + color: #7D7F81; + background: none; +} +.tgme_page_widget_actions a.tgme_action_button_new .tgme_action_button_icon.web_icon .icon_body { + animation-duration: 300ms; + animation-timing-function: steps(18); +} +.tgme_page_widget_actions a.tgme_action_button_new:hover .tgme_action_button_icon.web_icon .icon_body { + animation-name: play18; +} +@-webkit-keyframes play18 { + 0% { transform: translateX(0px); } + 100% { transform: translateX(-432px); } +} +@keyframes play18 { + 0% { transform: translateX(0px); } + 100% { transform: translateX(-432px); } +} +.tgme_action_button_new .tgme_action_button_icon { + display: inline-block; + width: 24px; + height: 24px; + margin: -7px 7px -7px 0; +} +.tgme_action_button_new .tgme_action_button_icon .icon_body { + stroke: #7D7F81; + animation-duration: 500ms; + animation-timing-function: steps(30); +} +.tgme_page_additional, +.tgme_page_context_link_wrap { + font-size: 14px; + line-height: 16px; + text-align: center; + padding: 0 16px; + margin: 20px 0 0; + color: var(--second-text-color); +} +.tgme_page_additional { + margin-top: 24px; +} +.tgme_page_context_link_wrap a.tgme_page_context_link { + color: #7d7f81; + cursor: pointer; +} +.embed_opened .tgme_page_embed_btn a.tgme_action_button_new { + color: var(--accent-btn-color); +} +.embed_opened .tgme_page_embed_btn .tgme_action_button_new .tgme_action_button_icon .icon_body { + stroke: var(--accent-btn-color); + animation-name: play30; +} +@-webkit-keyframes play30 { + 0% { transform: translateX(0px); } + 100% { transform: translateX(-720px); } +} +@keyframes play30 { + 0% { transform: translateX(0px); } + 100% { transform: translateX(-720px); } +} +.tgme_page_embed_action a.tgme_action_button_new:hover, +.tgme_page_embed_action a.tgme_action_button_new:active, +.tgme_page_copy_action a.tgme_action_button_new:hover, +.tgme_page_copy_action a.tgme_action_button_new:active { + color: #7D7F81; + text-decoration: none; + background: none; +} +.tgme_page_copy_action .tgme_action_button_new.pressed .tgme_action_button_icon .icon_body { + animation-name: play30; +} +.tgme_page_embed_code { + font-size: 13px; + color: #546172; + background: rgba(125, 127, 129, 0.1); + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + width: 100%; + padding: 11px 17px; + border: 1px solid rgba(125, 127, 129, 0.3); + border-radius: 10px; + white-space: pre-wrap; + word-break: break-all; + word-wrap: break-word; + text-align: left; + -webkit-appearance: none; + vertical-align: top; +} +html.theme_dark .tgme_page_embed_code { + color: #fff; +} +.tgme_page_embed_code:focus { + outline: none; +} +@media (max-width: 595px) { + .tgme_page_widget_action_right, + .tgme_page_widget_action_left { + text-align: center; + width: 20%; + } + .tgme_page_widget_actions .tgme_action_button_label { + display: none; + } + .tgme_page_widget_actions a.tgme_action_web_button:before { + display: inline-block; + } + .tgme_page_embed_btn a.tgme_action_button_new:before { + margin-right: 0; + } + .tgme_page_embed_action { + margin-top: 20px; + margin-left: 10px; + margin-right: 10px; + } + .tgme_page_copy_action { + margin-top: 8px; + } + #embed_code { + margin-top: 24px; + } +} + +.tgme_page_bg { + margin: 0; + max-width: none; +} +.tgme_bg_wrap { + height: 100%; + height: calc(100vh - 104px); + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; +} +.tgme_bg_image_wrap { + position: absolute; + width: 100%; + height: 100%; + height: calc(100vh - 104px); + overflow: hidden; +} +.tgme_bg_image { + width: 110%; + width: calc(100vw + 40px); + height: 110%; + height: calc(100vh - 104px + 40px); + margin: -20px; + + background-repeat: no-repeat; + background-size: cover; + z-index: 1; + + -webkit-filter: blur(5px); + -moz-filter: blur(5px); + -o-filter: blur(5px); + -ms-filter: blur(5px); + filter: blur(5px); +} +.tgme_bg_wrap_pattern1 .tgme_bg_image { + -webkit-filter: blur(8px); + -moz-filter: blur(8px); + -o-filter: blur(8px); + -ms-filter: blur(8px); + filter: blur(8px); +} +.tgme_bg_wrap_full .tgme_bg_image { + -webkit-filter: none; + -moz-filter: none; + -o-filter: none; + -ms-filter: none; + filter: none; +} +.tgme_bg { + position: relative; + z-index: 2; +} +.tgme_bg_popup_wrap { + background: #fff; + border-radius: 10px; + flex: 1 0 auto; + padding: 40px 40px 30px; + margin: 0 40px; + max-width: 390px; + text-align: center; +} +.tgme_bg_title { + font-size: 18px; + font-weight: bold; + margin: 0 0 10px; +} +.tgme_bg_size { + color: #64686B; + font-size: 14px; + margin: 10px 0 17px; +} + + +#tgme_frame_cont { + position: absolute; + left: -10000px; + top: -10000px; +} + +/* New mobile blog */ +.tlb_page_wrap { + font-family: 'Roboto', sans-serif; +} +.tlb_page_wrap a, +.tlb_page_wrap a:hover, +.tlb_page_wrap a:active { + color: #1497d9; +} +.tlb_page_head { + background: #FFF; + height: 47px; + padding: 12px 12px; +} +.tlb_blog_logo { + display: inline-block; + background: url(/img/blog/BlogLogo1x.png?1) 0 0 no-repeat; + width: 146px; + height: 20px; + background-size: 146px 20px; + line-height: 0; + margin-top: 2px; +} +.tlb_head_home { + float: right; + display: inline-block; + line-height: 24px; + height: 24px; + vertical-align: top; + font-size: 14px; +} +a.tlb_blog_head_more_link { + display: block; + font-size: 15px; + color: #FFF; + background: #3faee8; + padding: 0 15px 0 15px; + height: 42px; + line-height: 42px; +} +a.tlb_blog_head_more_link:hover, +a.tlb_blog_head_more_link:active { + color: #FFF; + background: #3faee8; + text-decoration: none; +} + +a.tlb_blog_head_more_link .tlb_head_more_active, +.tlb_blog_head_recent_active a.tlb_blog_head_more_link .tlb_head_more_inactive, +.tlb_head_more_entries { + display: none; +} +.tlb_blog_head_recent_active a.tlb_blog_head_more_link .tlb_head_more_active, +.tlb_blog_head_recent_active .tlb_head_more_entries { + display: block; +} +.tlb_head_more_icon_wrap { + float: right; + vertical-align: top; + margin-top: 15px; + line-height: 0; +} +.lang_rtl .tlb_head_more_icon_wrap { + float: left; +} +.tlb_head_more_icon { + display: inline-block; + border: 2px solid #FFF; + border-left: 0; + border-bottom: 0; + width: 10px; + height: 10px; + + -moz-transform: rotate(135deg); + -webkit-transform: rotate(135deg); + -o-transform: rotate(135deg); + -ms-transform: rotate(135deg); + transform: rotate(135deg); + + /*-webkit-transition: all linear 0.2s; + -moz-transition: all linear 0.2s; + -ms-transition: all linear 0.2s; + -o-transition: all linear 0.2s; + transition: all linear 0.2s;*/ +} +.tlb_blog_head_recent_active .tlb_head_more_icon_wrap { + margin-top: 18px; +} +.tlb_blog_head_recent_active .tlb_head_more_icon { + -moz-transform: rotate(-45deg); + -webkit-transform: rotate(-45deg); + -o-transform: rotate(-45deg); + -ms-transform: rotate(-45deg); + transform: rotate(-45deg); +} + +.tlb_page_wrap .side_blog_wrap { + margin: 22px 0 0 16px; + padding: 0 10px 0 0; + font-size: 13px; +} +.tlb_page_wrap .side_blog_wrap:before { + width: 4px; + background: #3faee8; + border-radius: 4px; + margin: 0 15px 0 0; +} +.lang_rtl .tlb_page_wrap .side_blog_wrap:before { + margin: 0 0 0 15px; +} + +.tlb_page_wrap .side_blog_header { + font-size: 15px; + font-weight: bold; +} +.tlb_page_wrap .side_blog_entry { + margin-top: 12px; +} +.tlb_page_wrap .side_blog_date { + color: #444; + font-size: 14px; +} +.tlb_page_wrap .side_blog_title { + margin-top: 2px; + font-size: 15px; +} + + + +.tlb_page_wrap #dev_page_title a, +.tlb_page_wrap #dev_page_title a:hover, +.tlb_page_wrap #dev_page_title a:active { + color: #444; +} +.tlb_page_wrap .tl_contest_page_wrap #dev_page_title { + text-align: center; + max-width: 250px; + margin-left: auto; + margin-right: auto; + margin-bottom: 20px; +} +.tlb_page_wrap .tl_contest_page_wrap #dev_page_title, +.tlb_page_wrap .tl_contest_page_wrap h4 { + color: #444; + font-size: 18px; + line-height: 25px; +} + +.tlb_page_wrap .tl_contest_page_wrap #dev_page_content, +.tlb_page_wrap .tl_contest_page_wrap #dev_page_content p { + color: #333333; + font-size: 15px; +} +.tlb_page_wrap .tl_contest_page_wrap #dev_page_content p { + margin-bottom: 15px; +} +.tlb_page_wrap .tl_contest_page_wrap #dev_page_content blockquote p:last-child { + margin-bottom: 0; +} + +.tlb_page_wrap a.tl_twitter_share_btn { + background: #3faee8; + color: #FFF; + font-size: 14px; + line-height: 18px; + border-radius: 17px; + padding-top: 8px; +} +.tlb_page_wrap span.tl_twitter_share_cnt { + color: #c2eaff; +} +.tlb_page_wrap a.tl_twitter_share_btn:hover, +.tlb_page_wrap a.tl_twitter_share_btn:active { + color: #c2eaff; +} + + +.tl_telegram_share_btn { + display: inline-block; + border-radius: 16px; + background-color: #54a9eb; + cursor: pointer; + line-height: 22px; + margin-right: 10px; + padding: 5px 17px 5px 11px; + color: #FFF; + font-weight: bold; +} +.tl_telegram_share_btn:hover, +.tl_telegram_share_btn:active, +.tl_telegram_share_btn:focus { + text-decoration: none; + color: #FFF; + outline: none; +} +.lang_rtl .tl_telegram_share_btn { + margin-right: 0; + margin-left: 10px; +} +i.tl_telegram_share_icon { + display: inline-block; + width: 20px; + height: 20px; + background: url('data:image/svg+xml,%3Csvg height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="m1.77404283 9.58769086c4.67714245-1.99564845 7.79596997-3.31130205 9.35648257-3.9469608 4.4555806-1.81493491 5.381412-2.13020854 5.984856-2.14061906.1327219-.0022897.4294781.02992311.6217044.18267827.162312.12898346.2069705.30322179.2283411.42551228.0213705.12229049.047982.40087134.0268279.61854631-.2414495 2.48450744-1.2861975 8.51375174-1.817706 11.29644264-.2249011 1.1774608-.6709749 1.4294697-1.0996928 1.4681058-.9317032.0839651-1.6359598-.4602232-2.5383599-1.0395344-1.412078-.9065075-1.9311138-1.1506648-3.30178003-2.0352487-1.58404193-1.0222898-.71982554-1.5573792.18291533-2.4756292.23625159-.2403103 4.3705401-3.98382431 4.4499945-4.31554914.0099371-.04148774-.12607-.45629906-.2198814-.53795815s-.2322689-.05373486-.3321837-.03152647c-.1416262.03147972-2.397439 1.49167812-6.76743852 4.38059516-.64030496.4305972-1.22027332.6403987-1.73990507.6294043-.5728523-.0121204-1.67479033-.3172064-2.49396798-.5779863-1.00475474-.3198572-1.37564449-.4704946-1.30610794-1.013711.03621894-.2829407.29151946-.57846124.76590154-.88656154z" fill="%23fff" fill-rule="evenodd"/%3E%3C/svg%3E') 0 0 no-repeat; + margin-right: 11px; + vertical-align: top; +} +.lang_rtl i.tl_telegram_share_icon { + margin-right: 0; + margin-left: 11px; +} +.tl_telegram_share_label { + line-height: 21px; + vertical-align: top; + display: inline-block; + /*margin-top: 1px;*/ +} + +.tlb_page_wrap a.tl_telegram_share_btn { + background: #3faee8; + color: #FFF; + font-size: 14px; + border-radius: 17px; + padding: 6px 12px 5px 6px; +} +.tlb_page_wrap a.tl_telegram_share_btn:hover, +.tlb_page_wrap a.tl_telegram_share_btn:active { + color: #c2eaff; +} + + +/* Telegram Desktop */ +.td_btn_hidden, +.td_all_shown .td_show_all_platforms { + display: none; +} +.td_all_shown span.td_btn_hidden { + display: inline; +} +.td_all_shown div.td_btn_hidden { + display: block; +} +.td_content_wrap { + width: 420px; + margin: 0 auto; + font-size: 16px; +} +.td_content_title { + font-size: 28px; + color: #383a3b; + text-align: center; + margin-top: 32px; + margin-bottom: 14px; + font-weight: normal; + letter-spacing: -1px; +} +.tl_content_title_link, +.tl_content_title_link:hover { + text-decoration: none; +} +.td_screenshot { + background: url(../img/td_laptop.png) 50% 0 no-repeat; + background-size: contain; + padding-top: 58%; + margin-top: 48px; +} +.td_download_wrap, +.td_download_wrap_low { + margin: 0 -130px; + width: 680px; + text-align: center; +} +.td_download_wrap_low { + margin-bottom: 30px; +} +.td_download_icon { + display: inline-block; + vertical-align: top; + width: 25px; + height: 30px; + background: url(../img/td_icons.png) 0 2px no-repeat; + background-size: 25px 105px; + margin: -2px 5px 0 0; +} +.td_osx .td_download_icon { + background-position: 0 -33px; +} +.td_linux .td_download_icon { + background-position: 0 -68px; +} +.td_download_add_wrap { + width: 680px; + margin: 0 -130px 10px; + text-align: center; +} +.td_download_add { + min-width: 256px; + padding: 0 15px 20px; + margin: 5px 10px; + text-align: center; + display: inline-block; + cursor: pointer; +} +.td_download_btn { + display: inline-block; + vertical-align: top; + font-weight: normal; + text-align: center; + vertical-align: middle; + cursor: pointer; + background-image: none; + white-space: nowrap; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + color: #fff; + border-color: #357ebd; + padding: 10px 14px; + min-width: 266px; + font-size: 15px; + line-height: 2; + border-radius: 30px; + background-color: #1d98dc; + margin: 5px 10px; +} +.td_download_btn_wrap { + display: inline-block; + vertical-align: top; +} +.td_download_btn_wrap .td_download_btn, +.td_download_btn_wrap .td_download_add { + display: block; +} +.td_download_btn_wrap .td_download_add { + margin-top: 10px; +} +.td_download_divider { + font-size: 9px; + color: #777; + margin: 0 4px; + vertical-align: text-bottom; +} + +.td_download_btn:hover { + outline: 0px; + text-decoration: none; + color: #fff; + background-color: #0e8ed4; +} +.td_download_btn:active, +.td_download_btn:focus { + outline: 0px; + text-decoration: none; + color: #fff; +} +.td_about_license { + font-size: 14px; + color: #67696a; + text-align: center; + margin-top: 50px; + margin-bottom: 30px; + line-height: 170%; +} + +#td_versions { + opacity: 1; + -webkit-transition: opacity 200ms linear; + -moz-transition: opacity 200ms linear; + -o-transition: opacity 200ms linear; + transition: opacity 200ms linear; +} +#td_versions.td_hidden { + opacity: 0.1; +} + +#td_about_osx { + font-size: 20px; + color: #525252; + padding: 9px 0 5px; + font-weight: normal; +} +#td_about_osx { + position: absolute; + width: 600px; + opacity: 0; + margin-top: -32px; + text-align: center; + -webkit-transition: opacity 200ms linear; + -moz-transition: opacity 200ms linear; + -o-transition: opacity 200ms linear; + transition: opacity 200ms linear; +} +#td_about_osx.td_shown { + opacity: 1; +} +#td_about_tdesktop, +#td_open_from_desktop { + font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Light', Helvetica, Arial , Verdana, sans-serif; + line-height: 148%; + text-align: center; +} +#td_about_tdesktop { + font-size: 17px; + margin: 0 auto; + color: #67696a; + margin: 14px 10px 24px; + font-weight: 300; +} +#td_open_from_desktop { + font-size: 17px; + color: #0088cc; + border: 1px solid #179cde; + border-radius: 10px; + padding: 13px 24px; + margin: 24px 0 40px; +} +.td_changelog_wrap { + padding: 0 15px; +} +.td_changelog_wrap h3 { + margin-top: 20px; + font-size: 16px; + font-weight: normal; +} +.td_changelog_wrap h3 strong { + color: #999; + font-size: 14px; + font-weight: normal; +} + +.td_screenshot_macos { + background: url(https://osx.telegram.org/updates/site/artboard.png) 50% 0 no-repeat; + background-size: 420px 280px; + height: 280px; +} + +.td_screenshot_tdirect { + background: url(/img/tdirect.jpg?1) 50% 0 no-repeat; + background-size: 300px 360px; + height: 360px; + margin: 40px 20px; +} +.td_content_tdirect_title { + font-size: 26px; + color: #383a3b; + text-align: center; + margin-top: 32px; + margin-bottom: 14px; + font-weight: 600; + letter-spacing: -1px; +} +.td_about_tdirect { + font-size: 14px; + margin: 14px 10px 24px; + line-height: 1.5; + text-align: center; +} +.td_download_btn.td_tdirect { + border-radius: 5px; + font-weight: bold; + margin: 10px; +} +.td_howto_install_wrap { + text-align: center; + margin: 50px 0 40px; +} +.td_about_tdirect_store { + margin-top: 60px; +} +.td_download_store_wrap { + margin: 20px 0 10px; + text-align: center; +} + + + + + + + +@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { + .caret { + background-image: url(../img/dropdown.png); + background-size: 18px 26px; + } + .icon-twitter { + background-image: url(../img/twitter_2x.png); + background-size: 21px 17px; + } + .icon-breadcrumb-divider { + background-image: url(../img/breadcrumb_divider.png); + background-size: 5px 10px; + } + .icon-to-top { + background-image: url(../img/back_to_top.png); + background-size: 16px 7px; + } + .tl_main_award { + background-image: url(../img/SiteAward_2x.gif); + background-size: 100px 100px; + } + .icon-arrow-more { + background-image: url(../img/tl_arrow_2x.png); + background-size: 6px 11px; + } + .tl_main_download_desktop { + background-image: url(../img/SiteDesktop_2x.jpg?2); + background-size: 1246px 260px; + } + + .tl_main_download_image__android { + background-image: url(../img/SiteAndroid_2x.jpg?2); + background-size: 290px 270px; + } + .tl_main_download_image__ios { + background-image: url(../img/SiteiOS_2x.jpg?2); + background-size: 442px 270px; + } + .tl_main_download_link_tdesktop { + background-image: url(../img/SiteTDesktop_2x.jpg?1); + background-size: 320px 157px; + } + + #dev_page_content > ul:not(.nav) li, + #dev_page_content > ol:not(.nav) ul:not(.nav) li { + background-image: url(../img/bullet_2x.png?3); + background-size: 7px 7px; + } + + .tgme_icon_arrow { + background-image: url(/img/tgme/Arrow_2x.png); + } + + .tgme_page_widget_actions a.tgme_action_web_button:before { + background-image: url(/img/tgme/web_icon_2x.png); + background-size: 24px 24px; + } + .tgme_page_copy_action a.tgme_action_button_new:before { + background-image: url(/img/tgme/embed_copy_2x.png); + background-size: 24px 24px; + } + + .tlb_blog_logo { + background-image: url(/img/blog/BlogLogo2x.png?1); + background-size: 146px 20px; + } + + .radio-item input.radio + .radio-label:before, + .checkbox-item input.checkbox + .checkbox-label:before, + .form-control-dropdown-button:before { + background-image: url(/img/rc_icons_2x.png?1); + background-size: 20px 152px; + } + + .form-control-dropdown.has-items:before { + background-image: url(/img/rc_icons_2x.png?1); + background-size: 20px 152px; + } + .td_screenshot_macos { + background-image: url(https://osx.telegram.org/updates/site/artboard_2x.png); + background-size: 420px 280px; + height: 280px; + } + .td_screenshot_tdirect { + background-image: url(/img/tdirect_2x.jpg?1); + } +} + +@media only screen and (-webkit-min-device-pixel-ratio: 2.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min--moz-device-pixel-ratio: 2.5), only screen and (min-device-pixel-ratio: 2.5) { + + .tlb_blog_logo { + background-image: url(/img/blog/BlogLogo3x.png); + background-size: 146px 20px; + } +} + +@media (max-width: 1200px) { + .dev_side_nav_wrap { + display: none; + } +} + +/* Mobile */ +@media (max-width: 1000px) { + a.anchor { + margin-left: -19px; + } + .footer_wrap { + padding: 16px 0 16px; + padding-bottom: calc(max(16px, env(safe-area-inset-bottom))); + } + .footer_desktop { + display: none; + } + .footer_mobile { + display: flex; + justify-content: center; + } + .footer_columns_wrap { + text-align: center; + } + .footer_column { + margin: 0 6px; + } + .footer_column h5 { + color: #08c; + font-size: 12px; + font-weight: normal; + text-transform: uppercase; + margin: 0; + } + + .blog_side_image_wrap { + position: static; + } + .blog_side_image { + display: block; + margin: 20px auto; + width: 160px; + height: 160px; + position: static; + } + .blog_side_image.js-tgsticker_image { + position: relative; + } + + .tl_blog_side_blog { + display: none; + } + .tl_blog_bottom_blog { + display: block; + } + .tl_main_side_blog .side_blog_wrap { + position: static; + margin: 22px 0 0 16px; + padding: 0 10px 0 15px; + border-width: 4px; + border-color: #3faee8; + } + .side_blog_wrap { + width: auto; + } + + .tl_main_side_blog .side_blog_header { + font-size: 14px; + } + .tl_main_side_blog a.side_blog_entry { + margin-top: 12px; + } + .tl_main_side_blog .side_blog_date { + color: #444; + font-size: 13px; + } + .tl_main_side_blog .side_blog_title { + font-size: 14px; + margin-top: 2px; + } + +} + +@media (max-width: 640px) { + a:hover { + text-decoration: none; + } + h1 { + font-size: 19px; + } + h2 { + font-size: 19px; + } + h3 { + font-size: 16px; + } + h4 { + font-size: 16px; + } + h5 { + font-size: 14px; + } + .dropdown-menu { + min-width: 210px; + } + .dropdown-menu > li > a { + white-space: normal; + } + .tl_main_body { + margin-top: 25px; + padding-top: 5px; + } + .tl_main_body_header { + font-size: 20px; + } + .tl_main_download_mobile { + padding: 0 20px; + } + + .tl_main_download_link { + width: auto; + min-width: 0; + display: block; + margin-top: 20px; + margin-bottom: 30px; + } + a.tl_main_download_link:after { + display: none; + } + .tl_main_download_link_ios/*, + .tl_main_download_link_tdesktop*/ { + padding-top: 210px; + height: 245px; + padding-bottom: 15px; + } + .tl_main_download_image__ios { + margin: -123px 0 0 -121px; + background-size: 360px 220px; + width: 248px; + height: 198px; + } + .tl_main_video_player__ios { + margin: -124px 0 0 -121px; + width: 248px; + height: 198px; + } + + .tl_main_download_link_tdesktop { + display: block; + padding-top: 156px; + height: 188px; + } + .tl_main_download_desktop_section, + .tl_main_download_desktop_wrap1 { + display: none; + } + .tl_main_download_more_btn { + display: inline-block; + } + + .dev_page_bread_crumbs .breadcrumb { + margin-bottom: 15px; + } + #dev_page_content_wrap { + padding-top: 12px; + } + #dev_page_title { + margin-top: 10px; + margin-bottom: 21px; + } + .nav-pills > li > a { + padding: 8px 10px; + } + .dev_page_nav_wrap { + margin-top: 25px; + } + .dev_page_nav_wrap > p { + margin-bottom: 3.5px; + } + .dev_page_nav_wrap > p > a:first-child { + font-size: 15px; + } + #dev_page_content .dev_page_nav_wrap ul li { + padding: 3px 0 4px; + } + #dev_page_content .dev_page_nav_wrap ul li a:first-child { + font-size: 14px; + display: inline-block; + line-height: 22px; + padding: 2px 6px 1px; + margin-left: -6px; + } + #dev_page_content .dev_page_nav_wrap ul li a:first-child:hover { + border-radius: 2px; + background: #e6f1f7; + } + #dev_page_content .dev_page_nav_wrap hr { + display: none; + } + .dev_faq_page h4 { + font-size: 15px; + line-height: 140%; + margin-top: 26px; + margin-bottom: 5px; + } + .dev_page_image, + .tl_contest_page_wrap .dev_page_image { + max-width: 100%; + max-height: 400px; + margin: 0 auto; + } + .dev_page_image img, + .tl_contest_page_wrap .dev_page_image img { + max-width: 100%; + max-height: 400px; + } + + .tl_main_download_link:hover, + .tl_main_download_desktop_link:hover { + box-shadow: none; + } + + .dev_side_image { + width: auto; + max-width: none; + float: none; + text-align: center; + padding: 0; + } + .dev_side_image img { + display: block; + margin: 20px auto; + width: 180px; + } + + + .tl_team_member_photo_wrap { + margin-bottom: 10px; + } + .tl_team_member_photo { + width: 60px; + height: 60px; + background-size: 60px 905px; + } + .tl_team_member_pavel .tl_team_member_photo { + background-position: 0 0; + } + .tl_team_member_nikolay .tl_team_member_photo { + background-position: 0 -65px; + } + .tl_team_member_aliaksei .tl_team_member_photo { + background-position: 0 -130px; + } + .tl_team_member_vitalik .tl_team_member_photo { + background-position: 0 -195px; + } + .tl_team_member_arseny .tl_team_member_photo { + background-position: 0 -260px; + } + .tl_team_member_igor .tl_team_member_photo { + background-position: 0 -325px; + } + .tl_team_member_drklo .tl_team_member_photo { + background-position: 0 -390px; + } + .tl_team_member_peter .tl_team_member_photo { + background-position: 0 -455px; + } + .tl_team_member_john .tl_team_member_photo { + background-position: 0 -520px; + } + .tl_team_member_kolar .tl_team_member_photo { + background-position: 0 -585px; + } + .tl_team_member_ilya .tl_team_member_photo { + background-position: 0 -650px; + } + .tl_team_member_igor1 .tl_team_member_photo { + background-position: 0 -845px; + } + .tl_team_member_mike .tl_team_member_photo { + background-position: 0 -780px; + } + .tl_team_member_grisha .tl_team_member_photo { + background-position: 0 -715px; + } + .tl_team_member_name { + margin-top: 20px; + margin-left: 80px; + margin-bottom: 40px; + } + .tl_team_member_body { + margin-left: 0; + } +} + +@media (max-width: 480px) { + .navbar-tg .container { + padding: 0; + } + h3 a.anchor i.anchor-icon {margin-top: 1px;} + a.anchor { + margin-left: -16px; + } + .tl_main_award { + display: none; + } + .tl_main_logo_wrap { + padding-top: 10px; + padding-bottom: 2px; + } + svg.tl_main_logo, + image.tl_main_logo, + img.tl_main_logo { + width: 85px !important; + height: 85px !important; + } + div.tl_main_logo { + width: 100px !important; + height: 100px !important; + margin: -5px auto; + } + .tl_main_logo_title, + .tl_main_logo_title:hover { + font-size: 23px; + margin-top: 15px; + margin-bottom: 5px; + letter-spacing: -1px; + } + .tl_main_logo_lead { + font-size: 16px; + max-width: 224px; + } + + .tl_main_head_download { + margin-bottom: 10px; + } + .tl_main_download_btn { + max-width: 200px; + width: auto; + padding: 6px 9px; + line-height: 20px; + font-size: 13px; + margin: 5px 10px; + } + + .tl_main_cards { + margin-top: 10px; + } + + .tl_main_card_header { + margin: 10px 0 6px; + font-size: 21px; + font-weight: normal; + letter-spacing: -1px; + } + + .tl_main_card_lead { + font-size: 15px; + } + .smartphone_video_player_wrap { + /*display: none;*/ + } + + .td_content_wrap { + width: auto; + font-size: 14px; + margin: 0 20px; + } + .td_screenshot { + margin-top: 26px; + } + .td_content_title { + font-size: 22px; + margin-top: 21px; + margin-bottom: 10px; + } + .td_download_wrap, + .td_download_wrap_low { + margin: 0 auto; + width: 320px; + } + .td_download_wrap_low { + margin-bottom: 30px; + } + .td_download_add_wrap { + width: 280px; + margin: 0 auto 10px; + } + #td_about_osx { + width: 320px; + font-size: 16px; + } + .td_about_osx_team { + display: none; + } + .td_about_license { + font-size: 12px; + } + #td_about_tdesktop { + font-size: 16px; + margin: 10px 15px 24px; + } + .td_screenshot_tdirect { + background-size: 225px 270px; + height: 270px; + margin: 40px 20px 20px; + } + .td_content_tdirect_title { + font-size: 20px; + margin-top: 21px; + margin-bottom: 10px; + letter-spacing: 0; + } + + + /* Telegram.me */ + .tgme_page_photo_image { + width: 110px; + height: 110px; + border-radius: 55px; + } + + .tgme_page { + margin-top: 0; + } + + .tgme_page_additional { + display: block; + } + .tgme_footer { + display: none; + } + + .blog_2images_wrap, + .blog_3images_wrap, + .blog_medium_image_wrap, + .blog_medium_image_wrap img, + .blog_image_wrap, + .blog_image_wrap img { + width: auto; + max-width: 275px; + } + .blog_2images_wrap, + .blog_3images_wrap { + margin: 20px auto 20px; + } + .blog_2images_wrap .blog_image_wrap, + .blog_3images_wrap .blog_image_wrap { + float: none; + margin: 20px 0 20px; + } +} + +@media (max-width: 340px) { + .tl_main_download_image__android { + margin: -109px 0 0 -101px; + background-size: 196px 183px; + width: 205px; + height: 162px; + } + .tl_main_download_image__ios { + margin: -103px 0 0 -101px; + background-size: 300px 183px; + width: 206px; + height: 165px; + } + .tl_main_video_player__android { + margin: -109px 0 0 -101px; + width: 205px; + height: 162px; + } + .tl_main_video_player__ios { + /*margin: -103px 0 0 -101px;*/ + margin: -104px 0 0 -101px; + width: 206px; + height: 165px; + } +} + +@media (max-width: 320px) { + #td_about_tdesktop { + font-size: 14px; + } + #td_open_from_desktop { + font-size: 15px; + padding: 13px 18px; + } +} + +.tl_contest_page_wrap + .pager_wrap { + max-width: 600px; + margin: 0 auto; +} diff --git a/data/web/blogfork.telegram.org/file/464001971/11361/nCsgOjxdfxA.77184.json/a27921641b664931c6.html b/data/web/blogfork.telegram.org/file/464001971/11361/nCsgOjxdfxA.77184.json/a27921641b664931c6.html new file mode 100644 index 0000000000..2989a4efb9 --- /dev/null +++ b/data/web/blogfork.telegram.org/file/464001971/11361/nCsgOjxdfxA.77184.json/a27921641b664931c6.html @@ -0,0 +1 @@ +{"errors":{"420":{"2FA_CONFIRM_WAIT_%d":["account.deleteAccount"],"SLOWMODE_WAIT_%d":["messages.forwardMessages","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.sendMultiMedia"],"TAKEOUT_INIT_DELAY_%d":["account.initTakeoutSession"]},"400":{"ABOUT_TOO_LONG":["account.updateProfile"],"ACCESS_TOKEN_EXPIRED":["auth.importBotAuthorization"],"ACCESS_TOKEN_INVALID":["auth.importBotAuthorization"],"ADMIN_ID_INVALID":["messages.getExportedChatInvites"],"ADMIN_RANK_EMOJI_NOT_ALLOWED":["channels.editAdmin"],"ADMIN_RANK_INVALID":["channels.editAdmin"],"ADMINS_TOO_MUCH":["channels.editAdmin"],"ALBUM_PHOTOS_TOO_MANY":["photos.updateProfilePhoto","photos.uploadProfilePhoto"],"API_ID_INVALID":["auth.exportLoginToken","auth.importBotAuthorization","auth.sendCode"],"API_ID_PUBLISHED_FLOOD":["auth.importBotAuthorization","auth.sendCode"],"ARTICLE_TITLE_EMPTY":["messages.setInlineBotResults"],"AUDIO_CONTENT_URL_EMPTY":["messages.setInlineBotResults"],"AUDIO_TITLE_EMPTY":["messages.setInlineBotResults"],"AUTH_BYTES_INVALID":["auth.importAuthorization","invokeWithLayer"],"AUTH_TOKEN_ALREADY_ACCEPTED":["auth.importLoginToken"],"AUTH_TOKEN_EXPIRED":["auth.acceptLoginToken","auth.importLoginToken"],"AUTH_TOKEN_INVALID":["auth.importLoginToken"],"AUTH_TOKEN_INVALIDX":["auth.acceptLoginToken","auth.importLoginToken"],"AUTOARCHIVE_NOT_AVAILABLE":["account.setGlobalPrivacySettings"],"BANK_CARD_NUMBER_INVALID":["payments.getBankCardData"],"BANNED_RIGHTS_INVALID":["messages.editChatDefaultBannedRights"],"BOT_CHANNELS_NA":["channels.editAdmin"],"BOT_COMMAND_DESCRIPTION_INVALID":["bots.setBotCommands"],"BOT_COMMAND_INVALID":["bots.setBotCommands"],"BOT_DOMAIN_INVALID":["messages.sendMessage"],"BOT_GROUPS_BLOCKED":["channels.editAdmin","channels.inviteToChannel"],"BOT_INLINE_DISABLED":["messages.getInlineBotResults"],"BOT_INVALID":["messages.getInlineBotResults","messages.sendMessage","messages.startBot"],"BOT_MISSING":["messages.uploadMedia","stickers.addStickerToSet","stickers.changeStickerPosition","stickers.createStickerSet","stickers.removeStickerFromSet"],"BOT_ONESIDE_NOT_AVAIL":["messages.updatePinnedMessage"],"BOT_PAYMENTS_DISABLED":["messages.sendMedia"],"BOT_POLLS_DISABLED":["messages.sendMedia"],"BOT_RESPONSE_TIMEOUT":["messages.getBotCallbackAnswer","messages.getInlineBotResults"],"BOT_SCORE_NOT_MODIFIED":["messages.setGameScore"],"BOTS_TOO_MUCH":["channels.editAdmin","channels.inviteToChannel"],"BROADCAST_ID_INVALID":["channels.setDiscussionGroup"],"BROADCAST_PUBLIC_VOTERS_FORBIDDEN":["messages.forwardMessages","messages.sendMedia"],"BROADCAST_REQUIRED":["stats.getBroadcastStats"],"BUTTON_DATA_INVALID":["messages.editMessage","messages.sendMedia","messages.sendMessage","messages.setInlineBotResults"],"BUTTON_TYPE_INVALID":["messages.editMessage","messages.sendMedia","messages.sendMessage","messages.setInlineBotResults"],"BUTTON_URL_INVALID":["messages.editMessage","messages.sendMedia","messages.sendMessage","messages.setInlineBotResults"],"CALL_ALREADY_ACCEPTED":["phone.acceptCall","phone.discardCall"],"CALL_ALREADY_DECLINED":["phone.acceptCall","phone.confirmCall","phone.receivedCall"],"CALL_PEER_INVALID":["phone.acceptCall","phone.confirmCall","phone.discardCall","phone.receivedCall","phone.saveCallDebug","phone.setCallRating"],"CALL_PROTOCOL_FLAGS_INVALID":["phone.acceptCall","phone.requestCall"],"CDN_METHOD_INVALID":["invokeWithLayer","updates.getDifference","upload.getCdnFileHashes"],"CHANNEL_INVALID":["account.updateNotifySettings","channels.checkUsername","channels.deleteChannel","channels.deleteHistory","channels.deleteMessages","channels.deleteUserHistory","channels.editAbout","channels.editAdmin","channels.editBanned","channels.editPhoto","channels.editTitle","channels.exportInvite","channels.exportMessageLink","channels.getAdminLog","channels.getChannels","channels.getFullChannel","channels.getMessages","channels.getParticipant","channels.getParticipants","channels.inviteToChannel","channels.joinChannel","channels.leaveChannel","channels.readHistory","channels.readMessageContents","channels.reportSpam","channels.setDiscussionGroup","channels.setStickers","channels.toggleInvites","channels.togglePreHistoryHidden","channels.toggleSignatures","channels.updatePinnedMessage","channels.updateUsername","channels.viewSponsoredMessage","messages.editChatAbout","messages.editMessage","messages.forwardMessages","messages.getBotCallbackAnswer","messages.getDiscussionMessage","messages.getHistory","messages.getInlineBotResults","messages.getMessagesViews","messages.getPeerDialogs","messages.getPeerSettings","messages.getUnreadMentions","messages.importChatInvite","messages.readMentions","messages.search","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.sendVote","messages.setTyping","msg_container","msgs_state_req","stats.getBroadcastStats","stats.getMegagroupStats","stats.getMessagePublicForwards","stats.getMessageStats","updates.getChannelDifference","updates.getDifference","upload.getFile","users.getUsers"],"CHANNEL_PRIVATE":["account.reportPeer","account.updateNotifySettings","channels.deleteChannel","channels.deleteHistory","channels.deleteMessages","channels.deleteUserHistory","channels.editAdmin","channels.editBanned","channels.editCreator","channels.editPhoto","channels.editTitle","channels.exportMessageLink","channels.getAdminLog","channels.getChannels","channels.getFullChannel","channels.getMessages","channels.getParticipant","channels.getParticipants","channels.getSponsoredMessages","channels.inviteToChannel","channels.joinChannel","channels.leaveChannel","channels.readHistory","channels.readMessageContents","channels.togglePreHistoryHidden","channels.updateUsername","contacts.addContact","contacts.unblock","messages.deleteHistory","messages.editChatAbout","messages.editMessage","messages.exportChatInvite","messages.forwardMessages","messages.getBotCallbackAnswer","messages.getChatInviteImporters","messages.getHistory","messages.getInlineBotResults","messages.getMessagesViews","messages.getOnlines","messages.getPeerDialogs","messages.getUnreadMentions","messages.importChatInvite","messages.readHistory","messages.readMentions","messages.report","messages.reportSpam","messages.search","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.sendMultiMedia","messages.sendReaction","messages.sendVote","messages.setTyping","messages.toggleDialogPin","messages.updatePinnedMessage","messages.uploadMedia","stats.getBroadcastStats","updates.getChannelDifference","upload.getFile","users.getFullUser","users.getUsers"],"CHANNEL_TOO_LARGE":["channels.deleteChannel"],"CHANNELS_ADMIN_LOCATED_TOO_MUCH":["channels.createChannel","channels.getAdminedPublicChannels"],"CHANNELS_ADMIN_PUBLIC_TOO_MUCH":["channels.checkUsername","channels.getAdminedPublicChannels","channels.updateUsername"],"CHANNELS_TOO_MUCH":["channels.createChannel","channels.joinChannel","messages.importChatInvite","messages.migrateChat"],"CHAT_ABOUT_NOT_MODIFIED":["channels.editAbout","messages.editChatAbout"],"CHAT_ABOUT_TOO_LONG":["channels.createChannel","channels.editAbout","messages.editChatAbout"],"CHAT_ADMIN_REQUIRED":["channels.convertToGigagroup","channels.deleteChannel","channels.deleteParticipantHistory","channels.deleteUserHistory","channels.editAbout","channels.editAdmin","channels.editBanned","channels.editCreator","channels.editPhoto","channels.editTitle","channels.exportInvite","channels.getAdminLog","channels.getParticipant","channels.getParticipants","channels.inviteToChannel","channels.reportSpam","channels.setDiscussionGroup","channels.toggleInvites","channels.togglePreHistoryHidden","channels.toggleSignatures","channels.toggleSlowMode","channels.updatePinnedMessage","channels.updateUsername","messages.addChatUser","messages.deleteChat","messages.deleteChatUser","messages.editChatAbout","messages.editChatDefaultBannedRights","messages.editMessage","messages.exportChatInvite","messages.forwardMessages","messages.getAdminsWithInvites","messages.getChatInviteImporters","messages.getExportedChatInvite","messages.getExportedChatInvites","messages.getMessageEditData","messages.getScheduledHistory","messages.getScheduledMessages","messages.migrateChat","messages.search","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.sendMultiMedia","messages.setTyping","messages.startBot","messages.updatePinnedMessage","messages.uploadMedia","phone.createGroupCall","stats.getBroadcastStats","stats.getMegagroupStats","stats.getMessagePublicForwards","stats.getMessageStats"],"CHAT_FORWARDS_RESTRICTED":["messages.forwardMessages","messages.sendMedia"],"CHAT_ID_EMPTY":["messages.discardEncryption"],"CHAT_ID_INVALID":["channels.checkUsername","channels.togglePreHistoryHidden","channels.toggleSignatures","channels.updatePinnedMessage","folders.editPeerFolders","messages.acceptEncryption","messages.addChatUser","messages.deleteChat","messages.deleteChatUser","messages.deleteHistory","messages.editChatAbout","messages.editChatAdmin","messages.editChatPhoto","messages.editChatTitle","messages.exportChatInvite","messages.forwardMessage","messages.forwardMessages","messages.getChats","messages.getFullChat","messages.getHistory","messages.getMessagesViews","messages.getOnlines","messages.migrateChat","messages.readHistory","messages.reportEncryptedSpam","messages.sendEncrypted","messages.sendMessage","messages.setEncryptedTyping","messages.setTyping","messages.toggleChatAdmins"],"CHAT_INVALID":["channels.inviteToChannel","channels.joinChannel","messages.createChat","messages.importChatInvite"],"CHAT_LINK_EXISTS":["channels.togglePreHistoryHidden"],"CHAT_NOT_MODIFIED":["channels.deleteChannel","channels.editPhoto","channels.editTitle","channels.getFullChannel","channels.toggleInvites","channels.togglePreHistoryHidden","channels.toggleSlowMode","channels.updatePinnedMessage","channels.updateUsername","messages.editChatAbout","messages.editChatDefaultBannedRights","messages.editChatPhoto","messages.editChatTitle","messages.setHistoryTTL","messages.toggleChatAdmins","messages.updatePinnedMessage"],"CHAT_RESTRICTED":["messages.forwardMessages","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.uploadMedia"],"CHAT_SEND_INLINE_FORBIDDEN":["messages.sendInlineBotResult"],"CHAT_TITLE_EMPTY":["channels.createChannel","channels.editTitle","messages.createChat","messages.editChatTitle"],"CHAT_TOO_BIG":["messages.getMessageReadParticipants","messages.getMessagesReadParticipants"],"CODE_EMPTY":["auth.recoverPassword"],"CODE_HASH_INVALID":["account.confirmPhone"],"CODE_INVALID":["account.confirmPasswordEmail"],"CONNECTION_API_ID_INVALID":["help.getConfig","invokeWithLayer"],"CONNECTION_APP_VERSION_EMPTY":["help.getConfig"],"CONNECTION_LAYER_INVALID":["contacts.resolveUsername","help.getConfig","initConnection"],"CONTACT_ADD_MISSING":["contacts.acceptContact"],"CONTACT_ID_INVALID":["contacts.acceptContact","contacts.addContact","contacts.block","contacts.deleteContact","contacts.unblock"],"CONTACT_NAME_EMPTY":["contacts.addContact"],"CONTACT_REQ_MISSING":["contacts.acceptContact"],"CURRENCY_TOTAL_AMOUNT_INVALID":["messages.sendMedia"],"DATA_INVALID":["help.getConfig","messages.getBotCallbackAnswer","messages.sendEncrypted","messages.sendEncryptedService"],"DATA_JSON_INVALID":["phone.saveCallDebug"],"DATA_TOO_LONG":["messages.sendEncrypted","messages.sendEncryptedFile"],"DATE_EMPTY":["updates.getDifference"],"DC_ID_INVALID":["auth.exportAuthorization"],"DH_G_A_INVALID":["messages.requestEncryption"],"DOCUMENT_INVALID":["messages.setInlineBotResults"],"EMAIL_HASH_EXPIRED":["account.confirmPasswordEmail"],"EMAIL_INVALID":["account.sendVerifyEmailCode","account.verifyEmail"],"EMAIL_UNCONFIRMED":["account.updatePasswordSettings"],"EMAIL_UNCONFIRMED_%d":["account.updatePasswordSettings"],"EMAIL_VERIFY_EXPIRED":["account.verifyEmail"],"EMOJI_INVALID":["messages.setChatTheme"],"EMOJI_NOT_MODIFIED":["messages.setChatTheme"],"EMOTICON_EMPTY":["messages.getStickers"],"EMOTICON_INVALID":["messages.sendMedia"],"EMOTICON_STICKERPACK_MISSING":["messages.getStickerSet"],"ENCRYPTED_MESSAGE_INVALID":["auth.bindTempAuthKey","msgs_ack"],"ENCRYPTION_ALREADY_ACCEPTED":["messages.acceptEncryption"],"ENCRYPTION_ALREADY_DECLINED":["messages.acceptEncryption","messages.discardEncryption"],"ENCRYPTION_DECLINED":["messages.sendEncrypted","messages.sendEncryptedFile","messages.sendEncryptedService","messages.sendMessage"],"ENCRYPTION_ID_INVALID":["messages.discardEncryption","messages.sendEncryptedService"],"ENTITIES_TOO_LONG":["messages.editMessage","messages.sendMessage"],"ENTITY_MENTION_USER_INVALID":["messages.sendMessage"],"ERROR_TEXT_EMPTY":["messages.setBotPrecheckoutResults"],"EXPIRE_DATE_INVALID":["messages.exportChatInvite"],"EXPORT_CARD_INVALID":["contacts.importCard"],"EXTERNAL_URL_INVALID":["messages.sendMedia"],"FILE_CONTENT_TYPE_INVALID":["messages.setInlineBotResults"],"FILE_EMTPY":["messages.sendEncryptedFile"],"FILE_ID_INVALID":["upload.getFile"],"FILE_PART_EMPTY":["msgs_state_req","upload.saveBigFilePart","upload.saveFilePart"],"FILE_PART_INVALID":["upload.saveBigFilePart","upload.saveFilePart"],"FILE_PART_LENGTH_INVALID":["messages.sendMedia"],"FILE_PART_SIZE_CHANGED":["upload.saveBigFilePart"],"FILE_PART_SIZE_INVALID":["upload.saveBigFilePart"],"FILE_PART_TOO_BIG":["upload.saveBigFilePart"],"FILE_PARTS_INVALID":["messages.sendMedia","messages.uploadMedia","photos.updateProfilePhoto","photos.uploadProfilePhoto","upload.saveBigFilePart"],"FILE_REFERENCE_*":["upload.getFile"],"FILE_REFERENCE_EMPTY":["messages.sendMedia"],"FILE_REFERENCE_EXPIRED":["messages.sendMedia","upload.getFile"],"FILE_REFERENCE_INVALID":["channels.editPhoto"],"FILE_TITLE_EMPTY":["messages.setInlineBotResults"],"FILTER_ID_INVALID":["messages.updateDialogFilter"],"FILTER_INCLUDE_EMPTY":["messages.updateDialogFilter"],"FILTER_NOT_SUPPORTED":["messages.getSearchResultsCalendar"],"FILTER_TITLE_EMPTY":["messages.updateDialogFilter"],"FIRSTNAME_INVALID":["account.updateProfile","auth.signUp"],"FOLDER_ID_EMPTY":["folders.deleteFolder"],"FOLDER_ID_INVALID":["folders.deleteFolder","folders.editPeerFolders","messages.getDialogs","messages.getPinnedDialogs","messages.searchGlobal"],"FRESH_CHANGE_ADMINS_FORBIDDEN":["channels.editAdmin"],"FROM_MESSAGE_BOT_DISABLED":["messages.sendMessage","updates.getChannelDifference"],"FROM_PEER_INVALID":["messages.search"],"GAME_BOT_INVALID":["messages.sendMedia"],"GEO_POINT_INVALID":["contacts.getLocated"],"GIF_CONTENT_TYPE_INVALID":["messages.setInlineBotResults"],"GIF_ID_INVALID":["messages.saveGif"],"GRAPH_EXPIRED_RELOAD":["stats.loadAsyncGraph"],"GRAPH_INVALID_RELOAD":["stats.loadAsyncGraph"],"GRAPH_OUTDATED_RELOAD":["stats.loadAsyncGraph"],"GROUPCALL_ALREADY_DISCARDED":["phone.discardGroupCallRequest"],"GROUPCALL_INVALID":["phone.getGroupCall"],"GROUPCALL_NOT_MODIFIED":["phone.toggleGroupCallSettings"],"GROUPCALL_SSRC_DUPLICATE_MUCH":["phone.joinGroupCall"],"GROUPED_MEDIA_INVALID":["messages.forwardMessages"],"HASH_INVALID":["account.changeAuthorizationSettings","account.resetAuthorization","account.resetWebAuthorization","account.sendConfirmPhoneCode"],"IMAGE_PROCESS_FAILED":["messages.sendMedia","messages.uploadMedia","photos.updateProfilePhoto","photos.uploadProfilePhoto"],"IMPORT_FILE_INVALID":["messages.initHistoryImport"],"IMPORT_FORMAT_UNRECOGNIZED":["messages.initHistoryImport"],"IMPORT_ID_INVALID":["messages.startHistoryImport"],"INLINE_RESULT_EXPIRED":["messages.sendInlineBotResult"],"INPUT_FILTER_INVALID":["messages.search"],"INPUT_USER_DEACTIVATED":["channels.editAdmin","channels.editBanned","channels.inviteToChannel","channels.reportSpam","contacts.block","messages.addChatUser","messages.createChat","messages.editMessage","messages.forwardMessages","messages.getInlineBotResults","messages.search","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.setTyping","messages.startBot","messages.uploadMedia","phone.requestCall"],"INVITE_FORBIDDEN_WITH_JOINAS":["phone.inviteToGroupCall"],"INVITE_HASH_EMPTY":["channels.joinChannel","messages.checkChatInvite","messages.importChatInvite"],"INVITE_HASH_EXPIRED":["channels.exportInvite","channels.joinChannel","invokeWithLayer","messages.checkChatInvite","messages.getChatInviteImporters","messages.getExportedChatInvite","messages.importChatInvite"],"INVITE_HASH_INVALID":["channels.joinChannel","messages.checkChatInvite","messages.importChatInvite"],"INVITE_REQUEST_SENT":["channels.joinChannel","messages.importChatInvite"],"INVITE_REVOKED_MISSING":["messages.deleteExportedChatInvite"],"LANG_CODE_INVALID":["bots.setBotCommands"],"LANG_PACK_INVALID":["langpack.getDifference","langpack.getLangPack","langpack.getLanguages","langpack.getStrings"],"LASTNAME_INVALID":["auth.signUp"],"LIMIT_INVALID":["upload.getFile"],"LINK_NOT_MODIFIED":["channels.setDiscussionGroup"],"LOCATION_INVALID":["photos.updateProfilePhoto","upload.getFile","upload.getFileHashes","upload.getWebFile"],"MAX_ID_INVALID":["photos.getUserPhotos"],"MAX_QTS_INVALID":["messages.receivedQueue"],"MD5_CHECKSUM_INVALID":["messages.sendEncryptedFile","messages.sendMedia"],"MEDIA_CAPTION_TOO_LONG":["messages.editMessage","messages.sendMedia","messages.sendMultiMedia"],"MEDIA_EMPTY":["messages.forwardMessages","messages.sendInlineBotResult","messages.sendMedia","messages.sendMultiMedia"],"MEDIA_GROUPED_INVALID":["messages.editMessage"],"MEDIA_INVALID":["messages.sendMedia","messages.sendMultiMedia","messages.uploadMedia"],"MEDIA_NEW_INVALID":["messages.editMessage"],"MEDIA_PREV_INVALID":["messages.editMessage"],"MEGAGROUP_ID_INVALID":["channels.setDiscussionGroup"],"MEGAGROUP_PREHISTORY_HIDDEN":["channels.setDiscussionGroup"],"MEGAGROUP_REQUIRED":["channels.editLocation","stats.getMegagroupStats"],"MESSAGE_EDIT_TIME_EXPIRED":["messages.editMessage"],"MESSAGE_EMPTY":["auth.sendInvites","messages.editMessage","messages.getWebPagePreview","messages.sendMessage","messages.setInlineBotResults"],"MESSAGE_ID_INVALID":["channels.exportMessageLink","messages.deleteHistory","messages.deleteMessages","messages.editInlineBotMessage","messages.editMessage","messages.forwardMessage","messages.forwardMessages","messages.getBotCallbackAnswer","messages.getGameHighScores","messages.getInlineGameHighScores","messages.getMessageEditData","messages.getMessagesReadParticipants","messages.getPollResults","messages.sendReaction","messages.sendScheduledMessages","messages.sendVote","messages.setGameScore","messages.setInlineGameScore","messages.updatePinnedMessage","msg_container","payments.getPaymentForm","payments.getPaymentReceipt","payments.sendPaymentForm","payments.validateRequestedInfo","stats.getMessagePublicForwards","stats.getMessageStats"],"MESSAGE_IDS_EMPTY":["channels.getMessages","messages.forwardMessages"],"MESSAGE_NOT_MODIFIED":["messages.editInlineBotMessage","messages.editMessage"],"MESSAGE_POLL_CLOSED":["messages.sendVote"],"MESSAGE_TOO_LONG":["messages.editMessage","messages.sendMessage","messages.setBotCallbackAnswer","messages.setInlineBotResults"],"METHOD_INVALID":["bots.sendCustomRequest","messages.searchGifs"],"MSG_ID_INVALID":["account.updateNotifySettings","channels.deleteMessages","channels.deleteParticipantHistory","channels.deleteUserHistory","channels.editBanned","channels.exportMessageLink","channels.getAdminLog","channels.getChannels","channels.getFullChannel","channels.getMessages","channels.getParticipant","channels.inviteToChannel","channels.joinChannel","channels.leaveChannel","channels.readHistory","channels.readMessageContents","contacts.acceptContact","contacts.addContact","contacts.block","contacts.unblock","help.getConfig","messages.deleteHistory","messages.editMessage","messages.forwardMessages","messages.getCommonChats","messages.getDiscussionMessage","messages.getHistory","messages.getInlineBotResults","messages.getMessagesViews","messages.getPeerDialogs","messages.getPollVotes","messages.getReplies","messages.getUnreadMentions","messages.importChatInvite","messages.readDiscussion","messages.readHistory","messages.readMentions","messages.reportSpam","messages.saveDraft","messages.search","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.setTyping","messages.startBot","messages.uploadMedia","msg_container","msgs_state_req","photos.getUserPhotos","updates.getChannelDifference","updates.getDifference","upload.getFile","users.getFullUser","users.getUsers"],"MSG_WAIT_FAILED":["messages.readEncryptedHistory","messages.receivedQueue","messages.sendEncrypted","messages.sendEncryptedFile","messages.sendEncryptedService"],"MULTI_MEDIA_TOO_LONG":["messages.sendMultiMedia"],"NEW_SALT_INVALID":["account.updatePasswordSettings"],"NEW_SETTINGS_INVALID":["account.updatePasswordSettings","auth.recoverPassword"],"NEXT_OFFSET_INVALID":["messages.setInlineBotResults"],"OFFSET_INVALID":["upload.getFile"],"OFFSET_PEER_ID_INVALID":["messages.getDialogs"],"OPTION_INVALID":["messages.sendVote"],"OPTIONS_TOO_MUCH":["messages.sendVote"],"PACK_SHORT_NAME_INVALID":["stickers.createStickerSet"],"PACK_SHORT_NAME_OCCUPIED":["stickers.createStickerSet"],"PACK_TITLE_INVALID":["stickers.createStickerSet"],"PARTICIPANT_ID_INVALID":["channels.deleteParticipantHistory","channels.editBanned","channels.getParticipant"],"PARTICIPANT_VERSION_OUTDATED":["phone.requestCall"],"PARTICIPANTS_TOO_FEW":["channels.convertToGigagroup","channels.setStickers"],"PASSWORD_EMPTY":["auth.requestPasswordRecovery"],"PASSWORD_HASH_INVALID":["account.getPasswordSettings","account.getTmpPassword","account.updatePasswordSettings","auth.checkPassword","channels.editCreator"],"PASSWORD_MISSING":["channels.editCreator"],"PASSWORD_RECOVERY_EXPIRED":["auth.checkRecoveryPassword"],"PASSWORD_RECOVERY_NA":["auth.requestPasswordRecovery"],"PASSWORD_REQUIRED":["account.saveSecureValue"],"PASSWORD_TOO_FRESH_%d":["channels.editCreator"],"PAYMENT_PROVIDER_INVALID":["messages.sendMedia"],"PEER_ID_INVALID":["account.getNotifySettings","account.reportPeer","account.updateNotifySettings","channels.editAdmin","channels.editBanned","channels.getSendAs","channels.joinChannel","contacts.block","contacts.resetTopPeerRating","contacts.unblock","messages.addChatUser","messages.checkHistoryImportPeer","messages.deleteChat","messages.deleteChatUser","messages.deleteHistory","messages.editChatAbout","messages.editChatAdmin","messages.editChatDefaultBannedRights","messages.editChatPhoto","messages.editChatTitle","messages.editExportedChatInvite","messages.editMessage","messages.exportChatInvite","messages.forwardMessage","messages.forwardMessages","messages.getAdminsWithInvites","messages.getBotCallbackAnswer","messages.getChatInviteImporters","messages.getChats","messages.getDiscussionMessage","messages.getExportedChatInvite","messages.getExportedChatInvites","messages.getFullChat","messages.getGameHighScores","messages.getHistory","messages.getMessageEditData","messages.getMessagesViews","messages.getOnlines","messages.getPeerDialogs","messages.getPeerSettings","messages.getPollResults","messages.getReplies","messages.getScheduledHistory","messages.getScheduledMessages","messages.getSearchCounters","messages.getStatsURL","messages.getUnreadMentions","messages.hideChatJoinRequest","messages.hideReportSpam","messages.importChatInvite","messages.markDialogUnread","messages.migrateChat","messages.readDiscussion","messages.readHistory","messages.readMentions","messages.reorderPinnedDialogs","messages.report","messages.reportSpam","messages.saveDefaultSendAs","messages.saveDraft","messages.search","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.sendMultiMedia","messages.sendReaction","messages.sendScheduledMessages","messages.sendScreenshotNotification","messages.sendVote","messages.setChatTheme","messages.setGameScore","messages.setTyping","messages.startBot","messages.toggleDialogPin","messages.updatePinnedMessage","messages.uploadMedia","phone.createGroupCall","stickers.createStickerSet","upload.getFile"],"PEER_ID_NOT_SUPPORTED":["messages.search"],"PERSISTENT_TIMESTAMP_EMPTY":["updates.getChannelDifference","updates.getDifference"],"PERSISTENT_TIMESTAMP_INVALID":["updates.getChannelDifference","updates.getDifference"],"PHONE_CODE_EMPTY":["account.changePhone","account.confirmPhone","account.verifyPhone","auth.signIn","auth.signUp"],"PHONE_CODE_EXPIRED":["account.changePhone","account.verifyPhone","auth.cancelCode","auth.resendCode","auth.signIn","auth.signUp"],"PHONE_CODE_HASH_EMPTY":["auth.resendCode"],"PHONE_CODE_INVALID":["auth.signIn","auth.signUp"],"PHONE_NUMBER_APP_SIGNUP_FORBIDDEN":["auth.sendCode"],"PHONE_NUMBER_BANNED":["account.sendChangePhoneCode","auth.checkPhone","auth.sendCode"],"PHONE_NUMBER_FLOOD":["auth.sendCode","auth.signUp"],"PHONE_NUMBER_INVALID":["account.changePhone","account.sendChangePhoneCode","account.sendVerifyPhoneCode","account.verifyPhone","auth.cancelCode","auth.checkPhone","auth.resendCode","auth.sendCode","auth.signIn","auth.signUp"],"PHONE_NUMBER_OCCUPIED":["account.changePhone","account.sendChangePhoneCode","auth.signUp"],"PHONE_NUMBER_UNOCCUPIED":["auth.signIn"],"PHONE_PASSWORD_PROTECTED":["auth.sendCode"],"PHOTO_CONTENT_TYPE_INVALID":["messages.setInlineBotResults"],"PHOTO_CONTENT_URL_EMPTY":["messages.setInlineBotResults"],"PHOTO_CROP_FILE_MISSING":["photos.uploadProfilePhoto"],"PHOTO_CROP_SIZE_SMALL":["channels.editPhoto","messages.editChatPhoto","photos.updateProfilePhoto","photos.uploadProfilePhoto"],"PHOTO_EXT_INVALID":["channels.editPhoto","messages.editChatPhoto","messages.sendMedia","messages.uploadMedia","photos.updateProfilePhoto","photos.uploadProfilePhoto"],"PHOTO_FILE_MISSING":["photos.uploadProfilePhoto"],"PHOTO_ID_INVALID":["photos.updateProfilePhoto"],"PHOTO_INVALID":["channels.editPhoto","messages.editChatPhoto","messages.setInlineBotResults"],"PHOTO_INVALID_DIMENSIONS":["messages.sendMedia","messages.uploadMedia"],"PHOTO_SAVE_FILE_INVALID":["messages.sendMedia","messages.uploadMedia"],"PHOTO_THUMB_URL_EMPTY":["messages.setInlineBotResults"],"PIN_RESTRICTED":["messages.updatePinnedMessage"],"PINNED_DIALOGS_TOO_MUCH":["channels.editBanned","messages.sendMessage","messages.toggleDialogPin","updates.getChannelDifference"],"POLL_ANSWER_INVALID":["messages.sendMedia"],"POLL_ANSWERS_INVALID":["messages.sendMedia"],"POLL_OPTION_DUPLICATE":["messages.sendMedia"],"POLL_OPTION_INVALID":["messages.sendMedia","messages.sendMessage"],"POLL_QUESTION_INVALID":["messages.sendMedia"],"PRIVACY_KEY_INVALID":["account.getPrivacy","account.setPrivacy"],"PRIVACY_TOO_LONG":["account.setPrivacy"],"PRIVACY_VALUE_INVALID":["account.setPrivacy"],"PUBLIC_KEY_REQUIRED":["account.getAuthorizationForm"],"QUERY_ID_EMPTY":["messages.sendInlineBotResult"],"QUERY_ID_INVALID":["bots.answerWebhookJSONQuery","messages.setBotCallbackAnswer","messages.setBotShippingResults","messages.setInlineBotResults"],"QUERY_TOO_SHORT":["contacts.search"],"QUIZ_ANSWER_MISSING":["messages.forwardMessages"],"QUIZ_CORRECT_ANSWER_INVALID":["messages.sendMedia"],"QUIZ_CORRECT_ANSWERS_EMPTY":["messages.sendMedia"],"QUIZ_CORRECT_ANSWERS_TOO_MUCH":["messages.sendMedia"],"QUIZ_MULTIPLE_INVALID":["messages.sendMedia"],"RANDOM_ID_EMPTY":["messages.sendMultiMedia"],"RANDOM_ID_INVALID":["messages.forwardMessages"],"RANDOM_LENGTH_INVALID":["messages.getDhConfig"],"RANGES_INVALID":["updates.getChannelDifference"],"REACTION_EMPTY":["messages.sendReaction"],"REACTION_INVALID":["messages.sendReaction"],"REPLY_MARKUP_BUY_EMPTY":["messages.sendMedia"],"REPLY_MARKUP_INVALID":["messages.editMessage","messages.sendMedia","messages.sendMessage","messages.setInlineBotResults"],"REPLY_MARKUP_TOO_LONG":["messages.sendMessage"],"RESET_REQUEST_MISSING":["account.declinePasswordReset"],"RESULT_ID_DUPLICATE":["messages.setInlineBotResults"],"RESULT_ID_EMPTY":["messages.sendInlineBotResult"],"RESULT_TYPE_INVALID":["messages.setInlineBotResults"],"RESULTS_TOO_MUCH":["messages.setInlineBotResults"],"REVOTE_NOT_ALLOWED":["messages.sendVote"],"RSA_DECRYPT_FAILED":["upload.getCdnFileHashes","upload.reuploadCdnFile"],"SCHEDULE_BOT_NOT_ALLOWED":["messages.sendMedia","messages.sendMessage"],"SCHEDULE_DATE_INVALID":["messages.editMessage","phone.createGroupCall"],"SCHEDULE_DATE_TOO_LATE":["messages.forwardMessages","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.sendMultiMedia"],"SCHEDULE_STATUS_PRIVATE":["messages.sendMessage"],"SCHEDULE_TOO_MUCH":["messages.forwardMessages","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.sendMultiMedia"],"SCORE_INVALID":["messages.setGameScore"],"SEARCH_QUERY_EMPTY":["contacts.search","messages.search","messages.searchGifs","messages.searchGlobal"],"SEARCH_WITH_LINK_NOT_SUPPROTED":["messages.getChatInviteImporters"],"SECONDS_INVALID":["channels.toggleSlowMode"],"SEND_AS_PEER_INVALID":["messages.forwardMessages","messages.sendMedia","messages.sendMessage"],"SEND_MESSAGE_MEDIA_INVALID":["messages.setInlineBotResults"],"SEND_MESSAGE_TYPE_INVALID":["messages.setInlineBotResults"],"SESSION_TOO_FRESH_%d":["channels.editCreator"],"SETTINGS_INVALID":["account.updateNotifySettings"],"SHA256_HASH_INVALID":["messages.getDocumentByHash"],"SHORT_NAME_INVALID":["stickers.checkShortName"],"SHORT_NAME_OCCUPIED":["stickers.checkShortName"],"SLOWMODE_MULTI_MSGS_DISABLED":["messages.forwardMessages"],"SMS_CODE_CREATE_FAILED":["auth.sendCode"],"SRP_ID_INVALID":["account.updatePasswordSettings","auth.checkPassword","channels.editCreator"],"SRP_PASSWORD_CHANGED":["account.updatePasswordSettings","auth.checkPassword"],"START_PARAM_EMPTY":["messages.startBot"],"START_PARAM_INVALID":["messages.setInlineBotResults","messages.startBot"],"START_PARAM_TOO_LONG":["messages.startBot"],"STICKER_DOCUMENT_INVALID":["messages.setInlineBotResults"],"STICKER_EMOJI_INVALID":["stickers.createStickerSet"],"STICKER_FILE_INVALID":["stickers.createStickerSet"],"STICKER_GIF_DIMENSIONS":["stickers.createStickerSet"],"STICKER_ID_INVALID":["messages.faveSticker","messages.saveRecentSticker"],"STICKER_INVALID":["stickers.changeStickerPosition","stickers.removeStickerFromSet"],"STICKER_PNG_DIMENSIONS":["stickers.createStickerSet"],"STICKER_PNG_NOPNG":["stickers.addStickerToSet","stickers.createStickerSet"],"STICKER_TGS_NODOC":["stickers.createStickerSet"],"STICKER_TGS_NOTGS":["stickers.addStickerToSet","stickers.createStickerSet"],"STICKER_THUMB_PNG_NOPNG":["stickers.createStickerSet","stickers.setStickerSetThumb"],"STICKER_THUMB_TGS_NOTGS":["stickers.createStickerSet","stickers.setStickerSetThumb"],"STICKER_VIDEO_BIG":["stickers.createStickerSet"],"STICKER_VIDEO_NOWEBM":["stickers.createStickerSet"],"STICKERPACK_STICKERS_TOO_MUCH":["stickers.addStickerToSet"],"STICKERS_EMPTY":["stickers.createStickerSet"],"STICKERS_TOO_MUCH":["stickers.addStickerToSet"],"STICKERSET_INVALID":["messages.getStickerSet","messages.installStickerSet","messages.uninstallStickerSet","stickers.addStickerToSet","stickers.setStickerSetThumb"],"TAKEOUT_REQUIRED":["contacts.getSaved"],"TEMP_AUTH_KEY_ALREADY_BOUND":["auth.bindTempAuthKey"],"TEMP_AUTH_KEY_EMPTY":["auth.bindTempAuthKey"],"THEME_FILE_INVALID":["account.uploadTheme"],"THEME_FORMAT_INVALID":["account.getTheme"],"THEME_INVALID":["account.getTheme","account.updateTheme"],"THEME_MIME_INVALID":["account.createTheme"],"TITLE_INVALID":["stickers.suggestShortName"],"TMP_PASSWORD_DISABLED":["account.getTmpPassword"],"TOKEN_INVALID":["account.registerDevice","account.unregisterDevice"],"TTL_DAYS_INVALID":["account.setAccountTTL"],"TTL_MEDIA_INVALID":["messages.sendMedia"],"TTL_PERIOD_INVALID":["messages.setHistoryTTL"],"TYPES_EMPTY":["contacts.getTopPeers"],"UNTIL_DATE_INVALID":["messages.editChatDefaultBannedRights"],"URL_INVALID":["messages.setBotCallbackAnswer","messages.setInlineBotResults"],"USAGE_LIMIT_INVALID":["messages.exportChatInvite"],"USER_ADMIN_INVALID":["channels.editBanned"],"USER_ALREADY_INVITED":["phone.inviteToGroupCall"],"USER_ALREADY_PARTICIPANT":["channels.joinChannel","messages.addChatUser","messages.importChatInvite"],"USER_BANNED_IN_CHANNEL":["channels.getChannels","channels.getMessages","channels.inviteToChannel","channels.leaveChannel","messages.editMessage","messages.forwardMessages","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.setTyping","messages.updatePinnedMessage","messages.uploadMedia","updates.getChannelDifference","users.getUsers"],"USER_BLOCKED":["channels.editAdmin","channels.inviteToChannel"],"USER_BOT":["channels.inviteToChannel"],"USER_BOT_INVALID":["bots.answerWebhookJSONQuery","bots.sendCustomRequest","messages.setInlineBotResults"],"USER_BOT_REQUIRED":["messages.getGameHighScores","messages.getInlineGameHighScores","messages.setGameScore","messages.setInlineGameScore"],"USER_CHANNELS_TOO_MUCH":["channels.inviteToChannel","channels.joinChannel","messages.importChatInvite"],"USER_CREATOR":["channels.editAdmin","channels.leaveChannel"],"USER_ID_INVALID":["auth.importAuthorization","channels.deleteUserHistory","channels.editAdmin","channels.editBanned","channels.editCreator","channels.getParticipant","channels.inviteToChannel","channels.reportSpam","messages.addChatUser","messages.deleteChatUser","messages.editChatAdmin","messages.getCommonChats","messages.requestEncryption","messages.search","phone.requestCall","photos.getUserPhotos","stickers.createStickerSet","users.getFullUser","users.setSecureValueErrors"],"USER_INVALID":["help.editUserInfo","help.getSupportName","help.getUserInfo"],"USER_IS_BLOCKED":["messages.addChatUser","messages.forwardMessages","messages.sendEncryptedService","messages.sendMedia","messages.sendMessage","messages.setTyping","msgs_ack","msgs_state_req","phone.requestCall"],"USER_IS_BOT":["messages.forwardMessages","messages.sendMedia","messages.sendMessage","messages.setTyping"],"USER_KICKED":["channels.inviteToChannel"],"USER_NOT_MUTUAL_CONTACT":["channels.editAdmin","channels.inviteToChannel","messages.addChatUser","messages.checkHistoryImportPeer"],"USER_NOT_PARTICIPANT":["channels.getParticipant","channels.leaveChannel","messages.deleteChatUser","messages.editChatAdmin"],"USER_VOLUME_INVALID":["phone.editGroupCallParticipant"],"USERNAME_INVALID":["account.checkUsername","account.updateUsername","channels.checkUsername","channels.updateUsername","contacts.resolveUsername","help.getConfig"],"USERNAME_NOT_MODIFIED":["account.updateUsername","channels.updateUsername"],"USERNAME_NOT_OCCUPIED":["contacts.resolveUsername"],"USERNAME_OCCUPIED":["account.updateUsername","channels.updateUsername"],"USERPIC_UPLOAD_REQUIRED":["contacts.getLocated"],"USERS_TOO_FEW":["messages.createChat"],"USERS_TOO_MUCH":["channels.editAdmin","channels.inviteToChannel","channels.joinChannel","messages.addChatUser","messages.importChatInvite"],"VIDEO_CONTENT_TYPE_INVALID":["messages.sendMedia"],"VIDEO_FILE_INVALID":["photos.uploadProfilePhoto"],"VIDEO_TITLE_EMPTY":["messages.setInlineBotResults"],"WALLPAPER_FILE_INVALID":["account.uploadWallPaper"],"WALLPAPER_INVALID":["account.getWallPaper","account.installWallPaper","account.saveWallPaper"],"WALLPAPER_MIME_INVALID":["account.uploadWallPaper"],"WC_CONVERT_URL_INVALID":["messages.getWebPage"],"WEBDOCUMENT_INVALID":["messages.setInlineBotResults"],"WEBDOCUMENT_MIME_INVALID":["messages.setInlineBotResults"],"WEBDOCUMENT_SIZE_TOO_BIG":["messages.setInlineBotResults"],"WEBDOCUMENT_URL_INVALID":["messages.setInlineBotResults"],"WEBPAGE_CURL_FAILED":["messages.sendInlineBotResult","messages.sendMedia","messages.uploadMedia"],"WEBPAGE_MEDIA_EMPTY":["messages.sendInlineBotResult","messages.sendMedia"],"WEBPUSH_AUTH_INVALID":["account.registerDevice"],"WEBPUSH_KEY_INVALID":["account.registerDevice"],"WEBPUSH_TOKEN_INVALID":["account.registerDevice"],"YOU_BLOCKED_USER":["messages.addChatUser","messages.forwardMessage","messages.forwardMessages","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.sendScreenshotNotification"]},"500":{"AUTH_RESTART":["auth.sendCode"],"CALL_OCCUPY_FAILED":["phone.acceptCall"],"CHAT_ID_GENERATE_FAILED":["messages.createChat"],"PARTICIPANT_CALL_FAILED":["phone.requestCall"],"PERSISTENT_TIMESTAMP_OUTDATED":["updates.getChannelDifference"],"RANDOM_ID_DUPLICATE":["messages.forwardMessages","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.sendMultiMedia","messages.startBot"],"SIGN_IN_FAILED":["auth.signIn"]},"403":{"BROADCAST_FORBIDDEN":["messages.getPollVotes"],"CHANNEL_PUBLIC_GROUP_NA":["channels.getFullChannel","channels.leaveChannel","updates.getChannelDifference"],"CHAT_ADMIN_INVITE_REQUIRED":["channels.editAdmin"],"CHAT_ADMIN_REQUIRED":["messages.editMessage","messages.migrateChat"],"CHAT_SEND_GAME_FORBIDDEN":["messages.forwardMessages","messages.sendInlineBotResult"],"CHAT_SEND_GIFS_FORBIDDEN":["messages.forwardMessages","messages.sendInlineBotResult","messages.sendMedia"],"CHAT_SEND_INLINE_FORBIDDEN":["messages.sendInlineBotResult"],"CHAT_SEND_MEDIA_FORBIDDEN":["messages.forwardMessages","messages.sendInlineBotResult","messages.sendMedia"],"CHAT_SEND_POLL_FORBIDDEN":["messages.forwardMessages","messages.sendMedia"],"CHAT_SEND_STICKERS_FORBIDDEN":["messages.forwardMessages","messages.sendInlineBotResult","messages.sendMedia"],"CHAT_WRITE_FORBIDDEN":["channels.deleteChannel","channels.deleteUserHistory","channels.editAdmin","channels.editBanned","channels.editCreator","channels.editPhoto","channels.editTitle","channels.getAdminLog","channels.inviteToChannel","channels.updateUsername","invokeWithLayer","messages.addChatUser","messages.editChatAbout","messages.editChatDefaultBannedRights","messages.editMessage","messages.exportChatInvite","messages.forwardMessages","messages.getAdminsWithInvites","messages.sendInlineBotResult","messages.sendMedia","messages.sendMessage","messages.sendMultiMedia","messages.setTyping","messages.updatePinnedMessage","messages.uploadMedia","updates.getChannelDifference","updates.getDifference"],"EDIT_BOT_INVITE_FORBIDDEN":["messages.editExportedChatInvite"],"GROUPCALL_FORBIDDEN":["messages.setTyping","phone.inviteToGroupCall"],"INLINE_BOT_REQUIRED":["messages.editMessage"],"MESSAGE_AUTHOR_REQUIRED":["messages.editMessage","messages.getMessageEditData"],"MESSAGE_DELETE_FORBIDDEN":["channels.deleteMessages","messages.deleteMessages"],"PARTICIPANT_JOIN_MISSING":["phone.joinGroupCallPresentation"],"POLL_VOTE_REQUIRED":["messages.getPollVotes"],"RIGHT_FORBIDDEN":["channels.editAdmin"],"SENSITIVE_CHANGE_FORBIDDEN":["account.setContentSettings"],"TAKEOUT_REQUIRED":["account.finishTakeoutSession","channels.getLeftChannels","contacts.getSaved"],"USER_BOT_INVALID":["bots.answerWebhookJSONQuery","bots.sendCustomRequest","messages.setInlineBotResults"],"USER_CHANNELS_TOO_MUCH":["channels.editAdmin","channels.inviteToChannel"],"USER_DELETED":["messages.sendEncryptedService"],"USER_INVALID":["help.getSupportName","help.getUserInfo"],"USER_IS_BLOCKED":["messages.forwardMessages","messages.sendEncrypted","messages.sendEncryptedService","messages.sendMedia","messages.sendMessage","messages.setTyping","phone.requestCall"],"USER_NOT_MUTUAL_CONTACT":["channels.editAdmin","channels.inviteToChannel","messages.addChatUser"],"USER_PRIVACY_RESTRICTED":["channels.editAdmin","channels.inviteToChannel","help.getConfig","messages.addChatUser","phone.requestCall"],"USER_RESTRICTED":["channels.createChannel","channels.editAdmin","messages.createChat"]},"406":{"CHANNEL_PRIVATE":["channels.getFullChannel","messages.checkChatInvite"],"CHANNEL_TOO_LARGE":["channels.deleteChannel"],"CHAT_FORWARDS_RESTRICTED":["messages.forwardMessages"],"FILEREF_UPGRADE_NEEDED":["upload.getFile"],"FRESH_CHANGE_ADMINS_FORBIDDEN":["channels.editAdmin"],"FRESH_CHANGE_PHONE_FORBIDDEN":["account.sendChangePhoneCode"],"FRESH_RESET_AUTHORISATION_FORBIDDEN":["account.resetAuthorization","account.setAuthorizationTTL","auth.resetAuthorizations"],"INVITE_HASH_EXPIRED":["channels.joinChannel","messages.checkChatInvite","messages.importChatInvite"],"PHONE_NUMBER_INVALID":["account.changePhone","account.sendChangePhoneCode","auth.cancelCode","auth.checkPhone","auth.resendCode","auth.sendCode","auth.signIn","auth.signUp"],"PHONE_PASSWORD_FLOOD":["auth.sendCode"],"PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN":["messages.initHistoryImport"],"SEND_CODE_UNAVAILABLE":["auth.resendCode"],"STICKERSET_INVALID":["messages.getStickerSet"],"STICKERSET_OWNER_ANONYMOUS":["channels.setStickers"],"USER_RESTRICTED":["channels.createChannel"],"USERPIC_PRIVACY_REQUIRED":["contacts.getLocated"],"USERPIC_UPLOAD_REQUIRED":["contacts.getLocated"]},"-500":{"Invalid msg_resend_req query":["msg_resend_req"],"Invalid msgs_ack query":["msgs_ack"],"Invalid msgs_state_req query":["msg_resend_req","msgs_state_req","req_pq_multi"]},"-503":{"Timeout":["messages.getBotCallbackAnswer","messages.getInlineBotResults"]}},"descriptions":{"2FA_CONFIRM_WAIT_%d":"Since 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 %d seconds.","ABOUT_TOO_LONG":"About string too long.","ACCESS_TOKEN_EXPIRED":"Access token expired.","ACCESS_TOKEN_INVALID":"Access token invalid.","ADMIN_ID_INVALID":"The specified admin ID is invalid.","ADMIN_RANK_EMOJI_NOT_ALLOWED":"An admin rank cannot contain emojis.","ADMIN_RANK_INVALID":"The specified admin rank is invalid.","ADMINS_TOO_MUCH":"There are too many admins.","ALBUM_PHOTOS_TOO_MANY":"","API_ID_INVALID":"API ID invalid.","API_ID_PUBLISHED_FLOOD":"This API id was published somewhere, you can't use it now.","ARTICLE_TITLE_EMPTY":"The title of the article is empty.","AUDIO_CONTENT_URL_EMPTY":"The remote URL specified in the content field is empty.","AUDIO_TITLE_EMPTY":"An empty audio title was provided.","AUTH_BYTES_INVALID":"The provided authorization is invalid.","AUTH_RESTART":"Restart the authorization process.","AUTH_TOKEN_ALREADY_ACCEPTED":"The specified auth token was already accepted.","AUTH_TOKEN_EXPIRED":"The authorization token has expired.","AUTH_TOKEN_INVALID":"The specified auth token is invalid.","AUTH_TOKEN_INVALIDX":"The specified auth token is invalid.","AUTOARCHIVE_NOT_AVAILABLE":"The autoarchive setting is not available at this time: please check the value of the [autoarchive_setting_available field in client config »](https:\/\/core.telegram.org\/api\/config#client-configuration) before calling this method.","BANK_CARD_NUMBER_INVALID":"The specified card number is invalid.","BANNED_RIGHTS_INVALID":"You provided some invalid flags in the banned rights.","BOT_CHANNELS_NA":"Bots can't edit admin privileges.","BOT_COMMAND_DESCRIPTION_INVALID":"The specified command description is invalid.","BOT_COMMAND_INVALID":"The specified command is invalid.","BOT_DOMAIN_INVALID":"Bot domain invalid.","BOT_GROUPS_BLOCKED":"This bot can't be added to groups.","BOT_INLINE_DISABLED":"This bot can't be used in inline mode.","BOT_INVALID":"This is not a valid bot.","BOT_MISSING":"This method can only be run by a bot.","BOT_ONESIDE_NOT_AVAIL":"Bots can't pin messages in PM just for themselves.","BOT_PAYMENTS_DISABLED":"Please enable bot payments in botfather before calling this method.","BOT_POLLS_DISABLED":"","BOT_RESPONSE_TIMEOUT":"A timeout occurred while fetching data from the bot.","BOT_SCORE_NOT_MODIFIED":"The score wasn't modified.","BOTS_TOO_MUCH":"There are too many bots in this chat\/channel.","BROADCAST_FORBIDDEN":"Participants of polls in channels should stay anonymous.","BROADCAST_ID_INVALID":"Broadcast ID invalid.","BROADCAST_PUBLIC_VOTERS_FORBIDDEN":"You can't forward polls with public voters.","BROADCAST_REQUIRED":"This method can only be called on a channel, please use stats.getMegagroupStats for supergroups.","BUTTON_DATA_INVALID":"The data of one or more of the buttons you provided is invalid.","BUTTON_TYPE_INVALID":"The type of one or more of the buttons you provided is invalid.","BUTTON_URL_INVALID":"Button URL invalid.","CALL_ALREADY_ACCEPTED":"The call was already accepted.","CALL_ALREADY_DECLINED":"The call was already declined.","CALL_OCCUPY_FAILED":"The call failed because the user is already making another call.","CALL_PEER_INVALID":"The provided call peer object is invalid.","CALL_PROTOCOL_FLAGS_INVALID":"Call protocol flags invalid.","CDN_METHOD_INVALID":"You can't call this method in a CDN DC.","CHANNEL_INVALID":"The provided channel is invalid.","CHANNEL_PRIVATE":"You haven't joined this channel\/supergroup.","CHANNEL_PUBLIC_GROUP_NA":"channel\/supergroup not available.","CHANNEL_TOO_LARGE":"Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change).","CHANNELS_ADMIN_LOCATED_TOO_MUCH":"The user has reached the limit of public geogroups.","CHANNELS_ADMIN_PUBLIC_TOO_MUCH":"You're admin of too many public channels, make some channels private to change the username of this channel.","CHANNELS_TOO_MUCH":"You have joined too many channels\/supergroups.","CHAT_ABOUT_NOT_MODIFIED":"About text has not changed.","CHAT_ABOUT_TOO_LONG":"Chat about too long.","CHAT_ADMIN_INVITE_REQUIRED":"You do not have the rights to do this.","CHAT_ADMIN_REQUIRED":"You must be an admin in this chat to do this.","CHAT_FORWARDS_RESTRICTED":"You can't forward messages from a protected chat.","CHAT_ID_EMPTY":"The provided chat ID is empty.","CHAT_ID_GENERATE_FAILED":"Failure while generating the chat ID.","CHAT_ID_INVALID":"The provided chat id is invalid.","CHAT_INVALID":"Invalid chat.","CHAT_LINK_EXISTS":"The chat is public, you can't hide the history to new users.","CHAT_NOT_MODIFIED":"The pinned message wasn't modified.","CHAT_RESTRICTED":"You can't send messages in this chat, you were restricted.","CHAT_SEND_GAME_FORBIDDEN":"You can't send a game to this chat.","CHAT_SEND_GIFS_FORBIDDEN":"You can't send gifs in this chat.","CHAT_SEND_INLINE_FORBIDDEN":"You can't send inline messages in this group.","CHAT_SEND_MEDIA_FORBIDDEN":"You can't send media in this chat.","CHAT_SEND_POLL_FORBIDDEN":"You can't send polls in this chat.","CHAT_SEND_STICKERS_FORBIDDEN":"You can't send stickers in this chat.","CHAT_TITLE_EMPTY":"No chat title provided.","CHAT_TOO_BIG":"This method is not available for groups with more than `chat_read_mark_size_threshold` members, [see client configuration »](https:\/\/core.telegram.org\/api\/config#client-configuration).","CHAT_WRITE_FORBIDDEN":"You can't write in this chat.","CODE_EMPTY":"The provided code is empty.","CODE_HASH_INVALID":"Code hash invalid.","CODE_INVALID":"Code invalid.","CONNECTION_API_ID_INVALID":"The provided API id is invalid.","CONNECTION_APP_VERSION_EMPTY":"App version is empty.","CONNECTION_LAYER_INVALID":"Layer invalid.","CONTACT_ADD_MISSING":"Contact to add is missing.","CONTACT_ID_INVALID":"The provided contact ID is invalid.","CONTACT_NAME_EMPTY":"Contact name empty.","CONTACT_REQ_MISSING":"Missing contact request.","CURRENCY_TOTAL_AMOUNT_INVALID":"The total amount of all prices is invalid.","DATA_INVALID":"Encrypted data invalid.","DATA_JSON_INVALID":"The provided JSON data is invalid.","DATA_TOO_LONG":"Data too long.","DATE_EMPTY":"Date empty.","DC_ID_INVALID":"The provided DC ID is invalid.","DH_G_A_INVALID":"g_a invalid.","DOCUMENT_INVALID":"The specified document is invalid.","EDIT_BOT_INVITE_FORBIDDEN":"","EMAIL_HASH_EXPIRED":"Email hash expired.","EMAIL_INVALID":"The specified email is invalid.","EMAIL_UNCONFIRMED":"Email unconfirmed.","EMAIL_UNCONFIRMED_%d":"The provided email isn't confirmed, %d is the length of the verification code that was just sent to the email: use [account.verifyEmail](https:\/\/core.telegram.org\/method\/account.verifyEmail) to enter the received verification code and enable the recovery email.","EMAIL_VERIFY_EXPIRED":"The verification email has expired.","EMOJI_INVALID":"The specified theme emoji is valid.","EMOJI_NOT_MODIFIED":"The theme wasn't changed.","EMOTICON_EMPTY":"The emoji is empty.","EMOTICON_INVALID":"The specified emoji is invalid.","EMOTICON_STICKERPACK_MISSING":"","ENCRYPTED_MESSAGE_INVALID":"Encrypted message invalid.","ENCRYPTION_ALREADY_ACCEPTED":"Secret chat already accepted.","ENCRYPTION_ALREADY_DECLINED":"The secret chat was already declined.","ENCRYPTION_DECLINED":"The secret chat was declined.","ENCRYPTION_ID_INVALID":"The provided secret chat ID is invalid.","ENTITIES_TOO_LONG":"You provided too many styled message entities.","ENTITY_MENTION_USER_INVALID":"You mentioned an invalid user.","ERROR_TEXT_EMPTY":"The provided error message is empty.","EXPIRE_DATE_INVALID":"The specified expiration date is invalid.","EXPORT_CARD_INVALID":"Provided card is invalid.","EXTERNAL_URL_INVALID":"External URL invalid.","FILE_CONTENT_TYPE_INVALID":"File content-type is invalid.","FILE_EMTPY":"An empty file was provided.","FILE_ID_INVALID":"The provided file id is invalid.","FILE_PART_EMPTY":"The provided file part is empty.","FILE_PART_INVALID":"The file part number is invalid.","FILE_PART_LENGTH_INVALID":"The length of a file part is invalid.","FILE_PART_SIZE_CHANGED":"Provided file part size has changed.","FILE_PART_SIZE_INVALID":"The provided file part size is invalid.","FILE_PART_TOO_BIG":"The uploaded file part is too big.","FILE_PARTS_INVALID":"The number of file parts is invalid.","FILE_REFERENCE_*":"The file reference expired, it [must be refreshed](https:\/\/core.telegram.org\/api\/file_reference).","FILE_REFERENCE_EMPTY":"An empty [file reference](https:\/\/core.telegram.org\/api\/file_reference) was specified.","FILE_REFERENCE_EXPIRED":"File reference expired, it must be refetched as described in [the documentation](https:\/\/core.telegram.org\/api\/file_reference).","FILE_REFERENCE_INVALID":"The specified [file reference](https:\/\/core.telegram.org\/api\/file_reference) is invalid.","FILE_TITLE_EMPTY":"An empty file title was specified.","FILEREF_UPGRADE_NEEDED":"The client has to be updated in order to support [file references](https:\/\/core.telegram.org\/api\/file_reference).","FILTER_ID_INVALID":"The specified filter ID is invalid.","FILTER_INCLUDE_EMPTY":"The include_peers vector of the filter is empty.","FILTER_NOT_SUPPORTED":"The specified filter cannot be used in this context.","FILTER_TITLE_EMPTY":"The title field of the filter is empty.","FIRSTNAME_INVALID":"The first name is invalid.","FOLDER_ID_EMPTY":"An empty folder ID was specified.","FOLDER_ID_INVALID":"Invalid folder ID.","FRESH_CHANGE_ADMINS_FORBIDDEN":"You were just elected admin, you can't add or modify other admins yet.","FRESH_CHANGE_PHONE_FORBIDDEN":"You can't change phone number right after logging in, please wait at least 24 hours.","FRESH_RESET_AUTHORISATION_FORBIDDEN":"You can't logout other sessions if less than 24 hours have passed since you logged on the current session.","FROM_MESSAGE_BOT_DISABLED":"Bots can't use fromMessage min constructors.","FROM_PEER_INVALID":"The specified from_id is invalid.","GAME_BOT_INVALID":"Bots can't send another bot's game.","GEO_POINT_INVALID":"Invalid geoposition provided.","GIF_CONTENT_TYPE_INVALID":"GIF content-type invalid.","GIF_ID_INVALID":"The provided GIF ID is invalid.","GRAPH_EXPIRED_RELOAD":"This graph has expired, please obtain a new graph token.","GRAPH_INVALID_RELOAD":"Invalid graph token provided, please reload the stats and provide the updated token.","GRAPH_OUTDATED_RELOAD":"The graph is outdated, please get a new async token using stats.getBroadcastStats.","GROUPCALL_ALREADY_DISCARDED":"The group call was already discarded.","GROUPCALL_FORBIDDEN":"The group call has already ended.","GROUPCALL_INVALID":"The specified group call is invalid.","GROUPCALL_NOT_MODIFIED":"Group call settings weren't modified.","GROUPCALL_SSRC_DUPLICATE_MUCH":"The app needs to retry joining the group call with a new SSRC value.","GROUPED_MEDIA_INVALID":"Invalid grouped media.","HASH_INVALID":"The provided hash is invalid.","IMAGE_PROCESS_FAILED":"Failure while processing image.","IMPORT_FILE_INVALID":"The specified chat export file is invalid.","IMPORT_FORMAT_UNRECOGNIZED":"The specified chat export file was exported from an unsupported chat app.","IMPORT_ID_INVALID":"The specified import ID is invalid.","INLINE_BOT_REQUIRED":"Only the inline bot can edit message.","INLINE_RESULT_EXPIRED":"The inline query expired.","INPUT_FILTER_INVALID":"The specified filter is invalid.","INPUT_USER_DEACTIVATED":"The specified user was deleted.","Invalid msg_resend_req query":"Invalid msg_resend_req query.","Invalid msgs_ack query":"Invalid msgs_ack query.","Invalid msgs_state_req query":"Invalid msgs_state_req query.","INVITE_FORBIDDEN_WITH_JOINAS":"","INVITE_HASH_EMPTY":"The invite hash is empty.","INVITE_HASH_EXPIRED":"The invite link has expired.","INVITE_HASH_INVALID":"The invite hash is invalid.","INVITE_REQUEST_SENT":"You have successfully requested to join this chat or channel.","INVITE_REVOKED_MISSING":"The specified invite link was already revoked or is invalid.","LANG_CODE_INVALID":"The specified language code is invalid.","LANG_PACK_INVALID":"The provided language pack is invalid.","LASTNAME_INVALID":"The last name is invalid.","LIMIT_INVALID":"The provided limit is invalid.","LINK_NOT_MODIFIED":"Discussion link not modified.","LOCATION_INVALID":"The provided location is invalid.","MAX_ID_INVALID":"The provided max ID is invalid.","MAX_QTS_INVALID":"The specified max_qts is invalid.","MD5_CHECKSUM_INVALID":"The MD5 checksums do not match.","MEDIA_CAPTION_TOO_LONG":"The caption is too long.","MEDIA_EMPTY":"The provided media object is invalid.","MEDIA_GROUPED_INVALID":"You tried to send media of different types in an album.","MEDIA_INVALID":"Media invalid.","MEDIA_NEW_INVALID":"The new media is invalid.","MEDIA_PREV_INVALID":"Previous media invalid.","MEGAGROUP_ID_INVALID":"Invalid supergroup ID.","MEGAGROUP_PREHISTORY_HIDDEN":"Group with hidden history for new members can't be set as discussion groups.","MEGAGROUP_REQUIRED":"You can only use this method on a supergroup.","MESSAGE_AUTHOR_REQUIRED":"Message author required.","MESSAGE_DELETE_FORBIDDEN":"You can't delete one of the messages you tried to delete, most likely because it is a service message.","MESSAGE_EDIT_TIME_EXPIRED":"You can't edit this message anymore, too much time has passed since its creation.","MESSAGE_EMPTY":"The provided message is empty.","MESSAGE_ID_INVALID":"The provided message id is invalid.","MESSAGE_IDS_EMPTY":"No message ids were provided.","MESSAGE_NOT_MODIFIED":"The message text has not changed.","MESSAGE_POLL_CLOSED":"Poll closed.","MESSAGE_TOO_LONG":"The provided message is too long.","METHOD_INVALID":"The specified method is invalid.","MSG_ID_INVALID":"Invalid message ID provided.","MSG_WAIT_FAILED":"A waiting call returned an error.","MULTI_MEDIA_TOO_LONG":"Too many media files for album.","NEW_SALT_INVALID":"The new salt is invalid.","NEW_SETTINGS_INVALID":"The new password settings are invalid.","NEXT_OFFSET_INVALID":"The specified offset is longer than 64 bytes.","OFFSET_INVALID":"The provided offset is invalid.","OFFSET_PEER_ID_INVALID":"The provided offset peer is invalid.","OPTION_INVALID":"Invalid option selected.","OPTIONS_TOO_MUCH":"Too many options provided.","PACK_SHORT_NAME_INVALID":"Short pack name invalid.","PACK_SHORT_NAME_OCCUPIED":"A stickerpack with this name already exists.","PACK_TITLE_INVALID":"The stickerpack title is invalid.","PARTICIPANT_CALL_FAILED":"Failure while making call.","PARTICIPANT_ID_INVALID":"The specified participant ID is invalid.","PARTICIPANT_JOIN_MISSING":"Trying to enable a presentation, when the user hasn't joined the Video Chat with [phone.joinGroupCall](\/method\/phone.joinGroupCall).","PARTICIPANT_VERSION_OUTDATED":"The other participant does not use an up to date telegram client with support for calls.","PARTICIPANTS_TOO_FEW":"Not enough participants.","PASSWORD_EMPTY":"The provided password is empty.","PASSWORD_HASH_INVALID":"The provided password hash is invalid.","PASSWORD_MISSING":"You must enable 2FA in order to transfer ownership of a channel.","PASSWORD_RECOVERY_EXPIRED":"The recovery code has expired.","PASSWORD_RECOVERY_NA":"No email was set, can't recover password via email.","PASSWORD_REQUIRED":"A [2FA password](https:\/\/core.telegram.org\/api\/srp) must be configured to use Telegram Passport.","PASSWORD_TOO_FRESH_%d":"The password was modified less than 24 hours ago, try again in %d seconds.","PAYMENT_PROVIDER_INVALID":"The specified payment provider is invalid.","PEER_ID_INVALID":"The provided peer id is invalid.","PEER_ID_NOT_SUPPORTED":"The provided peer ID is not supported.","PERSISTENT_TIMESTAMP_EMPTY":"Persistent timestamp empty.","PERSISTENT_TIMESTAMP_INVALID":"Persistent timestamp invalid.","PERSISTENT_TIMESTAMP_OUTDATED":"Channel internal replication issues, try again later (treat this like an RPC_CALL_FAIL).","PHONE_CODE_EMPTY":"phone_code is missing.","PHONE_CODE_EXPIRED":"The phone code you provided has expired.","PHONE_CODE_HASH_EMPTY":"phone_code_hash is missing.","PHONE_CODE_INVALID":"The provided phone code is invalid.","PHONE_NUMBER_APP_SIGNUP_FORBIDDEN":"You can't sign up using this app.","PHONE_NUMBER_BANNED":"The provided phone number is banned from telegram.","PHONE_NUMBER_FLOOD":"You asked for the code too many times.","PHONE_NUMBER_INVALID":"The phone number is invalid.","PHONE_NUMBER_OCCUPIED":"The phone number is already in use.","PHONE_NUMBER_UNOCCUPIED":"The phone number is not yet being used.","PHONE_PASSWORD_FLOOD":"You have tried logging in too many times.","PHONE_PASSWORD_PROTECTED":"This phone is password protected.","PHOTO_CONTENT_TYPE_INVALID":"Photo mime-type invalid.","PHOTO_CONTENT_URL_EMPTY":"Photo URL invalid.","PHOTO_CROP_FILE_MISSING":"Photo crop file missing.","PHOTO_CROP_SIZE_SMALL":"Photo is too small.","PHOTO_EXT_INVALID":"The extension of the photo is invalid.","PHOTO_FILE_MISSING":"Profile photo file missing.","PHOTO_ID_INVALID":"Photo ID invalid.","PHOTO_INVALID":"Photo invalid.","PHOTO_INVALID_DIMENSIONS":"The photo dimensions are invalid.","PHOTO_SAVE_FILE_INVALID":"Internal issues, try again later.","PHOTO_THUMB_URL_EMPTY":"Photo thumbnail URL is empty.","PIN_RESTRICTED":"You can't pin messages.","PINNED_DIALOGS_TOO_MUCH":"Too many pinned dialogs.","POLL_ANSWER_INVALID":"One of the poll answers is not acceptable.","POLL_ANSWERS_INVALID":"Invalid poll answers were provided.","POLL_OPTION_DUPLICATE":"Duplicate poll options provided.","POLL_OPTION_INVALID":"Invalid poll option provided.","POLL_QUESTION_INVALID":"One of the poll questions is not acceptable.","POLL_VOTE_REQUIRED":"Cast a vote in the poll before calling this method.","PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN":"Import for this chat is already in progress, wait %d minutes before starting a new one.","PRIVACY_KEY_INVALID":"The privacy key is invalid.","PRIVACY_TOO_LONG":"Too many privacy rules were specified, the current limit is 1000.","PRIVACY_VALUE_INVALID":"The specified privacy rule combination is invalid.","PUBLIC_KEY_REQUIRED":"A public key is required.","QUERY_ID_EMPTY":"The query ID is empty.","QUERY_ID_INVALID":"The query ID is invalid.","QUERY_TOO_SHORT":"The query string is too short.","QUIZ_ANSWER_MISSING":"","QUIZ_CORRECT_ANSWER_INVALID":"An invalid value was provided to the correct_answers field.","QUIZ_CORRECT_ANSWERS_EMPTY":"No correct quiz answer was specified.","QUIZ_CORRECT_ANSWERS_TOO_MUCH":"You specified too many correct answers in a quiz, quizes can only have one right answer!","QUIZ_MULTIPLE_INVALID":"Quizes can't have the multiple_choice flag set!","RANDOM_ID_DUPLICATE":"You provided a random ID that was already used.","RANDOM_ID_EMPTY":"Random ID empty.","RANDOM_ID_INVALID":"A provided random ID is invalid.","RANDOM_LENGTH_INVALID":"Random length invalid.","RANGES_INVALID":"Invalid range provided.","REACTION_EMPTY":"Empty reaction provided.","REACTION_INVALID":"The specified reaction is invalid.","REPLY_MARKUP_BUY_EMPTY":"Reply markup for buy button empty.","REPLY_MARKUP_INVALID":"The provided reply markup is invalid.","REPLY_MARKUP_TOO_LONG":"The specified reply_markup is too long.","RESET_REQUEST_MISSING":"No password reset is in progress.","RESULT_ID_DUPLICATE":"You provided a duplicate result ID.","RESULT_ID_EMPTY":"Result ID empty.","RESULT_TYPE_INVALID":"Result type invalid.","RESULTS_TOO_MUCH":"Too many results were provided.","REVOTE_NOT_ALLOWED":"You cannot change your vote.","RIGHT_FORBIDDEN":"Your admin rights do not allow you to do this.","RSA_DECRYPT_FAILED":"Internal RSA decryption failed.","SCHEDULE_BOT_NOT_ALLOWED":"Bots cannot schedule messages.","SCHEDULE_DATE_INVALID":"Invalid schedule date provided.","SCHEDULE_DATE_TOO_LATE":"You can't schedule a message this far in the future.","SCHEDULE_STATUS_PRIVATE":"Can't schedule until user is online, if the user's last seen timestamp is hidden by their privacy settings.","SCHEDULE_TOO_MUCH":"There are too many scheduled messages.","SCORE_INVALID":"The specified game score is invalid.","SEARCH_QUERY_EMPTY":"The search query is empty.","SEARCH_WITH_LINK_NOT_SUPPROTED":"You cannot provide a search query and an invite link at the same time.","SECONDS_INVALID":"Invalid duration provided.","SEND_AS_PEER_INVALID":"You can't send messages as the specified peer.","SEND_CODE_UNAVAILABLE":"Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend).","SEND_MESSAGE_MEDIA_INVALID":"Invalid media provided.","SEND_MESSAGE_TYPE_INVALID":"The message type is invalid.","SENSITIVE_CHANGE_FORBIDDEN":"You can't change your sensitive content settings.","SESSION_PASSWORD_NEEDED":"2FA is enabled, use a password to login.","SESSION_TOO_FRESH_%d":"This session was created less than 24 hours ago, try again in %d seconds.","SETTINGS_INVALID":"Invalid settings were provided.","SHA256_HASH_INVALID":"The provided SHA256 hash is invalid.","SHORT_NAME_INVALID":"The specified short name is invalid.","SHORT_NAME_OCCUPIED":"The specified short name is already in use.","SIGN_IN_FAILED":"Failure while signing in.","SLOWMODE_MULTI_MSGS_DISABLED":"Slowmode is enabled, you cannot forward multiple messages to this group.","SLOWMODE_WAIT_%d":"Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.","SMS_CODE_CREATE_FAILED":"An error occurred while creating the SMS code.","SRP_ID_INVALID":"Invalid SRP ID provided.","SRP_PASSWORD_CHANGED":"Password has changed.","START_PARAM_EMPTY":"The start parameter is empty.","START_PARAM_INVALID":"Start parameter invalid.","START_PARAM_TOO_LONG":"Start parameter is too long.","STICKER_DOCUMENT_INVALID":"The specified sticker document is invalid.","STICKER_EMOJI_INVALID":"Sticker emoji invalid.","STICKER_FILE_INVALID":"Sticker file invalid.","STICKER_GIF_DIMENSIONS":"The specified video sticker has invalid dimensions.","STICKER_ID_INVALID":"The provided sticker ID is invalid.","STICKER_INVALID":"The provided sticker is invalid.","STICKER_PNG_DIMENSIONS":"Sticker png dimensions invalid.","STICKER_PNG_NOPNG":"One of the specified stickers is not a valid PNG file.","STICKER_TGS_NODOC":"Incorrect document type for sticker.","STICKER_TGS_NOTGS":"Invalid TGS sticker provided.","STICKER_THUMB_PNG_NOPNG":"Incorrect stickerset thumb file provided, PNG \/ WEBP expected.","STICKER_THUMB_TGS_NOTGS":"Incorrect stickerset TGS thumb file provided.","STICKER_VIDEO_BIG":"The specified video sticker is too big.","STICKER_VIDEO_NOWEBM":"The specified video sticker is not in webm format.","STICKERPACK_STICKERS_TOO_MUCH":"There are too many stickers in this stickerpack, you can't add any more.","STICKERS_EMPTY":"No sticker provided.","STICKERS_TOO_MUCH":"There are too many stickers in this stickerpack, you can't add any more.","STICKERSET_INVALID":"The provided sticker set is invalid.","STICKERSET_OWNER_ANONYMOUS":"Provided stickerset can't be installed as group stickerset to prevent admin deanonymisation.","TAKEOUT_INIT_DELAY_%d":"Wait %d seconds before initing takeout.","TAKEOUT_REQUIRED":"A takeout session has to be initialized, first.","TEMP_AUTH_KEY_ALREADY_BOUND":"The passed temporary key is already bound to another **perm_auth_key_id**.","TEMP_AUTH_KEY_EMPTY":"No temporary auth key provided.","THEME_FILE_INVALID":"Invalid theme file provided.","THEME_FORMAT_INVALID":"Invalid theme format provided.","THEME_INVALID":"Invalid theme provided.","THEME_MIME_INVALID":"The theme's MIME type is invalid.","Timeout":"Timeout while fetching data.","TITLE_INVALID":"The specified stickerpack title is invalid.","TMP_PASSWORD_DISABLED":"The temporary password is disabled.","TOKEN_INVALID":"The provided token is invalid.","TTL_DAYS_INVALID":"The provided TTL is invalid.","TTL_MEDIA_INVALID":"Invalid media Time To Live was provided.","TTL_PERIOD_INVALID":"The specified TTL period is invalid.","TYPES_EMPTY":"No top peer type was provided.","UNTIL_DATE_INVALID":"Invalid until date provided.","URL_INVALID":"Invalid URL provided.","USAGE_LIMIT_INVALID":"The specified usage limit is invalid.","USER_ADMIN_INVALID":"You're not an admin.","USER_ALREADY_INVITED":"You have already invited this user.","USER_ALREADY_PARTICIPANT":"The user is already in the group.","USER_BANNED_IN_CHANNEL":"You're banned from sending messages in supergroups\/channels.","USER_BLOCKED":"User blocked.","USER_BOT":"Bots can only be admins in channels.","USER_BOT_INVALID":"This method can only be called by a bot.","USER_BOT_REQUIRED":"This method can only be called by a bot.","USER_CHANNELS_TOO_MUCH":"One of the users you tried to add is already in too many channels\/supergroups.","USER_CREATOR":"You can't leave this channel, because you're its creator.","USER_DELETED":"You can't send this secret message because the other participant deleted their account.","USER_ID_INVALID":"The provided user ID is invalid.","USER_INVALID":"Invalid user provided.","USER_IS_BLOCKED":"You were blocked by this user.","USER_IS_BOT":"Bots can't send messages to other bots.","USER_KICKED":"This user was kicked from this supergroup\/channel.","USER_NOT_MUTUAL_CONTACT":"The provided user is not a mutual contact.","USER_NOT_PARTICIPANT":"You're not a member of this supergroup\/channel.","USER_PRIVACY_RESTRICTED":"The user's privacy settings do not allow you to do this.","USER_RESTRICTED":"You're spamreported, you can't create channels or chats.","USER_VOLUME_INVALID":"The specified user volume is invalid.","USERNAME_INVALID":"The provided username is not valid.","USERNAME_NOT_MODIFIED":"The username was not modified.","USERNAME_NOT_OCCUPIED":"The provided username is not occupied.","USERNAME_OCCUPIED":"The provided username is already occupied.","USERPIC_PRIVACY_REQUIRED":"You need to disable privacy settings for your profile picture in order to make your geolocation public.","USERPIC_UPLOAD_REQUIRED":"You must have a profile picture to publish your geolocation.","USERS_TOO_FEW":"Not enough users (to create a chat, for example).","USERS_TOO_MUCH":"The maximum number of users has been exceeded (to create a chat, for example).","VIDEO_CONTENT_TYPE_INVALID":"The video's content type is invalid.","VIDEO_FILE_INVALID":"The specified video file is invalid.","VIDEO_TITLE_EMPTY":"The specified video title is empty.","WALLPAPER_FILE_INVALID":"The specified wallpaper file is invalid.","WALLPAPER_INVALID":"The specified wallpaper is invalid.","WALLPAPER_MIME_INVALID":"The specified wallpaper MIME type is invalid.","WC_CONVERT_URL_INVALID":"WC convert URL invalid.","WEBDOCUMENT_INVALID":"Invalid webdocument URL provided.","WEBDOCUMENT_MIME_INVALID":"Invalid webdocument mime type provided.","WEBDOCUMENT_SIZE_TOO_BIG":"Webdocument is too big!","WEBDOCUMENT_URL_INVALID":"The specified webdocument URL is invalid.","WEBPAGE_CURL_FAILED":"Failure while fetching the webpage with cURL.","WEBPAGE_MEDIA_EMPTY":"Webpage media empty.","WEBPUSH_AUTH_INVALID":"The specified web push authentication secret is invalid.","WEBPUSH_KEY_INVALID":"The specified web push elliptic curve Diffie-Hellman public key is invalid.","WEBPUSH_TOKEN_INVALID":"The specified web push token is invalid.","YOU_BLOCKED_USER":"You blocked this user.","FLOOD_WAIT_%d":"Please wait %d seconds before repeating the action."},"user_only":["account.acceptAuthorization","account.cancelPasswordEmail","account.changeAuthorizationSettings","account.changePhone","account.checkUsername","account.confirmPasswordEmail","account.confirmPhone","account.createTheme","account.declinePasswordReset","account.deleteAccount","account.deleteSecureValue","account.finishTakeoutSession","account.getAccountTTL","account.getAllSecureValues","account.getAuthorizationForm","account.getAuthorizations","account.getAutoDownloadSettings","account.getChatThemes","account.getContactSignUpNotification","account.getContentSettings","account.getGlobalPrivacySettings","account.getMultiWallPapers","account.getNotifyExceptions","account.getNotifySettings","account.getPassword","account.getPasswordSettings","account.getPrivacy","account.getSecureValue","account.getTheme","account.getThemes","account.getTmpPassword","account.getWallPaper","account.getWallPapers","account.getWebAuthorizations","account.initTakeoutSession","account.installTheme","account.installWallPaper","account.registerDevice","account.reportPeer","account.reportProfilePhoto","account.resendPasswordEmail","account.resetAuthorization","account.resetNotifySettings","account.resetPassword","account.resetWallPapers","account.resetWebAuthorization","account.resetWebAuthorizations","account.saveAutoDownloadSettings","account.saveSecureValue","account.saveTheme","account.saveWallPaper","account.sendChangePhoneCode","account.sendConfirmPhoneCode","account.sendVerifyEmailCode","account.sendVerifyPhoneCode","account.setAccountTTL","account.setAuthorizationTTL","account.setContactSignUpNotification","account.setContentSettings","account.setGlobalPrivacySettings","account.setPrivacy","account.unregisterDevice","account.updateDeviceLocked","account.updateNotifySettings","account.updatePasswordSettings","account.updateProfile","account.updateStatus","account.updateTheme","account.updateUsername","account.uploadTheme","account.uploadWallPaper","account.verifyEmail","account.verifyPhone","auth.acceptLoginToken","auth.cancelCode","auth.checkPassword","auth.checkRecoveryPassword","auth.exportLoginToken","auth.importLoginToken","auth.recoverPassword","auth.requestPasswordRecovery","auth.resendCode","auth.resetAuthorizations","auth.sendCode","auth.signIn","auth.signUp","channels.checkUsername","channels.convertToGigagroup","channels.createChannel","channels.deleteChannel","channels.deleteHistory","channels.deleteUserHistory","channels.editCreator","channels.editLocation","channels.exportMessageLink","channels.getAdminedPublicChannels","channels.getAdminLog","channels.getGroupsForDiscussion","channels.getInactiveChannels","channels.getLeftChannels","channels.getSponsoredMessages","channels.inviteToChannel","channels.joinChannel","channels.readHistory","channels.readMessageContents","channels.reportSpam","channels.setDiscussionGroup","channels.togglePreHistoryHidden","channels.toggleSignatures","channels.toggleSlowMode","channels.updateUsername","channels.viewSponsoredMessage","contacts.acceptContact","contacts.addContact","contacts.block","contacts.blockFromReplies","contacts.deleteByPhones","contacts.deleteContacts","contacts.getBlocked","contacts.getContactIDs","contacts.getContacts","contacts.getLocated","contacts.getSaved","contacts.getStatuses","contacts.getTopPeers","contacts.importContacts","contacts.resetSaved","contacts.resetTopPeerRating","contacts.search","contacts.toggleTopPeers","contacts.unblock","folders.deleteFolder","folders.editPeerFolders","help.acceptTermsOfService","help.dismissSuggestion","help.editUserInfo","help.getAppChangelog","help.getAppConfig","help.getAppUpdate","help.getCountriesList","help.getDeepLinkInfo","help.getInviteText","help.getNearestDc","help.getPassportConfig","help.getPromoData","help.getProxyData","help.getRecentMeUrls","help.getSupport","help.getSupportName","help.getTermsOfServiceUpdate","help.getUserInfo","help.hidePromoData","help.saveAppLog","langpack.getDifference","langpack.getLangPack","langpack.getLanguage","langpack.getLanguages","langpack.getStrings","messages.acceptEncryption","messages.acceptUrlAuth","messages.addChatUser","messages.checkChatInvite","messages.checkHistoryImport","messages.checkHistoryImportPeer","messages.clearAllDrafts","messages.clearRecentStickers","messages.createChat","messages.deleteChat","messages.deleteExportedChatInvite","messages.deleteHistory","messages.deletePhoneCallHistory","messages.deleteRevokedExportedChatInvites","messages.deleteScheduledMessages","messages.discardEncryption","messages.editChatAdmin","messages.faveSticker","messages.getAdminsWithInvites","messages.getAllChats","messages.getAllDrafts","messages.getAllStickers","messages.getArchivedStickers","messages.getAttachedStickers","messages.getAvailableReactions","messages.getBotCallbackAnswer","messages.getChatInviteImporters","messages.getCommonChats","messages.getDhConfig","messages.getDialogFilters","messages.getDialogs","messages.getDialogUnreadMarks","messages.getDiscussionMessage","messages.getEmojiKeywords","messages.getEmojiKeywordsDifference","messages.getEmojiKeywordsLanguages","messages.getEmojiURL","messages.getExportedChatInvite","messages.getExportedChatInvites","messages.getFavedStickers","messages.getFeaturedStickers","messages.getHistory","messages.getInlineBotResults","messages.getMaskStickers","messages.getMessageEditData","messages.getMessageReactionsList","messages.getMessageReadParticipants","messages.getMessagesViews","messages.getOldFeaturedStickers","messages.getOnlines","messages.getPeerDialogs","messages.getPeerSettings","messages.getPinnedDialogs","messages.getPollResults","messages.getPollVotes","messages.getRecentLocations","messages.getRecentStickers","messages.getReplies","messages.getSavedGifs","messages.getScheduledHistory","messages.getScheduledMessages","messages.getSearchCounters","messages.getSearchResultsCalendar","messages.getSearchResultsPositions","messages.getSplitRanges","messages.getStatsURL","messages.getStickers","messages.getSuggestedDialogFilters","messages.getUnreadMentions","messages.getWebPage","messages.getWebPagePreview","messages.hideAllChatJoinRequests","messages.hidePeerSettingsBar","messages.importChatInvite","messages.initHistoryImport","messages.installStickerSet","messages.markDialogUnread","messages.migrateChat","messages.readDiscussion","messages.readEncryptedHistory","messages.readFeaturedStickers","messages.readHistory","messages.readMentions","messages.readMessageContents","messages.receivedMessages","messages.receivedQueue","messages.reorderPinnedDialogs","messages.reorderStickerSets","messages.report","messages.reportEncryptedSpam","messages.reportSpam","messages.requestEncryption","messages.requestUrlAuth","messages.saveDefaultSendAs","messages.saveDraft","messages.saveGif","messages.saveRecentSticker","messages.search","messages.searchGifs","messages.searchGlobal","messages.searchStickerSets","messages.sendEncrypted","messages.sendEncryptedFile","messages.sendEncryptedService","messages.sendInlineBotResult","messages.sendReaction","messages.sendScheduledMessages","messages.sendScreenshotNotification","messages.sendVote","messages.setChatAvailableReactions","messages.setChatTheme","messages.setDefaultReaction","messages.setEncryptedTyping","messages.setHistoryTTL","messages.startBot","messages.startHistoryImport","messages.toggleDialogPin","messages.toggleNoForwards","messages.toggleStickerSets","messages.uninstallStickerSet","messages.updateDialogFilter","messages.updateDialogFiltersOrder","messages.uploadEncryptedFile","messages.uploadImportedMedia","msg_container","msgs_ack","payments.clearSavedInfo","payments.getBankCardData","payments.getPaymentForm","payments.getPaymentReceipt","payments.getSavedInfo","payments.sendPaymentForm","payments.validateRequestedInfo","phone.acceptCall","phone.checkGroupCall","phone.confirmCall","phone.createGroupCall","phone.discardCall","phone.discardGroupCall","phone.editGroupCallParticipant","phone.editGroupCallTitle","phone.exportGroupCallInvite","phone.getCallConfig","phone.getGroupCall","phone.getGroupCallJoinAs","phone.getGroupParticipants","phone.inviteToGroupCall","phone.joinGroupCall","phone.joinGroupCallPresentation","phone.leaveGroupCall","phone.leaveGroupCallPresentation","phone.receivedCall","phone.requestCall","phone.saveCallDebug","phone.saveDefaultGroupCallJoinAs","phone.sendSignalingData","phone.setCallRating","phone.startScheduledGroupCall","phone.toggleGroupCallRecord","phone.toggleGroupCallSettings","phone.toggleGroupCallStartSubscription","photos.deletePhotos","photos.updateProfilePhoto","photos.uploadProfilePhoto","stats.getBroadcastStats","stats.getMegagroupStats","stats.getMessagePublicForwards","stats.getMessageStats","stats.loadAsyncGraph","stickers.checkShortName","stickers.suggestShortName","upload.getCdnFile","upload.getWebFile"]} \ No newline at end of file diff --git a/data/web/blogfork.telegram.org/import-stickers.html b/data/web/blogfork.telegram.org/import-stickers.html new file mode 100644 index 0000000000..e145f7965d --- /dev/null +++ b/data/web/blogfork.telegram.org/import-stickers.html @@ -0,0 +1,162 @@ + + + + + Importing Stickers to Telegram + + + + + + + + + + + + + + + + +
+ +
+
+
+
+

Importing Stickers to Telegram

+ +

The easiest way to create stickers on Telegram is to simply upload them using the @stickers bot. This bot can help you upload new stickers, create sticker packs and get usage stats for your stickers and packs.

+

Telegram also offers a platform for developers of apps that help users make their own stickers. For example, apps that allow people to upload pictures of themselves and turn them into stickers.

+

Who is this for?

+

USE this:

+
    +
  • To help people make their own unique custom stickers.
  • +
  • To help people migrate their unique custom stickers they created from another platform.
  • +
+

DON'T use this:

+ +

In short, if a set of stickers is already available on Telegram – there's no need to import it!

+

Sticker Importing Apps

+

As of version 7.8, Telegram apps support a simple API for importing stickers.

+
+ +
+ +
+

WARNING: Each time a user imports stickers, a new sticker pack is created on Telegram. Do not use the importing feature to share stickers you made with other users. If you want to share your stickers, simply upload them using @stickers and share the link of your pack. For example, here's a link to install some Duck Stickers.

+
+

Importing SDKs

+

We have created libraries and sample apps for iOS and Android which you can use to implement importing stickers to Telegram from your app.

+

Sticker Formats

+

Telegram apps support two sticker types. Regardless of the type, each sticker must be associated with at least one emoji that expresses the emotion corresponding to the sticker.

+

Animated Stickers

+

Must be in TGS format, created using the Bodymovin-TG plugin for Adobe After Effects.

+
+

Note: Animated .WEBP is NOT currently supported, only static .WEBP is supported for static stickers. Animated stickers must be in .TGS format. You can also import .WEBM video stickers.

+
+

Max. size: 64 KB
Dimensions: 512x512 px
FPS: 30-60 FPS
Max. duration: 3 seconds

+
+

For full technical details on Telegram animated stickers, see this page.

+
+

Video Stickers

+

Must be in WEBM format with VP9 and alpha channel encoding (transparency is a temporary requirement).

+

Max. size: 256 KB
Max. dimensions: 512x512 px, at least one side of the image must be 512px.
FPS: 30
Max. duration: 3 seconds

+

Static Stickers

+

Must be in PNG or WEBP format with a transparent layer. All static stickers should use white stroke and shadow, exactly like in this example: StickerExample.psd

+

Max. size: 512 KB
Max. dimensions: 512x512 px, at least one side of the image must be 512px.

+
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/blogfork.telegram.org/js/bootstrap.min.js b/data/web/blogfork.telegram.org/js/bootstrap.min.js new file mode 100644 index 0000000000..ab0c4b1bf2 --- /dev/null +++ b/data/web/blogfork.telegram.org/js/bootstrap.min.js @@ -0,0 +1,11 @@ +/*! + * Bootstrap v3.2.0 (http://getbootstrap.com) + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ + +/*! + * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=cc2c54fe9eb3aea36d65) + * Config saved to config.json and https://gist.github.com/cc2c54fe9eb3aea36d65 + */ +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new o(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',o=function(e){t(e).on("click",i,this.close)};o.VERSION="3.2.0",o.prototype.close=function(e){function i(){n.detach().trigger("closed.bs.alert").remove()}var o=t(this),s=o.attr("data-target");s||(s=o.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));var n=t(s);e&&e.preventDefault(),n.length||(n=o.hasClass("alert")?o:o.parent()),n.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",i).emulateTransitionEnd(150):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.button"),n="object"==typeof e&&e;s||o.data("bs.button",s=new i(this,n)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.isLoading=!1};i.VERSION="3.2.0",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",o=this.$element,s=o.is("input")?"val":"html",n=o.data();e+="Text",null==n.resetText&&o.data("resetText",o[s]()),o[s](null==n[e]?this.options[e]:n[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var o=t(i.target);o.hasClass("btn")||(o=o.closest(".btn")),e.call(o,"toggle"),i.preventDefault()})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.carousel"),n=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e),r="string"==typeof e?e:n.slide;s||o.data("bs.carousel",s=new i(this,n)),"number"==typeof e?s.to(e):r?s[r]():n.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e).on("keydown.bs.carousel",t.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.2.0",i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},i.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.to=function(e){var i=this,o=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(e)}):o==e?this.pause().cycle():this.slide(e>o?"next":"prev",t(this.$items[e]))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,i){var o=this.$element.find(".item.active"),s=i||o[e](),n=this.interval,r="next"==e?"left":"right",a="next"==e?"first":"last",l=this;if(!s.length){if(!this.options.wrap)return;s=this.$element.find(".item")[a]()}if(s.hasClass("active"))return this.sliding=!1;var h=s[0],p=t.Event("slide.bs.carousel",{relatedTarget:h,direction:r});if(this.$element.trigger(p),!p.isDefaultPrevented()){if(this.sliding=!0,n&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=t(this.$indicators.children()[this.getItemIndex(s)]);c&&c.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:h,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),s[0].offsetWidth,o.addClass(r),s.addClass(r),o.one("bsTransitionEnd",function(){s.removeClass([e,r].join(" ")).addClass("active"),o.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(1e3*o.css("transition-duration").slice(0,-1))):(o.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(d)),n&&this.cycle(),this}};var o=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=o,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(i){var o,s=t(this),n=t(s.attr("data-target")||(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""));if(n.hasClass("carousel")){var r=t.extend({},n.data(),s.data()),a=s.attr("data-slide-to");a&&(r.interval=!1),e.call(n,r),a&&n.data("bs.carousel").to(a),i.preventDefault()}}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){e&&3===e.which||(t(s).remove(),t(n).each(function(){var o=i(t(this)),s={relatedTarget:this};o.hasClass("open")&&(o.trigger(e=t.Event("hide.bs.dropdown",s)),e.isDefaultPrevented()||o.removeClass("open").trigger("hidden.bs.dropdown",s))}))}function i(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var o=i&&t(i);return o&&o.length?o:e.parent()}function o(e){return this.each(function(){var i=t(this),o=i.data("bs.dropdown");o||i.data("bs.dropdown",o=new r(this)),"string"==typeof e&&o[e].call(i)})}var s=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.2.0",r.prototype.toggle=function(o){var s=t(this);if(!s.is(".disabled, :disabled")){var n=i(s),r=n.hasClass("open");if(e(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&t('