From 9e83df1629e0c4e2563a8dc8bf098f3b95ee8061 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 8 Mar 2019 13:49:23 +0100 Subject: [PATCH 1/2] Update docs --- .../constructors/account_wallPapers.md | 43 + .../account_wallPapersNotModified.md | 37 + docs/API_docs/constructors/channel.md | 13 +- ...lAdminLogEventActionDefaultBannedRights.md | 43 + .../channelAdminLogEventActionStopPoll.md | 42 + .../constructors/channelParticipantAdmin.md | 11 +- .../constructors/channelParticipantBanned.md | 8 +- .../channelParticipantsContacts.md | 42 + docs/API_docs/constructors/chat.md | 10 +- docs/API_docs/constructors/chatAdminRights.md | 49 + .../API_docs/constructors/chatBannedRights.md | 54 + docs/API_docs/constructors/chatFull.md | 8 +- docs/API_docs/constructors/codeSettings.md | 45 + docs/API_docs/constructors/document.md | 8 +- docs/API_docs/constructors/index.md | 57 +- docs/API_docs/constructors/inputWallPaper.md | 43 + .../constructors/inputWallPaperSlug.md | 42 + .../constructors/messages_messagesSlice.md | 7 +- .../constructors/photoStrippedSize.md | 43 + .../updateChatDefaultBannedRights.md | 44 + docs/API_docs/constructors/wallPaper.md | 19 +- .../constructors/wallPaperSettings.md | 45 + docs/API_docs/index.md | 6 +- docs/API_docs/methods/account_getWallPaper.md | 66 + .../API_docs/methods/account_getWallPapers.md | 13 +- .../methods/account_installWallPaper.md | 69 + .../methods/account_resetWallPapers.md | 59 + .../API_docs/methods/account_saveWallPaper.md | 72 + .../methods/account_sendChangePhoneCode.md | 11 +- .../methods/account_sendConfirmPhoneCode.md | 11 +- .../methods/account_sendVerifyPhoneCode.md | 13 +- .../methods/account_uploadWallPaper.md | 72 + docs/API_docs/methods/api_index.md | 38 +- docs/API_docs/methods/channels_editAdmin.md | 10 +- docs/API_docs/methods/channels_editBanned.md | 10 +- docs/API_docs/methods/index.md | 8 - .../methods/messages_editChatAbout.md | 69 + .../messages_editChatDefaultBannedRights.md | 69 + .../methods/messages_exportChatInvite.md | 8 +- .../types/ChannelAdminLogEventAction.md | 4 + .../types/ChannelParticipantsFilter.md | 2 + docs/API_docs/types/ChatAdminRights.md | 20 + docs/API_docs/types/ChatBannedRights.md | 20 + docs/API_docs/types/CodeSettings.md | 20 + docs/API_docs/types/ExportedChatInvite.md | 2 - docs/API_docs/types/InputWallPaper.md | 22 + docs/API_docs/types/PhotoSize.md | 2 + docs/API_docs/types/Update.md | 4 +- docs/API_docs/types/Updates.md | 6 +- docs/API_docs/types/WallPaper.md | 6 +- docs/API_docs/types/WallPaperSettings.md | 20 + docs/API_docs/types/account_WallPapers.md | 24 + docs/API_docs/types/index.md | 16 +- docs/docs/USING_METHODS.md | 2 +- old_docs/API_docs_v91/README.md | 15 + old_docs/API_docs_v91/constructors/README.md | 2049 +++++++++++++++++ .../constructors/accessPointRule.md | 46 + .../constructors/accountDaysTTL.md | 44 + .../constructors/account_authorizationForm.md | 48 + .../constructors/account_authorizations.md | 44 + .../constructors/account_password.md | 54 + .../account_passwordInputSettings.md | 48 + .../constructors/account_passwordSettings.md | 45 + .../constructors/account_privacyRules.md | 45 + .../constructors/account_sentEmailCode.md | 45 + .../constructors/account_takeout.md | 44 + .../constructors/account_tmpPassword.md | 45 + .../constructors/account_webAuthorizations.md | 45 + .../constructors/auth_authorization.md | 45 + .../constructors/auth_checkedPhone.md | 44 + .../constructors/auth_codeTypeCall.md | 39 + .../constructors/auth_codeTypeFlashCall.md | 39 + .../constructors/auth_codeTypeSms.md | 39 + .../auth_exportedAuthorization.md | 45 + .../constructors/auth_passwordRecovery.md | 44 + .../constructors/auth_sentCode.md | 49 + .../constructors/auth_sentCodeTypeApp.md | 44 + .../constructors/auth_sentCodeTypeCall.md | 44 + .../auth_sentCodeTypeFlashCall.md | 44 + .../constructors/auth_sentCodeTypeSms.md | 44 + .../constructors/authorization.md | 58 + .../API_docs_v91/constructors/boolFalse.md | 9 + .../API_docs_v91/constructors/boolTrue.md | 9 + .../API_docs_v91/constructors/botCommand.md | 45 + old_docs/API_docs_v91/constructors/botInfo.md | 46 + .../constructors/botInlineMediaResult.md | 50 + .../constructors/botInlineMessageMediaAuto.md | 52 + .../botInlineMessageMediaContact.md | 54 + .../constructors/botInlineMessageMediaGeo.md | 52 + .../botInlineMessageMediaVenue.md | 56 + .../constructors/botInlineMessageText.md | 53 + .../constructors/botInlineResult.md | 51 + .../API_docs_v91/constructors/cdnConfig.md | 44 + .../API_docs_v91/constructors/cdnPublicKey.md | 45 + old_docs/API_docs_v91/constructors/channel.md | 64 + .../constructors/channelAdminLogEvent.md | 47 + .../channelAdminLogEventActionChangeAbout.md | 45 + .../channelAdminLogEventActionChangePhoto.md | 45 + ...nnelAdminLogEventActionChangeStickerSet.md | 45 + .../channelAdminLogEventActionChangeTitle.md | 45 + ...hannelAdminLogEventActionChangeUsername.md | 45 + ...channelAdminLogEventActionDeleteMessage.md | 44 + .../channelAdminLogEventActionEditMessage.md | 45 + ...nelAdminLogEventActionParticipantInvite.md | 44 + ...annelAdminLogEventActionParticipantJoin.md | 39 + ...nnelAdminLogEventActionParticipantLeave.md | 39 + ...minLogEventActionParticipantToggleAdmin.md | 45 + ...AdminLogEventActionParticipantToggleBan.md | 45 + ...channelAdminLogEventActionToggleInvites.md | 44 + ...minLogEventActionTogglePreHistoryHidden.md | 44 + ...nnelAdminLogEventActionToggleSignatures.md | 44 + .../channelAdminLogEventActionUpdatePinned.md | 44 + .../channelAdminLogEventsFilter.md | 57 + .../constructors/channelAdminRights.md | 0 .../constructors/channelBannedRights.md | 0 .../constructors/channelForbidden.md | 49 + .../API_docs_v91/constructors/channelFull.md | 67 + .../constructors/channelMessagesFilter.md | 45 + .../channelMessagesFilterEmpty.md | 39 + .../constructors/channelParticipant.md | 45 + .../constructors/channelParticipantAdmin.md | 49 + .../constructors/channelParticipantBanned.md | 48 + .../constructors/channelParticipantCreator.md | 44 + .../constructors/channelParticipantSelf.md | 46 + .../constructors/channelParticipantsAdmins.md | 39 + .../constructors/channelParticipantsBanned.md | 44 + .../constructors/channelParticipantsBots.md | 39 + .../constructors/channelParticipantsKicked.md | 44 + .../constructors/channelParticipantsRecent.md | 39 + .../constructors/channelParticipantsSearch.md | 44 + .../constructors/channels_adminLogResults.md | 46 + .../channels_channelParticipant.md | 45 + .../channels_channelParticipants.md | 46 + ...channels_channelParticipantsNotModified.md | 39 + old_docs/API_docs_v91/constructors/chat.md | 56 + .../API_docs_v91/constructors/chatEmpty.md | 44 + .../constructors/chatForbidden.md | 45 + .../API_docs_v91/constructors/chatFull.md | 50 + .../API_docs_v91/constructors/chatInvite.md | 51 + .../constructors/chatInviteAlready.md | 44 + .../constructors/chatInviteEmpty.md | 39 + .../constructors/chatInviteExported.md | 44 + .../API_docs_v91/constructors/chatOnlines.md | 44 + .../constructors/chatParticipant.md | 46 + .../constructors/chatParticipantAdmin.md | 46 + .../constructors/chatParticipantCreator.md | 44 + .../constructors/chatParticipants.md | 46 + .../constructors/chatParticipantsForbidden.md | 45 + .../API_docs_v91/constructors/chatPhoto.md | 45 + .../constructors/chatPhotoEmpty.md | 39 + old_docs/API_docs_v91/constructors/config.md | 93 + old_docs/API_docs_v91/constructors/contact.md | 45 + .../constructors/contactBlocked.md | 45 + .../constructors/contactLinkContact.md | 39 + .../constructors/contactLinkHasPhone.md | 39 + .../constructors/contactLinkNone.md | 39 + .../constructors/contactLinkUnknown.md | 39 + .../constructors/contactStatus.md | 45 + .../constructors/contacts_blocked.md | 45 + .../constructors/contacts_blockedSlice.md | 46 + .../constructors/contacts_contacts.md | 46 + .../contacts_contactsNotModified.md | 39 + .../constructors/contacts_found.md | 47 + .../constructors/contacts_importedContacts.md | 47 + .../constructors/contacts_link.md | 46 + .../constructors/contacts_resolvedPeer.md | 46 + .../constructors/contacts_topPeers.md | 46 + .../constructors/contacts_topPeersDisabled.md | 39 + .../contacts_topPeersNotModified.md | 39 + .../API_docs_v91/constructors/dataJSON.md | 44 + .../API_docs_v91/constructors/dcOption.md | 52 + old_docs/API_docs_v91/constructors/dialog.md | 54 + .../API_docs_v91/constructors/dialogPeer.md | 44 + .../API_docs_v91/constructors/document.md | 52 + .../constructors/documentAttributeAnimated.md | 39 + .../constructors/documentAttributeAudio.md | 48 + .../constructors/documentAttributeFilename.md | 44 + .../documentAttributeHasStickers.md | 39 + .../documentAttributeImageSize.md | 45 + .../constructors/documentAttributeSticker.md | 47 + .../constructors/documentAttributeVideo.md | 48 + .../constructors/documentEmpty.md | 44 + .../API_docs_v91/constructors/draftMessage.md | 48 + .../constructors/draftMessageEmpty.md | 44 + .../constructors/encryptedChat.md | 50 + .../constructors/encryptedChatDiscarded.md | 44 + .../constructors/encryptedChatEmpty.md | 44 + .../constructors/encryptedChatRequested.md | 49 + .../constructors/encryptedChatWaiting.md | 48 + .../constructors/encryptedFile.md | 48 + .../constructors/encryptedFileEmpty.md | 39 + .../constructors/encryptedMessage.md | 47 + .../constructors/encryptedMessageService.md | 46 + old_docs/API_docs_v91/constructors/error.md | 45 + .../constructors/exportedMessageLink.md | 45 + .../API_docs_v91/constructors/fileHash.md | 46 + .../API_docs_v91/constructors/fileLocation.md | 48 + .../constructors/fileLocationUnavailable.md | 46 + .../API_docs_v91/constructors/foundGif.md | 49 + .../constructors/foundGifCached.md | 46 + old_docs/API_docs_v91/constructors/game.md | 50 + .../API_docs_v91/constructors/geoPoint.md | 46 + .../constructors/geoPointEmpty.md | 39 + .../constructors/help_appUpdate.md | 50 + .../constructors/help_configSimple.md | 46 + .../constructors/help_deepLinkInfo.md | 46 + .../constructors/help_deepLinkInfoEmpty.md | 39 + .../constructors/help_inviteText.md | 44 + .../constructors/help_noAppUpdate.md | 39 + .../constructors/help_passportConfig.md | 45 + .../help_passportConfigNotModified.md | 39 + .../constructors/help_proxyDataEmpty.md | 44 + .../constructors/help_proxyDataPromo.md | 47 + .../constructors/help_recentMeUrls.md | 46 + .../API_docs_v91/constructors/help_support.md | 45 + .../constructors/help_supportName.md | 44 + .../constructors/help_termsOfService.md | 48 + .../constructors/help_termsOfServiceUpdate.md | 45 + .../help_termsOfServiceUpdateEmpty.md | 44 + .../constructors/help_userInfo.md | 47 + .../constructors/help_userInfoEmpty.md | 39 + .../API_docs_v91/constructors/highScore.md | 46 + .../constructors/importedContact.md | 45 + .../constructors/inlineBotSwitchPM.md | 45 + .../constructors/inputAppEvent.md | 47 + .../constructors/inputBotInlineMessageGame.md | 50 + .../constructors/inputBotInlineMessageID.md | 46 + .../inputBotInlineMessageMediaAuto.md | 52 + .../inputBotInlineMessageMediaContact.md | 54 + .../inputBotInlineMessageMediaGeo.md | 52 + .../inputBotInlineMessageMediaVenue.md | 56 + .../constructors/inputBotInlineMessageText.md | 53 + .../constructors/inputBotInlineResult.md | 51 + .../inputBotInlineResultDocument.md | 49 + .../constructors/inputBotInlineResultGame.md | 46 + .../constructors/inputBotInlineResultPhoto.md | 47 + .../API_docs_v91/constructors/inputChannel.md | 45 + .../constructors/inputChannelEmpty.md | 39 + .../constructors/inputChatPhoto.md | 44 + .../constructors/inputChatPhotoEmpty.md | 39 + .../constructors/inputChatUploadedPhoto.md | 44 + .../constructors/inputCheckPasswordEmpty.md | 39 + .../constructors/inputCheckPasswordSRP.md | 46 + .../constructors/inputClientProxy.md | 45 + .../constructors/inputDialogPeer.md | 44 + .../constructors/inputDocument.md | 46 + .../constructors/inputDocumentEmpty.md | 39 + .../constructors/inputDocumentFileLocation.md | 46 + .../constructors/inputEncryptedChat.md | 45 + .../constructors/inputEncryptedFile.md | 45 + .../inputEncryptedFileBigUploaded.md | 46 + .../constructors/inputEncryptedFileEmpty.md | 39 + .../inputEncryptedFileLocation.md | 45 + .../inputEncryptedFileUploaded.md | 47 + .../API_docs_v91/constructors/inputFile.md | 47 + .../API_docs_v91/constructors/inputFileBig.md | 46 + .../constructors/inputFileLocation.md | 47 + .../API_docs_v91/constructors/inputGameID.md | 45 + .../constructors/inputGameShortName.md | 45 + .../constructors/inputGeoPoint.md | 45 + .../constructors/inputGeoPointEmpty.md | 39 + .../constructors/inputMediaContact.md | 47 + .../constructors/inputMediaDocument.md | 45 + .../inputMediaDocumentExternal.md | 45 + .../constructors/inputMediaEmpty.md | 39 + .../constructors/inputMediaGame.md | 44 + .../constructors/inputMediaGeoLive.md | 46 + .../constructors/inputMediaGeoPoint.md | 44 + .../constructors/inputMediaGifExternal.md | 45 + .../constructors/inputMediaInvoice.md | 51 + .../constructors/inputMediaPhoto.md | 45 + .../constructors/inputMediaPhotoExternal.md | 45 + .../constructors/inputMediaPoll.md | 44 + .../inputMediaUploadedDocument.md | 50 + .../constructors/inputMediaUploadedPhoto.md | 46 + .../constructors/inputMediaVenue.md | 49 + .../inputMessageEntityMentionName.md | 46 + .../constructors/inputMessageID.md | 44 + .../constructors/inputMessagePinned.md | 39 + .../constructors/inputMessageReplyTo.md | 44 + .../inputMessagesFilterChatPhotos.md | 39 + .../inputMessagesFilterContacts.md | 39 + .../inputMessagesFilterDocument.md | 39 + .../constructors/inputMessagesFilterEmpty.md | 39 + .../constructors/inputMessagesFilterGeo.md | 39 + .../constructors/inputMessagesFilterGif.md | 39 + .../constructors/inputMessagesFilterMusic.md | 39 + .../inputMessagesFilterMyMentions.md | 39 + .../inputMessagesFilterPhoneCalls.md | 44 + .../inputMessagesFilterPhotoVideo.md | 39 + .../constructors/inputMessagesFilterPhotos.md | 39 + .../inputMessagesFilterRoundVideo.md | 39 + .../inputMessagesFilterRoundVoice.md | 39 + .../constructors/inputMessagesFilterUrl.md | 39 + .../constructors/inputMessagesFilterVideo.md | 39 + .../constructors/inputMessagesFilterVoice.md | 39 + .../constructors/inputNotifyBroadcasts.md | 39 + .../constructors/inputNotifyChats.md | 39 + .../constructors/inputNotifyPeer.md | 44 + .../constructors/inputNotifyUsers.md | 39 + .../constructors/inputPaymentCredentials.md | 45 + .../inputPaymentCredentialsAndroidPay.md | 45 + .../inputPaymentCredentialsApplePay.md | 44 + .../inputPaymentCredentialsSaved.md | 45 + .../constructors/inputPeerChannel.md | 45 + .../constructors/inputPeerChat.md | 44 + .../constructors/inputPeerEmpty.md | 39 + .../constructors/inputPeerNotifySettings.md | 47 + .../constructors/inputPeerSelf.md | 39 + .../constructors/inputPeerUser.md | 45 + .../constructors/inputPhoneCall.md | 45 + .../constructors/inputPhoneContact.md | 47 + .../API_docs_v91/constructors/inputPhoto.md | 46 + .../constructors/inputPhotoEmpty.md | 39 + .../constructors/inputPrivacyKeyChatInvite.md | 39 + .../constructors/inputPrivacyKeyPhoneCall.md | 39 + .../constructors/inputPrivacyKeyPhoneP2P.md | 39 + .../inputPrivacyKeyStatusTimestamp.md | 39 + .../constructors/inputPrivacyValueAllowAll.md | 39 + .../inputPrivacyValueAllowContacts.md | 39 + .../inputPrivacyValueAllowUsers.md | 44 + .../inputPrivacyValueDisallowAll.md | 39 + .../inputPrivacyValueDisallowContacts.md | 39 + .../inputPrivacyValueDisallowUsers.md | 44 + .../inputReportReasonChildAbuse.md | 39 + .../inputReportReasonCopyright.md | 39 + .../constructors/inputReportReasonOther.md | 44 + .../inputReportReasonPornography.md | 39 + .../constructors/inputReportReasonSpam.md | 39 + .../constructors/inputReportReasonViolence.md | 39 + .../constructors/inputSecureFile.md | 45 + .../constructors/inputSecureFileLocation.md | 45 + .../constructors/inputSecureFileUploaded.md | 48 + .../constructors/inputSecureValue.md | 51 + .../constructors/inputSingleMedia.md | 46 + .../constructors/inputStickerSetEmpty.md | 39 + .../constructors/inputStickerSetID.md | 45 + .../constructors/inputStickerSetItem.md | 46 + .../constructors/inputStickerSetShortName.md | 44 + .../inputStickeredMediaDocument.md | 44 + .../constructors/inputStickeredMediaPhoto.md | 44 + .../constructors/inputTakeoutFileLocation.md | 39 + .../API_docs_v91/constructors/inputUser.md | 45 + .../constructors/inputUserEmpty.md | 39 + .../constructors/inputUserSelf.md | 39 + .../constructors/inputWebDocument.md | 47 + .../inputWebFileGeoPointLocation.md | 49 + .../constructors/inputWebFileLocation.md | 45 + old_docs/API_docs_v91/constructors/invoice.md | 53 + old_docs/API_docs_v91/constructors/ipPort.md | 45 + .../API_docs_v91/constructors/ipPortSecret.md | 46 + .../API_docs_v91/constructors/jsonArray.md | 44 + .../API_docs_v91/constructors/jsonBool.md | 44 + .../API_docs_v91/constructors/jsonNull.md | 39 + .../API_docs_v91/constructors/jsonNumber.md | 44 + .../API_docs_v91/constructors/jsonObject.md | 44 + .../constructors/jsonObjectValue.md | 45 + .../API_docs_v91/constructors/jsonString.md | 44 + .../constructors/keyboardButton.md | 44 + .../constructors/keyboardButtonBuy.md | 44 + .../constructors/keyboardButtonCallback.md | 45 + .../constructors/keyboardButtonGame.md | 44 + .../keyboardButtonRequestGeoLocation.md | 44 + .../keyboardButtonRequestPhone.md | 44 + .../constructors/keyboardButtonRow.md | 44 + .../keyboardButtonSwitchInline.md | 46 + .../constructors/keyboardButtonUrl.md | 45 + .../API_docs_v91/constructors/labeledPrice.md | 45 + .../constructors/langPackDifference.md | 47 + .../constructors/langPackLanguage.md | 54 + .../constructors/langPackString.md | 45 + .../constructors/langPackStringDeleted.md | 44 + .../constructors/langPackStringPluralized.md | 50 + .../API_docs_v91/constructors/maskCoords.md | 47 + old_docs/API_docs_v91/constructors/message.md | 70 + .../constructors/messageActionBotAllowed.md | 44 + .../messageActionChannelCreate.md | 44 + .../messageActionChannelMigrateFrom.md | 45 + .../constructors/messageActionChatAddUser.md | 44 + .../constructors/messageActionChatCreate.md | 45 + .../messageActionChatDeletePhoto.md | 39 + .../messageActionChatDeleteUser.md | 44 + .../messageActionChatEditPhoto.md | 44 + .../messageActionChatEditTitle.md | 44 + .../messageActionChatJoinedByLink.md | 44 + .../messageActionChatMigrateTo.md | 44 + .../messageActionContactSignUp.md | 39 + .../constructors/messageActionCustomAction.md | 44 + .../constructors/messageActionEmpty.md | 39 + .../constructors/messageActionGameScore.md | 45 + .../constructors/messageActionHistoryClear.md | 39 + .../constructors/messageActionPaymentSent.md | 45 + .../messageActionPaymentSentMe.md | 49 + .../constructors/messageActionPhoneCall.md | 46 + .../constructors/messageActionPinMessage.md | 39 + .../messageActionScreenshotTaken.md | 39 + .../messageActionSecureValuesSent.md | 44 + .../messageActionSecureValuesSentMe.md | 45 + .../API_docs_v91/constructors/messageEmpty.md | 44 + .../constructors/messageEntityBold.md | 45 + .../constructors/messageEntityBotCommand.md | 45 + .../constructors/messageEntityCashtag.md | 45 + .../constructors/messageEntityCode.md | 45 + .../constructors/messageEntityEmail.md | 45 + .../constructors/messageEntityHashtag.md | 45 + .../constructors/messageEntityItalic.md | 45 + .../constructors/messageEntityMention.md | 45 + .../constructors/messageEntityMentionName.md | 46 + .../constructors/messageEntityPhone.md | 45 + .../constructors/messageEntityPre.md | 46 + .../constructors/messageEntityTextUrl.md | 46 + .../constructors/messageEntityUnknown.md | 45 + .../constructors/messageEntityUrl.md | 45 + .../constructors/messageFwdHeader.md | 50 + .../constructors/messageMediaContact.md | 48 + .../constructors/messageMediaDocument.md | 45 + .../constructors/messageMediaEmpty.md | 39 + .../constructors/messageMediaGame.md | 44 + .../constructors/messageMediaGeo.md | 44 + .../constructors/messageMediaGeoLive.md | 45 + .../constructors/messageMediaInvoice.md | 52 + .../constructors/messageMediaPhoto.md | 45 + .../constructors/messageMediaPoll.md | 45 + .../constructors/messageMediaUnsupported.md | 39 + .../constructors/messageMediaVenue.md | 49 + .../constructors/messageMediaWebPage.md | 44 + .../API_docs_v91/constructors/messageRange.md | 45 + .../constructors/messageService.md | 54 + .../constructors/messages_affectedHistory.md | 46 + .../constructors/messages_affectedMessages.md | 45 + .../constructors/messages_allStickers.md | 45 + .../messages_allStickersNotModified.md | 39 + .../constructors/messages_archivedStickers.md | 45 + .../messages_botCallbackAnswer.md | 49 + .../constructors/messages_botResults.md | 50 + .../constructors/messages_channelMessages.md | 49 + .../constructors/messages_chatFull.md | 46 + .../constructors/messages_chats.md | 44 + .../constructors/messages_chatsSlice.md | 45 + .../constructors/messages_dhConfig.md | 47 + .../messages_dhConfigNotModified.md | 44 + .../constructors/messages_dialogs.md | 47 + .../messages_dialogsNotModified.md | 44 + .../constructors/messages_dialogsSlice.md | 48 + .../constructors/messages_favedStickers.md | 46 + .../messages_favedStickersNotModified.md | 39 + .../constructors/messages_featuredStickers.md | 46 + .../messages_featuredStickersNotModified.md | 39 + .../constructors/messages_foundGifs.md | 45 + .../constructors/messages_foundStickerSets.md | 45 + .../messages_foundStickerSetsNotModified.md | 39 + .../constructors/messages_highScores.md | 45 + .../constructors/messages_messageEditData.md | 44 + .../constructors/messages_messages.md | 46 + .../messages_messagesNotModified.md | 44 + .../constructors/messages_messagesSlice.md | 47 + .../constructors/messages_peerDialogs.md | 48 + .../constructors/messages_recentStickers.md | 47 + .../messages_recentStickersNotModified.md | 39 + .../constructors/messages_savedGifs.md | 45 + .../messages_savedGifsNotModified.md | 39 + .../messages_sentEncryptedFile.md | 45 + .../messages_sentEncryptedMessage.md | 44 + .../constructors/messages_stickerSet.md | 46 + ...messages_stickerSetInstallResultArchive.md | 44 + ...messages_stickerSetInstallResultSuccess.md | 39 + .../constructors/messages_stickers.md | 45 + .../messages_stickersNotModified.md | 39 + .../API_docs_v91/constructors/nearestDc.md | 46 + .../constructors/notifyBroadcasts.md | 39 + .../API_docs_v91/constructors/notifyChats.md | 39 + .../API_docs_v91/constructors/notifyPeer.md | 44 + .../API_docs_v91/constructors/notifyUsers.md | 39 + old_docs/API_docs_v91/constructors/null.md | 9 + old_docs/API_docs_v91/constructors/page.md | 50 + .../constructors/pageBlockAnchor.md | 44 + .../constructors/pageBlockAudio.md | 45 + .../constructors/pageBlockAuthorDate.md | 45 + .../constructors/pageBlockBlockquote.md | 45 + .../constructors/pageBlockChannel.md | 44 + .../constructors/pageBlockCollage.md | 45 + .../constructors/pageBlockCover.md | 44 + .../constructors/pageBlockDetails.md | 46 + .../constructors/pageBlockDivider.md | 39 + .../constructors/pageBlockEmbed.md | 51 + .../constructors/pageBlockEmbedPost.md | 50 + .../constructors/pageBlockFooter.md | 44 + .../constructors/pageBlockHeader.md | 44 + .../constructors/pageBlockKicker.md | 44 + .../constructors/pageBlockList.md | 44 + .../API_docs_v91/constructors/pageBlockMap.md | 48 + .../constructors/pageBlockOrderedList.md | 44 + .../constructors/pageBlockParagraph.md | 44 + .../constructors/pageBlockPhoto.md | 47 + .../constructors/pageBlockPreformatted.md | 45 + .../constructors/pageBlockPullquote.md | 45 + .../constructors/pageBlockRelatedArticles.md | 45 + .../constructors/pageBlockSlideshow.md | 45 + .../constructors/pageBlockSubheader.md | 44 + .../constructors/pageBlockSubtitle.md | 44 + .../constructors/pageBlockTable.md | 47 + .../constructors/pageBlockTitle.md | 44 + .../constructors/pageBlockUnsupported.md | 39 + .../constructors/pageBlockVideo.md | 47 + .../API_docs_v91/constructors/pageCaption.md | 45 + .../constructors/pageListItemBlocks.md | 44 + .../constructors/pageListItemText.md | 44 + .../constructors/pageListOrderedItemBlocks.md | 45 + .../constructors/pageListOrderedItemText.md | 45 + .../constructors/pageRelatedArticle.md | 50 + .../constructors/pageTableCell.md | 51 + .../API_docs_v91/constructors/pageTableRow.md | 44 + ...6PBKDF2HMACSHA512iter100000SHA256ModPow.md | 47 + .../constructors/passwordKdfAlgoUnknown.md | 39 + .../constructors/paymentCharge.md | 45 + .../constructors/paymentRequestedInfo.md | 47 + .../paymentSavedCredentialsCard.md | 45 + .../constructors/payments_paymentForm.md | 54 + .../constructors/payments_paymentReceipt.md | 53 + .../constructors/payments_paymentResult.md | 44 + .../payments_paymentVerficationNeeded.md | 44 + .../constructors/payments_savedInfo.md | 45 + .../payments_validatedRequestedInfo.md | 45 + .../API_docs_v91/constructors/peerChannel.md | 44 + .../API_docs_v91/constructors/peerChat.md | 44 + .../constructors/peerNotifySettings.md | 47 + .../API_docs_v91/constructors/peerSettings.md | 44 + .../API_docs_v91/constructors/peerUser.md | 44 + .../API_docs_v91/constructors/phoneCall.md | 55 + .../constructors/phoneCallAccepted.md | 50 + .../phoneCallDiscardReasonBusy.md | 39 + .../phoneCallDiscardReasonDisconnect.md | 39 + .../phoneCallDiscardReasonHangup.md | 39 + .../phoneCallDiscardReasonMissed.md | 39 + .../constructors/phoneCallDiscarded.md | 48 + .../constructors/phoneCallEmpty.md | 44 + .../constructors/phoneCallProtocol.md | 47 + .../constructors/phoneCallRequested.md | 50 + .../constructors/phoneCallWaiting.md | 50 + .../constructors/phoneConnection.md | 48 + .../constructors/phone_phoneCall.md | 45 + old_docs/API_docs_v91/constructors/photo.md | 49 + .../constructors/photoCachedSize.md | 48 + .../API_docs_v91/constructors/photoEmpty.md | 44 + .../API_docs_v91/constructors/photoSize.md | 48 + .../constructors/photoSizeEmpty.md | 44 + .../API_docs_v91/constructors/photos_photo.md | 45 + .../constructors/photos_photos.md | 45 + .../constructors/photos_photosSlice.md | 46 + old_docs/API_docs_v91/constructors/poll.md | 47 + .../API_docs_v91/constructors/pollAnswer.md | 45 + .../constructors/pollAnswerVoters.md | 46 + .../API_docs_v91/constructors/pollResults.md | 46 + .../constructors/popularContact.md | 45 + .../API_docs_v91/constructors/postAddress.md | 49 + .../constructors/privacyKeyChatInvite.md | 39 + .../constructors/privacyKeyPhoneCall.md | 39 + .../constructors/privacyKeyPhoneP2P.md | 39 + .../constructors/privacyKeyStatusTimestamp.md | 39 + .../constructors/privacyValueAllowAll.md | 39 + .../constructors/privacyValueAllowContacts.md | 39 + .../constructors/privacyValueAllowUsers.md | 44 + .../constructors/privacyValueDisallowAll.md | 39 + .../privacyValueDisallowContacts.md | 39 + .../constructors/privacyValueDisallowUsers.md | 44 + .../constructors/receivedNotifyMessage.md | 44 + .../constructors/recentMeUrlChat.md | 45 + .../constructors/recentMeUrlChatInvite.md | 45 + .../constructors/recentMeUrlStickerSet.md | 45 + .../constructors/recentMeUrlUnknown.md | 44 + .../constructors/recentMeUrlUser.md | 45 + .../constructors/replyInlineMarkup.md | 44 + .../constructors/replyKeyboardForceReply.md | 45 + .../constructors/replyKeyboardHide.md | 44 + .../constructors/replyKeyboardMarkup.md | 47 + .../constructors/savedPhoneContact.md | 47 + .../secureCredentialsEncrypted.md | 46 + .../API_docs_v91/constructors/secureData.md | 46 + .../API_docs_v91/constructors/secureFile.md | 50 + .../constructors/secureFileEmpty.md | 39 + ...sswordKdfAlgoPBKDF2HMACSHA512iter100000.md | 44 + .../securePasswordKdfAlgoSHA512.md | 44 + .../securePasswordKdfAlgoUnknown.md | 39 + .../constructors/securePlainEmail.md | 44 + .../constructors/securePlainPhone.md | 44 + .../constructors/secureRequiredType.md | 47 + .../constructors/secureRequiredTypeOneOf.md | 44 + .../constructors/secureSecretSettings.md | 46 + .../API_docs_v91/constructors/secureValue.md | 52 + .../constructors/secureValueError.md | 46 + .../constructors/secureValueErrorData.md | 47 + .../constructors/secureValueErrorFile.md | 46 + .../constructors/secureValueErrorFiles.md | 46 + .../constructors/secureValueErrorFrontSide.md | 46 + .../secureValueErrorReverseSide.md | 46 + .../constructors/secureValueErrorSelfie.md | 46 + .../secureValueErrorTranslationFile.md | 46 + .../secureValueErrorTranslationFiles.md | 46 + .../constructors/secureValueHash.md | 45 + .../constructors/secureValueTypeAddress.md | 39 + .../secureValueTypeBankStatement.md | 39 + .../secureValueTypeDriverLicense.md | 39 + .../constructors/secureValueTypeEmail.md | 39 + .../secureValueTypeIdentityCard.md | 39 + .../secureValueTypeInternalPassport.md | 39 + .../constructors/secureValueTypePassport.md | 39 + .../secureValueTypePassportRegistration.md | 39 + .../secureValueTypePersonalDetails.md | 39 + .../constructors/secureValueTypePhone.md | 39 + .../secureValueTypeRentalAgreement.md | 39 + .../secureValueTypeTemporaryRegistration.md | 39 + .../secureValueTypeUtilityBill.md | 39 + .../constructors/sendMessageCancelAction.md | 39 + .../sendMessageChooseContactAction.md | 39 + .../constructors/sendMessageGamePlayAction.md | 39 + .../sendMessageGeoLocationAction.md | 39 + .../sendMessageRecordAudioAction.md | 39 + .../sendMessageRecordRoundAction.md | 39 + .../sendMessageRecordVideoAction.md | 39 + .../constructors/sendMessageTypingAction.md | 39 + .../sendMessageUploadAudioAction.md | 44 + .../sendMessageUploadDocumentAction.md | 44 + .../sendMessageUploadPhotoAction.md | 44 + .../sendMessageUploadRoundAction.md | 44 + .../sendMessageUploadVideoAction.md | 44 + .../constructors/shippingOption.md | 46 + .../API_docs_v91/constructors/statsURL.md | 44 + .../API_docs_v91/constructors/stickerPack.md | 45 + .../API_docs_v91/constructors/stickerSet.md | 53 + .../constructors/stickerSetCovered.md | 45 + .../constructors/stickerSetMultiCovered.md | 45 + .../constructors/storage_fileGif.md | 39 + .../constructors/storage_fileJpeg.md | 39 + .../constructors/storage_fileMov.md | 39 + .../constructors/storage_fileMp3.md | 39 + .../constructors/storage_fileMp4.md | 39 + .../constructors/storage_filePartial.md | 39 + .../constructors/storage_filePdf.md | 39 + .../constructors/storage_filePng.md | 39 + .../constructors/storage_fileUnknown.md | 39 + .../constructors/storage_fileWebp.md | 39 + .../API_docs_v91/constructors/textAnchor.md | 45 + .../API_docs_v91/constructors/textBold.md | 44 + .../API_docs_v91/constructors/textConcat.md | 44 + .../API_docs_v91/constructors/textEmail.md | 45 + .../API_docs_v91/constructors/textEmpty.md | 39 + .../API_docs_v91/constructors/textFixed.md | 44 + .../API_docs_v91/constructors/textImage.md | 46 + .../API_docs_v91/constructors/textItalic.md | 44 + .../API_docs_v91/constructors/textMarked.md | 44 + .../API_docs_v91/constructors/textPhone.md | 45 + .../API_docs_v91/constructors/textPlain.md | 44 + .../API_docs_v91/constructors/textStrike.md | 44 + .../constructors/textSubscript.md | 44 + .../constructors/textSuperscript.md | 44 + .../constructors/textUnderline.md | 44 + old_docs/API_docs_v91/constructors/textUrl.md | 46 + old_docs/API_docs_v91/constructors/topPeer.md | 45 + .../constructors/topPeerCategoryBotsInline.md | 39 + .../constructors/topPeerCategoryBotsPM.md | 39 + .../constructors/topPeerCategoryChannels.md | 39 + .../topPeerCategoryCorrespondents.md | 39 + .../constructors/topPeerCategoryGroups.md | 39 + .../constructors/topPeerCategoryPeers.md | 46 + .../constructors/topPeerCategoryPhoneCalls.md | 39 + old_docs/API_docs_v91/constructors/true.md | 39 + .../constructors/updateBotCallbackQuery.md | 50 + .../constructors/updateBotInlineQuery.md | 48 + .../constructors/updateBotInlineSend.md | 48 + .../constructors/updateBotPrecheckoutQuery.md | 50 + .../constructors/updateBotShippingQuery.md | 47 + .../constructors/updateBotWebhookJSON.md | 44 + .../constructors/updateBotWebhookJSONQuery.md | 46 + .../constructors/updateChannel.md | 44 + .../updateChannelAvailableMessages.md | 45 + .../constructors/updateChannelMessageViews.md | 46 + .../updateChannelPinnedMessage.md | 45 + .../updateChannelReadMessagesContents.md | 45 + .../constructors/updateChannelTooLong.md | 45 + .../constructors/updateChannelWebPage.md | 47 + .../constructors/updateChatAdmins.md | 0 .../constructors/updateChatParticipantAdd.md | 48 + .../updateChatParticipantAdmin.md | 47 + .../updateChatParticipantDelete.md | 46 + .../constructors/updateChatParticipants.md | 44 + .../constructors/updateChatPinnedMessage.md | 45 + .../constructors/updateChatUserTyping.md | 46 + .../API_docs_v91/constructors/updateConfig.md | 39 + .../constructors/updateContactLink.md | 46 + .../constructors/updateContactsReset.md | 39 + .../constructors/updateDcOptions.md | 44 + .../updateDeleteChannelMessages.md | 47 + .../constructors/updateDeleteMessages.md | 46 + .../constructors/updateDialogPinned.md | 45 + .../constructors/updateDialogUnreadMark.md | 45 + .../constructors/updateDraftMessage.md | 45 + .../constructors/updateEditChannelMessage.md | 46 + .../constructors/updateEditMessage.md | 46 + .../constructors/updateEncryptedChatTyping.md | 44 + .../updateEncryptedMessagesRead.md | 46 + .../constructors/updateEncryption.md | 45 + .../constructors/updateFavedStickers.md | 39 + .../updateInlineBotCallbackQuery.md | 49 + .../constructors/updateLangPack.md | 44 + .../constructors/updateLangPackTooLong.md | 44 + .../constructors/updateMessageID.md | 44 + .../constructors/updateMessagePoll.md | 46 + .../constructors/updateNewChannelMessage.md | 46 + .../constructors/updateNewEncryptedMessage.md | 45 + .../constructors/updateNewMessage.md | 46 + .../constructors/updateNewStickerSet.md | 44 + .../constructors/updateNotifySettings.md | 45 + .../constructors/updatePhoneCall.md | 44 + .../constructors/updatePinnedDialogs.md | 44 + .../constructors/updatePrivacy.md | 45 + .../constructors/updatePtsChanged.md | 39 + .../constructors/updateReadChannelInbox.md | 45 + .../constructors/updateReadChannelOutbox.md | 45 + .../updateReadFeaturedStickers.md | 39 + .../constructors/updateReadHistoryInbox.md | 47 + .../constructors/updateReadHistoryOutbox.md | 47 + .../updateReadMessagesContents.md | 46 + .../constructors/updateRecentStickers.md | 39 + .../constructors/updateSavedGifs.md | 39 + .../constructors/updateServiceNotification.md | 49 + .../API_docs_v91/constructors/updateShort.md | 45 + .../constructors/updateShortChatMessage.md | 58 + .../constructors/updateShortMessage.md | 57 + .../constructors/updateShortSentMessage.md | 50 + .../constructors/updateStickerSets.md | 39 + .../constructors/updateStickerSetsOrder.md | 45 + .../constructors/updateUserBlocked.md | 45 + .../constructors/updateUserName.md | 47 + .../constructors/updateUserPhone.md | 45 + .../constructors/updateUserPhoto.md | 47 + .../constructors/updateUserPinnedMessage.md | 45 + .../constructors/updateUserStatus.md | 45 + .../constructors/updateUserTyping.md | 45 + .../constructors/updateWebPage.md | 46 + old_docs/API_docs_v91/constructors/updates.md | 48 + .../constructors/updatesCombined.md | 49 + .../constructors/updatesTooLong.md | 39 + .../constructors/updates_channelDifference.md | 50 + .../updates_channelDifferenceEmpty.md | 46 + .../updates_channelDifferenceTooLong.md | 54 + .../constructors/updates_difference.md | 49 + .../constructors/updates_differenceEmpty.md | 45 + .../constructors/updates_differenceSlice.md | 49 + .../constructors/updates_differenceTooLong.md | 44 + .../constructors/updates_state.md | 48 + .../constructors/upload_cdnFile.md | 44 + .../upload_cdnFileReuploadNeeded.md | 44 + .../API_docs_v91/constructors/upload_file.md | 46 + .../constructors/upload_fileCdnRedirect.md | 48 + .../constructors/upload_webFile.md | 48 + old_docs/API_docs_v91/constructors/user.md | 66 + .../API_docs_v91/constructors/userEmpty.md | 44 + .../API_docs_v91/constructors/userFull.md | 55 + .../constructors/userProfilePhoto.md | 46 + .../constructors/userProfilePhotoEmpty.md | 39 + .../constructors/userStatusEmpty.md | 39 + .../constructors/userStatusLastMonth.md | 39 + .../constructors/userStatusLastWeek.md | 39 + .../constructors/userStatusOffline.md | 44 + .../constructors/userStatusOnline.md | 44 + .../constructors/userStatusRecently.md | 39 + .../API_docs_v91/constructors/wallPaper.md | 47 + .../constructors/wallPaperSolid.md | 0 .../constructors/webAuthorization.md | 52 + .../API_docs_v91/constructors/webDocument.md | 48 + .../constructors/webDocumentNoProxy.md | 47 + old_docs/API_docs_v91/constructors/webPage.md | 60 + .../API_docs_v91/constructors/webPageEmpty.md | 44 + .../constructors/webPageNotModified.md | 39 + .../constructors/webPagePending.md | 45 + old_docs/API_docs_v91/methods/README.md | 534 +++++ .../methods/account_acceptAuthorization.md | 80 + .../methods/account_cancelPasswordEmail.md | 61 + .../methods/account_changePhone.md | 72 + .../methods/account_checkUsername.md | 66 + .../methods/account_confirmPasswordEmail.md | 68 + .../methods/account_confirmPhone.md | 70 + .../methods/account_deleteAccount.md | 59 + .../methods/account_deleteSecureValue.md | 68 + .../methods/account_finishTakeoutSession.md | 68 + .../methods/account_getAccountTTL.md | 52 + .../methods/account_getAllSecureValues.md | 61 + .../methods/account_getAuthorizationForm.md | 74 + .../methods/account_getAuthorizations.md | 52 + .../account_getContactSignUpNotification.md | 61 + .../methods/account_getNotifyExceptions.md | 71 + .../methods/account_getNotifySettings.md | 66 + .../methods/account_getPassword.md | 52 + .../methods/account_getPasswordSettings.md | 14 + .../methods/account_getPrivacy.md | 66 + .../methods/account_getSecureValue.md | 68 + .../methods/account_getTmpPassword.md | 70 + .../methods/account_getWallPapers.md | 52 + .../methods/account_getWebAuthorizations.md | 61 + .../methods/account_initTakeoutSession.md | 86 + .../methods/account_registerDevice.md | 78 + .../methods/account_reportPeer.md | 69 + .../methods/account_resendPasswordEmail.md | 61 + .../methods/account_resetAuthorization.md | 66 + .../methods/account_resetNotifySettings.md | 52 + .../methods/account_resetWebAuthorization.md | 68 + .../methods/account_resetWebAuthorizations.md | 61 + .../methods/account_saveSecureValue.md | 71 + .../methods/account_sendChangePhoneCode.md | 72 + .../methods/account_sendConfirmPhoneCode.md | 72 + .../methods/account_sendVerifyEmailCode.md | 68 + .../methods/account_sendVerifyPhoneCode.md | 74 + .../methods/account_setAccountTTL.md | 66 + .../account_setContactSignUpNotification.md | 68 + .../methods/account_setPrivacy.md | 69 + .../methods/account_unregisterDevice.md | 72 + .../methods/account_updateDeviceLocked.md | 59 + .../methods/account_updateNotifySettings.md | 69 + .../methods/account_updatePasswordSettings.md | 14 + .../methods/account_updateProfile.md | 73 + .../methods/account_updateStatus.md | 66 + .../methods/account_updateUsername.md | 69 + .../methods/account_verifyEmail.md | 71 + .../methods/account_verifyPhone.md | 74 + old_docs/API_docs_v91/methods/api_README.md | 652 ++++++ .../methods/auth_bindTempAuthKey.md | 14 + .../API_docs_v91/methods/auth_cancelCode.md | 69 + .../methods/auth_checkPassword.md | 14 + .../methods/auth_dropTempAuthKeys.md | 68 + .../methods/auth_exportAuthorization.md | 14 + .../methods/auth_importAuthorization.md | 14 + .../methods/auth_importBotAuthorization.md | 14 + old_docs/API_docs_v91/methods/auth_logOut.md | 14 + .../methods/auth_recoverPassword.md | 66 + .../methods/auth_requestPasswordRecovery.md | 59 + .../API_docs_v91/methods/auth_resendCode.md | 69 + .../methods/auth_resetAuthorizations.md | 59 + .../API_docs_v91/methods/auth_sendCode.md | 14 + old_docs/API_docs_v91/methods/auth_signIn.md | 14 + old_docs/API_docs_v91/methods/auth_signUp.md | 14 + .../methods/bots_answerWebhookJSONQuery.md | 79 + .../methods/bots_sendCustomRequest.md | 78 + .../methods/channels_checkUsername.md | 71 + .../methods/channels_createChannel.md | 76 + .../methods/channels_deleteChannel.md | 67 + .../methods/channels_deleteHistory.md | 71 + .../methods/channels_deleteMessages.md | 80 + .../methods/channels_deleteUserHistory.md | 70 + .../methods/channels_editAbout.md | 0 .../methods/channels_editAdmin.md | 90 + .../methods/channels_editBanned.md | 85 + .../methods/channels_editPhoto.md | 80 + .../methods/channels_editTitle.md | 80 + .../methods/channels_exportInvite.md | 0 .../methods/channels_exportMessageLink.md | 72 + .../methods/channels_getAdminLog.md | 86 + .../channels_getAdminedPublicChannels.md | 52 + .../methods/channels_getChannels.md | 77 + .../methods/channels_getFullChannel.md | 14 + .../methods/channels_getLeftChannels.md | 68 + .../methods/channels_getMessages.md | 80 + .../methods/channels_getParticipant.md | 82 + .../methods/channels_getParticipants.md | 91 + .../methods/channels_inviteToChannel.md | 84 + .../methods/channels_joinChannel.md | 68 + .../methods/channels_leaveChannel.md | 79 + .../methods/channels_readHistory.md | 70 + .../methods/channels_readMessageContents.md | 70 + .../methods/channels_reportSpam.md | 73 + .../methods/channels_setStickers.md | 79 + .../methods/channels_toggleInvites.md | 0 .../channels_togglePreHistoryHidden.md | 71 + .../methods/channels_toggleSignatures.md | 69 + .../methods/channels_updateUsername.md | 73 + .../API_docs_v91/methods/contacts_block.md | 66 + .../methods/contacts_deleteByPhones.md | 68 + .../methods/contacts_deleteContact.md | 66 + .../methods/contacts_deleteContacts.md | 67 + .../methods/contacts_getBlocked.md | 62 + .../methods/contacts_getContactIDs.md | 68 + .../methods/contacts_getContacts.md | 59 + .../API_docs_v91/methods/contacts_getSaved.md | 61 + .../methods/contacts_getStatuses.md | 52 + .../methods/contacts_getTopPeers.md | 90 + .../methods/contacts_importContacts.md | 59 + .../methods/contacts_resetSaved.md | 61 + .../methods/contacts_resetTopPeerRating.md | 69 + .../methods/contacts_resolveUsername.md | 14 + .../API_docs_v91/methods/contacts_search.md | 71 + .../methods/contacts_toggleTopPeers.md | 68 + .../API_docs_v91/methods/contacts_unblock.md | 66 + .../methods/help_acceptTermsOfService.md | 68 + .../API_docs_v91/methods/help_editUserInfo.md | 107 + .../methods/help_getAppChangelog.md | 59 + .../API_docs_v91/methods/help_getAppConfig.md | 61 + .../API_docs_v91/methods/help_getAppUpdate.md | 59 + .../API_docs_v91/methods/help_getCdnConfig.md | 69 + .../API_docs_v91/methods/help_getConfig.md | 69 + .../methods/help_getDeepLinkInfo.md | 68 + .../methods/help_getInviteText.md | 52 + .../API_docs_v91/methods/help_getNearestDc.md | 52 + .../methods/help_getPassportConfig.md | 68 + .../API_docs_v91/methods/help_getProxyData.md | 61 + .../methods/help_getRecentMeUrls.md | 68 + .../API_docs_v91/methods/help_getSupport.md | 52 + .../methods/help_getSupportName.md | 61 + .../methods/help_getTermsOfServiceUpdate.md | 61 + .../API_docs_v91/methods/help_getUserInfo.md | 68 + .../API_docs_v91/methods/help_saveAppLog.md | 59 + .../methods/help_setBotUpdatesStatus.md | 77 + .../API_docs_v91/methods/initConnection.md | 100 + .../API_docs_v91/methods/invokeAfterMsg.md | 71 + .../API_docs_v91/methods/invokeAfterMsgs.md | 71 + .../API_docs_v91/methods/invokeWithLayer.md | 90 + .../methods/invokeWithMessagesRange.md | 71 + .../API_docs_v91/methods/invokeWithTakeout.md | 71 + .../methods/invokeWithoutUpdates.md | 68 + .../methods/langpack_getDifference.md | 69 + .../methods/langpack_getLangPack.md | 69 + .../methods/langpack_getLanguage.md | 71 + .../methods/langpack_getLanguages.md | 66 + .../methods/langpack_getStrings.md | 72 + .../methods/messages_acceptEncryption.md | 14 + .../methods/messages_addChatUser.md | 80 + .../methods/messages_checkChatInvite.md | 68 + .../methods/messages_clearAllDrafts.md | 61 + .../methods/messages_clearRecentStickers.md | 59 + .../methods/messages_createChat.md | 70 + .../methods/messages_deleteChatUser.md | 80 + .../methods/messages_deleteHistory.md | 72 + .../methods/messages_deleteMessages.md | 78 + .../methods/messages_discardEncryption.md | 14 + .../methods/messages_editChatAdmin.md | 72 + .../methods/messages_editChatPhoto.md | 82 + .../methods/messages_editChatTitle.md | 79 + .../methods/messages_editInlineBotMessage.md | 124 + .../methods/messages_editMessage.md | 133 ++ .../methods/messages_exportChatInvite.md | 66 + .../methods/messages_faveSticker.md | 78 + .../methods/messages_forwardMessages.md | 115 + .../methods/messages_getAllChats.md | 59 + .../methods/messages_getAllDrafts.md | 52 + .../methods/messages_getAllStickers.md | 59 + .../methods/messages_getArchivedStickers.md | 65 + .../methods/messages_getAttachedStickers.md | 59 + .../methods/messages_getBotCallbackAnswer.md | 79 + .../API_docs_v91/methods/messages_getChats.md | 76 + .../methods/messages_getCommonChats.md | 72 + .../methods/messages_getDhConfig.md | 14 + .../methods/messages_getDialogUnreadMarks.md | 61 + .../methods/messages_getDialogs.md | 84 + .../methods/messages_getDocumentByHash.md | 81 + .../methods/messages_getFavedStickers.md | 68 + .../methods/messages_getFeaturedStickers.md | 59 + .../methods/messages_getFullChat.md | 14 + .../methods/messages_getGameHighScores.md | 82 + .../methods/messages_getHistory.md | 93 + .../methods/messages_getInlineBotResults.md | 81 + .../messages_getInlineGameHighScores.md | 79 + .../methods/messages_getMaskStickers.md | 59 + .../methods/messages_getMessageEditData.md | 70 + .../methods/messages_getMessages.md | 68 + .../methods/messages_getMessagesViews.md | 74 + .../methods/messages_getOnlines.md | 68 + .../methods/messages_getPeerDialogs.md | 67 + .../methods/messages_getPeerSettings.md | 67 + .../methods/messages_getPinnedDialogs.md | 52 + .../methods/messages_getPollResults.md | 71 + .../methods/messages_getRecentLocations.md | 74 + .../methods/messages_getRecentStickers.md | 62 + .../methods/messages_getSavedGifs.md | 59 + .../methods/messages_getSplitRanges.md | 61 + .../methods/messages_getStatsURL.md | 68 + .../methods/messages_getStickerSet.md | 75 + .../methods/messages_getStickers.md | 71 + .../methods/messages_getUnreadMentions.md | 81 + .../methods/messages_getWebPage.md | 69 + .../methods/messages_getWebPagePreview.md | 97 + .../methods/messages_hideReportSpam.md | 66 + .../methods/messages_importChatInvite.md | 72 + .../methods/messages_installStickerSet.md | 69 + .../methods/messages_markDialogUnread.md | 71 + .../methods/messages_migrateChat.md | 68 + .../methods/messages_readEncryptedHistory.md | 78 + .../methods/messages_readFeaturedStickers.md | 59 + .../methods/messages_readHistory.md | 70 + .../methods/messages_readMentions.md | 68 + .../methods/messages_readMessageContents.md | 59 + .../methods/messages_receivedMessages.md | 59 + .../methods/messages_receivedQueue.md | 14 + .../methods/messages_reorderPinnedDialogs.md | 69 + .../methods/messages_reorderStickerSets.md | 62 + .../API_docs_v91/methods/messages_report.md | 74 + .../methods/messages_reportEncryptedSpam.md | 66 + .../methods/messages_reportSpam.md | 66 + .../methods/messages_requestEncryption.md | 14 + .../methods/messages_saveDraft.md | 107 + .../API_docs_v91/methods/messages_saveGif.md | 69 + .../methods/messages_saveRecentSticker.md | 72 + .../API_docs_v91/methods/messages_search.md | 105 + .../methods/messages_searchGifs.md | 69 + .../methods/messages_searchGlobal.md | 78 + .../methods/messages_searchStickerSets.md | 74 + .../methods/messages_sendEncrypted.md | 87 + .../methods/messages_sendEncryptedFile.md | 87 + .../methods/messages_sendEncryptedService.md | 87 + .../methods/messages_sendInlineBotResult.md | 92 + .../methods/messages_sendMedia.md | 148 ++ .../methods/messages_sendMessage.md | 148 ++ .../methods/messages_sendMultiMedia.md | 83 + .../messages_sendScreenshotNotification.md | 69 + .../API_docs_v91/methods/messages_sendVote.md | 74 + .../methods/messages_setBotCallbackAnswer.md | 93 + .../messages_setBotPrecheckoutResults.md | 81 + .../methods/messages_setBotShippingResults.md | 81 + .../methods/messages_setEncryptedTyping.md | 69 + .../methods/messages_setGameScore.md | 91 + .../methods/messages_setInlineBotResults.md | 103 + .../methods/messages_setInlineGameScore.md | 88 + .../methods/messages_setTyping.md | 85 + .../API_docs_v91/methods/messages_startBot.md | 75 + .../methods/messages_toggleChatAdmins.md | 0 .../methods/messages_toggleDialogPin.md | 69 + .../methods/messages_uninstallStickerSet.md | 66 + .../methods/messages_updatePinnedMessage.md | 74 + .../methods/messages_uploadEncryptedFile.md | 71 + .../methods/messages_uploadMedia.md | 80 + .../methods/payments_clearSavedInfo.md | 62 + .../methods/payments_getPaymentForm.md | 66 + .../methods/payments_getPaymentReceipt.md | 66 + .../methods/payments_getSavedInfo.md | 52 + .../methods/payments_sendPaymentForm.md | 75 + .../methods/payments_validateRequestedInfo.md | 72 + .../API_docs_v91/methods/phone_acceptCall.md | 14 + .../API_docs_v91/methods/phone_confirmCall.md | 14 + .../API_docs_v91/methods/phone_discardCall.md | 14 + .../methods/phone_getCallConfig.md | 52 + .../methods/phone_receivedCall.md | 67 + .../API_docs_v91/methods/phone_requestCall.md | 14 + .../methods/phone_saveCallDebug.md | 70 + .../methods/phone_setCallRating.md | 72 + .../methods/photos_deletePhotos.md | 59 + .../methods/photos_getUserPhotos.md | 85 + .../methods/photos_updateProfilePhoto.md | 59 + .../methods/photos_uploadProfilePhoto.md | 69 + .../methods/stickers_addStickerToSet.md | 79 + .../methods/stickers_changeStickerPosition.md | 79 + .../methods/stickers_createStickerSet.md | 95 + .../methods/stickers_removeStickerFromSet.md | 76 + .../methods/updates_getChannelDifference.md | 14 + .../methods/updates_getDifference.md | 14 + .../API_docs_v91/methods/updates_getState.md | 14 + .../API_docs_v91/methods/upload_getCdnFile.md | 14 + .../methods/upload_getCdnFileHashes.md | 14 + .../API_docs_v91/methods/upload_getFile.md | 14 + .../methods/upload_getFileHashes.md | 14 + .../API_docs_v91/methods/upload_getWebFile.md | 72 + .../methods/upload_reuploadCdnFile.md | 14 + .../methods/upload_saveBigFilePart.md | 14 + .../methods/upload_saveFilePart.md | 14 + .../API_docs_v91/methods/users_getFullUser.md | 14 + .../API_docs_v91/methods/users_getUsers.md | 79 + .../methods/users_setSecureValueErrors.md | 71 + old_docs/API_docs_v91/types/!X.md | 9 + .../API_docs_v91/types/AccessPointRule.md | 20 + old_docs/API_docs_v91/types/AccountDaysTTL.md | 22 + old_docs/API_docs_v91/types/Authorization.md | 20 + old_docs/API_docs_v91/types/Bool.md | 9 + old_docs/API_docs_v91/types/BotCommand.md | 20 + old_docs/API_docs_v91/types/BotInfo.md | 20 + .../API_docs_v91/types/BotInlineMessage.md | 28 + .../API_docs_v91/types/BotInlineResult.md | 22 + old_docs/API_docs_v91/types/CdnConfig.md | 22 + old_docs/API_docs_v91/types/CdnPublicKey.md | 20 + .../types/ChannelAdminLogEvent.md | 20 + .../types/ChannelAdminLogEventAction.md | 50 + .../types/ChannelAdminLogEventsFilter.md | 20 + .../API_docs_v91}/types/ChannelAdminRights.md | 0 .../types/ChannelBannedRights.md | 0 .../types/ChannelMessagesFilter.md | 22 + .../API_docs_v91/types/ChannelParticipant.md | 28 + .../types/ChannelParticipantsFilter.md | 30 + old_docs/API_docs_v91/types/Chat.md | 52 + old_docs/API_docs_v91/types/ChatFull.md | 22 + old_docs/API_docs_v91/types/ChatInvite.md | 24 + old_docs/API_docs_v91/types/ChatOnlines.md | 22 + .../API_docs_v91/types/ChatParticipant.md | 24 + .../API_docs_v91/types/ChatParticipants.md | 22 + old_docs/API_docs_v91/types/ChatPhoto.md | 22 + old_docs/API_docs_v91/types/Config.md | 22 + old_docs/API_docs_v91/types/Contact.md | 20 + old_docs/API_docs_v91/types/ContactBlocked.md | 20 + old_docs/API_docs_v91/types/ContactLink.md | 26 + old_docs/API_docs_v91/types/ContactStatus.md | 22 + old_docs/API_docs_v91/types/DataJSON.md | 9 + old_docs/API_docs_v91/types/DcOption.md | 20 + old_docs/API_docs_v91/types/Dialog.md | 20 + old_docs/API_docs_v91/types/DialogPeer.md | 46 + old_docs/API_docs_v91/types/Document.md | 24 + .../API_docs_v91/types/DocumentAttribute.md | 32 + old_docs/API_docs_v91/types/DraftMessage.md | 22 + old_docs/API_docs_v91/types/EncryptedChat.md | 32 + old_docs/API_docs_v91/types/EncryptedFile.md | 24 + .../API_docs_v91/types/EncryptedMessage.md | 22 + old_docs/API_docs_v91/types/Error.md | 20 + .../API_docs_v91/types/ExportedChatInvite.md | 26 + .../API_docs_v91/types/ExportedMessageLink.md | 22 + old_docs/API_docs_v91/types/FileHash.md | 26 + old_docs/API_docs_v91/types/FileLocation.md | 22 + old_docs/API_docs_v91/types/FoundGif.md | 22 + old_docs/API_docs_v91/types/Game.md | 20 + old_docs/API_docs_v91/types/GeoPoint.md | 22 + old_docs/API_docs_v91/types/HighScore.md | 20 + .../API_docs_v91/types/ImportedContact.md | 20 + .../API_docs_v91/types/InlineBotSwitchPM.md | 20 + old_docs/API_docs_v91/types/InputAppEvent.md | 20 + .../types/InputBotInlineMessage.md | 30 + .../types/InputBotInlineMessageID.md | 20 + .../types/InputBotInlineResult.md | 26 + old_docs/API_docs_v91/types/InputChannel.md | 46 + old_docs/API_docs_v91/types/InputChatPhoto.md | 24 + .../types/InputCheckPasswordSRP.md | 22 + .../API_docs_v91/types/InputClientProxy.md | 20 + old_docs/API_docs_v91/types/InputContact.md | 20 + .../API_docs_v91/types/InputDialogPeer.md | 44 + old_docs/API_docs_v91/types/InputDocument.md | 24 + .../API_docs_v91/types/InputEncryptedChat.md | 29 + .../API_docs_v91/types/InputEncryptedFile.md | 33 + old_docs/API_docs_v91/types/InputFile.md | 29 + .../API_docs_v91/types/InputFileLocation.md | 28 + old_docs/API_docs_v91/types/InputGame.md | 22 + old_docs/API_docs_v91/types/InputGeoPoint.md | 22 + old_docs/API_docs_v91/types/InputMedia.md | 50 + old_docs/API_docs_v91/types/InputMessage.md | 31 + .../API_docs_v91/types/InputNotifyPeer.md | 50 + .../types/InputPaymentCredentials.md | 26 + old_docs/API_docs_v91/types/InputPeer.md | 52 + .../types/InputPeerNotifySettings.md | 20 + old_docs/API_docs_v91/types/InputPhoneCall.md | 20 + old_docs/API_docs_v91/types/InputPhoto.md | 24 + .../API_docs_v91/types/InputPrivacyKey.md | 26 + .../API_docs_v91/types/InputPrivacyRule.md | 30 + .../API_docs_v91/types/InputSecureFile.md | 22 + .../API_docs_v91/types/InputSecureValue.md | 20 + .../API_docs_v91/types/InputSingleMedia.md | 20 + .../API_docs_v91/types/InputStickerSet.md | 24 + .../API_docs_v91/types/InputStickerSetItem.md | 20 + .../API_docs_v91/types/InputStickeredMedia.md | 22 + old_docs/API_docs_v91/types/InputUser.md | 48 + .../API_docs_v91/types/InputWebDocument.md | 20 + .../types/InputWebFileLocation.md | 22 + old_docs/API_docs_v91/types/Invoice.md | 20 + old_docs/API_docs_v91/types/IpPort.md | 22 + .../API_docs_v91/types/JSONObjectValue.md | 20 + old_docs/API_docs_v91/types/JSONValue.md | 32 + old_docs/API_docs_v91/types/KeyboardButton.md | 55 + .../API_docs_v91/types/KeyboardButtonRow.md | 20 + old_docs/API_docs_v91/types/LabeledPrice.md | 20 + .../API_docs_v91/types/LangPackDifference.md | 24 + .../API_docs_v91/types/LangPackLanguage.md | 24 + old_docs/API_docs_v91/types/LangPackString.md | 26 + old_docs/API_docs_v91/types/MaskCoords.md | 20 + old_docs/API_docs_v91/types/Message.md | 24 + old_docs/API_docs_v91/types/MessageAction.md | 64 + old_docs/API_docs_v91/types/MessageEntity.md | 48 + .../API_docs_v91/types/MessageFwdHeader.md | 20 + old_docs/API_docs_v91/types/MessageMedia.md | 46 + old_docs/API_docs_v91/types/MessageRange.md | 22 + old_docs/API_docs_v91/types/MessagesFilter.md | 50 + old_docs/API_docs_v91/types/NearestDc.md | 22 + old_docs/API_docs_v91/types/NotifyPeer.md | 50 + old_docs/API_docs_v91/types/Null.md | 20 + old_docs/API_docs_v91/types/Page.md | 20 + old_docs/API_docs_v91/types/PageBlock.md | 76 + old_docs/API_docs_v91/types/PageCaption.md | 20 + old_docs/API_docs_v91/types/PageListItem.md | 22 + .../API_docs_v91/types/PageListOrderedItem.md | 22 + .../API_docs_v91/types/PageRelatedArticle.md | 20 + old_docs/API_docs_v91/types/PageTableCell.md | 20 + old_docs/API_docs_v91/types/PageTableRow.md | 20 + .../API_docs_v91/types/PasswordKdfAlgo.md | 22 + old_docs/API_docs_v91/types/PaymentCharge.md | 20 + .../types/PaymentRequestedInfo.md | 20 + .../types/PaymentSavedCredentials.md | 20 + old_docs/API_docs_v91/types/Peer.md | 48 + .../API_docs_v91/types/PeerNotifySettings.md | 22 + old_docs/API_docs_v91/types/PeerSettings.md | 22 + old_docs/API_docs_v91/types/PhoneCall.md | 187 ++ .../types/PhoneCallDiscardReason.md | 26 + .../API_docs_v91/types/PhoneCallProtocol.md | 20 + .../API_docs_v91/types/PhoneConnection.md | 20 + old_docs/API_docs_v91/types/Photo.md | 22 + old_docs/API_docs_v91/types/PhotoSize.md | 24 + old_docs/API_docs_v91/types/Poll.md | 20 + old_docs/API_docs_v91/types/PollAnswer.md | 20 + .../API_docs_v91/types/PollAnswerVoters.md | 20 + old_docs/API_docs_v91/types/PollResults.md | 20 + old_docs/API_docs_v91/types/PopularContact.md | 20 + old_docs/API_docs_v91/types/PostAddress.md | 20 + old_docs/API_docs_v91/types/PrivacyKey.md | 26 + old_docs/API_docs_v91/types/PrivacyRule.md | 30 + old_docs/API_docs_v91/types/README.md | 519 +++++ .../types/ReceivedNotifyMessage.md | 22 + old_docs/API_docs_v91/types/RecentMeUrl.md | 28 + old_docs/API_docs_v91/types/ReplyMarkup.md | 26 + old_docs/API_docs_v91/types/ReportReason.md | 30 + old_docs/API_docs_v91/types/RichText.md | 50 + old_docs/API_docs_v91/types/SavedContact.md | 22 + .../types/SecureCredentialsEncrypted.md | 20 + old_docs/API_docs_v91/types/SecureData.md | 20 + old_docs/API_docs_v91/types/SecureFile.md | 22 + .../types/SecurePasswordKdfAlgo.md | 24 + .../API_docs_v91/types/SecurePlainData.md | 22 + .../API_docs_v91/types/SecureRequiredType.md | 22 + .../types/SecureSecretSettings.md | 20 + old_docs/API_docs_v91/types/SecureValue.md | 26 + .../API_docs_v91/types/SecureValueError.md | 36 + .../API_docs_v91/types/SecureValueHash.md | 20 + .../API_docs_v91/types/SecureValueType.md | 44 + .../API_docs_v91/types/SendMessageAction.md | 44 + old_docs/API_docs_v91/types/ShippingOption.md | 20 + old_docs/API_docs_v91/types/StatsURL.md | 22 + old_docs/API_docs_v91/types/StickerPack.md | 20 + old_docs/API_docs_v91/types/StickerSet.md | 20 + .../API_docs_v91/types/StickerSetCovered.md | 24 + old_docs/API_docs_v91/types/TopPeer.md | 20 + .../API_docs_v91/types/TopPeerCategory.md | 30 + .../types/TopPeerCategoryPeers.md | 20 + old_docs/API_docs_v91/types/True.md | 20 + old_docs/API_docs_v91/types/Update.md | 156 ++ old_docs/API_docs_v91/types/Updates.md | 106 + old_docs/API_docs_v91/types/User.md | 54 + old_docs/API_docs_v91/types/UserFull.md | 22 + .../API_docs_v91/types/UserProfilePhoto.md | 24 + old_docs/API_docs_v91/types/UserStatus.md | 30 + old_docs/API_docs_v91/types/WallPaper.md | 24 + .../API_docs_v91/types/WebAuthorization.md | 20 + old_docs/API_docs_v91/types/WebDocument.md | 22 + old_docs/API_docs_v91/types/WebPage.md | 28 + old_docs/API_docs_v91/types/X.md | 9 + .../types/account_AuthorizationForm.md | 22 + .../types/account_Authorizations.md | 22 + .../API_docs_v91/types/account_Password.md | 22 + .../types/account_PasswordInputSettings.md | 20 + .../types/account_PasswordSettings.md | 22 + .../types/account_PrivacyRules.md | 24 + .../types/account_SentEmailCode.md | 22 + .../API_docs_v91/types/account_Takeout.md | 22 + .../API_docs_v91/types/account_TmpPassword.md | 22 + .../types/account_WebAuthorizations.md | 22 + .../API_docs_v91/types/auth_Authorization.md | 32 + .../API_docs_v91/types/auth_CheckedPhone.md | 20 + old_docs/API_docs_v91/types/auth_CodeType.md | 24 + .../types/auth_ExportedAuthorization.md | 22 + .../types/auth_PasswordRecovery.md | 22 + old_docs/API_docs_v91/types/auth_SentCode.md | 30 + .../API_docs_v91/types/auth_SentCodeType.md | 26 + old_docs/API_docs_v91/types/bytes.md | 17 + .../types/channels_AdminLogResults.md | 22 + .../types/channels_ChannelParticipant.md | 22 + .../types/channels_ChannelParticipants.md | 24 + .../API_docs_v91/types/contacts_Blocked.md | 24 + .../API_docs_v91/types/contacts_Contacts.md | 24 + old_docs/API_docs_v91/types/contacts_Found.md | 22 + .../types/contacts_ImportedContacts.md | 22 + old_docs/API_docs_v91/types/contacts_Link.md | 22 + .../types/contacts_ResolvedPeer.md | 22 + .../API_docs_v91/types/contacts_TopPeers.md | 26 + old_docs/API_docs_v91/types/double.md | 9 + old_docs/API_docs_v91/types/help_AppUpdate.md | 24 + .../API_docs_v91/types/help_ConfigSimple.md | 20 + .../API_docs_v91/types/help_DeepLinkInfo.md | 24 + .../API_docs_v91/types/help_InviteText.md | 22 + .../API_docs_v91/types/help_PassportConfig.md | 24 + old_docs/API_docs_v91/types/help_ProxyData.md | 24 + .../API_docs_v91/types/help_RecentMeUrls.md | 22 + old_docs/API_docs_v91/types/help_Support.md | 22 + .../API_docs_v91/types/help_SupportName.md | 22 + .../API_docs_v91/types/help_TermsOfService.md | 20 + .../types/help_TermsOfServiceUpdate.md | 24 + old_docs/API_docs_v91/types/help_UserInfo.md | 26 + old_docs/API_docs_v91/types/int.md | 9 + old_docs/API_docs_v91/types/int128.md | 9 + old_docs/API_docs_v91/types/int256.md | 9 + old_docs/API_docs_v91/types/int512.md | 9 + old_docs/API_docs_v91/types/int53.md | 9 + old_docs/API_docs_v91/types/long.md | 9 + .../types/messages_AffectedHistory.md | 26 + .../types/messages_AffectedMessages.md | 28 + .../types/messages_AllStickers.md | 26 + .../types/messages_ArchivedStickers.md | 22 + .../types/messages_BotCallbackAnswer.md | 22 + .../API_docs_v91/types/messages_BotResults.md | 22 + .../API_docs_v91/types/messages_ChatFull.md | 24 + old_docs/API_docs_v91/types/messages_Chats.md | 34 + .../API_docs_v91/types/messages_DhConfig.md | 24 + .../API_docs_v91/types/messages_Dialogs.md | 26 + .../types/messages_FavedStickers.md | 24 + .../types/messages_FeaturedStickers.md | 24 + .../API_docs_v91/types/messages_FoundGifs.md | 22 + .../types/messages_FoundStickerSets.md | 24 + .../API_docs_v91/types/messages_HighScores.md | 24 + .../types/messages_MessageEditData.md | 22 + .../API_docs_v91/types/messages_Messages.md | 40 + .../types/messages_PeerDialogs.md | 24 + .../types/messages_RecentStickers.md | 24 + .../API_docs_v91/types/messages_SavedGifs.md | 24 + .../types/messages_SentEncryptedMessage.md | 28 + .../API_docs_v91/types/messages_StickerSet.md | 30 + .../types/messages_StickerSetInstallResult.md | 24 + .../API_docs_v91/types/messages_Stickers.md | 24 + .../types/payments_PaymentForm.md | 22 + .../types/payments_PaymentReceipt.md | 22 + .../types/payments_PaymentResult.md | 24 + .../API_docs_v91/types/payments_SavedInfo.md | 22 + .../types/payments_ValidatedRequestedInfo.md | 22 + .../API_docs_v91/types/phone_PhoneCall.md | 26 + old_docs/API_docs_v91/types/photos_Photo.md | 22 + old_docs/API_docs_v91/types/photos_Photos.md | 24 + .../API_docs_v91/types/storage_FileType.md | 38 + old_docs/API_docs_v91/types/string.md | 9 + .../types/updates_ChannelDifference.md | 26 + .../API_docs_v91/types/updates_Difference.md | 28 + old_docs/API_docs_v91/types/updates_State.md | 22 + old_docs/API_docs_v91/types/upload_CdnFile.md | 24 + old_docs/API_docs_v91/types/upload_File.md | 24 + old_docs/API_docs_v91/types/upload_WebFile.md | 22 + old_docs/README.md | 2 +- 1328 files changed, 62161 insertions(+), 137 deletions(-) create mode 100644 docs/API_docs/constructors/account_wallPapers.md create mode 100644 docs/API_docs/constructors/account_wallPapersNotModified.md create mode 100644 docs/API_docs/constructors/channelAdminLogEventActionDefaultBannedRights.md create mode 100644 docs/API_docs/constructors/channelAdminLogEventActionStopPoll.md create mode 100644 docs/API_docs/constructors/channelParticipantsContacts.md create mode 100644 docs/API_docs/constructors/chatAdminRights.md create mode 100644 docs/API_docs/constructors/chatBannedRights.md create mode 100644 docs/API_docs/constructors/codeSettings.md create mode 100644 docs/API_docs/constructors/inputWallPaper.md create mode 100644 docs/API_docs/constructors/inputWallPaperSlug.md create mode 100644 docs/API_docs/constructors/photoStrippedSize.md create mode 100644 docs/API_docs/constructors/updateChatDefaultBannedRights.md create mode 100644 docs/API_docs/constructors/wallPaperSettings.md create mode 100644 docs/API_docs/methods/account_getWallPaper.md create mode 100644 docs/API_docs/methods/account_installWallPaper.md create mode 100644 docs/API_docs/methods/account_resetWallPapers.md create mode 100644 docs/API_docs/methods/account_saveWallPaper.md create mode 100644 docs/API_docs/methods/account_uploadWallPaper.md create mode 100644 docs/API_docs/methods/messages_editChatAbout.md create mode 100644 docs/API_docs/methods/messages_editChatDefaultBannedRights.md create mode 100644 docs/API_docs/types/ChatAdminRights.md create mode 100644 docs/API_docs/types/ChatBannedRights.md create mode 100644 docs/API_docs/types/CodeSettings.md create mode 100644 docs/API_docs/types/InputWallPaper.md create mode 100644 docs/API_docs/types/WallPaperSettings.md create mode 100644 docs/API_docs/types/account_WallPapers.md create mode 100644 old_docs/API_docs_v91/README.md create mode 100644 old_docs/API_docs_v91/constructors/README.md create mode 100644 old_docs/API_docs_v91/constructors/accessPointRule.md create mode 100644 old_docs/API_docs_v91/constructors/accountDaysTTL.md create mode 100644 old_docs/API_docs_v91/constructors/account_authorizationForm.md create mode 100644 old_docs/API_docs_v91/constructors/account_authorizations.md create mode 100644 old_docs/API_docs_v91/constructors/account_password.md create mode 100644 old_docs/API_docs_v91/constructors/account_passwordInputSettings.md create mode 100644 old_docs/API_docs_v91/constructors/account_passwordSettings.md create mode 100644 old_docs/API_docs_v91/constructors/account_privacyRules.md create mode 100644 old_docs/API_docs_v91/constructors/account_sentEmailCode.md create mode 100644 old_docs/API_docs_v91/constructors/account_takeout.md create mode 100644 old_docs/API_docs_v91/constructors/account_tmpPassword.md create mode 100644 old_docs/API_docs_v91/constructors/account_webAuthorizations.md create mode 100644 old_docs/API_docs_v91/constructors/auth_authorization.md create mode 100644 old_docs/API_docs_v91/constructors/auth_checkedPhone.md create mode 100644 old_docs/API_docs_v91/constructors/auth_codeTypeCall.md create mode 100644 old_docs/API_docs_v91/constructors/auth_codeTypeFlashCall.md create mode 100644 old_docs/API_docs_v91/constructors/auth_codeTypeSms.md create mode 100644 old_docs/API_docs_v91/constructors/auth_exportedAuthorization.md create mode 100644 old_docs/API_docs_v91/constructors/auth_passwordRecovery.md create mode 100644 old_docs/API_docs_v91/constructors/auth_sentCode.md create mode 100644 old_docs/API_docs_v91/constructors/auth_sentCodeTypeApp.md create mode 100644 old_docs/API_docs_v91/constructors/auth_sentCodeTypeCall.md create mode 100644 old_docs/API_docs_v91/constructors/auth_sentCodeTypeFlashCall.md create mode 100644 old_docs/API_docs_v91/constructors/auth_sentCodeTypeSms.md create mode 100644 old_docs/API_docs_v91/constructors/authorization.md create mode 100644 old_docs/API_docs_v91/constructors/boolFalse.md create mode 100644 old_docs/API_docs_v91/constructors/boolTrue.md create mode 100644 old_docs/API_docs_v91/constructors/botCommand.md create mode 100644 old_docs/API_docs_v91/constructors/botInfo.md create mode 100644 old_docs/API_docs_v91/constructors/botInlineMediaResult.md create mode 100644 old_docs/API_docs_v91/constructors/botInlineMessageMediaAuto.md create mode 100644 old_docs/API_docs_v91/constructors/botInlineMessageMediaContact.md create mode 100644 old_docs/API_docs_v91/constructors/botInlineMessageMediaGeo.md create mode 100644 old_docs/API_docs_v91/constructors/botInlineMessageMediaVenue.md create mode 100644 old_docs/API_docs_v91/constructors/botInlineMessageText.md create mode 100644 old_docs/API_docs_v91/constructors/botInlineResult.md create mode 100644 old_docs/API_docs_v91/constructors/cdnConfig.md create mode 100644 old_docs/API_docs_v91/constructors/cdnPublicKey.md create mode 100644 old_docs/API_docs_v91/constructors/channel.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEvent.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeAbout.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangePhoto.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeStickerSet.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeTitle.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeUsername.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionDeleteMessage.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionEditMessage.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantInvite.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantJoin.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantLeave.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantToggleAdmin.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantToggleBan.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionToggleInvites.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionTogglePreHistoryHidden.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionToggleSignatures.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventActionUpdatePinned.md create mode 100644 old_docs/API_docs_v91/constructors/channelAdminLogEventsFilter.md rename {docs/API_docs => old_docs/API_docs_v91}/constructors/channelAdminRights.md (100%) rename {docs/API_docs => old_docs/API_docs_v91}/constructors/channelBannedRights.md (100%) create mode 100644 old_docs/API_docs_v91/constructors/channelForbidden.md create mode 100644 old_docs/API_docs_v91/constructors/channelFull.md create mode 100644 old_docs/API_docs_v91/constructors/channelMessagesFilter.md create mode 100644 old_docs/API_docs_v91/constructors/channelMessagesFilterEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/channelParticipant.md create mode 100644 old_docs/API_docs_v91/constructors/channelParticipantAdmin.md create mode 100644 old_docs/API_docs_v91/constructors/channelParticipantBanned.md create mode 100644 old_docs/API_docs_v91/constructors/channelParticipantCreator.md create mode 100644 old_docs/API_docs_v91/constructors/channelParticipantSelf.md create mode 100644 old_docs/API_docs_v91/constructors/channelParticipantsAdmins.md create mode 100644 old_docs/API_docs_v91/constructors/channelParticipantsBanned.md create mode 100644 old_docs/API_docs_v91/constructors/channelParticipantsBots.md create mode 100644 old_docs/API_docs_v91/constructors/channelParticipantsKicked.md create mode 100644 old_docs/API_docs_v91/constructors/channelParticipantsRecent.md create mode 100644 old_docs/API_docs_v91/constructors/channelParticipantsSearch.md create mode 100644 old_docs/API_docs_v91/constructors/channels_adminLogResults.md create mode 100644 old_docs/API_docs_v91/constructors/channels_channelParticipant.md create mode 100644 old_docs/API_docs_v91/constructors/channels_channelParticipants.md create mode 100644 old_docs/API_docs_v91/constructors/channels_channelParticipantsNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/chat.md create mode 100644 old_docs/API_docs_v91/constructors/chatEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/chatForbidden.md create mode 100644 old_docs/API_docs_v91/constructors/chatFull.md create mode 100644 old_docs/API_docs_v91/constructors/chatInvite.md create mode 100644 old_docs/API_docs_v91/constructors/chatInviteAlready.md create mode 100644 old_docs/API_docs_v91/constructors/chatInviteEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/chatInviteExported.md create mode 100644 old_docs/API_docs_v91/constructors/chatOnlines.md create mode 100644 old_docs/API_docs_v91/constructors/chatParticipant.md create mode 100644 old_docs/API_docs_v91/constructors/chatParticipantAdmin.md create mode 100644 old_docs/API_docs_v91/constructors/chatParticipantCreator.md create mode 100644 old_docs/API_docs_v91/constructors/chatParticipants.md create mode 100644 old_docs/API_docs_v91/constructors/chatParticipantsForbidden.md create mode 100644 old_docs/API_docs_v91/constructors/chatPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/chatPhotoEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/config.md create mode 100644 old_docs/API_docs_v91/constructors/contact.md create mode 100644 old_docs/API_docs_v91/constructors/contactBlocked.md create mode 100644 old_docs/API_docs_v91/constructors/contactLinkContact.md create mode 100644 old_docs/API_docs_v91/constructors/contactLinkHasPhone.md create mode 100644 old_docs/API_docs_v91/constructors/contactLinkNone.md create mode 100644 old_docs/API_docs_v91/constructors/contactLinkUnknown.md create mode 100644 old_docs/API_docs_v91/constructors/contactStatus.md create mode 100644 old_docs/API_docs_v91/constructors/contacts_blocked.md create mode 100644 old_docs/API_docs_v91/constructors/contacts_blockedSlice.md create mode 100644 old_docs/API_docs_v91/constructors/contacts_contacts.md create mode 100644 old_docs/API_docs_v91/constructors/contacts_contactsNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/contacts_found.md create mode 100644 old_docs/API_docs_v91/constructors/contacts_importedContacts.md create mode 100644 old_docs/API_docs_v91/constructors/contacts_link.md create mode 100644 old_docs/API_docs_v91/constructors/contacts_resolvedPeer.md create mode 100644 old_docs/API_docs_v91/constructors/contacts_topPeers.md create mode 100644 old_docs/API_docs_v91/constructors/contacts_topPeersDisabled.md create mode 100644 old_docs/API_docs_v91/constructors/contacts_topPeersNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/dataJSON.md create mode 100644 old_docs/API_docs_v91/constructors/dcOption.md create mode 100644 old_docs/API_docs_v91/constructors/dialog.md create mode 100644 old_docs/API_docs_v91/constructors/dialogPeer.md create mode 100644 old_docs/API_docs_v91/constructors/document.md create mode 100644 old_docs/API_docs_v91/constructors/documentAttributeAnimated.md create mode 100644 old_docs/API_docs_v91/constructors/documentAttributeAudio.md create mode 100644 old_docs/API_docs_v91/constructors/documentAttributeFilename.md create mode 100644 old_docs/API_docs_v91/constructors/documentAttributeHasStickers.md create mode 100644 old_docs/API_docs_v91/constructors/documentAttributeImageSize.md create mode 100644 old_docs/API_docs_v91/constructors/documentAttributeSticker.md create mode 100644 old_docs/API_docs_v91/constructors/documentAttributeVideo.md create mode 100644 old_docs/API_docs_v91/constructors/documentEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/draftMessage.md create mode 100644 old_docs/API_docs_v91/constructors/draftMessageEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/encryptedChat.md create mode 100644 old_docs/API_docs_v91/constructors/encryptedChatDiscarded.md create mode 100644 old_docs/API_docs_v91/constructors/encryptedChatEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/encryptedChatRequested.md create mode 100644 old_docs/API_docs_v91/constructors/encryptedChatWaiting.md create mode 100644 old_docs/API_docs_v91/constructors/encryptedFile.md create mode 100644 old_docs/API_docs_v91/constructors/encryptedFileEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/encryptedMessage.md create mode 100644 old_docs/API_docs_v91/constructors/encryptedMessageService.md create mode 100644 old_docs/API_docs_v91/constructors/error.md create mode 100644 old_docs/API_docs_v91/constructors/exportedMessageLink.md create mode 100644 old_docs/API_docs_v91/constructors/fileHash.md create mode 100644 old_docs/API_docs_v91/constructors/fileLocation.md create mode 100644 old_docs/API_docs_v91/constructors/fileLocationUnavailable.md create mode 100644 old_docs/API_docs_v91/constructors/foundGif.md create mode 100644 old_docs/API_docs_v91/constructors/foundGifCached.md create mode 100644 old_docs/API_docs_v91/constructors/game.md create mode 100644 old_docs/API_docs_v91/constructors/geoPoint.md create mode 100644 old_docs/API_docs_v91/constructors/geoPointEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/help_appUpdate.md create mode 100644 old_docs/API_docs_v91/constructors/help_configSimple.md create mode 100644 old_docs/API_docs_v91/constructors/help_deepLinkInfo.md create mode 100644 old_docs/API_docs_v91/constructors/help_deepLinkInfoEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/help_inviteText.md create mode 100644 old_docs/API_docs_v91/constructors/help_noAppUpdate.md create mode 100644 old_docs/API_docs_v91/constructors/help_passportConfig.md create mode 100644 old_docs/API_docs_v91/constructors/help_passportConfigNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/help_proxyDataEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/help_proxyDataPromo.md create mode 100644 old_docs/API_docs_v91/constructors/help_recentMeUrls.md create mode 100644 old_docs/API_docs_v91/constructors/help_support.md create mode 100644 old_docs/API_docs_v91/constructors/help_supportName.md create mode 100644 old_docs/API_docs_v91/constructors/help_termsOfService.md create mode 100644 old_docs/API_docs_v91/constructors/help_termsOfServiceUpdate.md create mode 100644 old_docs/API_docs_v91/constructors/help_termsOfServiceUpdateEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/help_userInfo.md create mode 100644 old_docs/API_docs_v91/constructors/help_userInfoEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/highScore.md create mode 100644 old_docs/API_docs_v91/constructors/importedContact.md create mode 100644 old_docs/API_docs_v91/constructors/inlineBotSwitchPM.md create mode 100644 old_docs/API_docs_v91/constructors/inputAppEvent.md create mode 100644 old_docs/API_docs_v91/constructors/inputBotInlineMessageGame.md create mode 100644 old_docs/API_docs_v91/constructors/inputBotInlineMessageID.md create mode 100644 old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaAuto.md create mode 100644 old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaContact.md create mode 100644 old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaGeo.md create mode 100644 old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaVenue.md create mode 100644 old_docs/API_docs_v91/constructors/inputBotInlineMessageText.md create mode 100644 old_docs/API_docs_v91/constructors/inputBotInlineResult.md create mode 100644 old_docs/API_docs_v91/constructors/inputBotInlineResultDocument.md create mode 100644 old_docs/API_docs_v91/constructors/inputBotInlineResultGame.md create mode 100644 old_docs/API_docs_v91/constructors/inputBotInlineResultPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/inputChannel.md create mode 100644 old_docs/API_docs_v91/constructors/inputChannelEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputChatPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/inputChatPhotoEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputChatUploadedPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/inputCheckPasswordEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputCheckPasswordSRP.md create mode 100644 old_docs/API_docs_v91/constructors/inputClientProxy.md create mode 100644 old_docs/API_docs_v91/constructors/inputDialogPeer.md create mode 100644 old_docs/API_docs_v91/constructors/inputDocument.md create mode 100644 old_docs/API_docs_v91/constructors/inputDocumentEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputDocumentFileLocation.md create mode 100644 old_docs/API_docs_v91/constructors/inputEncryptedChat.md create mode 100644 old_docs/API_docs_v91/constructors/inputEncryptedFile.md create mode 100644 old_docs/API_docs_v91/constructors/inputEncryptedFileBigUploaded.md create mode 100644 old_docs/API_docs_v91/constructors/inputEncryptedFileEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputEncryptedFileLocation.md create mode 100644 old_docs/API_docs_v91/constructors/inputEncryptedFileUploaded.md create mode 100644 old_docs/API_docs_v91/constructors/inputFile.md create mode 100644 old_docs/API_docs_v91/constructors/inputFileBig.md create mode 100644 old_docs/API_docs_v91/constructors/inputFileLocation.md create mode 100644 old_docs/API_docs_v91/constructors/inputGameID.md create mode 100644 old_docs/API_docs_v91/constructors/inputGameShortName.md create mode 100644 old_docs/API_docs_v91/constructors/inputGeoPoint.md create mode 100644 old_docs/API_docs_v91/constructors/inputGeoPointEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaContact.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaDocument.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaDocumentExternal.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaGame.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaGeoLive.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaGeoPoint.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaGifExternal.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaInvoice.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaPhotoExternal.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaPoll.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaUploadedDocument.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaUploadedPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/inputMediaVenue.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessageEntityMentionName.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessageID.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagePinned.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessageReplyTo.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterChatPhotos.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterContacts.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterDocument.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterGeo.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterGif.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterMusic.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterMyMentions.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterPhoneCalls.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterPhotoVideo.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterPhotos.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterRoundVideo.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterRoundVoice.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterUrl.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterVideo.md create mode 100644 old_docs/API_docs_v91/constructors/inputMessagesFilterVoice.md create mode 100644 old_docs/API_docs_v91/constructors/inputNotifyBroadcasts.md create mode 100644 old_docs/API_docs_v91/constructors/inputNotifyChats.md create mode 100644 old_docs/API_docs_v91/constructors/inputNotifyPeer.md create mode 100644 old_docs/API_docs_v91/constructors/inputNotifyUsers.md create mode 100644 old_docs/API_docs_v91/constructors/inputPaymentCredentials.md create mode 100644 old_docs/API_docs_v91/constructors/inputPaymentCredentialsAndroidPay.md create mode 100644 old_docs/API_docs_v91/constructors/inputPaymentCredentialsApplePay.md create mode 100644 old_docs/API_docs_v91/constructors/inputPaymentCredentialsSaved.md create mode 100644 old_docs/API_docs_v91/constructors/inputPeerChannel.md create mode 100644 old_docs/API_docs_v91/constructors/inputPeerChat.md create mode 100644 old_docs/API_docs_v91/constructors/inputPeerEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputPeerNotifySettings.md create mode 100644 old_docs/API_docs_v91/constructors/inputPeerSelf.md create mode 100644 old_docs/API_docs_v91/constructors/inputPeerUser.md create mode 100644 old_docs/API_docs_v91/constructors/inputPhoneCall.md create mode 100644 old_docs/API_docs_v91/constructors/inputPhoneContact.md create mode 100644 old_docs/API_docs_v91/constructors/inputPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/inputPhotoEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputPrivacyKeyChatInvite.md create mode 100644 old_docs/API_docs_v91/constructors/inputPrivacyKeyPhoneCall.md create mode 100644 old_docs/API_docs_v91/constructors/inputPrivacyKeyPhoneP2P.md create mode 100644 old_docs/API_docs_v91/constructors/inputPrivacyKeyStatusTimestamp.md create mode 100644 old_docs/API_docs_v91/constructors/inputPrivacyValueAllowAll.md create mode 100644 old_docs/API_docs_v91/constructors/inputPrivacyValueAllowContacts.md create mode 100644 old_docs/API_docs_v91/constructors/inputPrivacyValueAllowUsers.md create mode 100644 old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowAll.md create mode 100644 old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowContacts.md create mode 100644 old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowUsers.md create mode 100644 old_docs/API_docs_v91/constructors/inputReportReasonChildAbuse.md create mode 100644 old_docs/API_docs_v91/constructors/inputReportReasonCopyright.md create mode 100644 old_docs/API_docs_v91/constructors/inputReportReasonOther.md create mode 100644 old_docs/API_docs_v91/constructors/inputReportReasonPornography.md create mode 100644 old_docs/API_docs_v91/constructors/inputReportReasonSpam.md create mode 100644 old_docs/API_docs_v91/constructors/inputReportReasonViolence.md create mode 100644 old_docs/API_docs_v91/constructors/inputSecureFile.md create mode 100644 old_docs/API_docs_v91/constructors/inputSecureFileLocation.md create mode 100644 old_docs/API_docs_v91/constructors/inputSecureFileUploaded.md create mode 100644 old_docs/API_docs_v91/constructors/inputSecureValue.md create mode 100644 old_docs/API_docs_v91/constructors/inputSingleMedia.md create mode 100644 old_docs/API_docs_v91/constructors/inputStickerSetEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputStickerSetID.md create mode 100644 old_docs/API_docs_v91/constructors/inputStickerSetItem.md create mode 100644 old_docs/API_docs_v91/constructors/inputStickerSetShortName.md create mode 100644 old_docs/API_docs_v91/constructors/inputStickeredMediaDocument.md create mode 100644 old_docs/API_docs_v91/constructors/inputStickeredMediaPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/inputTakeoutFileLocation.md create mode 100644 old_docs/API_docs_v91/constructors/inputUser.md create mode 100644 old_docs/API_docs_v91/constructors/inputUserEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/inputUserSelf.md create mode 100644 old_docs/API_docs_v91/constructors/inputWebDocument.md create mode 100644 old_docs/API_docs_v91/constructors/inputWebFileGeoPointLocation.md create mode 100644 old_docs/API_docs_v91/constructors/inputWebFileLocation.md create mode 100644 old_docs/API_docs_v91/constructors/invoice.md create mode 100644 old_docs/API_docs_v91/constructors/ipPort.md create mode 100644 old_docs/API_docs_v91/constructors/ipPortSecret.md create mode 100644 old_docs/API_docs_v91/constructors/jsonArray.md create mode 100644 old_docs/API_docs_v91/constructors/jsonBool.md create mode 100644 old_docs/API_docs_v91/constructors/jsonNull.md create mode 100644 old_docs/API_docs_v91/constructors/jsonNumber.md create mode 100644 old_docs/API_docs_v91/constructors/jsonObject.md create mode 100644 old_docs/API_docs_v91/constructors/jsonObjectValue.md create mode 100644 old_docs/API_docs_v91/constructors/jsonString.md create mode 100644 old_docs/API_docs_v91/constructors/keyboardButton.md create mode 100644 old_docs/API_docs_v91/constructors/keyboardButtonBuy.md create mode 100644 old_docs/API_docs_v91/constructors/keyboardButtonCallback.md create mode 100644 old_docs/API_docs_v91/constructors/keyboardButtonGame.md create mode 100644 old_docs/API_docs_v91/constructors/keyboardButtonRequestGeoLocation.md create mode 100644 old_docs/API_docs_v91/constructors/keyboardButtonRequestPhone.md create mode 100644 old_docs/API_docs_v91/constructors/keyboardButtonRow.md create mode 100644 old_docs/API_docs_v91/constructors/keyboardButtonSwitchInline.md create mode 100644 old_docs/API_docs_v91/constructors/keyboardButtonUrl.md create mode 100644 old_docs/API_docs_v91/constructors/labeledPrice.md create mode 100644 old_docs/API_docs_v91/constructors/langPackDifference.md create mode 100644 old_docs/API_docs_v91/constructors/langPackLanguage.md create mode 100644 old_docs/API_docs_v91/constructors/langPackString.md create mode 100644 old_docs/API_docs_v91/constructors/langPackStringDeleted.md create mode 100644 old_docs/API_docs_v91/constructors/langPackStringPluralized.md create mode 100644 old_docs/API_docs_v91/constructors/maskCoords.md create mode 100644 old_docs/API_docs_v91/constructors/message.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionBotAllowed.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionChannelCreate.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionChannelMigrateFrom.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionChatAddUser.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionChatCreate.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionChatDeletePhoto.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionChatDeleteUser.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionChatEditPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionChatEditTitle.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionChatJoinedByLink.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionChatMigrateTo.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionContactSignUp.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionCustomAction.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionGameScore.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionHistoryClear.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionPaymentSent.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionPaymentSentMe.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionPhoneCall.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionPinMessage.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionScreenshotTaken.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionSecureValuesSent.md create mode 100644 old_docs/API_docs_v91/constructors/messageActionSecureValuesSentMe.md create mode 100644 old_docs/API_docs_v91/constructors/messageEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityBold.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityBotCommand.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityCashtag.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityCode.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityEmail.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityHashtag.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityItalic.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityMention.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityMentionName.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityPhone.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityPre.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityTextUrl.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityUnknown.md create mode 100644 old_docs/API_docs_v91/constructors/messageEntityUrl.md create mode 100644 old_docs/API_docs_v91/constructors/messageFwdHeader.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaContact.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaDocument.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaGame.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaGeo.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaGeoLive.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaInvoice.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaPoll.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaUnsupported.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaVenue.md create mode 100644 old_docs/API_docs_v91/constructors/messageMediaWebPage.md create mode 100644 old_docs/API_docs_v91/constructors/messageRange.md create mode 100644 old_docs/API_docs_v91/constructors/messageService.md create mode 100644 old_docs/API_docs_v91/constructors/messages_affectedHistory.md create mode 100644 old_docs/API_docs_v91/constructors/messages_affectedMessages.md create mode 100644 old_docs/API_docs_v91/constructors/messages_allStickers.md create mode 100644 old_docs/API_docs_v91/constructors/messages_allStickersNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/messages_archivedStickers.md create mode 100644 old_docs/API_docs_v91/constructors/messages_botCallbackAnswer.md create mode 100644 old_docs/API_docs_v91/constructors/messages_botResults.md create mode 100644 old_docs/API_docs_v91/constructors/messages_channelMessages.md create mode 100644 old_docs/API_docs_v91/constructors/messages_chatFull.md create mode 100644 old_docs/API_docs_v91/constructors/messages_chats.md create mode 100644 old_docs/API_docs_v91/constructors/messages_chatsSlice.md create mode 100644 old_docs/API_docs_v91/constructors/messages_dhConfig.md create mode 100644 old_docs/API_docs_v91/constructors/messages_dhConfigNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/messages_dialogs.md create mode 100644 old_docs/API_docs_v91/constructors/messages_dialogsNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/messages_dialogsSlice.md create mode 100644 old_docs/API_docs_v91/constructors/messages_favedStickers.md create mode 100644 old_docs/API_docs_v91/constructors/messages_favedStickersNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/messages_featuredStickers.md create mode 100644 old_docs/API_docs_v91/constructors/messages_featuredStickersNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/messages_foundGifs.md create mode 100644 old_docs/API_docs_v91/constructors/messages_foundStickerSets.md create mode 100644 old_docs/API_docs_v91/constructors/messages_foundStickerSetsNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/messages_highScores.md create mode 100644 old_docs/API_docs_v91/constructors/messages_messageEditData.md create mode 100644 old_docs/API_docs_v91/constructors/messages_messages.md create mode 100644 old_docs/API_docs_v91/constructors/messages_messagesNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/messages_messagesSlice.md create mode 100644 old_docs/API_docs_v91/constructors/messages_peerDialogs.md create mode 100644 old_docs/API_docs_v91/constructors/messages_recentStickers.md create mode 100644 old_docs/API_docs_v91/constructors/messages_recentStickersNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/messages_savedGifs.md create mode 100644 old_docs/API_docs_v91/constructors/messages_savedGifsNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/messages_sentEncryptedFile.md create mode 100644 old_docs/API_docs_v91/constructors/messages_sentEncryptedMessage.md create mode 100644 old_docs/API_docs_v91/constructors/messages_stickerSet.md create mode 100644 old_docs/API_docs_v91/constructors/messages_stickerSetInstallResultArchive.md create mode 100644 old_docs/API_docs_v91/constructors/messages_stickerSetInstallResultSuccess.md create mode 100644 old_docs/API_docs_v91/constructors/messages_stickers.md create mode 100644 old_docs/API_docs_v91/constructors/messages_stickersNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/nearestDc.md create mode 100644 old_docs/API_docs_v91/constructors/notifyBroadcasts.md create mode 100644 old_docs/API_docs_v91/constructors/notifyChats.md create mode 100644 old_docs/API_docs_v91/constructors/notifyPeer.md create mode 100644 old_docs/API_docs_v91/constructors/notifyUsers.md create mode 100644 old_docs/API_docs_v91/constructors/null.md create mode 100644 old_docs/API_docs_v91/constructors/page.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockAnchor.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockAudio.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockAuthorDate.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockBlockquote.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockChannel.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockCollage.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockCover.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockDetails.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockDivider.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockEmbed.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockEmbedPost.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockFooter.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockHeader.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockKicker.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockList.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockMap.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockOrderedList.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockParagraph.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockPreformatted.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockPullquote.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockRelatedArticles.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockSlideshow.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockSubheader.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockSubtitle.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockTable.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockTitle.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockUnsupported.md create mode 100644 old_docs/API_docs_v91/constructors/pageBlockVideo.md create mode 100644 old_docs/API_docs_v91/constructors/pageCaption.md create mode 100644 old_docs/API_docs_v91/constructors/pageListItemBlocks.md create mode 100644 old_docs/API_docs_v91/constructors/pageListItemText.md create mode 100644 old_docs/API_docs_v91/constructors/pageListOrderedItemBlocks.md create mode 100644 old_docs/API_docs_v91/constructors/pageListOrderedItemText.md create mode 100644 old_docs/API_docs_v91/constructors/pageRelatedArticle.md create mode 100644 old_docs/API_docs_v91/constructors/pageTableCell.md create mode 100644 old_docs/API_docs_v91/constructors/pageTableRow.md create mode 100644 old_docs/API_docs_v91/constructors/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.md create mode 100644 old_docs/API_docs_v91/constructors/passwordKdfAlgoUnknown.md create mode 100644 old_docs/API_docs_v91/constructors/paymentCharge.md create mode 100644 old_docs/API_docs_v91/constructors/paymentRequestedInfo.md create mode 100644 old_docs/API_docs_v91/constructors/paymentSavedCredentialsCard.md create mode 100644 old_docs/API_docs_v91/constructors/payments_paymentForm.md create mode 100644 old_docs/API_docs_v91/constructors/payments_paymentReceipt.md create mode 100644 old_docs/API_docs_v91/constructors/payments_paymentResult.md create mode 100644 old_docs/API_docs_v91/constructors/payments_paymentVerficationNeeded.md create mode 100644 old_docs/API_docs_v91/constructors/payments_savedInfo.md create mode 100644 old_docs/API_docs_v91/constructors/payments_validatedRequestedInfo.md create mode 100644 old_docs/API_docs_v91/constructors/peerChannel.md create mode 100644 old_docs/API_docs_v91/constructors/peerChat.md create mode 100644 old_docs/API_docs_v91/constructors/peerNotifySettings.md create mode 100644 old_docs/API_docs_v91/constructors/peerSettings.md create mode 100644 old_docs/API_docs_v91/constructors/peerUser.md create mode 100644 old_docs/API_docs_v91/constructors/phoneCall.md create mode 100644 old_docs/API_docs_v91/constructors/phoneCallAccepted.md create mode 100644 old_docs/API_docs_v91/constructors/phoneCallDiscardReasonBusy.md create mode 100644 old_docs/API_docs_v91/constructors/phoneCallDiscardReasonDisconnect.md create mode 100644 old_docs/API_docs_v91/constructors/phoneCallDiscardReasonHangup.md create mode 100644 old_docs/API_docs_v91/constructors/phoneCallDiscardReasonMissed.md create mode 100644 old_docs/API_docs_v91/constructors/phoneCallDiscarded.md create mode 100644 old_docs/API_docs_v91/constructors/phoneCallEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/phoneCallProtocol.md create mode 100644 old_docs/API_docs_v91/constructors/phoneCallRequested.md create mode 100644 old_docs/API_docs_v91/constructors/phoneCallWaiting.md create mode 100644 old_docs/API_docs_v91/constructors/phoneConnection.md create mode 100644 old_docs/API_docs_v91/constructors/phone_phoneCall.md create mode 100644 old_docs/API_docs_v91/constructors/photo.md create mode 100644 old_docs/API_docs_v91/constructors/photoCachedSize.md create mode 100644 old_docs/API_docs_v91/constructors/photoEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/photoSize.md create mode 100644 old_docs/API_docs_v91/constructors/photoSizeEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/photos_photo.md create mode 100644 old_docs/API_docs_v91/constructors/photos_photos.md create mode 100644 old_docs/API_docs_v91/constructors/photos_photosSlice.md create mode 100644 old_docs/API_docs_v91/constructors/poll.md create mode 100644 old_docs/API_docs_v91/constructors/pollAnswer.md create mode 100644 old_docs/API_docs_v91/constructors/pollAnswerVoters.md create mode 100644 old_docs/API_docs_v91/constructors/pollResults.md create mode 100644 old_docs/API_docs_v91/constructors/popularContact.md create mode 100644 old_docs/API_docs_v91/constructors/postAddress.md create mode 100644 old_docs/API_docs_v91/constructors/privacyKeyChatInvite.md create mode 100644 old_docs/API_docs_v91/constructors/privacyKeyPhoneCall.md create mode 100644 old_docs/API_docs_v91/constructors/privacyKeyPhoneP2P.md create mode 100644 old_docs/API_docs_v91/constructors/privacyKeyStatusTimestamp.md create mode 100644 old_docs/API_docs_v91/constructors/privacyValueAllowAll.md create mode 100644 old_docs/API_docs_v91/constructors/privacyValueAllowContacts.md create mode 100644 old_docs/API_docs_v91/constructors/privacyValueAllowUsers.md create mode 100644 old_docs/API_docs_v91/constructors/privacyValueDisallowAll.md create mode 100644 old_docs/API_docs_v91/constructors/privacyValueDisallowContacts.md create mode 100644 old_docs/API_docs_v91/constructors/privacyValueDisallowUsers.md create mode 100644 old_docs/API_docs_v91/constructors/receivedNotifyMessage.md create mode 100644 old_docs/API_docs_v91/constructors/recentMeUrlChat.md create mode 100644 old_docs/API_docs_v91/constructors/recentMeUrlChatInvite.md create mode 100644 old_docs/API_docs_v91/constructors/recentMeUrlStickerSet.md create mode 100644 old_docs/API_docs_v91/constructors/recentMeUrlUnknown.md create mode 100644 old_docs/API_docs_v91/constructors/recentMeUrlUser.md create mode 100644 old_docs/API_docs_v91/constructors/replyInlineMarkup.md create mode 100644 old_docs/API_docs_v91/constructors/replyKeyboardForceReply.md create mode 100644 old_docs/API_docs_v91/constructors/replyKeyboardHide.md create mode 100644 old_docs/API_docs_v91/constructors/replyKeyboardMarkup.md create mode 100644 old_docs/API_docs_v91/constructors/savedPhoneContact.md create mode 100644 old_docs/API_docs_v91/constructors/secureCredentialsEncrypted.md create mode 100644 old_docs/API_docs_v91/constructors/secureData.md create mode 100644 old_docs/API_docs_v91/constructors/secureFile.md create mode 100644 old_docs/API_docs_v91/constructors/secureFileEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.md create mode 100644 old_docs/API_docs_v91/constructors/securePasswordKdfAlgoSHA512.md create mode 100644 old_docs/API_docs_v91/constructors/securePasswordKdfAlgoUnknown.md create mode 100644 old_docs/API_docs_v91/constructors/securePlainEmail.md create mode 100644 old_docs/API_docs_v91/constructors/securePlainPhone.md create mode 100644 old_docs/API_docs_v91/constructors/secureRequiredType.md create mode 100644 old_docs/API_docs_v91/constructors/secureRequiredTypeOneOf.md create mode 100644 old_docs/API_docs_v91/constructors/secureSecretSettings.md create mode 100644 old_docs/API_docs_v91/constructors/secureValue.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueError.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueErrorData.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueErrorFile.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueErrorFiles.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueErrorFrontSide.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueErrorReverseSide.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueErrorSelfie.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueErrorTranslationFile.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueErrorTranslationFiles.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueHash.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypeAddress.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypeBankStatement.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypeDriverLicense.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypeEmail.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypeIdentityCard.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypeInternalPassport.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypePassport.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypePassportRegistration.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypePersonalDetails.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypePhone.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypeRentalAgreement.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypeTemporaryRegistration.md create mode 100644 old_docs/API_docs_v91/constructors/secureValueTypeUtilityBill.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageCancelAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageChooseContactAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageGamePlayAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageGeoLocationAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageRecordAudioAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageRecordRoundAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageRecordVideoAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageTypingAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageUploadAudioAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageUploadDocumentAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageUploadPhotoAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageUploadRoundAction.md create mode 100644 old_docs/API_docs_v91/constructors/sendMessageUploadVideoAction.md create mode 100644 old_docs/API_docs_v91/constructors/shippingOption.md create mode 100644 old_docs/API_docs_v91/constructors/statsURL.md create mode 100644 old_docs/API_docs_v91/constructors/stickerPack.md create mode 100644 old_docs/API_docs_v91/constructors/stickerSet.md create mode 100644 old_docs/API_docs_v91/constructors/stickerSetCovered.md create mode 100644 old_docs/API_docs_v91/constructors/stickerSetMultiCovered.md create mode 100644 old_docs/API_docs_v91/constructors/storage_fileGif.md create mode 100644 old_docs/API_docs_v91/constructors/storage_fileJpeg.md create mode 100644 old_docs/API_docs_v91/constructors/storage_fileMov.md create mode 100644 old_docs/API_docs_v91/constructors/storage_fileMp3.md create mode 100644 old_docs/API_docs_v91/constructors/storage_fileMp4.md create mode 100644 old_docs/API_docs_v91/constructors/storage_filePartial.md create mode 100644 old_docs/API_docs_v91/constructors/storage_filePdf.md create mode 100644 old_docs/API_docs_v91/constructors/storage_filePng.md create mode 100644 old_docs/API_docs_v91/constructors/storage_fileUnknown.md create mode 100644 old_docs/API_docs_v91/constructors/storage_fileWebp.md create mode 100644 old_docs/API_docs_v91/constructors/textAnchor.md create mode 100644 old_docs/API_docs_v91/constructors/textBold.md create mode 100644 old_docs/API_docs_v91/constructors/textConcat.md create mode 100644 old_docs/API_docs_v91/constructors/textEmail.md create mode 100644 old_docs/API_docs_v91/constructors/textEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/textFixed.md create mode 100644 old_docs/API_docs_v91/constructors/textImage.md create mode 100644 old_docs/API_docs_v91/constructors/textItalic.md create mode 100644 old_docs/API_docs_v91/constructors/textMarked.md create mode 100644 old_docs/API_docs_v91/constructors/textPhone.md create mode 100644 old_docs/API_docs_v91/constructors/textPlain.md create mode 100644 old_docs/API_docs_v91/constructors/textStrike.md create mode 100644 old_docs/API_docs_v91/constructors/textSubscript.md create mode 100644 old_docs/API_docs_v91/constructors/textSuperscript.md create mode 100644 old_docs/API_docs_v91/constructors/textUnderline.md create mode 100644 old_docs/API_docs_v91/constructors/textUrl.md create mode 100644 old_docs/API_docs_v91/constructors/topPeer.md create mode 100644 old_docs/API_docs_v91/constructors/topPeerCategoryBotsInline.md create mode 100644 old_docs/API_docs_v91/constructors/topPeerCategoryBotsPM.md create mode 100644 old_docs/API_docs_v91/constructors/topPeerCategoryChannels.md create mode 100644 old_docs/API_docs_v91/constructors/topPeerCategoryCorrespondents.md create mode 100644 old_docs/API_docs_v91/constructors/topPeerCategoryGroups.md create mode 100644 old_docs/API_docs_v91/constructors/topPeerCategoryPeers.md create mode 100644 old_docs/API_docs_v91/constructors/topPeerCategoryPhoneCalls.md create mode 100644 old_docs/API_docs_v91/constructors/true.md create mode 100644 old_docs/API_docs_v91/constructors/updateBotCallbackQuery.md create mode 100644 old_docs/API_docs_v91/constructors/updateBotInlineQuery.md create mode 100644 old_docs/API_docs_v91/constructors/updateBotInlineSend.md create mode 100644 old_docs/API_docs_v91/constructors/updateBotPrecheckoutQuery.md create mode 100644 old_docs/API_docs_v91/constructors/updateBotShippingQuery.md create mode 100644 old_docs/API_docs_v91/constructors/updateBotWebhookJSON.md create mode 100644 old_docs/API_docs_v91/constructors/updateBotWebhookJSONQuery.md create mode 100644 old_docs/API_docs_v91/constructors/updateChannel.md create mode 100644 old_docs/API_docs_v91/constructors/updateChannelAvailableMessages.md create mode 100644 old_docs/API_docs_v91/constructors/updateChannelMessageViews.md create mode 100644 old_docs/API_docs_v91/constructors/updateChannelPinnedMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateChannelReadMessagesContents.md create mode 100644 old_docs/API_docs_v91/constructors/updateChannelTooLong.md create mode 100644 old_docs/API_docs_v91/constructors/updateChannelWebPage.md rename {docs/API_docs => old_docs/API_docs_v91}/constructors/updateChatAdmins.md (100%) create mode 100644 old_docs/API_docs_v91/constructors/updateChatParticipantAdd.md create mode 100644 old_docs/API_docs_v91/constructors/updateChatParticipantAdmin.md create mode 100644 old_docs/API_docs_v91/constructors/updateChatParticipantDelete.md create mode 100644 old_docs/API_docs_v91/constructors/updateChatParticipants.md create mode 100644 old_docs/API_docs_v91/constructors/updateChatPinnedMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateChatUserTyping.md create mode 100644 old_docs/API_docs_v91/constructors/updateConfig.md create mode 100644 old_docs/API_docs_v91/constructors/updateContactLink.md create mode 100644 old_docs/API_docs_v91/constructors/updateContactsReset.md create mode 100644 old_docs/API_docs_v91/constructors/updateDcOptions.md create mode 100644 old_docs/API_docs_v91/constructors/updateDeleteChannelMessages.md create mode 100644 old_docs/API_docs_v91/constructors/updateDeleteMessages.md create mode 100644 old_docs/API_docs_v91/constructors/updateDialogPinned.md create mode 100644 old_docs/API_docs_v91/constructors/updateDialogUnreadMark.md create mode 100644 old_docs/API_docs_v91/constructors/updateDraftMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateEditChannelMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateEditMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateEncryptedChatTyping.md create mode 100644 old_docs/API_docs_v91/constructors/updateEncryptedMessagesRead.md create mode 100644 old_docs/API_docs_v91/constructors/updateEncryption.md create mode 100644 old_docs/API_docs_v91/constructors/updateFavedStickers.md create mode 100644 old_docs/API_docs_v91/constructors/updateInlineBotCallbackQuery.md create mode 100644 old_docs/API_docs_v91/constructors/updateLangPack.md create mode 100644 old_docs/API_docs_v91/constructors/updateLangPackTooLong.md create mode 100644 old_docs/API_docs_v91/constructors/updateMessageID.md create mode 100644 old_docs/API_docs_v91/constructors/updateMessagePoll.md create mode 100644 old_docs/API_docs_v91/constructors/updateNewChannelMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateNewEncryptedMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateNewMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateNewStickerSet.md create mode 100644 old_docs/API_docs_v91/constructors/updateNotifySettings.md create mode 100644 old_docs/API_docs_v91/constructors/updatePhoneCall.md create mode 100644 old_docs/API_docs_v91/constructors/updatePinnedDialogs.md create mode 100644 old_docs/API_docs_v91/constructors/updatePrivacy.md create mode 100644 old_docs/API_docs_v91/constructors/updatePtsChanged.md create mode 100644 old_docs/API_docs_v91/constructors/updateReadChannelInbox.md create mode 100644 old_docs/API_docs_v91/constructors/updateReadChannelOutbox.md create mode 100644 old_docs/API_docs_v91/constructors/updateReadFeaturedStickers.md create mode 100644 old_docs/API_docs_v91/constructors/updateReadHistoryInbox.md create mode 100644 old_docs/API_docs_v91/constructors/updateReadHistoryOutbox.md create mode 100644 old_docs/API_docs_v91/constructors/updateReadMessagesContents.md create mode 100644 old_docs/API_docs_v91/constructors/updateRecentStickers.md create mode 100644 old_docs/API_docs_v91/constructors/updateSavedGifs.md create mode 100644 old_docs/API_docs_v91/constructors/updateServiceNotification.md create mode 100644 old_docs/API_docs_v91/constructors/updateShort.md create mode 100644 old_docs/API_docs_v91/constructors/updateShortChatMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateShortMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateShortSentMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateStickerSets.md create mode 100644 old_docs/API_docs_v91/constructors/updateStickerSetsOrder.md create mode 100644 old_docs/API_docs_v91/constructors/updateUserBlocked.md create mode 100644 old_docs/API_docs_v91/constructors/updateUserName.md create mode 100644 old_docs/API_docs_v91/constructors/updateUserPhone.md create mode 100644 old_docs/API_docs_v91/constructors/updateUserPhoto.md create mode 100644 old_docs/API_docs_v91/constructors/updateUserPinnedMessage.md create mode 100644 old_docs/API_docs_v91/constructors/updateUserStatus.md create mode 100644 old_docs/API_docs_v91/constructors/updateUserTyping.md create mode 100644 old_docs/API_docs_v91/constructors/updateWebPage.md create mode 100644 old_docs/API_docs_v91/constructors/updates.md create mode 100644 old_docs/API_docs_v91/constructors/updatesCombined.md create mode 100644 old_docs/API_docs_v91/constructors/updatesTooLong.md create mode 100644 old_docs/API_docs_v91/constructors/updates_channelDifference.md create mode 100644 old_docs/API_docs_v91/constructors/updates_channelDifferenceEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/updates_channelDifferenceTooLong.md create mode 100644 old_docs/API_docs_v91/constructors/updates_difference.md create mode 100644 old_docs/API_docs_v91/constructors/updates_differenceEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/updates_differenceSlice.md create mode 100644 old_docs/API_docs_v91/constructors/updates_differenceTooLong.md create mode 100644 old_docs/API_docs_v91/constructors/updates_state.md create mode 100644 old_docs/API_docs_v91/constructors/upload_cdnFile.md create mode 100644 old_docs/API_docs_v91/constructors/upload_cdnFileReuploadNeeded.md create mode 100644 old_docs/API_docs_v91/constructors/upload_file.md create mode 100644 old_docs/API_docs_v91/constructors/upload_fileCdnRedirect.md create mode 100644 old_docs/API_docs_v91/constructors/upload_webFile.md create mode 100644 old_docs/API_docs_v91/constructors/user.md create mode 100644 old_docs/API_docs_v91/constructors/userEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/userFull.md create mode 100644 old_docs/API_docs_v91/constructors/userProfilePhoto.md create mode 100644 old_docs/API_docs_v91/constructors/userProfilePhotoEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/userStatusEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/userStatusLastMonth.md create mode 100644 old_docs/API_docs_v91/constructors/userStatusLastWeek.md create mode 100644 old_docs/API_docs_v91/constructors/userStatusOffline.md create mode 100644 old_docs/API_docs_v91/constructors/userStatusOnline.md create mode 100644 old_docs/API_docs_v91/constructors/userStatusRecently.md create mode 100644 old_docs/API_docs_v91/constructors/wallPaper.md rename {docs/API_docs => old_docs/API_docs_v91}/constructors/wallPaperSolid.md (100%) create mode 100644 old_docs/API_docs_v91/constructors/webAuthorization.md create mode 100644 old_docs/API_docs_v91/constructors/webDocument.md create mode 100644 old_docs/API_docs_v91/constructors/webDocumentNoProxy.md create mode 100644 old_docs/API_docs_v91/constructors/webPage.md create mode 100644 old_docs/API_docs_v91/constructors/webPageEmpty.md create mode 100644 old_docs/API_docs_v91/constructors/webPageNotModified.md create mode 100644 old_docs/API_docs_v91/constructors/webPagePending.md create mode 100644 old_docs/API_docs_v91/methods/README.md create mode 100644 old_docs/API_docs_v91/methods/account_acceptAuthorization.md create mode 100644 old_docs/API_docs_v91/methods/account_cancelPasswordEmail.md create mode 100644 old_docs/API_docs_v91/methods/account_changePhone.md create mode 100644 old_docs/API_docs_v91/methods/account_checkUsername.md create mode 100644 old_docs/API_docs_v91/methods/account_confirmPasswordEmail.md create mode 100644 old_docs/API_docs_v91/methods/account_confirmPhone.md create mode 100644 old_docs/API_docs_v91/methods/account_deleteAccount.md create mode 100644 old_docs/API_docs_v91/methods/account_deleteSecureValue.md create mode 100644 old_docs/API_docs_v91/methods/account_finishTakeoutSession.md create mode 100644 old_docs/API_docs_v91/methods/account_getAccountTTL.md create mode 100644 old_docs/API_docs_v91/methods/account_getAllSecureValues.md create mode 100644 old_docs/API_docs_v91/methods/account_getAuthorizationForm.md create mode 100644 old_docs/API_docs_v91/methods/account_getAuthorizations.md create mode 100644 old_docs/API_docs_v91/methods/account_getContactSignUpNotification.md create mode 100644 old_docs/API_docs_v91/methods/account_getNotifyExceptions.md create mode 100644 old_docs/API_docs_v91/methods/account_getNotifySettings.md create mode 100644 old_docs/API_docs_v91/methods/account_getPassword.md create mode 100644 old_docs/API_docs_v91/methods/account_getPasswordSettings.md create mode 100644 old_docs/API_docs_v91/methods/account_getPrivacy.md create mode 100644 old_docs/API_docs_v91/methods/account_getSecureValue.md create mode 100644 old_docs/API_docs_v91/methods/account_getTmpPassword.md create mode 100644 old_docs/API_docs_v91/methods/account_getWallPapers.md create mode 100644 old_docs/API_docs_v91/methods/account_getWebAuthorizations.md create mode 100644 old_docs/API_docs_v91/methods/account_initTakeoutSession.md create mode 100644 old_docs/API_docs_v91/methods/account_registerDevice.md create mode 100644 old_docs/API_docs_v91/methods/account_reportPeer.md create mode 100644 old_docs/API_docs_v91/methods/account_resendPasswordEmail.md create mode 100644 old_docs/API_docs_v91/methods/account_resetAuthorization.md create mode 100644 old_docs/API_docs_v91/methods/account_resetNotifySettings.md create mode 100644 old_docs/API_docs_v91/methods/account_resetWebAuthorization.md create mode 100644 old_docs/API_docs_v91/methods/account_resetWebAuthorizations.md create mode 100644 old_docs/API_docs_v91/methods/account_saveSecureValue.md create mode 100644 old_docs/API_docs_v91/methods/account_sendChangePhoneCode.md create mode 100644 old_docs/API_docs_v91/methods/account_sendConfirmPhoneCode.md create mode 100644 old_docs/API_docs_v91/methods/account_sendVerifyEmailCode.md create mode 100644 old_docs/API_docs_v91/methods/account_sendVerifyPhoneCode.md create mode 100644 old_docs/API_docs_v91/methods/account_setAccountTTL.md create mode 100644 old_docs/API_docs_v91/methods/account_setContactSignUpNotification.md create mode 100644 old_docs/API_docs_v91/methods/account_setPrivacy.md create mode 100644 old_docs/API_docs_v91/methods/account_unregisterDevice.md create mode 100644 old_docs/API_docs_v91/methods/account_updateDeviceLocked.md create mode 100644 old_docs/API_docs_v91/methods/account_updateNotifySettings.md create mode 100644 old_docs/API_docs_v91/methods/account_updatePasswordSettings.md create mode 100644 old_docs/API_docs_v91/methods/account_updateProfile.md create mode 100644 old_docs/API_docs_v91/methods/account_updateStatus.md create mode 100644 old_docs/API_docs_v91/methods/account_updateUsername.md create mode 100644 old_docs/API_docs_v91/methods/account_verifyEmail.md create mode 100644 old_docs/API_docs_v91/methods/account_verifyPhone.md create mode 100644 old_docs/API_docs_v91/methods/api_README.md create mode 100644 old_docs/API_docs_v91/methods/auth_bindTempAuthKey.md create mode 100644 old_docs/API_docs_v91/methods/auth_cancelCode.md create mode 100644 old_docs/API_docs_v91/methods/auth_checkPassword.md create mode 100644 old_docs/API_docs_v91/methods/auth_dropTempAuthKeys.md create mode 100644 old_docs/API_docs_v91/methods/auth_exportAuthorization.md create mode 100644 old_docs/API_docs_v91/methods/auth_importAuthorization.md create mode 100644 old_docs/API_docs_v91/methods/auth_importBotAuthorization.md create mode 100644 old_docs/API_docs_v91/methods/auth_logOut.md create mode 100644 old_docs/API_docs_v91/methods/auth_recoverPassword.md create mode 100644 old_docs/API_docs_v91/methods/auth_requestPasswordRecovery.md create mode 100644 old_docs/API_docs_v91/methods/auth_resendCode.md create mode 100644 old_docs/API_docs_v91/methods/auth_resetAuthorizations.md create mode 100644 old_docs/API_docs_v91/methods/auth_sendCode.md create mode 100644 old_docs/API_docs_v91/methods/auth_signIn.md create mode 100644 old_docs/API_docs_v91/methods/auth_signUp.md create mode 100644 old_docs/API_docs_v91/methods/bots_answerWebhookJSONQuery.md create mode 100644 old_docs/API_docs_v91/methods/bots_sendCustomRequest.md create mode 100644 old_docs/API_docs_v91/methods/channels_checkUsername.md create mode 100644 old_docs/API_docs_v91/methods/channels_createChannel.md create mode 100644 old_docs/API_docs_v91/methods/channels_deleteChannel.md create mode 100644 old_docs/API_docs_v91/methods/channels_deleteHistory.md create mode 100644 old_docs/API_docs_v91/methods/channels_deleteMessages.md create mode 100644 old_docs/API_docs_v91/methods/channels_deleteUserHistory.md rename {docs/API_docs => old_docs/API_docs_v91}/methods/channels_editAbout.md (100%) create mode 100644 old_docs/API_docs_v91/methods/channels_editAdmin.md create mode 100644 old_docs/API_docs_v91/methods/channels_editBanned.md create mode 100644 old_docs/API_docs_v91/methods/channels_editPhoto.md create mode 100644 old_docs/API_docs_v91/methods/channels_editTitle.md rename {docs/API_docs => old_docs/API_docs_v91}/methods/channels_exportInvite.md (100%) create mode 100644 old_docs/API_docs_v91/methods/channels_exportMessageLink.md create mode 100644 old_docs/API_docs_v91/methods/channels_getAdminLog.md create mode 100644 old_docs/API_docs_v91/methods/channels_getAdminedPublicChannels.md create mode 100644 old_docs/API_docs_v91/methods/channels_getChannels.md create mode 100644 old_docs/API_docs_v91/methods/channels_getFullChannel.md create mode 100644 old_docs/API_docs_v91/methods/channels_getLeftChannels.md create mode 100644 old_docs/API_docs_v91/methods/channels_getMessages.md create mode 100644 old_docs/API_docs_v91/methods/channels_getParticipant.md create mode 100644 old_docs/API_docs_v91/methods/channels_getParticipants.md create mode 100644 old_docs/API_docs_v91/methods/channels_inviteToChannel.md create mode 100644 old_docs/API_docs_v91/methods/channels_joinChannel.md create mode 100644 old_docs/API_docs_v91/methods/channels_leaveChannel.md create mode 100644 old_docs/API_docs_v91/methods/channels_readHistory.md create mode 100644 old_docs/API_docs_v91/methods/channels_readMessageContents.md create mode 100644 old_docs/API_docs_v91/methods/channels_reportSpam.md create mode 100644 old_docs/API_docs_v91/methods/channels_setStickers.md rename {docs/API_docs => old_docs/API_docs_v91}/methods/channels_toggleInvites.md (100%) create mode 100644 old_docs/API_docs_v91/methods/channels_togglePreHistoryHidden.md create mode 100644 old_docs/API_docs_v91/methods/channels_toggleSignatures.md create mode 100644 old_docs/API_docs_v91/methods/channels_updateUsername.md create mode 100644 old_docs/API_docs_v91/methods/contacts_block.md create mode 100644 old_docs/API_docs_v91/methods/contacts_deleteByPhones.md create mode 100644 old_docs/API_docs_v91/methods/contacts_deleteContact.md create mode 100644 old_docs/API_docs_v91/methods/contacts_deleteContacts.md create mode 100644 old_docs/API_docs_v91/methods/contacts_getBlocked.md create mode 100644 old_docs/API_docs_v91/methods/contacts_getContactIDs.md create mode 100644 old_docs/API_docs_v91/methods/contacts_getContacts.md create mode 100644 old_docs/API_docs_v91/methods/contacts_getSaved.md create mode 100644 old_docs/API_docs_v91/methods/contacts_getStatuses.md create mode 100644 old_docs/API_docs_v91/methods/contacts_getTopPeers.md create mode 100644 old_docs/API_docs_v91/methods/contacts_importContacts.md create mode 100644 old_docs/API_docs_v91/methods/contacts_resetSaved.md create mode 100644 old_docs/API_docs_v91/methods/contacts_resetTopPeerRating.md create mode 100644 old_docs/API_docs_v91/methods/contacts_resolveUsername.md create mode 100644 old_docs/API_docs_v91/methods/contacts_search.md create mode 100644 old_docs/API_docs_v91/methods/contacts_toggleTopPeers.md create mode 100644 old_docs/API_docs_v91/methods/contacts_unblock.md create mode 100644 old_docs/API_docs_v91/methods/help_acceptTermsOfService.md create mode 100644 old_docs/API_docs_v91/methods/help_editUserInfo.md create mode 100644 old_docs/API_docs_v91/methods/help_getAppChangelog.md create mode 100644 old_docs/API_docs_v91/methods/help_getAppConfig.md create mode 100644 old_docs/API_docs_v91/methods/help_getAppUpdate.md create mode 100644 old_docs/API_docs_v91/methods/help_getCdnConfig.md create mode 100644 old_docs/API_docs_v91/methods/help_getConfig.md create mode 100644 old_docs/API_docs_v91/methods/help_getDeepLinkInfo.md create mode 100644 old_docs/API_docs_v91/methods/help_getInviteText.md create mode 100644 old_docs/API_docs_v91/methods/help_getNearestDc.md create mode 100644 old_docs/API_docs_v91/methods/help_getPassportConfig.md create mode 100644 old_docs/API_docs_v91/methods/help_getProxyData.md create mode 100644 old_docs/API_docs_v91/methods/help_getRecentMeUrls.md create mode 100644 old_docs/API_docs_v91/methods/help_getSupport.md create mode 100644 old_docs/API_docs_v91/methods/help_getSupportName.md create mode 100644 old_docs/API_docs_v91/methods/help_getTermsOfServiceUpdate.md create mode 100644 old_docs/API_docs_v91/methods/help_getUserInfo.md create mode 100644 old_docs/API_docs_v91/methods/help_saveAppLog.md create mode 100644 old_docs/API_docs_v91/methods/help_setBotUpdatesStatus.md create mode 100644 old_docs/API_docs_v91/methods/initConnection.md create mode 100644 old_docs/API_docs_v91/methods/invokeAfterMsg.md create mode 100644 old_docs/API_docs_v91/methods/invokeAfterMsgs.md create mode 100644 old_docs/API_docs_v91/methods/invokeWithLayer.md create mode 100644 old_docs/API_docs_v91/methods/invokeWithMessagesRange.md create mode 100644 old_docs/API_docs_v91/methods/invokeWithTakeout.md create mode 100644 old_docs/API_docs_v91/methods/invokeWithoutUpdates.md create mode 100644 old_docs/API_docs_v91/methods/langpack_getDifference.md create mode 100644 old_docs/API_docs_v91/methods/langpack_getLangPack.md create mode 100644 old_docs/API_docs_v91/methods/langpack_getLanguage.md create mode 100644 old_docs/API_docs_v91/methods/langpack_getLanguages.md create mode 100644 old_docs/API_docs_v91/methods/langpack_getStrings.md create mode 100644 old_docs/API_docs_v91/methods/messages_acceptEncryption.md create mode 100644 old_docs/API_docs_v91/methods/messages_addChatUser.md create mode 100644 old_docs/API_docs_v91/methods/messages_checkChatInvite.md create mode 100644 old_docs/API_docs_v91/methods/messages_clearAllDrafts.md create mode 100644 old_docs/API_docs_v91/methods/messages_clearRecentStickers.md create mode 100644 old_docs/API_docs_v91/methods/messages_createChat.md create mode 100644 old_docs/API_docs_v91/methods/messages_deleteChatUser.md create mode 100644 old_docs/API_docs_v91/methods/messages_deleteHistory.md create mode 100644 old_docs/API_docs_v91/methods/messages_deleteMessages.md create mode 100644 old_docs/API_docs_v91/methods/messages_discardEncryption.md create mode 100644 old_docs/API_docs_v91/methods/messages_editChatAdmin.md create mode 100644 old_docs/API_docs_v91/methods/messages_editChatPhoto.md create mode 100644 old_docs/API_docs_v91/methods/messages_editChatTitle.md create mode 100644 old_docs/API_docs_v91/methods/messages_editInlineBotMessage.md create mode 100644 old_docs/API_docs_v91/methods/messages_editMessage.md create mode 100644 old_docs/API_docs_v91/methods/messages_exportChatInvite.md create mode 100644 old_docs/API_docs_v91/methods/messages_faveSticker.md create mode 100644 old_docs/API_docs_v91/methods/messages_forwardMessages.md create mode 100644 old_docs/API_docs_v91/methods/messages_getAllChats.md create mode 100644 old_docs/API_docs_v91/methods/messages_getAllDrafts.md create mode 100644 old_docs/API_docs_v91/methods/messages_getAllStickers.md create mode 100644 old_docs/API_docs_v91/methods/messages_getArchivedStickers.md create mode 100644 old_docs/API_docs_v91/methods/messages_getAttachedStickers.md create mode 100644 old_docs/API_docs_v91/methods/messages_getBotCallbackAnswer.md create mode 100644 old_docs/API_docs_v91/methods/messages_getChats.md create mode 100644 old_docs/API_docs_v91/methods/messages_getCommonChats.md create mode 100644 old_docs/API_docs_v91/methods/messages_getDhConfig.md create mode 100644 old_docs/API_docs_v91/methods/messages_getDialogUnreadMarks.md create mode 100644 old_docs/API_docs_v91/methods/messages_getDialogs.md create mode 100644 old_docs/API_docs_v91/methods/messages_getDocumentByHash.md create mode 100644 old_docs/API_docs_v91/methods/messages_getFavedStickers.md create mode 100644 old_docs/API_docs_v91/methods/messages_getFeaturedStickers.md create mode 100644 old_docs/API_docs_v91/methods/messages_getFullChat.md create mode 100644 old_docs/API_docs_v91/methods/messages_getGameHighScores.md create mode 100644 old_docs/API_docs_v91/methods/messages_getHistory.md create mode 100644 old_docs/API_docs_v91/methods/messages_getInlineBotResults.md create mode 100644 old_docs/API_docs_v91/methods/messages_getInlineGameHighScores.md create mode 100644 old_docs/API_docs_v91/methods/messages_getMaskStickers.md create mode 100644 old_docs/API_docs_v91/methods/messages_getMessageEditData.md create mode 100644 old_docs/API_docs_v91/methods/messages_getMessages.md create mode 100644 old_docs/API_docs_v91/methods/messages_getMessagesViews.md create mode 100644 old_docs/API_docs_v91/methods/messages_getOnlines.md create mode 100644 old_docs/API_docs_v91/methods/messages_getPeerDialogs.md create mode 100644 old_docs/API_docs_v91/methods/messages_getPeerSettings.md create mode 100644 old_docs/API_docs_v91/methods/messages_getPinnedDialogs.md create mode 100644 old_docs/API_docs_v91/methods/messages_getPollResults.md create mode 100644 old_docs/API_docs_v91/methods/messages_getRecentLocations.md create mode 100644 old_docs/API_docs_v91/methods/messages_getRecentStickers.md create mode 100644 old_docs/API_docs_v91/methods/messages_getSavedGifs.md create mode 100644 old_docs/API_docs_v91/methods/messages_getSplitRanges.md create mode 100644 old_docs/API_docs_v91/methods/messages_getStatsURL.md create mode 100644 old_docs/API_docs_v91/methods/messages_getStickerSet.md create mode 100644 old_docs/API_docs_v91/methods/messages_getStickers.md create mode 100644 old_docs/API_docs_v91/methods/messages_getUnreadMentions.md create mode 100644 old_docs/API_docs_v91/methods/messages_getWebPage.md create mode 100644 old_docs/API_docs_v91/methods/messages_getWebPagePreview.md create mode 100644 old_docs/API_docs_v91/methods/messages_hideReportSpam.md create mode 100644 old_docs/API_docs_v91/methods/messages_importChatInvite.md create mode 100644 old_docs/API_docs_v91/methods/messages_installStickerSet.md create mode 100644 old_docs/API_docs_v91/methods/messages_markDialogUnread.md create mode 100644 old_docs/API_docs_v91/methods/messages_migrateChat.md create mode 100644 old_docs/API_docs_v91/methods/messages_readEncryptedHistory.md create mode 100644 old_docs/API_docs_v91/methods/messages_readFeaturedStickers.md create mode 100644 old_docs/API_docs_v91/methods/messages_readHistory.md create mode 100644 old_docs/API_docs_v91/methods/messages_readMentions.md create mode 100644 old_docs/API_docs_v91/methods/messages_readMessageContents.md create mode 100644 old_docs/API_docs_v91/methods/messages_receivedMessages.md create mode 100644 old_docs/API_docs_v91/methods/messages_receivedQueue.md create mode 100644 old_docs/API_docs_v91/methods/messages_reorderPinnedDialogs.md create mode 100644 old_docs/API_docs_v91/methods/messages_reorderStickerSets.md create mode 100644 old_docs/API_docs_v91/methods/messages_report.md create mode 100644 old_docs/API_docs_v91/methods/messages_reportEncryptedSpam.md create mode 100644 old_docs/API_docs_v91/methods/messages_reportSpam.md create mode 100644 old_docs/API_docs_v91/methods/messages_requestEncryption.md create mode 100644 old_docs/API_docs_v91/methods/messages_saveDraft.md create mode 100644 old_docs/API_docs_v91/methods/messages_saveGif.md create mode 100644 old_docs/API_docs_v91/methods/messages_saveRecentSticker.md create mode 100644 old_docs/API_docs_v91/methods/messages_search.md create mode 100644 old_docs/API_docs_v91/methods/messages_searchGifs.md create mode 100644 old_docs/API_docs_v91/methods/messages_searchGlobal.md create mode 100644 old_docs/API_docs_v91/methods/messages_searchStickerSets.md create mode 100644 old_docs/API_docs_v91/methods/messages_sendEncrypted.md create mode 100644 old_docs/API_docs_v91/methods/messages_sendEncryptedFile.md create mode 100644 old_docs/API_docs_v91/methods/messages_sendEncryptedService.md create mode 100644 old_docs/API_docs_v91/methods/messages_sendInlineBotResult.md create mode 100644 old_docs/API_docs_v91/methods/messages_sendMedia.md create mode 100644 old_docs/API_docs_v91/methods/messages_sendMessage.md create mode 100644 old_docs/API_docs_v91/methods/messages_sendMultiMedia.md create mode 100644 old_docs/API_docs_v91/methods/messages_sendScreenshotNotification.md create mode 100644 old_docs/API_docs_v91/methods/messages_sendVote.md create mode 100644 old_docs/API_docs_v91/methods/messages_setBotCallbackAnswer.md create mode 100644 old_docs/API_docs_v91/methods/messages_setBotPrecheckoutResults.md create mode 100644 old_docs/API_docs_v91/methods/messages_setBotShippingResults.md create mode 100644 old_docs/API_docs_v91/methods/messages_setEncryptedTyping.md create mode 100644 old_docs/API_docs_v91/methods/messages_setGameScore.md create mode 100644 old_docs/API_docs_v91/methods/messages_setInlineBotResults.md create mode 100644 old_docs/API_docs_v91/methods/messages_setInlineGameScore.md create mode 100644 old_docs/API_docs_v91/methods/messages_setTyping.md create mode 100644 old_docs/API_docs_v91/methods/messages_startBot.md rename {docs/API_docs => old_docs/API_docs_v91}/methods/messages_toggleChatAdmins.md (100%) create mode 100644 old_docs/API_docs_v91/methods/messages_toggleDialogPin.md create mode 100644 old_docs/API_docs_v91/methods/messages_uninstallStickerSet.md create mode 100644 old_docs/API_docs_v91/methods/messages_updatePinnedMessage.md create mode 100644 old_docs/API_docs_v91/methods/messages_uploadEncryptedFile.md create mode 100644 old_docs/API_docs_v91/methods/messages_uploadMedia.md create mode 100644 old_docs/API_docs_v91/methods/payments_clearSavedInfo.md create mode 100644 old_docs/API_docs_v91/methods/payments_getPaymentForm.md create mode 100644 old_docs/API_docs_v91/methods/payments_getPaymentReceipt.md create mode 100644 old_docs/API_docs_v91/methods/payments_getSavedInfo.md create mode 100644 old_docs/API_docs_v91/methods/payments_sendPaymentForm.md create mode 100644 old_docs/API_docs_v91/methods/payments_validateRequestedInfo.md create mode 100644 old_docs/API_docs_v91/methods/phone_acceptCall.md create mode 100644 old_docs/API_docs_v91/methods/phone_confirmCall.md create mode 100644 old_docs/API_docs_v91/methods/phone_discardCall.md create mode 100644 old_docs/API_docs_v91/methods/phone_getCallConfig.md create mode 100644 old_docs/API_docs_v91/methods/phone_receivedCall.md create mode 100644 old_docs/API_docs_v91/methods/phone_requestCall.md create mode 100644 old_docs/API_docs_v91/methods/phone_saveCallDebug.md create mode 100644 old_docs/API_docs_v91/methods/phone_setCallRating.md create mode 100644 old_docs/API_docs_v91/methods/photos_deletePhotos.md create mode 100644 old_docs/API_docs_v91/methods/photos_getUserPhotos.md create mode 100644 old_docs/API_docs_v91/methods/photos_updateProfilePhoto.md create mode 100644 old_docs/API_docs_v91/methods/photos_uploadProfilePhoto.md create mode 100644 old_docs/API_docs_v91/methods/stickers_addStickerToSet.md create mode 100644 old_docs/API_docs_v91/methods/stickers_changeStickerPosition.md create mode 100644 old_docs/API_docs_v91/methods/stickers_createStickerSet.md create mode 100644 old_docs/API_docs_v91/methods/stickers_removeStickerFromSet.md create mode 100644 old_docs/API_docs_v91/methods/updates_getChannelDifference.md create mode 100644 old_docs/API_docs_v91/methods/updates_getDifference.md create mode 100644 old_docs/API_docs_v91/methods/updates_getState.md create mode 100644 old_docs/API_docs_v91/methods/upload_getCdnFile.md create mode 100644 old_docs/API_docs_v91/methods/upload_getCdnFileHashes.md create mode 100644 old_docs/API_docs_v91/methods/upload_getFile.md create mode 100644 old_docs/API_docs_v91/methods/upload_getFileHashes.md create mode 100644 old_docs/API_docs_v91/methods/upload_getWebFile.md create mode 100644 old_docs/API_docs_v91/methods/upload_reuploadCdnFile.md create mode 100644 old_docs/API_docs_v91/methods/upload_saveBigFilePart.md create mode 100644 old_docs/API_docs_v91/methods/upload_saveFilePart.md create mode 100644 old_docs/API_docs_v91/methods/users_getFullUser.md create mode 100644 old_docs/API_docs_v91/methods/users_getUsers.md create mode 100644 old_docs/API_docs_v91/methods/users_setSecureValueErrors.md create mode 100644 old_docs/API_docs_v91/types/!X.md create mode 100644 old_docs/API_docs_v91/types/AccessPointRule.md create mode 100644 old_docs/API_docs_v91/types/AccountDaysTTL.md create mode 100644 old_docs/API_docs_v91/types/Authorization.md create mode 100644 old_docs/API_docs_v91/types/Bool.md create mode 100644 old_docs/API_docs_v91/types/BotCommand.md create mode 100644 old_docs/API_docs_v91/types/BotInfo.md create mode 100644 old_docs/API_docs_v91/types/BotInlineMessage.md create mode 100644 old_docs/API_docs_v91/types/BotInlineResult.md create mode 100644 old_docs/API_docs_v91/types/CdnConfig.md create mode 100644 old_docs/API_docs_v91/types/CdnPublicKey.md create mode 100644 old_docs/API_docs_v91/types/ChannelAdminLogEvent.md create mode 100644 old_docs/API_docs_v91/types/ChannelAdminLogEventAction.md create mode 100644 old_docs/API_docs_v91/types/ChannelAdminLogEventsFilter.md rename {docs/API_docs => old_docs/API_docs_v91}/types/ChannelAdminRights.md (100%) rename {docs/API_docs => old_docs/API_docs_v91}/types/ChannelBannedRights.md (100%) create mode 100644 old_docs/API_docs_v91/types/ChannelMessagesFilter.md create mode 100644 old_docs/API_docs_v91/types/ChannelParticipant.md create mode 100644 old_docs/API_docs_v91/types/ChannelParticipantsFilter.md create mode 100644 old_docs/API_docs_v91/types/Chat.md create mode 100644 old_docs/API_docs_v91/types/ChatFull.md create mode 100644 old_docs/API_docs_v91/types/ChatInvite.md create mode 100644 old_docs/API_docs_v91/types/ChatOnlines.md create mode 100644 old_docs/API_docs_v91/types/ChatParticipant.md create mode 100644 old_docs/API_docs_v91/types/ChatParticipants.md create mode 100644 old_docs/API_docs_v91/types/ChatPhoto.md create mode 100644 old_docs/API_docs_v91/types/Config.md create mode 100644 old_docs/API_docs_v91/types/Contact.md create mode 100644 old_docs/API_docs_v91/types/ContactBlocked.md create mode 100644 old_docs/API_docs_v91/types/ContactLink.md create mode 100644 old_docs/API_docs_v91/types/ContactStatus.md create mode 100644 old_docs/API_docs_v91/types/DataJSON.md create mode 100644 old_docs/API_docs_v91/types/DcOption.md create mode 100644 old_docs/API_docs_v91/types/Dialog.md create mode 100644 old_docs/API_docs_v91/types/DialogPeer.md create mode 100644 old_docs/API_docs_v91/types/Document.md create mode 100644 old_docs/API_docs_v91/types/DocumentAttribute.md create mode 100644 old_docs/API_docs_v91/types/DraftMessage.md create mode 100644 old_docs/API_docs_v91/types/EncryptedChat.md create mode 100644 old_docs/API_docs_v91/types/EncryptedFile.md create mode 100644 old_docs/API_docs_v91/types/EncryptedMessage.md create mode 100644 old_docs/API_docs_v91/types/Error.md create mode 100644 old_docs/API_docs_v91/types/ExportedChatInvite.md create mode 100644 old_docs/API_docs_v91/types/ExportedMessageLink.md create mode 100644 old_docs/API_docs_v91/types/FileHash.md create mode 100644 old_docs/API_docs_v91/types/FileLocation.md create mode 100644 old_docs/API_docs_v91/types/FoundGif.md create mode 100644 old_docs/API_docs_v91/types/Game.md create mode 100644 old_docs/API_docs_v91/types/GeoPoint.md create mode 100644 old_docs/API_docs_v91/types/HighScore.md create mode 100644 old_docs/API_docs_v91/types/ImportedContact.md create mode 100644 old_docs/API_docs_v91/types/InlineBotSwitchPM.md create mode 100644 old_docs/API_docs_v91/types/InputAppEvent.md create mode 100644 old_docs/API_docs_v91/types/InputBotInlineMessage.md create mode 100644 old_docs/API_docs_v91/types/InputBotInlineMessageID.md create mode 100644 old_docs/API_docs_v91/types/InputBotInlineResult.md create mode 100644 old_docs/API_docs_v91/types/InputChannel.md create mode 100644 old_docs/API_docs_v91/types/InputChatPhoto.md create mode 100644 old_docs/API_docs_v91/types/InputCheckPasswordSRP.md create mode 100644 old_docs/API_docs_v91/types/InputClientProxy.md create mode 100644 old_docs/API_docs_v91/types/InputContact.md create mode 100644 old_docs/API_docs_v91/types/InputDialogPeer.md create mode 100644 old_docs/API_docs_v91/types/InputDocument.md create mode 100644 old_docs/API_docs_v91/types/InputEncryptedChat.md create mode 100644 old_docs/API_docs_v91/types/InputEncryptedFile.md create mode 100644 old_docs/API_docs_v91/types/InputFile.md create mode 100644 old_docs/API_docs_v91/types/InputFileLocation.md create mode 100644 old_docs/API_docs_v91/types/InputGame.md create mode 100644 old_docs/API_docs_v91/types/InputGeoPoint.md create mode 100644 old_docs/API_docs_v91/types/InputMedia.md create mode 100644 old_docs/API_docs_v91/types/InputMessage.md create mode 100644 old_docs/API_docs_v91/types/InputNotifyPeer.md create mode 100644 old_docs/API_docs_v91/types/InputPaymentCredentials.md create mode 100644 old_docs/API_docs_v91/types/InputPeer.md create mode 100644 old_docs/API_docs_v91/types/InputPeerNotifySettings.md create mode 100644 old_docs/API_docs_v91/types/InputPhoneCall.md create mode 100644 old_docs/API_docs_v91/types/InputPhoto.md create mode 100644 old_docs/API_docs_v91/types/InputPrivacyKey.md create mode 100644 old_docs/API_docs_v91/types/InputPrivacyRule.md create mode 100644 old_docs/API_docs_v91/types/InputSecureFile.md create mode 100644 old_docs/API_docs_v91/types/InputSecureValue.md create mode 100644 old_docs/API_docs_v91/types/InputSingleMedia.md create mode 100644 old_docs/API_docs_v91/types/InputStickerSet.md create mode 100644 old_docs/API_docs_v91/types/InputStickerSetItem.md create mode 100644 old_docs/API_docs_v91/types/InputStickeredMedia.md create mode 100644 old_docs/API_docs_v91/types/InputUser.md create mode 100644 old_docs/API_docs_v91/types/InputWebDocument.md create mode 100644 old_docs/API_docs_v91/types/InputWebFileLocation.md create mode 100644 old_docs/API_docs_v91/types/Invoice.md create mode 100644 old_docs/API_docs_v91/types/IpPort.md create mode 100644 old_docs/API_docs_v91/types/JSONObjectValue.md create mode 100644 old_docs/API_docs_v91/types/JSONValue.md create mode 100644 old_docs/API_docs_v91/types/KeyboardButton.md create mode 100644 old_docs/API_docs_v91/types/KeyboardButtonRow.md create mode 100644 old_docs/API_docs_v91/types/LabeledPrice.md create mode 100644 old_docs/API_docs_v91/types/LangPackDifference.md create mode 100644 old_docs/API_docs_v91/types/LangPackLanguage.md create mode 100644 old_docs/API_docs_v91/types/LangPackString.md create mode 100644 old_docs/API_docs_v91/types/MaskCoords.md create mode 100644 old_docs/API_docs_v91/types/Message.md create mode 100644 old_docs/API_docs_v91/types/MessageAction.md create mode 100644 old_docs/API_docs_v91/types/MessageEntity.md create mode 100644 old_docs/API_docs_v91/types/MessageFwdHeader.md create mode 100644 old_docs/API_docs_v91/types/MessageMedia.md create mode 100644 old_docs/API_docs_v91/types/MessageRange.md create mode 100644 old_docs/API_docs_v91/types/MessagesFilter.md create mode 100644 old_docs/API_docs_v91/types/NearestDc.md create mode 100644 old_docs/API_docs_v91/types/NotifyPeer.md create mode 100644 old_docs/API_docs_v91/types/Null.md create mode 100644 old_docs/API_docs_v91/types/Page.md create mode 100644 old_docs/API_docs_v91/types/PageBlock.md create mode 100644 old_docs/API_docs_v91/types/PageCaption.md create mode 100644 old_docs/API_docs_v91/types/PageListItem.md create mode 100644 old_docs/API_docs_v91/types/PageListOrderedItem.md create mode 100644 old_docs/API_docs_v91/types/PageRelatedArticle.md create mode 100644 old_docs/API_docs_v91/types/PageTableCell.md create mode 100644 old_docs/API_docs_v91/types/PageTableRow.md create mode 100644 old_docs/API_docs_v91/types/PasswordKdfAlgo.md create mode 100644 old_docs/API_docs_v91/types/PaymentCharge.md create mode 100644 old_docs/API_docs_v91/types/PaymentRequestedInfo.md create mode 100644 old_docs/API_docs_v91/types/PaymentSavedCredentials.md create mode 100644 old_docs/API_docs_v91/types/Peer.md create mode 100644 old_docs/API_docs_v91/types/PeerNotifySettings.md create mode 100644 old_docs/API_docs_v91/types/PeerSettings.md create mode 100644 old_docs/API_docs_v91/types/PhoneCall.md create mode 100644 old_docs/API_docs_v91/types/PhoneCallDiscardReason.md create mode 100644 old_docs/API_docs_v91/types/PhoneCallProtocol.md create mode 100644 old_docs/API_docs_v91/types/PhoneConnection.md create mode 100644 old_docs/API_docs_v91/types/Photo.md create mode 100644 old_docs/API_docs_v91/types/PhotoSize.md create mode 100644 old_docs/API_docs_v91/types/Poll.md create mode 100644 old_docs/API_docs_v91/types/PollAnswer.md create mode 100644 old_docs/API_docs_v91/types/PollAnswerVoters.md create mode 100644 old_docs/API_docs_v91/types/PollResults.md create mode 100644 old_docs/API_docs_v91/types/PopularContact.md create mode 100644 old_docs/API_docs_v91/types/PostAddress.md create mode 100644 old_docs/API_docs_v91/types/PrivacyKey.md create mode 100644 old_docs/API_docs_v91/types/PrivacyRule.md create mode 100644 old_docs/API_docs_v91/types/README.md create mode 100644 old_docs/API_docs_v91/types/ReceivedNotifyMessage.md create mode 100644 old_docs/API_docs_v91/types/RecentMeUrl.md create mode 100644 old_docs/API_docs_v91/types/ReplyMarkup.md create mode 100644 old_docs/API_docs_v91/types/ReportReason.md create mode 100644 old_docs/API_docs_v91/types/RichText.md create mode 100644 old_docs/API_docs_v91/types/SavedContact.md create mode 100644 old_docs/API_docs_v91/types/SecureCredentialsEncrypted.md create mode 100644 old_docs/API_docs_v91/types/SecureData.md create mode 100644 old_docs/API_docs_v91/types/SecureFile.md create mode 100644 old_docs/API_docs_v91/types/SecurePasswordKdfAlgo.md create mode 100644 old_docs/API_docs_v91/types/SecurePlainData.md create mode 100644 old_docs/API_docs_v91/types/SecureRequiredType.md create mode 100644 old_docs/API_docs_v91/types/SecureSecretSettings.md create mode 100644 old_docs/API_docs_v91/types/SecureValue.md create mode 100644 old_docs/API_docs_v91/types/SecureValueError.md create mode 100644 old_docs/API_docs_v91/types/SecureValueHash.md create mode 100644 old_docs/API_docs_v91/types/SecureValueType.md create mode 100644 old_docs/API_docs_v91/types/SendMessageAction.md create mode 100644 old_docs/API_docs_v91/types/ShippingOption.md create mode 100644 old_docs/API_docs_v91/types/StatsURL.md create mode 100644 old_docs/API_docs_v91/types/StickerPack.md create mode 100644 old_docs/API_docs_v91/types/StickerSet.md create mode 100644 old_docs/API_docs_v91/types/StickerSetCovered.md create mode 100644 old_docs/API_docs_v91/types/TopPeer.md create mode 100644 old_docs/API_docs_v91/types/TopPeerCategory.md create mode 100644 old_docs/API_docs_v91/types/TopPeerCategoryPeers.md create mode 100644 old_docs/API_docs_v91/types/True.md create mode 100644 old_docs/API_docs_v91/types/Update.md create mode 100644 old_docs/API_docs_v91/types/Updates.md create mode 100644 old_docs/API_docs_v91/types/User.md create mode 100644 old_docs/API_docs_v91/types/UserFull.md create mode 100644 old_docs/API_docs_v91/types/UserProfilePhoto.md create mode 100644 old_docs/API_docs_v91/types/UserStatus.md create mode 100644 old_docs/API_docs_v91/types/WallPaper.md create mode 100644 old_docs/API_docs_v91/types/WebAuthorization.md create mode 100644 old_docs/API_docs_v91/types/WebDocument.md create mode 100644 old_docs/API_docs_v91/types/WebPage.md create mode 100644 old_docs/API_docs_v91/types/X.md create mode 100644 old_docs/API_docs_v91/types/account_AuthorizationForm.md create mode 100644 old_docs/API_docs_v91/types/account_Authorizations.md create mode 100644 old_docs/API_docs_v91/types/account_Password.md create mode 100644 old_docs/API_docs_v91/types/account_PasswordInputSettings.md create mode 100644 old_docs/API_docs_v91/types/account_PasswordSettings.md create mode 100644 old_docs/API_docs_v91/types/account_PrivacyRules.md create mode 100644 old_docs/API_docs_v91/types/account_SentEmailCode.md create mode 100644 old_docs/API_docs_v91/types/account_Takeout.md create mode 100644 old_docs/API_docs_v91/types/account_TmpPassword.md create mode 100644 old_docs/API_docs_v91/types/account_WebAuthorizations.md create mode 100644 old_docs/API_docs_v91/types/auth_Authorization.md create mode 100644 old_docs/API_docs_v91/types/auth_CheckedPhone.md create mode 100644 old_docs/API_docs_v91/types/auth_CodeType.md create mode 100644 old_docs/API_docs_v91/types/auth_ExportedAuthorization.md create mode 100644 old_docs/API_docs_v91/types/auth_PasswordRecovery.md create mode 100644 old_docs/API_docs_v91/types/auth_SentCode.md create mode 100644 old_docs/API_docs_v91/types/auth_SentCodeType.md create mode 100644 old_docs/API_docs_v91/types/bytes.md create mode 100644 old_docs/API_docs_v91/types/channels_AdminLogResults.md create mode 100644 old_docs/API_docs_v91/types/channels_ChannelParticipant.md create mode 100644 old_docs/API_docs_v91/types/channels_ChannelParticipants.md create mode 100644 old_docs/API_docs_v91/types/contacts_Blocked.md create mode 100644 old_docs/API_docs_v91/types/contacts_Contacts.md create mode 100644 old_docs/API_docs_v91/types/contacts_Found.md create mode 100644 old_docs/API_docs_v91/types/contacts_ImportedContacts.md create mode 100644 old_docs/API_docs_v91/types/contacts_Link.md create mode 100644 old_docs/API_docs_v91/types/contacts_ResolvedPeer.md create mode 100644 old_docs/API_docs_v91/types/contacts_TopPeers.md create mode 100644 old_docs/API_docs_v91/types/double.md create mode 100644 old_docs/API_docs_v91/types/help_AppUpdate.md create mode 100644 old_docs/API_docs_v91/types/help_ConfigSimple.md create mode 100644 old_docs/API_docs_v91/types/help_DeepLinkInfo.md create mode 100644 old_docs/API_docs_v91/types/help_InviteText.md create mode 100644 old_docs/API_docs_v91/types/help_PassportConfig.md create mode 100644 old_docs/API_docs_v91/types/help_ProxyData.md create mode 100644 old_docs/API_docs_v91/types/help_RecentMeUrls.md create mode 100644 old_docs/API_docs_v91/types/help_Support.md create mode 100644 old_docs/API_docs_v91/types/help_SupportName.md create mode 100644 old_docs/API_docs_v91/types/help_TermsOfService.md create mode 100644 old_docs/API_docs_v91/types/help_TermsOfServiceUpdate.md create mode 100644 old_docs/API_docs_v91/types/help_UserInfo.md create mode 100644 old_docs/API_docs_v91/types/int.md create mode 100644 old_docs/API_docs_v91/types/int128.md create mode 100644 old_docs/API_docs_v91/types/int256.md create mode 100644 old_docs/API_docs_v91/types/int512.md create mode 100644 old_docs/API_docs_v91/types/int53.md create mode 100644 old_docs/API_docs_v91/types/long.md create mode 100644 old_docs/API_docs_v91/types/messages_AffectedHistory.md create mode 100644 old_docs/API_docs_v91/types/messages_AffectedMessages.md create mode 100644 old_docs/API_docs_v91/types/messages_AllStickers.md create mode 100644 old_docs/API_docs_v91/types/messages_ArchivedStickers.md create mode 100644 old_docs/API_docs_v91/types/messages_BotCallbackAnswer.md create mode 100644 old_docs/API_docs_v91/types/messages_BotResults.md create mode 100644 old_docs/API_docs_v91/types/messages_ChatFull.md create mode 100644 old_docs/API_docs_v91/types/messages_Chats.md create mode 100644 old_docs/API_docs_v91/types/messages_DhConfig.md create mode 100644 old_docs/API_docs_v91/types/messages_Dialogs.md create mode 100644 old_docs/API_docs_v91/types/messages_FavedStickers.md create mode 100644 old_docs/API_docs_v91/types/messages_FeaturedStickers.md create mode 100644 old_docs/API_docs_v91/types/messages_FoundGifs.md create mode 100644 old_docs/API_docs_v91/types/messages_FoundStickerSets.md create mode 100644 old_docs/API_docs_v91/types/messages_HighScores.md create mode 100644 old_docs/API_docs_v91/types/messages_MessageEditData.md create mode 100644 old_docs/API_docs_v91/types/messages_Messages.md create mode 100644 old_docs/API_docs_v91/types/messages_PeerDialogs.md create mode 100644 old_docs/API_docs_v91/types/messages_RecentStickers.md create mode 100644 old_docs/API_docs_v91/types/messages_SavedGifs.md create mode 100644 old_docs/API_docs_v91/types/messages_SentEncryptedMessage.md create mode 100644 old_docs/API_docs_v91/types/messages_StickerSet.md create mode 100644 old_docs/API_docs_v91/types/messages_StickerSetInstallResult.md create mode 100644 old_docs/API_docs_v91/types/messages_Stickers.md create mode 100644 old_docs/API_docs_v91/types/payments_PaymentForm.md create mode 100644 old_docs/API_docs_v91/types/payments_PaymentReceipt.md create mode 100644 old_docs/API_docs_v91/types/payments_PaymentResult.md create mode 100644 old_docs/API_docs_v91/types/payments_SavedInfo.md create mode 100644 old_docs/API_docs_v91/types/payments_ValidatedRequestedInfo.md create mode 100644 old_docs/API_docs_v91/types/phone_PhoneCall.md create mode 100644 old_docs/API_docs_v91/types/photos_Photo.md create mode 100644 old_docs/API_docs_v91/types/photos_Photos.md create mode 100644 old_docs/API_docs_v91/types/storage_FileType.md create mode 100644 old_docs/API_docs_v91/types/string.md create mode 100644 old_docs/API_docs_v91/types/updates_ChannelDifference.md create mode 100644 old_docs/API_docs_v91/types/updates_Difference.md create mode 100644 old_docs/API_docs_v91/types/updates_State.md create mode 100644 old_docs/API_docs_v91/types/upload_CdnFile.md create mode 100644 old_docs/API_docs_v91/types/upload_File.md create mode 100644 old_docs/API_docs_v91/types/upload_WebFile.md diff --git a/docs/API_docs/constructors/account_wallPapers.md b/docs/API_docs/constructors/account_wallPapers.md new file mode 100644 index 00000000..7251d4b6 --- /dev/null +++ b/docs/API_docs/constructors/account_wallPapers.md @@ -0,0 +1,43 @@ +--- +title: account.wallPapers +description: account_wallPapers attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.wallPapers +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|hash|[int](../types/int.md) | Yes| +|wallpapers|Array of [WallPaper](../types/WallPaper.md) | Yes| + + + +### Type: [account\_WallPapers](../types/account_WallPapers.md) + + +### Example: + +```php +$account_wallPapers = ['_' => 'account.wallPapers', 'hash' => int, 'wallpapers' => [WallPaper, WallPaper]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.wallPapers", "hash": int, "wallpapers": [WallPaper]} +``` + + +Or, if you're into Lua: + +```lua +account_wallPapers={_='account.wallPapers', hash=int, wallpapers={WallPaper}} + +``` + + diff --git a/docs/API_docs/constructors/account_wallPapersNotModified.md b/docs/API_docs/constructors/account_wallPapersNotModified.md new file mode 100644 index 00000000..c296e74b --- /dev/null +++ b/docs/API_docs/constructors/account_wallPapersNotModified.md @@ -0,0 +1,37 @@ +--- +title: account.wallPapersNotModified +description: account_wallPapersNotModified attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.wallPapersNotModified +[Back to constructors index](index.md) + + + + + + +### Type: [account\_WallPapers](../types/account_WallPapers.md) + + +### Example: + +```php +$account_wallPapersNotModified = ['_' => 'account.wallPapersNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.wallPapersNotModified"} +``` + + +Or, if you're into Lua: + +```lua +account_wallPapersNotModified={_='account.wallPapersNotModified'} + +``` + + diff --git a/docs/API_docs/constructors/channel.md b/docs/API_docs/constructors/channel.md index 49f3eb84..a1713e1d 100644 --- a/docs/API_docs/constructors/channel.md +++ b/docs/API_docs/constructors/channel.md @@ -16,12 +16,10 @@ Channel |----------|---------------|----------|-------------| |creator|[Bool](../types/Bool.md) | Optional|Creator?| |left|[Bool](../types/Bool.md) | Optional|Left?| -|editor|[Bool](../types/Bool.md) | Optional|Editor?| |broadcast|[Bool](../types/Bool.md) | Optional|Broadcast?| |verified|[Bool](../types/Bool.md) | Optional|Verified?| |megagroup|[Bool](../types/Bool.md) | Optional|Megagroup?| |restricted|[Bool](../types/Bool.md) | Optional|Restricted?| -|democracy|[Bool](../types/Bool.md) | Optional|Democracy?| |signatures|[Bool](../types/Bool.md) | Optional|Signatures?| |min|[Bool](../types/Bool.md) | Optional|Min?| |id|[int](../types/int.md) | Yes|ID| @@ -32,8 +30,9 @@ Channel |date|[int](../types/int.md) | Yes|Date| |version|[int](../types/int.md) | Yes|Version| |restriction\_reason|[string](../types/string.md) | Optional|Restriction reason| -|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Optional|Admin rights| -|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Optional|Banned rights| +|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Optional|| +|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|| +|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|| |participants\_count|[int](../types/int.md) | Optional|Participants count| @@ -44,20 +43,20 @@ Channel ### Example: ```php -$channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'editor' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'democracy' => Bool, 'signatures' => Bool, 'min' => Bool, 'id' => int, 'access_hash' => long, 'title' => 'string', 'username' => 'string', 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => 'string', 'admin_rights' => ChannelAdminRights, 'banned_rights' => ChannelBannedRights, 'participants_count' => int]; +$channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'signatures' => Bool, 'min' => Bool, 'id' => int, 'access_hash' => long, 'title' => 'string', 'username' => 'string', 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => 'string', 'admin_rights' => ChatAdminRights, 'banned_rights' => ChatBannedRights, 'default_banned_rights' => ChatBannedRights, 'participants_count' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "channel", "creator": Bool, "left": Bool, "editor": Bool, "broadcast": Bool, "verified": Bool, "megagroup": Bool, "restricted": Bool, "democracy": Bool, "signatures": Bool, "min": Bool, "id": int, "access_hash": long, "title": "string", "username": "string", "photo": ChatPhoto, "date": int, "version": int, "restriction_reason": "string", "admin_rights": ChannelAdminRights, "banned_rights": ChannelBannedRights, "participants_count": int} +{"_": "channel", "creator": Bool, "left": Bool, "broadcast": Bool, "verified": Bool, "megagroup": Bool, "restricted": Bool, "signatures": Bool, "min": Bool, "id": int, "access_hash": long, "title": "string", "username": "string", "photo": ChatPhoto, "date": int, "version": int, "restriction_reason": "string", "admin_rights": ChatAdminRights, "banned_rights": ChatBannedRights, "default_banned_rights": ChatBannedRights, "participants_count": int} ``` Or, if you're into Lua: ```lua -channel={_='channel', creator=Bool, left=Bool, editor=Bool, broadcast=Bool, verified=Bool, megagroup=Bool, restricted=Bool, democracy=Bool, signatures=Bool, min=Bool, id=int, access_hash=long, title='string', username='string', photo=ChatPhoto, date=int, version=int, restriction_reason='string', admin_rights=ChannelAdminRights, banned_rights=ChannelBannedRights, participants_count=int} +channel={_='channel', creator=Bool, left=Bool, broadcast=Bool, verified=Bool, megagroup=Bool, restricted=Bool, signatures=Bool, min=Bool, id=int, access_hash=long, title='string', username='string', photo=ChatPhoto, date=int, version=int, restriction_reason='string', admin_rights=ChatAdminRights, banned_rights=ChatBannedRights, default_banned_rights=ChatBannedRights, participants_count=int} ``` diff --git a/docs/API_docs/constructors/channelAdminLogEventActionDefaultBannedRights.md b/docs/API_docs/constructors/channelAdminLogEventActionDefaultBannedRights.md new file mode 100644 index 00000000..e921c68f --- /dev/null +++ b/docs/API_docs/constructors/channelAdminLogEventActionDefaultBannedRights.md @@ -0,0 +1,43 @@ +--- +title: channelAdminLogEventActionDefaultBannedRights +description: channelAdminLogEventActionDefaultBannedRights attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionDefaultBannedRights +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|prev\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes| +|new\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionDefaultBannedRights = ['_' => 'channelAdminLogEventActionDefaultBannedRights', 'prev_banned_rights' => ChatBannedRights, 'new_banned_rights' => ChatBannedRights]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionDefaultBannedRights", "prev_banned_rights": ChatBannedRights, "new_banned_rights": ChatBannedRights} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionDefaultBannedRights={_='channelAdminLogEventActionDefaultBannedRights', prev_banned_rights=ChatBannedRights, new_banned_rights=ChatBannedRights} + +``` + + diff --git a/docs/API_docs/constructors/channelAdminLogEventActionStopPoll.md b/docs/API_docs/constructors/channelAdminLogEventActionStopPoll.md new file mode 100644 index 00000000..480835c9 --- /dev/null +++ b/docs/API_docs/constructors/channelAdminLogEventActionStopPoll.md @@ -0,0 +1,42 @@ +--- +title: channelAdminLogEventActionStopPoll +description: channelAdminLogEventActionStopPoll attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionStopPoll +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|message|[Message](../types/Message.md) | Optional| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionStopPoll = ['_' => 'channelAdminLogEventActionStopPoll', 'message' => Message]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionStopPoll", "message": Message} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionStopPoll={_='channelAdminLogEventActionStopPoll', message=Message} + +``` + + diff --git a/docs/API_docs/constructors/channelParticipantAdmin.md b/docs/API_docs/constructors/channelParticipantAdmin.md index ba43f5be..bb7a6007 100644 --- a/docs/API_docs/constructors/channelParticipantAdmin.md +++ b/docs/API_docs/constructors/channelParticipantAdmin.md @@ -15,11 +15,12 @@ Channel participant admin | Name | Type | Required | Description | |----------|---------------|----------|-------------| |can\_edit|[Bool](../types/Bool.md) | Optional|Can edit?| +|self|[Bool](../types/Bool.md) | Optional|| |user\_id|[int](../types/int.md) | Yes|User ID| -|inviter\_id|[int](../types/int.md) | Yes|Inviter ID| +|inviter\_id|[int](../types/int.md) | Optional|Inviter ID| |promoted\_by|[int](../types/int.md) | Yes|Promoted by| |date|[int](../types/int.md) | Yes|Date| -|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Yes|Admin rights| +|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Yes|| @@ -29,20 +30,20 @@ Channel participant admin ### Example: ```php -$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChannelAdminRights]; +$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'self' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChatAdminRights]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "channelParticipantAdmin", "can_edit": Bool, "user_id": int, "inviter_id": int, "promoted_by": int, "date": int, "admin_rights": ChannelAdminRights} +{"_": "channelParticipantAdmin", "can_edit": Bool, "self": Bool, "user_id": int, "inviter_id": int, "promoted_by": int, "date": int, "admin_rights": ChatAdminRights} ``` Or, if you're into Lua: ```lua -channelParticipantAdmin={_='channelParticipantAdmin', can_edit=Bool, user_id=int, inviter_id=int, promoted_by=int, date=int, admin_rights=ChannelAdminRights} +channelParticipantAdmin={_='channelParticipantAdmin', can_edit=Bool, self=Bool, user_id=int, inviter_id=int, promoted_by=int, date=int, admin_rights=ChatAdminRights} ``` diff --git a/docs/API_docs/constructors/channelParticipantBanned.md b/docs/API_docs/constructors/channelParticipantBanned.md index 55bc3c1c..31ba0363 100644 --- a/docs/API_docs/constructors/channelParticipantBanned.md +++ b/docs/API_docs/constructors/channelParticipantBanned.md @@ -18,7 +18,7 @@ Channel participant banned |user\_id|[int](../types/int.md) | Yes|User ID| |kicked\_by|[int](../types/int.md) | Yes|Kicked by| |date|[int](../types/int.md) | Yes|Date| -|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Yes|Banned rights| +|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|| @@ -28,20 +28,20 @@ Channel participant banned ### Example: ```php -$channelParticipantBanned = ['_' => 'channelParticipantBanned', 'left' => Bool, 'user_id' => int, 'kicked_by' => int, 'date' => int, 'banned_rights' => ChannelBannedRights]; +$channelParticipantBanned = ['_' => 'channelParticipantBanned', 'left' => Bool, 'user_id' => int, 'kicked_by' => int, 'date' => int, 'banned_rights' => ChatBannedRights]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "channelParticipantBanned", "left": Bool, "user_id": int, "kicked_by": int, "date": int, "banned_rights": ChannelBannedRights} +{"_": "channelParticipantBanned", "left": Bool, "user_id": int, "kicked_by": int, "date": int, "banned_rights": ChatBannedRights} ``` Or, if you're into Lua: ```lua -channelParticipantBanned={_='channelParticipantBanned', left=Bool, user_id=int, kicked_by=int, date=int, banned_rights=ChannelBannedRights} +channelParticipantBanned={_='channelParticipantBanned', left=Bool, user_id=int, kicked_by=int, date=int, banned_rights=ChatBannedRights} ``` diff --git a/docs/API_docs/constructors/channelParticipantsContacts.md b/docs/API_docs/constructors/channelParticipantsContacts.md new file mode 100644 index 00000000..b68b0ce8 --- /dev/null +++ b/docs/API_docs/constructors/channelParticipantsContacts.md @@ -0,0 +1,42 @@ +--- +title: channelParticipantsContacts +description: channelParticipantsContacts attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipantsContacts +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|q|[string](../types/string.md) | Yes| + + + +### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) + + +### Example: + +```php +$channelParticipantsContacts = ['_' => 'channelParticipantsContacts', 'q' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipantsContacts", "q": "string"} +``` + + +Or, if you're into Lua: + +```lua +channelParticipantsContacts={_='channelParticipantsContacts', q='string'} + +``` + + diff --git a/docs/API_docs/constructors/chat.md b/docs/API_docs/constructors/chat.md index 25364f40..dba8b661 100644 --- a/docs/API_docs/constructors/chat.md +++ b/docs/API_docs/constructors/chat.md @@ -17,8 +17,6 @@ Chat |creator|[Bool](../types/Bool.md) | Optional|Creator?| |kicked|[Bool](../types/Bool.md) | Optional|Kicked?| |left|[Bool](../types/Bool.md) | Optional|Left?| -|admins\_enabled|[Bool](../types/Bool.md) | Optional|Admins enabled?| -|admin|[Bool](../types/Bool.md) | Optional|Admin?| |deactivated|[Bool](../types/Bool.md) | Optional|Deactivated?| |id|[int](../types/int.md) | Yes|ID| |title|[string](../types/string.md) | Yes|Title| @@ -27,6 +25,8 @@ Chat |date|[int](../types/int.md) | Yes|Date| |version|[int](../types/int.md) | Yes|Version| |migrated\_to|[InputChannel](../types/InputChannel.md) | Optional|Migrated to| +|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Optional|| +|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|| @@ -36,20 +36,20 @@ Chat ### Example: ```php -$chat = ['_' => 'chat', 'creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'admins_enabled' => Bool, 'admin' => Bool, 'deactivated' => Bool, 'id' => int, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel]; +$chat = ['_' => 'chat', 'creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'deactivated' => Bool, 'id' => int, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, 'admin_rights' => ChatAdminRights, 'default_banned_rights' => ChatBannedRights]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "chat", "creator": Bool, "kicked": Bool, "left": Bool, "admins_enabled": Bool, "admin": Bool, "deactivated": Bool, "id": int, "title": "string", "photo": ChatPhoto, "participants_count": int, "date": int, "version": int, "migrated_to": InputChannel} +{"_": "chat", "creator": Bool, "kicked": Bool, "left": Bool, "deactivated": Bool, "id": int, "title": "string", "photo": ChatPhoto, "participants_count": int, "date": int, "version": int, "migrated_to": InputChannel, "admin_rights": ChatAdminRights, "default_banned_rights": ChatBannedRights} ``` Or, if you're into Lua: ```lua -chat={_='chat', creator=Bool, kicked=Bool, left=Bool, admins_enabled=Bool, admin=Bool, deactivated=Bool, id=int, title='string', photo=ChatPhoto, participants_count=int, date=int, version=int, migrated_to=InputChannel} +chat={_='chat', creator=Bool, kicked=Bool, left=Bool, deactivated=Bool, id=int, title='string', photo=ChatPhoto, participants_count=int, date=int, version=int, migrated_to=InputChannel, admin_rights=ChatAdminRights, default_banned_rights=ChatBannedRights} ``` diff --git a/docs/API_docs/constructors/chatAdminRights.md b/docs/API_docs/constructors/chatAdminRights.md new file mode 100644 index 00000000..f16fd37a --- /dev/null +++ b/docs/API_docs/constructors/chatAdminRights.md @@ -0,0 +1,49 @@ +--- +title: chatAdminRights +description: chatAdminRights attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatAdminRights +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|change\_info|[Bool](../types/Bool.md) | Optional| +|post\_messages|[Bool](../types/Bool.md) | Optional| +|edit\_messages|[Bool](../types/Bool.md) | Optional| +|delete\_messages|[Bool](../types/Bool.md) | Optional| +|ban\_users|[Bool](../types/Bool.md) | Optional| +|invite\_users|[Bool](../types/Bool.md) | Optional| +|pin\_messages|[Bool](../types/Bool.md) | Optional| +|add\_admins|[Bool](../types/Bool.md) | Optional| + + + +### Type: [ChatAdminRights](../types/ChatAdminRights.md) + + +### Example: + +```php +$chatAdminRights = ['_' => 'chatAdminRights', 'change_info' => Bool, 'post_messages' => Bool, 'edit_messages' => Bool, 'delete_messages' => Bool, 'ban_users' => Bool, 'invite_users' => Bool, 'pin_messages' => Bool, 'add_admins' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatAdminRights", "change_info": Bool, "post_messages": Bool, "edit_messages": Bool, "delete_messages": Bool, "ban_users": Bool, "invite_users": Bool, "pin_messages": Bool, "add_admins": Bool} +``` + + +Or, if you're into Lua: + +```lua +chatAdminRights={_='chatAdminRights', change_info=Bool, post_messages=Bool, edit_messages=Bool, delete_messages=Bool, ban_users=Bool, invite_users=Bool, pin_messages=Bool, add_admins=Bool} + +``` + + diff --git a/docs/API_docs/constructors/chatBannedRights.md b/docs/API_docs/constructors/chatBannedRights.md new file mode 100644 index 00000000..55e86a94 --- /dev/null +++ b/docs/API_docs/constructors/chatBannedRights.md @@ -0,0 +1,54 @@ +--- +title: chatBannedRights +description: chatBannedRights attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatBannedRights +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|view\_messages|[Bool](../types/Bool.md) | Optional| +|send\_messages|[Bool](../types/Bool.md) | Optional| +|send\_media|[Bool](../types/Bool.md) | Optional| +|send\_stickers|[Bool](../types/Bool.md) | Optional| +|send\_gifs|[Bool](../types/Bool.md) | Optional| +|send\_games|[Bool](../types/Bool.md) | Optional| +|send\_inline|[Bool](../types/Bool.md) | Optional| +|embed\_links|[Bool](../types/Bool.md) | Optional| +|send\_polls|[Bool](../types/Bool.md) | Optional| +|change\_info|[Bool](../types/Bool.md) | Optional| +|invite\_users|[Bool](../types/Bool.md) | Optional| +|pin\_messages|[Bool](../types/Bool.md) | Optional| +|until\_date|[int](../types/int.md) | Yes| + + + +### Type: [ChatBannedRights](../types/ChatBannedRights.md) + + +### Example: + +```php +$chatBannedRights = ['_' => 'chatBannedRights', 'view_messages' => Bool, 'send_messages' => Bool, 'send_media' => Bool, 'send_stickers' => Bool, 'send_gifs' => Bool, 'send_games' => Bool, 'send_inline' => Bool, 'embed_links' => Bool, 'send_polls' => Bool, 'change_info' => Bool, 'invite_users' => Bool, 'pin_messages' => Bool, 'until_date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatBannedRights", "view_messages": Bool, "send_messages": Bool, "send_media": Bool, "send_stickers": Bool, "send_gifs": Bool, "send_games": Bool, "send_inline": Bool, "embed_links": Bool, "send_polls": Bool, "change_info": Bool, "invite_users": Bool, "pin_messages": Bool, "until_date": int} +``` + + +Or, if you're into Lua: + +```lua +chatBannedRights={_='chatBannedRights', view_messages=Bool, send_messages=Bool, send_media=Bool, send_stickers=Bool, send_gifs=Bool, send_games=Bool, send_inline=Bool, embed_links=Bool, send_polls=Bool, change_info=Bool, invite_users=Bool, pin_messages=Bool, until_date=int} + +``` + + diff --git a/docs/API_docs/constructors/chatFull.md b/docs/API_docs/constructors/chatFull.md index e00de8fc..5ff1a5dc 100644 --- a/docs/API_docs/constructors/chatFull.md +++ b/docs/API_docs/constructors/chatFull.md @@ -14,7 +14,9 @@ Chat full | Name | Type | Required | Description | |----------|---------------|----------|-------------| +|can\_set\_username|[Bool](../types/Bool.md) | Optional|| |id|[int](../types/int.md) | Yes|ID| +|about|[string](../types/string.md) | Yes|| |participants|[ChatParticipants](../types/ChatParticipants.md) | Yes|Participants| |chat\_photo|[Photo](../types/Photo.md) | Optional|Chat photo| |notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Yes|Notify settings| @@ -30,20 +32,20 @@ Chat full ### Example: ```php -$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'pinned_msg_id' => int]; +$chatFull = ['_' => 'chatFull', 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'pinned_msg_id' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "chatFull", "id": int, "participants": ChatParticipants, "chat_photo": Photo, "notify_settings": PeerNotifySettings, "exported_invite": ExportedChatInvite, "bot_info": [BotInfo], "pinned_msg_id": int} +{"_": "chatFull", "can_set_username": Bool, "id": int, "about": "string", "participants": ChatParticipants, "chat_photo": Photo, "notify_settings": PeerNotifySettings, "exported_invite": ExportedChatInvite, "bot_info": [BotInfo], "pinned_msg_id": int} ``` Or, if you're into Lua: ```lua -chatFull={_='chatFull', id=int, participants=ChatParticipants, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, pinned_msg_id=int} +chatFull={_='chatFull', can_set_username=Bool, id=int, about='string', participants=ChatParticipants, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, pinned_msg_id=int} ``` diff --git a/docs/API_docs/constructors/codeSettings.md b/docs/API_docs/constructors/codeSettings.md new file mode 100644 index 00000000..0a319b8c --- /dev/null +++ b/docs/API_docs/constructors/codeSettings.md @@ -0,0 +1,45 @@ +--- +title: codeSettings +description: codeSettings attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: codeSettings +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional| +|current\_number|[Bool](../types/Bool.md) | Optional| +|app\_hash\_persistent|[Bool](../types/Bool.md) | Optional| +|app\_hash|[string](../types/string.md) | Optional| + + + +### Type: [CodeSettings](../types/CodeSettings.md) + + +### Example: + +```php +$codeSettings = ['_' => 'codeSettings', 'allow_flashcall' => Bool, 'current_number' => Bool, 'app_hash_persistent' => Bool, 'app_hash' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "codeSettings", "allow_flashcall": Bool, "current_number": Bool, "app_hash_persistent": Bool, "app_hash": "string"} +``` + + +Or, if you're into Lua: + +```lua +codeSettings={_='codeSettings', allow_flashcall=Bool, current_number=Bool, app_hash_persistent=Bool, app_hash='string'} + +``` + + diff --git a/docs/API_docs/constructors/document.md b/docs/API_docs/constructors/document.md index 50e35358..78bed9f4 100644 --- a/docs/API_docs/constructors/document.md +++ b/docs/API_docs/constructors/document.md @@ -20,7 +20,7 @@ Document |date|[int](../types/int.md) | Yes|Date| |mime\_type|[string](../types/string.md) | Yes|Mime type| |size|[int](../types/int.md) | Yes|Size| -|thumb|[PhotoSize](../types/PhotoSize.md) | Optional|Thumbnail| +|thumbs|Array of [PhotoSize](../types/PhotoSize.md) | Optional|| |dc\_id|[int](../types/int.md) | Yes|DC ID| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes|Attributes| @@ -32,20 +32,20 @@ Document ### Example: ```php -$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes', 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes', 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumbs' => [PhotoSize, PhotoSize], 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "document", "id": long, "access_hash": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}, "date": int, "mime_type": "string", "size": int, "thumb": PhotoSize, "dc_id": int, "attributes": [DocumentAttribute]} +{"_": "document", "id": long, "access_hash": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}, "date": int, "mime_type": "string", "size": int, "thumbs": [PhotoSize], "dc_id": int, "attributes": [DocumentAttribute]} ``` Or, if you're into Lua: ```lua -document={_='document', id=long, access_hash=long, file_reference='bytes', date=int, mime_type='string', size=int, thumb=PhotoSize, dc_id=int, attributes={DocumentAttribute}} +document={_='document', id=long, access_hash=long, file_reference='bytes', date=int, mime_type='string', size=int, thumbs={PhotoSize}, dc_id=int, attributes={DocumentAttribute}} ``` diff --git a/docs/API_docs/constructors/index.md b/docs/API_docs/constructors/index.md index f21efd3c..d3a3ffc3 100644 --- a/docs/API_docs/constructors/index.md +++ b/docs/API_docs/constructors/index.md @@ -31,6 +31,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [$account\_tmpPassword](../constructors/account_tmpPassword.md) = \['tmp_password' => [bytes](../types/bytes.md), 'valid_until' => [int](../types/int.md), \]; +[$account\_wallPapers](../constructors/account_wallPapers.md) = \['hash' => [int](../types/int.md), 'wallpapers' => \[[WallPaper](../types/WallPaper.md)\], \]; + +[$account\_wallPapersNotModified](../constructors/account_wallPapersNotModified.md) = \[\]; + [$account\_webAuthorizations](../constructors/account_webAuthorizations.md) = \['authorizations' => \[[WebAuthorization](../types/WebAuthorization.md)\], 'users' => \[[User](../types/User.md)\], \]; *** @@ -101,7 +105,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$cdnPublicKey](../constructors/cdnPublicKey.md) = \['dc_id' => [int](../types/int.md), 'public_key' => [string](../types/string.md), \]; *** -

[$channel](../constructors/channel.md) = \['creator' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'editor' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'verified' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'restricted' => [Bool](../types/Bool.md), 'democracy' => [Bool](../types/Bool.md), 'signatures' => [Bool](../types/Bool.md), 'min' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'username' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'restriction_reason' => [string](../types/string.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), 'participants_count' => [int](../types/int.md), \]; +

[$channel](../constructors/channel.md) = \['creator' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'verified' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'restricted' => [Bool](../types/Bool.md), 'signatures' => [Bool](../types/Bool.md), 'min' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'username' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'restriction_reason' => [string](../types/string.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'default_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'participants_count' => [int](../types/int.md), \]; ***

[$channelAdminLogEvent](../constructors/channelAdminLogEvent.md) = \['id' => [long](../types/long.md), 'date' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'action' => [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md), \]; @@ -121,6 +125,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$channelAdminLogEventActionChangeUsername](../constructors/channelAdminLogEventActionChangeUsername.md) = \['prev_value' => [string](../types/string.md), 'new_value' => [string](../types/string.md), \]; +*** +

[$channelAdminLogEventActionDefaultBannedRights](../constructors/channelAdminLogEventActionDefaultBannedRights.md) = \['prev_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'new_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \]; + ***

[$channelAdminLogEventActionDeleteMessage](../constructors/channelAdminLogEventActionDeleteMessage.md) = \['message' => [Message](../types/Message.md), \]; @@ -142,6 +149,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$channelAdminLogEventActionParticipantToggleBan](../constructors/channelAdminLogEventActionParticipantToggleBan.md) = \['prev_participant' => [ChannelParticipant](../types/ChannelParticipant.md), 'new_participant' => [ChannelParticipant](../types/ChannelParticipant.md), \]; +*** +

[$channelAdminLogEventActionStopPoll](../constructors/channelAdminLogEventActionStopPoll.md) = \['message' => [Message](../types/Message.md), \]; + ***

[$channelAdminLogEventActionToggleInvites](../constructors/channelAdminLogEventActionToggleInvites.md) = \['new_value' => [Bool](../types/Bool.md), \]; @@ -157,12 +167,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$channelAdminLogEventsFilter](../constructors/channelAdminLogEventsFilter.md) = \['join' => [Bool](../types/Bool.md), 'leave' => [Bool](../types/Bool.md), 'invite' => [Bool](../types/Bool.md), 'ban' => [Bool](../types/Bool.md), 'unban' => [Bool](../types/Bool.md), 'kick' => [Bool](../types/Bool.md), 'unkick' => [Bool](../types/Bool.md), 'promote' => [Bool](../types/Bool.md), 'demote' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), 'settings' => [Bool](../types/Bool.md), 'pinned' => [Bool](../types/Bool.md), 'edit' => [Bool](../types/Bool.md), 'delete' => [Bool](../types/Bool.md), \]; -*** -

[$channelAdminRights](../constructors/channelAdminRights.md) = \['change_info' => [Bool](../types/Bool.md), 'post_messages' => [Bool](../types/Bool.md), 'edit_messages' => [Bool](../types/Bool.md), 'delete_messages' => [Bool](../types/Bool.md), 'ban_users' => [Bool](../types/Bool.md), 'invite_users' => [Bool](../types/Bool.md), 'invite_link' => [Bool](../types/Bool.md), 'pin_messages' => [Bool](../types/Bool.md), 'add_admins' => [Bool](../types/Bool.md), 'manage_call' => [Bool](../types/Bool.md), \]; - -*** -

[$channelBannedRights](../constructors/channelBannedRights.md) = \['view_messages' => [Bool](../types/Bool.md), 'send_messages' => [Bool](../types/Bool.md), 'send_media' => [Bool](../types/Bool.md), 'send_stickers' => [Bool](../types/Bool.md), 'send_gifs' => [Bool](../types/Bool.md), 'send_games' => [Bool](../types/Bool.md), 'send_inline' => [Bool](../types/Bool.md), 'embed_links' => [Bool](../types/Bool.md), 'until_date' => [int](../types/int.md), \]; - ***

[$channelForbidden](../constructors/channelForbidden.md) = \['broadcast' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'until_date' => [int](../types/int.md), \]; @@ -179,10 +183,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$channelParticipant](../constructors/channelParticipant.md) = \['user_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \]; *** -

[$channelParticipantAdmin](../constructors/channelParticipantAdmin.md) = \['can_edit' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'promoted_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]; +

[$channelParticipantAdmin](../constructors/channelParticipantAdmin.md) = \['can_edit' => [Bool](../types/Bool.md), 'self' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'promoted_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), \]; *** -

[$channelParticipantBanned](../constructors/channelParticipantBanned.md) = \['left' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'kicked_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]; +

[$channelParticipantBanned](../constructors/channelParticipantBanned.md) = \['left' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'kicked_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \]; ***

[$channelParticipantCreator](../constructors/channelParticipantCreator.md) = \['user_id' => [int](../types/int.md), \]; @@ -199,6 +203,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$channelParticipantsBots](../constructors/channelParticipantsBots.md) = \[\]; +*** +

[$channelParticipantsContacts](../constructors/channelParticipantsContacts.md) = \['q' => [string](../types/string.md), \]; + ***

[$channelParticipantsKicked](../constructors/channelParticipantsKicked.md) = \['q' => [string](../types/string.md), \]; @@ -218,7 +225,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [$channels\_channelParticipantsNotModified](../constructors/channels_channelParticipantsNotModified.md) = \[\]; *** -

[$chat](../constructors/chat.md) = \['creator' => [Bool](../types/Bool.md), 'kicked' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'admins_enabled' => [Bool](../types/Bool.md), 'admin' => [Bool](../types/Bool.md), 'deactivated' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'participants_count' => [int](../types/int.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'migrated_to' => [InputChannel](../types/InputChannel.md), \]; +

[$chat](../constructors/chat.md) = \['creator' => [Bool](../types/Bool.md), 'kicked' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'deactivated' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'participants_count' => [int](../types/int.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'migrated_to' => [InputChannel](../types/InputChannel.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), 'default_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \]; + +*** +

[$chatAdminRights](../constructors/chatAdminRights.md) = \['change_info' => [Bool](../types/Bool.md), 'post_messages' => [Bool](../types/Bool.md), 'edit_messages' => [Bool](../types/Bool.md), 'delete_messages' => [Bool](../types/Bool.md), 'ban_users' => [Bool](../types/Bool.md), 'invite_users' => [Bool](../types/Bool.md), 'pin_messages' => [Bool](../types/Bool.md), 'add_admins' => [Bool](../types/Bool.md), \]; + +*** +

[$chatBannedRights](../constructors/chatBannedRights.md) = \['view_messages' => [Bool](../types/Bool.md), 'send_messages' => [Bool](../types/Bool.md), 'send_media' => [Bool](../types/Bool.md), 'send_stickers' => [Bool](../types/Bool.md), 'send_gifs' => [Bool](../types/Bool.md), 'send_games' => [Bool](../types/Bool.md), 'send_inline' => [Bool](../types/Bool.md), 'embed_links' => [Bool](../types/Bool.md), 'send_polls' => [Bool](../types/Bool.md), 'change_info' => [Bool](../types/Bool.md), 'invite_users' => [Bool](../types/Bool.md), 'pin_messages' => [Bool](../types/Bool.md), 'until_date' => [int](../types/int.md), \]; ***

[$chatEmpty](../constructors/chatEmpty.md) = \['id' => [int](../types/int.md), \]; @@ -227,7 +240,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$chatForbidden](../constructors/chatForbidden.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]; *** -

[$chatFull](../constructors/chatFull.md) = \['id' => [int](../types/int.md), 'participants' => [ChatParticipants](../types/ChatParticipants.md), 'chat_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'exported_invite' => [ExportedChatInvite](../types/ExportedChatInvite.md), 'bot_info' => \[[BotInfo](../types/BotInfo.md)\], 'pinned_msg_id' => [int](../types/int.md), \]; +

[$chatFull](../constructors/chatFull.md) = \['can_set_username' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'about' => [string](../types/string.md), 'participants' => [ChatParticipants](../types/ChatParticipants.md), 'chat_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'exported_invite' => [ExportedChatInvite](../types/ExportedChatInvite.md), 'bot_info' => \[[BotInfo](../types/BotInfo.md)\], 'pinned_msg_id' => [int](../types/int.md), \]; ***

[$chatInvite](../constructors/chatInvite.md) = \['channel' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'public' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'title' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'participants_count' => [int](../types/int.md), 'participants' => \[[User](../types/User.md)\], \]; @@ -265,6 +278,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$chatPhotoEmpty](../constructors/chatPhotoEmpty.md) = \[\]; +*** +

[$codeSettings](../constructors/codeSettings.md) = \['allow_flashcall' => [Bool](../types/Bool.md), 'current_number' => [Bool](../types/Bool.md), 'app_hash_persistent' => [Bool](../types/Bool.md), 'app_hash' => [string](../types/string.md), \]; + ***

[$config](../constructors/config.md) = \['phonecalls_enabled' => [Bool](../types/Bool.md), 'default_p2p_contacts' => [Bool](../types/Bool.md), 'preload_featured_stickers' => [Bool](../types/Bool.md), 'ignore_phone_entities' => [Bool](../types/Bool.md), 'revoke_pm_inbox' => [Bool](../types/Bool.md), 'blocked_mode' => [Bool](../types/Bool.md), 'pfs_enabled' => [Bool](../types/Bool.md), 'date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'test_mode' => [Bool](../types/Bool.md), 'this_dc' => [int](../types/int.md), 'dc_options' => \[[DcOption](../types/DcOption.md)\], 'dc_txt_domain_name' => [string](../types/string.md), 'chat_size_max' => [int](../types/int.md), 'megagroup_size_max' => [int](../types/int.md), 'forwarded_count_max' => [int](../types/int.md), 'online_update_period_ms' => [int](../types/int.md), 'offline_blur_timeout_ms' => [int](../types/int.md), 'offline_idle_timeout_ms' => [int](../types/int.md), 'online_cloud_timeout_ms' => [int](../types/int.md), 'notify_cloud_delay_ms' => [int](../types/int.md), 'notify_default_delay_ms' => [int](../types/int.md), 'push_chat_period_ms' => [int](../types/int.md), 'push_chat_limit' => [int](../types/int.md), 'saved_gifs_limit' => [int](../types/int.md), 'edit_time_limit' => [int](../types/int.md), 'revoke_time_limit' => [int](../types/int.md), 'revoke_pm_time_limit' => [int](../types/int.md), 'rating_e_decay' => [int](../types/int.md), 'stickers_recent_limit' => [int](../types/int.md), 'stickers_faved_limit' => [int](../types/int.md), 'channels_read_media_period' => [int](../types/int.md), 'tmp_sessions' => [int](../types/int.md), 'pinned_dialogs_count_max' => [int](../types/int.md), 'call_receive_timeout_ms' => [int](../types/int.md), 'call_ring_timeout_ms' => [int](../types/int.md), 'call_connect_timeout_ms' => [int](../types/int.md), 'call_packet_timeout_ms' => [int](../types/int.md), 'me_url_prefix' => [string](../types/string.md), 'autoupdate_url_prefix' => [string](../types/string.md), 'gif_search_username' => [string](../types/string.md), 'venue_search_username' => [string](../types/string.md), 'img_search_username' => [string](../types/string.md), 'static_maps_provider' => [string](../types/string.md), 'caption_length_max' => [int](../types/int.md), 'message_length_max' => [int](../types/int.md), 'webfile_dc_id' => [int](../types/int.md), 'suggested_lang_code' => [string](../types/string.md), 'lang_pack_version' => [int](../types/int.md), 'base_lang_pack_version' => [int](../types/int.md), \]; @@ -406,7 +422,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$dialogPeer](../constructors/dialogPeer.md) = \['peer' => [Peer](../types/Peer.md), \]; *** -

[$document](../constructors/document.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), 'date' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'size' => [int](../types/int.md), 'thumb' => [PhotoSize](../types/PhotoSize.md), 'dc_id' => [int](../types/int.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \]; +

[$document](../constructors/document.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), 'date' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'size' => [int](../types/int.md), 'thumbs' => \[[PhotoSize](../types/PhotoSize.md)\], 'dc_id' => [int](../types/int.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \]; ***

[$documentAttributeAnimated](../constructors/documentAttributeAnimated.md) = \[\]; @@ -904,6 +920,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$inputUserSelf](../constructors/inputUserSelf.md) = \[\]; +*** +

[$inputWallPaper](../constructors/inputWallPaper.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputWallPaperSlug](../constructors/inputWallPaperSlug.md) = \['slug' => [string](../types/string.md), \]; + ***

[$inputWebDocument](../constructors/inputWebDocument.md) = \['url' => [string](../types/string.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \]; @@ -1208,7 +1230,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [$messages\_messagesNotModified](../constructors/messages_messagesNotModified.md) = \['count' => [int](../types/int.md), \]; -[$messages\_messagesSlice](../constructors/messages_messagesSlice.md) = \['count' => [int](../types/int.md), 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; +[$messages\_messagesSlice](../constructors/messages_messagesSlice.md) = \['inexact' => [Bool](../types/Bool.md), 'count' => [int](../types/int.md), 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; [$messages\_peerDialogs](../constructors/messages_peerDialogs.md) = \['dialogs' => \[[Dialog](../types/Dialog.md)\], 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], 'state' => [updates\_State](../types/updates_State.md), \]; @@ -1463,6 +1485,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

[$photoSizeEmpty](../constructors/photoSizeEmpty.md) = \['type' => [string](../types/string.md), \]; +*** +

[$photoStrippedSize](../constructors/photoStrippedSize.md) = \['type' => [string](../types/string.md), 'bytes' => [bytes](../types/bytes.md), \]; + ***

[$photos\_photo](../constructors/photos_photo.md) = \['photo' => [Photo](../types/Photo.md), 'users' => \[[User](../types/User.md)\], \]; @@ -1858,7 +1883,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$updateChannelWebPage](../constructors/updateChannelWebPage.md) = \['channel_id' => [int](../types/int.md), 'webpage' => [WebPage](../types/WebPage.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; *** -

[$updateChatAdmins](../constructors/updateChatAdmins.md) = \['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), 'version' => [int](../types/int.md), \]; +

[$updateChatDefaultBannedRights](../constructors/updateChatDefaultBannedRights.md) = \['peer' => [Peer](../types/Peer.md), 'default_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'version' => [int](../types/int.md), \]; ***

[$updateChatParticipantAdd](../constructors/updateChatParticipantAdd.md) = \['chat_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), \]; @@ -2105,10 +2130,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$userStatusRecently](../constructors/userStatusRecently.md) = \[\]; *** -

[$wallPaper](../constructors/wallPaper.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'sizes' => \[[PhotoSize](../types/PhotoSize.md)\], 'color' => [int](../types/int.md), \]; +

[$wallPaper](../constructors/wallPaper.md) = \['id' => [long](../types/long.md), 'creator' => [Bool](../types/Bool.md), 'default' => [Bool](../types/Bool.md), 'pattern' => [Bool](../types/Bool.md), 'dark' => [Bool](../types/Bool.md), 'access_hash' => [long](../types/long.md), 'slug' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]; *** -

[$wallPaperSolid](../constructors/wallPaperSolid.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'bg_color' => [int](../types/int.md), 'color' => [int](../types/int.md), \]; +

[$wallPaperSettings](../constructors/wallPaperSettings.md) = \['blur' => [Bool](../types/Bool.md), 'motion' => [Bool](../types/Bool.md), 'background_color' => [int](../types/int.md), 'intensity' => [int](../types/int.md), \]; ***

[$webAuthorization](../constructors/webAuthorization.md) = \['hash' => [long](../types/long.md), 'bot_id' => [int](../types/int.md), 'domain' => [string](../types/string.md), 'browser' => [string](../types/string.md), 'platform' => [string](../types/string.md), 'date_created' => [int](../types/int.md), 'date_active' => [int](../types/int.md), 'ip' => [string](../types/string.md), 'region' => [string](../types/string.md), \]; diff --git a/docs/API_docs/constructors/inputWallPaper.md b/docs/API_docs/constructors/inputWallPaper.md new file mode 100644 index 00000000..188c4e60 --- /dev/null +++ b/docs/API_docs/constructors/inputWallPaper.md @@ -0,0 +1,43 @@ +--- +title: inputWallPaper +description: inputWallPaper attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputWallPaper +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|id|[long](../types/long.md) | Yes| +|access\_hash|[long](../types/long.md) | Yes| + + + +### Type: [InputWallPaper](../types/InputWallPaper.md) + + +### Example: + +```php +$inputWallPaper = ['_' => 'inputWallPaper', 'id' => long, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputWallPaper", "id": long, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputWallPaper={_='inputWallPaper', id=long, access_hash=long} + +``` + + diff --git a/docs/API_docs/constructors/inputWallPaperSlug.md b/docs/API_docs/constructors/inputWallPaperSlug.md new file mode 100644 index 00000000..bbd00fc9 --- /dev/null +++ b/docs/API_docs/constructors/inputWallPaperSlug.md @@ -0,0 +1,42 @@ +--- +title: inputWallPaperSlug +description: inputWallPaperSlug attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputWallPaperSlug +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|slug|[string](../types/string.md) | Yes| + + + +### Type: [InputWallPaper](../types/InputWallPaper.md) + + +### Example: + +```php +$inputWallPaperSlug = ['_' => 'inputWallPaperSlug', 'slug' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputWallPaperSlug", "slug": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputWallPaperSlug={_='inputWallPaperSlug', slug='string'} + +``` + + diff --git a/docs/API_docs/constructors/messages_messagesSlice.md b/docs/API_docs/constructors/messages_messagesSlice.md index 51db09fa..504a0e47 100644 --- a/docs/API_docs/constructors/messages_messagesSlice.md +++ b/docs/API_docs/constructors/messages_messagesSlice.md @@ -14,6 +14,7 @@ Messages slice | Name | Type | Required | Description | |----------|---------------|----------|-------------| +|inexact|[Bool](../types/Bool.md) | Optional|| |count|[int](../types/int.md) | Yes|Count| |messages|Array of [Message](../types/Message.md) | Yes|Messages| |chats|Array of [Chat](../types/Chat.md) | Yes|Chats| @@ -27,20 +28,20 @@ Messages slice ### Example: ```php -$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'inexact' => Bool, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "messages.messagesSlice", "count": int, "messages": [Message], "chats": [Chat], "users": [User]} +{"_": "messages.messagesSlice", "inexact": Bool, "count": int, "messages": [Message], "chats": [Chat], "users": [User]} ``` Or, if you're into Lua: ```lua -messages_messagesSlice={_='messages.messagesSlice', count=int, messages={Message}, chats={Chat}, users={User}} +messages_messagesSlice={_='messages.messagesSlice', inexact=Bool, count=int, messages={Message}, chats={Chat}, users={User}} ``` diff --git a/docs/API_docs/constructors/photoStrippedSize.md b/docs/API_docs/constructors/photoStrippedSize.md new file mode 100644 index 00000000..958d6071 --- /dev/null +++ b/docs/API_docs/constructors/photoStrippedSize.md @@ -0,0 +1,43 @@ +--- +title: photoStrippedSize +description: photoStrippedSize attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: photoStrippedSize +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|type|[string](../types/string.md) | Yes| +|bytes|[bytes](../types/bytes.md) | Yes| + + + +### Type: [PhotoSize](../types/PhotoSize.md) + + +### Example: + +```php +$photoStrippedSize = ['_' => 'photoStrippedSize', 'type' => 'string', 'bytes' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "photoStrippedSize", "type": "string", "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +photoStrippedSize={_='photoStrippedSize', type='string', bytes='bytes'} + +``` + + diff --git a/docs/API_docs/constructors/updateChatDefaultBannedRights.md b/docs/API_docs/constructors/updateChatDefaultBannedRights.md new file mode 100644 index 00000000..436230d6 --- /dev/null +++ b/docs/API_docs/constructors/updateChatDefaultBannedRights.md @@ -0,0 +1,44 @@ +--- +title: updateChatDefaultBannedRights +description: updateChatDefaultBannedRights attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChatDefaultBannedRights +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|peer|[Peer](../types/Peer.md) | Yes| +|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes| +|version|[int](../types/int.md) | Yes| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChatDefaultBannedRights = ['_' => 'updateChatDefaultBannedRights', 'peer' => Peer, 'default_banned_rights' => ChatBannedRights, 'version' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChatDefaultBannedRights", "peer": Peer, "default_banned_rights": ChatBannedRights, "version": int} +``` + + +Or, if you're into Lua: + +```lua +updateChatDefaultBannedRights={_='updateChatDefaultBannedRights', peer=Peer, default_banned_rights=ChatBannedRights, version=int} + +``` + + diff --git a/docs/API_docs/constructors/wallPaper.md b/docs/API_docs/constructors/wallPaper.md index b1dd46b0..6acc963b 100644 --- a/docs/API_docs/constructors/wallPaper.md +++ b/docs/API_docs/constructors/wallPaper.md @@ -14,10 +14,15 @@ Wall paper | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[int](../types/int.md) | Yes|ID| -|title|[string](../types/string.md) | Yes|Title| -|sizes|Array of [PhotoSize](../types/PhotoSize.md) | Yes|Sizes| -|color|[int](../types/int.md) | Yes|Color| +|id|[long](../types/long.md) | Yes|| +|creator|[Bool](../types/Bool.md) | Optional|| +|default|[Bool](../types/Bool.md) | Optional|| +|pattern|[Bool](../types/Bool.md) | Optional|| +|dark|[Bool](../types/Bool.md) | Optional|| +|access\_hash|[long](../types/long.md) | Yes|| +|slug|[string](../types/string.md) | Yes|| +|document|[Document](../types/Document.md) | Optional|| +|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Optional|| @@ -27,20 +32,20 @@ Wall paper ### Example: ```php -$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; +$wallPaper = ['_' => 'wallPaper', 'id' => long, 'creator' => Bool, 'default' => Bool, 'pattern' => Bool, 'dark' => Bool, 'access_hash' => long, 'slug' => 'string', 'document' => Document, 'settings' => WallPaperSettings]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "wallPaper", "id": int, "title": "string", "sizes": [PhotoSize], "color": int} +{"_": "wallPaper", "id": long, "creator": Bool, "default": Bool, "pattern": Bool, "dark": Bool, "access_hash": long, "slug": "string", "document": Document, "settings": WallPaperSettings} ``` Or, if you're into Lua: ```lua -wallPaper={_='wallPaper', id=int, title='string', sizes={PhotoSize}, color=int} +wallPaper={_='wallPaper', id=long, creator=Bool, default=Bool, pattern=Bool, dark=Bool, access_hash=long, slug='string', document=Document, settings=WallPaperSettings} ``` diff --git a/docs/API_docs/constructors/wallPaperSettings.md b/docs/API_docs/constructors/wallPaperSettings.md new file mode 100644 index 00000000..24da9d8f --- /dev/null +++ b/docs/API_docs/constructors/wallPaperSettings.md @@ -0,0 +1,45 @@ +--- +title: wallPaperSettings +description: wallPaperSettings attributes, type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: wallPaperSettings +[Back to constructors index](index.md) + + + +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|blur|[Bool](../types/Bool.md) | Optional| +|motion|[Bool](../types/Bool.md) | Optional| +|background\_color|[int](../types/int.md) | Optional| +|intensity|[int](../types/int.md) | Optional| + + + +### Type: [WallPaperSettings](../types/WallPaperSettings.md) + + +### Example: + +```php +$wallPaperSettings = ['_' => 'wallPaperSettings', 'blur' => Bool, 'motion' => Bool, 'background_color' => int, 'intensity' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "wallPaperSettings", "blur": Bool, "motion": Bool, "background_color": int, "intensity": int} +``` + + +Or, if you're into Lua: + +```lua +wallPaperSettings={_='wallPaperSettings', blur=Bool, motion=Bool, background_color=int, intensity=int} + +``` + + diff --git a/docs/API_docs/index.md b/docs/API_docs/index.md index 7638ac74..c32e2123 100644 --- a/docs/API_docs/index.md +++ b/docs/API_docs/index.md @@ -1,9 +1,9 @@ --- -title: MadelineProto API documentation (layer 91) -description: MadelineProto API documentation (layer 91) +title: MadelineProto API documentation (layer 95) +description: MadelineProto API documentation (layer 95) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- -# MadelineProto API documentation (layer 91) +# MadelineProto API documentation (layer 95) [Back to main documentation](..) diff --git a/docs/API_docs/methods/account_getWallPaper.md b/docs/API_docs/methods/account_getWallPaper.md new file mode 100644 index 00000000..8c69b51b --- /dev/null +++ b/docs/API_docs/methods/account_getWallPaper.md @@ -0,0 +1,66 @@ +--- +title: account.getWallPaper +description: account.getWallPaper parameters, return type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getWallPaper +[Back to methods index](index.md) + + +### Parameters: + +| Name | Type | Required | +|----------|---------------|----------| +|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Yes| + + +### Return type: [WallPaper](../types/WallPaper.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$WallPaper = $MadelineProto->account->getWallPaper(['wallpaper' => InputWallPaper, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.getWallPaper +* params - `{"wallpaper": InputWallPaper, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getWallPaper` + +Parameters: + +wallpaper - Json encoded InputWallPaper + + + + +Or, if you're into Lua: + +```lua +WallPaper = account.getWallPaper({wallpaper=InputWallPaper, }) +``` + diff --git a/docs/API_docs/methods/account_getWallPapers.md b/docs/API_docs/methods/account_getWallPapers.md index 8198996c..3a95f1f8 100644 --- a/docs/API_docs/methods/account_getWallPapers.md +++ b/docs/API_docs/methods/account_getWallPapers.md @@ -9,9 +9,14 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png Returns a list of available wallpapers. +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|Array of [int](../types/int.md) | | Optional| -### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) +### Return type: [account\_WallPapers](../types/account_WallPapers.md) ### Can bots use this method: **NO** @@ -28,7 +33,7 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); +$account_WallPapers = $MadelineProto->account->getWallPapers(['hash' => [int, int], ]); ``` ### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): @@ -41,12 +46,14 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getWallPapers` Parameters: +hash - Json encoded array of int + Or, if you're into Lua: ```lua -Vector_of_WallPaper = account.getWallPapers({}) +account_WallPapers = account.getWallPapers({hash={int}, }) ``` diff --git a/docs/API_docs/methods/account_installWallPaper.md b/docs/API_docs/methods/account_installWallPaper.md new file mode 100644 index 00000000..4ef01b73 --- /dev/null +++ b/docs/API_docs/methods/account_installWallPaper.md @@ -0,0 +1,69 @@ +--- +title: account.installWallPaper +description: account.installWallPaper parameters, return type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.installWallPaper +[Back to methods index](index.md) + + +### Parameters: + +| Name | Type | Required | +|----------|---------------|----------| +|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Yes| +|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->installWallPaper(['wallpaper' => InputWallPaper, 'settings' => WallPaperSettings, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.installWallPaper +* params - `{"wallpaper": InputWallPaper, "settings": WallPaperSettings, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.installWallPaper` + +Parameters: + +wallpaper - Json encoded InputWallPaper + +settings - Json encoded WallPaperSettings + + + + +Or, if you're into Lua: + +```lua +Bool = account.installWallPaper({wallpaper=InputWallPaper, settings=WallPaperSettings, }) +``` + diff --git a/docs/API_docs/methods/account_resetWallPapers.md b/docs/API_docs/methods/account_resetWallPapers.md new file mode 100644 index 00000000..3c458982 --- /dev/null +++ b/docs/API_docs/methods/account_resetWallPapers.md @@ -0,0 +1,59 @@ +--- +title: account.resetWallPapers +description: account.resetWallPapers parameters, return type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.resetWallPapers +[Back to methods index](index.md) + + + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->resetWallPapers(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.resetWallPapers +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.resetWallPapers` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Bool = account.resetWallPapers({}) +``` + diff --git a/docs/API_docs/methods/account_saveWallPaper.md b/docs/API_docs/methods/account_saveWallPaper.md new file mode 100644 index 00000000..8da37a29 --- /dev/null +++ b/docs/API_docs/methods/account_saveWallPaper.md @@ -0,0 +1,72 @@ +--- +title: account.saveWallPaper +description: account.saveWallPaper parameters, return type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.saveWallPaper +[Back to methods index](index.md) + + +### Parameters: + +| Name | Type | Required | +|----------|---------------|----------| +|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Yes| +|unsave|[Bool](../types/Bool.md) | Yes| +|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->saveWallPaper(['wallpaper' => InputWallPaper, 'unsave' => Bool, 'settings' => WallPaperSettings, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.saveWallPaper +* params - `{"wallpaper": InputWallPaper, "unsave": Bool, "settings": WallPaperSettings, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.saveWallPaper` + +Parameters: + +wallpaper - Json encoded InputWallPaper + +unsave - Json encoded Bool + +settings - Json encoded WallPaperSettings + + + + +Or, if you're into Lua: + +```lua +Bool = account.saveWallPaper({wallpaper=InputWallPaper, unsave=Bool, settings=WallPaperSettings, }) +``` + diff --git a/docs/API_docs/methods/account_sendChangePhoneCode.md b/docs/API_docs/methods/account_sendChangePhoneCode.md index 123a5880..caccf3cb 100644 --- a/docs/API_docs/methods/account_sendChangePhoneCode.md +++ b/docs/API_docs/methods/account_sendChangePhoneCode.md @@ -13,9 +13,8 @@ Change the phone number | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Can the code be sent using a flash call instead of an SMS? | Optional| |phone\_number|[string](../types/string.md) | New phone number | Yes| -|current\_number|[Bool](../types/Bool.md) | Current phone number | Optional| +|settings|[CodeSettings](../types/CodeSettings.md) | | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -35,7 +34,7 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); +$auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', 'settings' => CodeSettings, ]); ``` ### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): @@ -48,11 +47,9 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.sendChangePhoneCode` Parameters: -allow_flashcall - Json encoded Bool - phone_number - Json encoded string -current_number - Json encoded Bool +settings - Json encoded CodeSettings @@ -60,7 +57,7 @@ current_number - Json encoded Bool Or, if you're into Lua: ```lua -auth_SentCode = account.sendChangePhoneCode({allow_flashcall=Bool, phone_number='string', current_number=Bool, }) +auth_SentCode = account.sendChangePhoneCode({phone_number='string', settings=CodeSettings, }) ``` ### Errors this method can return: diff --git a/docs/API_docs/methods/account_sendConfirmPhoneCode.md b/docs/API_docs/methods/account_sendConfirmPhoneCode.md index 5c2612c2..6dc9eaf4 100644 --- a/docs/API_docs/methods/account_sendConfirmPhoneCode.md +++ b/docs/API_docs/methods/account_sendConfirmPhoneCode.md @@ -13,9 +13,8 @@ Send confirmation phone code | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Can telegram call you instead of sending an SMS? | Optional| |hash|[string](../types/string.md) | The hash | Yes| -|current\_number|[Bool](../types/Bool.md) | The current phone number | Optional| +|settings|[CodeSettings](../types/CodeSettings.md) | | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -35,7 +34,7 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); +$auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['hash' => 'string', 'settings' => CodeSettings, ]); ``` ### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): @@ -48,11 +47,9 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.sendConfirmPhoneCode` Parameters: -allow_flashcall - Json encoded Bool - hash - Json encoded string -current_number - Json encoded Bool +settings - Json encoded CodeSettings @@ -60,7 +57,7 @@ current_number - Json encoded Bool Or, if you're into Lua: ```lua -auth_SentCode = account.sendConfirmPhoneCode({allow_flashcall=Bool, hash='string', current_number=Bool, }) +auth_SentCode = account.sendConfirmPhoneCode({hash='string', settings=CodeSettings, }) ``` ### Errors this method can return: diff --git a/docs/API_docs/methods/account_sendVerifyPhoneCode.md b/docs/API_docs/methods/account_sendVerifyPhoneCode.md index 45902b30..9c5e08ac 100644 --- a/docs/API_docs/methods/account_sendVerifyPhoneCode.md +++ b/docs/API_docs/methods/account_sendVerifyPhoneCode.md @@ -13,9 +13,8 @@ Send phone verification code | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Allow phone calls? | Optional| |phone\_number|[string](../types/string.md) | The phone number | Yes| -|current\_number|[Bool](../types/Bool.md) | Is this the current number? | Optional| +|settings|[CodeSettings](../types/CodeSettings.md) | | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) @@ -35,7 +34,7 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$auth_SentCode = $MadelineProto->account->sendVerifyPhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); +$auth_SentCode = $MadelineProto->account->sendVerifyPhoneCode(['phone_number' => 'string', 'settings' => CodeSettings, ]); ``` ### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): @@ -47,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` Parameters: * method - account.sendVerifyPhoneCode -* params - `{"allow_flashcall": Bool, "phone_number": "string", "current_number": Bool, }` +* params - `{"phone_number": "string", "settings": CodeSettings, }` @@ -57,11 +56,9 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.sendVerifyPhoneCode` Parameters: -allow_flashcall - Json encoded Bool - phone_number - Json encoded string -current_number - Json encoded Bool +settings - Json encoded CodeSettings @@ -69,6 +66,6 @@ current_number - Json encoded Bool Or, if you're into Lua: ```lua -auth_SentCode = account.sendVerifyPhoneCode({allow_flashcall=Bool, phone_number='string', current_number=Bool, }) +auth_SentCode = account.sendVerifyPhoneCode({phone_number='string', settings=CodeSettings, }) ``` diff --git a/docs/API_docs/methods/account_uploadWallPaper.md b/docs/API_docs/methods/account_uploadWallPaper.md new file mode 100644 index 00000000..c6d3e2a7 --- /dev/null +++ b/docs/API_docs/methods/account_uploadWallPaper.md @@ -0,0 +1,72 @@ +--- +title: account.uploadWallPaper +description: account.uploadWallPaper parameters, return type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.uploadWallPaper +[Back to methods index](index.md) + + +### Parameters: + +| Name | Type | Required | +|----------|---------------|----------| +|file|[File path or InputFile](../types/InputFile.md) | Yes| +|mime\_type|[string](../types/string.md) | Yes| +|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Yes| + + +### Return type: [WallPaper](../types/WallPaper.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$WallPaper = $MadelineProto->account->uploadWallPaper(['file' => InputFile, 'mime_type' => 'string', 'settings' => WallPaperSettings, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.uploadWallPaper +* params - `{"file": InputFile, "mime_type": "string", "settings": WallPaperSettings, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.uploadWallPaper` + +Parameters: + +file - Json encoded InputFile + +mime_type - Json encoded string + +settings - Json encoded WallPaperSettings + + + + +Or, if you're into Lua: + +```lua +WallPaper = account.uploadWallPaper({file=InputFile, mime_type='string', settings=WallPaperSettings, }) +``` + diff --git a/docs/API_docs/methods/api_index.md b/docs/API_docs/methods/api_index.md index c48456bd..8efb3808 100644 --- a/docs/API_docs/methods/api_index.md +++ b/docs/API_docs/methods/api_index.md @@ -78,12 +78,16 @@ $MadelineProto->[account->getSecureValue](account_getSecureValue.md)(\['types' = $MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password' => [InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +$MadelineProto->[account->getWallPaper](account_getWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), \]) === [$WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\['hash' => [int](../types/int.md), \]) === [$account\_WallPapers](../types/account_WallPapers.md) $MadelineProto->[account->getWebAuthorizations](account_getWebAuthorizations.md)(\[\]) === [$account\_WebAuthorizations](../types/account_WebAuthorizations.md) $MadelineProto->[account->initTakeoutSession](account_initTakeoutSession.md)(\['contacts' => [Bool](../types/Bool.md), 'message_users' => [Bool](../types/Bool.md), 'message_chats' => [Bool](../types/Bool.md), 'message_megagroups' => [Bool](../types/Bool.md), 'message_channels' => [Bool](../types/Bool.md), 'files' => [Bool](../types/Bool.md), 'file_max_size' => [int](../types/int.md), \]) === [$account\_Takeout](../types/account_Takeout.md) +$MadelineProto->[account->installWallPaper](account_installWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$Bool](../types/Bool.md) + $MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), 'app_sandbox' => [Bool](../types/Bool.md), 'secret' => [bytes](../types/bytes.md), 'other_uids' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) $MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) @@ -94,19 +98,23 @@ $MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\[' $MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +$MadelineProto->[account->resetWallPapers](account_resetWallPapers.md)(\[\]) === [$Bool](../types/Bool.md) + $MadelineProto->[account->resetWebAuthorization](account_resetWebAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) $MadelineProto->[account->resetWebAuthorizations](account_resetWebAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) $MadelineProto->[account->saveSecureValue](account_saveSecureValue.md)(\['value' => [InputSecureValue](../types/InputSecureValue.md), 'secure_secret_id' => [long](../types/long.md), \]) === [$SecureValue](../types/SecureValue.md) -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +$MadelineProto->[account->saveWallPaper](account_saveWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), 'unsave' => [Bool](../types/Bool.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$Bool](../types/Bool.md) -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), 'settings' => [CodeSettings](../types/CodeSettings.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['hash' => [string](../types/string.md), 'settings' => [CodeSettings](../types/CodeSettings.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) $MadelineProto->[account->sendVerifyEmailCode](account_sendVerifyEmailCode.md)(\['email' => [string](../types/string.md), \]) === [$account\_SentEmailCode](../types/account_SentEmailCode.md) -$MadelineProto->[account->sendVerifyPhoneCode](account_sendVerifyPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +$MadelineProto->[account->sendVerifyPhoneCode](account_sendVerifyPhoneCode.md)(\['phone_number' => [string](../types/string.md), 'settings' => [CodeSettings](../types/CodeSettings.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) $MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) @@ -128,6 +136,8 @@ $MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => $MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +$MadelineProto->[account->uploadWallPaper](account_uploadWallPaper.md)(\['file' => [InputFile](../types/InputFile.md), 'mime_type' => [string](../types/string.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$WallPaper](../types/WallPaper.md) + $MadelineProto->[account->verifyEmail](account_verifyEmail.md)(\['email' => [string](../types/string.md), 'code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) $MadelineProto->[account->verifyPhone](account_verifyPhone.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) @@ -158,7 +168,7 @@ $MadelineProto->[auth->resendCode](auth_resendCode.md)(\['phone_number' => [stri $MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['phone_number' => [string](../types/string.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), 'settings' => [CodeSettings](../types/CodeSettings.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) $MadelineProto->[auth->signIn](auth_signIn.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) @@ -184,18 +194,14 @@ $MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channe $MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), \]) === [$Updates](../types/Updates.md) -$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) - -$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) +$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \]) === [$Updates](../types/Updates.md) $MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) $MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) - $MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), 'grouped' => [Bool](../types/Bool.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) $MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) @@ -228,8 +234,6 @@ $MadelineProto->[channels->reportSpam](channels_reportSpam.md)(\['channel' => [I $MadelineProto->[channels->setStickers](channels_setStickers.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) - $MadelineProto->[channels->togglePreHistoryHidden](channels_togglePreHistoryHidden.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) $MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) @@ -374,8 +378,12 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke $MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +$MadelineProto->[messages->editChatAbout](messages_editChatAbout.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + $MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +$MadelineProto->[messages->editChatDefaultBannedRights](messages_editChatDefaultBannedRights.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \]) === [$Updates](../types/Updates.md) + $MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) $MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) @@ -384,7 +392,7 @@ $MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.m $MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) $MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) @@ -552,8 +560,6 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP $MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) - $MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputDialogPeer](../types/InputDialogPeer.md), \]) === [$Bool](../types/Bool.md) $MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/channels_editAdmin.md b/docs/API_docs/methods/channels_editAdmin.md index 19670a43..16910bd4 100644 --- a/docs/API_docs/methods/channels_editAdmin.md +++ b/docs/API_docs/methods/channels_editAdmin.md @@ -15,7 +15,7 @@ Edit admin permissions of a user in a channel/supergroup |----------|---------------|-------------|----------| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional| -|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | The new admin rights | Yes| +|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | | Yes| ### Return type: [Updates](../types/Updates.md) @@ -35,7 +35,7 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); +$Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChatAdminRights, ]); ``` ### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): @@ -47,7 +47,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` Parameters: * method - channels.editAdmin -* params - `{"channel": InputChannel, "user_id": InputUser, "admin_rights": ChannelAdminRights, }` +* params - `{"channel": InputChannel, "user_id": InputUser, "admin_rights": ChatAdminRights, }` @@ -61,7 +61,7 @@ channel - Json encoded InputChannel user_id - Json encoded InputUser -admin_rights - Json encoded ChannelAdminRights +admin_rights - Json encoded ChatAdminRights @@ -69,7 +69,7 @@ admin_rights - Json encoded ChannelAdminRights Or, if you're into Lua: ```lua -Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rights=ChannelAdminRights, }) +Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rights=ChatAdminRights, }) ``` ### Errors this method can return: diff --git a/docs/API_docs/methods/channels_editBanned.md b/docs/API_docs/methods/channels_editBanned.md index e18f236e..daa1f569 100644 --- a/docs/API_docs/methods/channels_editBanned.md +++ b/docs/API_docs/methods/channels_editBanned.md @@ -15,7 +15,7 @@ Kick or ban a user from a channel/supergroup |----------|---------------|-------------|----------| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to kick/ban | Optional| -|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Banned/kicked permissions | Yes| +|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | | Yes| ### Return type: [Updates](../types/Updates.md) @@ -35,7 +35,7 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); +$Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChatBannedRights, ]); ``` ### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): @@ -47,7 +47,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` Parameters: * method - channels.editBanned -* params - `{"channel": InputChannel, "user_id": InputUser, "banned_rights": ChannelBannedRights, }` +* params - `{"channel": InputChannel, "user_id": InputUser, "banned_rights": ChatBannedRights, }` @@ -61,7 +61,7 @@ channel - Json encoded InputChannel user_id - Json encoded InputUser -banned_rights - Json encoded ChannelBannedRights +banned_rights - Json encoded ChatBannedRights @@ -69,7 +69,7 @@ banned_rights - Json encoded ChannelBannedRights Or, if you're into Lua: ```lua -Updates = channels.editBanned({channel=InputChannel, user_id=InputUser, banned_rights=ChannelBannedRights, }) +Updates = channels.editBanned({channel=InputChannel, user_id=InputUser, banned_rights=ChatBannedRights, }) ``` ### Errors this method can return: diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md index 54b5278e..4f0eb4e6 100644 --- a/docs/API_docs/methods/index.md +++ b/docs/API_docs/methods/index.md @@ -46,8 +46,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Add users to channel/supergroup: channels.inviteToChannel -* Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites - * Block a user: contacts.block * Bots only: get telegram passport authorization form: account.getAuthorizationForm @@ -152,8 +150,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Edit admin permissions: messages.editChatAdmin -* Edit the about text of a channel/supergroup: channels.editAbout - * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto * Edit the photo of a supergroup/channel: channels.editPhoto @@ -164,14 +160,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Edit user info: help.editUserInfo -* Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins - * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden * Export chat invite : messages.exportChatInvite -* Export the invite link of a channel: channels.exportInvite - * Find a sticker set: messages.searchStickerSets * Finish account exporting session: account.finishTakeoutSession diff --git a/docs/API_docs/methods/messages_editChatAbout.md b/docs/API_docs/methods/messages_editChatAbout.md new file mode 100644 index 00000000..cdaa7b55 --- /dev/null +++ b/docs/API_docs/methods/messages_editChatAbout.md @@ -0,0 +1,69 @@ +--- +title: messages.editChatAbout +description: messages.editChatAbout parameters, return type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.editChatAbout +[Back to methods index](index.md) + + +### Parameters: + +| Name | Type | Required | +|----------|---------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|about|[string](../types/string.md) | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editChatAbout(['peer' => InputPeer, 'about' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.editChatAbout +* params - `{"peer": InputPeer, "about": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.editChatAbout` + +Parameters: + +peer - Json encoded InputPeer + +about - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = messages.editChatAbout({peer=InputPeer, about='string', }) +``` + diff --git a/docs/API_docs/methods/messages_editChatDefaultBannedRights.md b/docs/API_docs/methods/messages_editChatDefaultBannedRights.md new file mode 100644 index 00000000..67d37679 --- /dev/null +++ b/docs/API_docs/methods/messages_editChatDefaultBannedRights.md @@ -0,0 +1,69 @@ +--- +title: messages.editChatDefaultBannedRights +description: messages.editChatDefaultBannedRights parameters, return type and example +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.editChatDefaultBannedRights +[Back to methods index](index.md) + + +### Parameters: + +| Name | Type | Required | +|----------|---------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editChatDefaultBannedRights(['peer' => InputPeer, 'banned_rights' => ChatBannedRights, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.editChatDefaultBannedRights +* params - `{"peer": InputPeer, "banned_rights": ChatBannedRights, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.editChatDefaultBannedRights` + +Parameters: + +peer - Json encoded InputPeer + +banned_rights - Json encoded ChatBannedRights + + + + +Or, if you're into Lua: + +```lua +Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=ChatBannedRights, }) +``` + diff --git a/docs/API_docs/methods/messages_exportChatInvite.md b/docs/API_docs/methods/messages_exportChatInvite.md index 227135c6..cfc0418a 100644 --- a/docs/API_docs/methods/messages_exportChatInvite.md +++ b/docs/API_docs/methods/messages_exportChatInvite.md @@ -13,7 +13,7 @@ Export chat invite | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat id | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) @@ -33,7 +33,7 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); +$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['peer' => InputPeer, ]); ``` ### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): @@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.exportChatInvite` Parameters: -chat_id - Json encoded InputPeer +peer - Json encoded InputPeer @@ -54,7 +54,7 @@ chat_id - Json encoded InputPeer Or, if you're into Lua: ```lua -ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) +ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, }) ``` ### Errors this method can return: diff --git a/docs/API_docs/types/ChannelAdminLogEventAction.md b/docs/API_docs/types/ChannelAdminLogEventAction.md index a01b5a83..af2a6e6f 100644 --- a/docs/API_docs/types/ChannelAdminLogEventAction.md +++ b/docs/API_docs/types/ChannelAdminLogEventAction.md @@ -42,6 +42,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [channelAdminLogEventActionTogglePreHistoryHidden](../constructors/channelAdminLogEventActionTogglePreHistoryHidden.md) +[channelAdminLogEventActionDefaultBannedRights](../constructors/channelAdminLogEventActionDefaultBannedRights.md) + +[channelAdminLogEventActionStopPoll](../constructors/channelAdminLogEventActionStopPoll.md) + ### Methods that return an object of this type (methods): diff --git a/docs/API_docs/types/ChannelParticipantsFilter.md b/docs/API_docs/types/ChannelParticipantsFilter.md index fa8dee6b..70cfa41c 100644 --- a/docs/API_docs/types/ChannelParticipantsFilter.md +++ b/docs/API_docs/types/ChannelParticipantsFilter.md @@ -22,6 +22,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [channelParticipantsSearch](../constructors/channelParticipantsSearch.md) +[channelParticipantsContacts](../constructors/channelParticipantsContacts.md) + ### Methods that return an object of this type (methods): diff --git a/docs/API_docs/types/ChatAdminRights.md b/docs/API_docs/types/ChatAdminRights.md new file mode 100644 index 00000000..2d0b53db --- /dev/null +++ b/docs/API_docs/types/ChatAdminRights.md @@ -0,0 +1,20 @@ +--- +title: ChatAdminRights +description: constructors and methods of type ChatAdminRights +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChatAdminRights +[Back to types index](index.md) + + + +### Possible values (constructors): + +[chatAdminRights](../constructors/chatAdminRights.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ChatBannedRights.md b/docs/API_docs/types/ChatBannedRights.md new file mode 100644 index 00000000..6eec3d79 --- /dev/null +++ b/docs/API_docs/types/ChatBannedRights.md @@ -0,0 +1,20 @@ +--- +title: ChatBannedRights +description: constructors and methods of type ChatBannedRights +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChatBannedRights +[Back to types index](index.md) + + + +### Possible values (constructors): + +[chatBannedRights](../constructors/chatBannedRights.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/CodeSettings.md b/docs/API_docs/types/CodeSettings.md new file mode 100644 index 00000000..d6c0934a --- /dev/null +++ b/docs/API_docs/types/CodeSettings.md @@ -0,0 +1,20 @@ +--- +title: CodeSettings +description: constructors and methods of type CodeSettings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: CodeSettings +[Back to types index](index.md) + + + +### Possible values (constructors): + +[codeSettings](../constructors/codeSettings.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ExportedChatInvite.md b/docs/API_docs/types/ExportedChatInvite.md index 4213a78f..16a273d1 100644 --- a/docs/API_docs/types/ExportedChatInvite.md +++ b/docs/API_docs/types/ExportedChatInvite.md @@ -20,7 +20,5 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [$MadelineProto->messages->exportChatInvite](../methods/messages_exportChatInvite.md) -[$MadelineProto->channels->exportInvite](../methods/channels_exportInvite.md) - diff --git a/docs/API_docs/types/InputWallPaper.md b/docs/API_docs/types/InputWallPaper.md new file mode 100644 index 00000000..e8d29082 --- /dev/null +++ b/docs/API_docs/types/InputWallPaper.md @@ -0,0 +1,22 @@ +--- +title: InputWallPaper +description: constructors and methods of type InputWallPaper +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputWallPaper +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputWallPaper](../constructors/inputWallPaper.md) + +[inputWallPaperSlug](../constructors/inputWallPaperSlug.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/PhotoSize.md b/docs/API_docs/types/PhotoSize.md index caf1684c..503db932 100644 --- a/docs/API_docs/types/PhotoSize.md +++ b/docs/API_docs/types/PhotoSize.md @@ -16,6 +16,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [photoCachedSize](../constructors/photoCachedSize.md) +[photoStrippedSize](../constructors/photoStrippedSize.md) + ### Methods that return an object of this type (methods): diff --git a/docs/API_docs/types/Update.md b/docs/API_docs/types/Update.md index 80327e4b..22132c69 100644 --- a/docs/API_docs/types/Update.md +++ b/docs/API_docs/types/Update.md @@ -76,8 +76,6 @@ Contains notifications about data changes [updateChannelMessageViews](../constructors/updateChannelMessageViews.md) -[updateChatAdmins](../constructors/updateChatAdmins.md) - [updateChatParticipantAdmin](../constructors/updateChatParticipantAdmin.md) [updateNewStickerSet](../constructors/updateNewStickerSet.md) @@ -150,6 +148,8 @@ Contains notifications about data changes [updateMessagePoll](../constructors/updateMessagePoll.md) +[updateChatDefaultBannedRights](../constructors/updateChatDefaultBannedRights.md) + ### Methods that return an object of this type (methods): diff --git a/docs/API_docs/types/Updates.md b/docs/API_docs/types/Updates.md index f913f639..ec28c0b4 100644 --- a/docs/API_docs/types/Updates.md +++ b/docs/API_docs/types/Updates.md @@ -50,8 +50,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [$MadelineProto->messages->startBot](../methods/messages_startBot.md) -[$MadelineProto->messages->toggleChatAdmins](../methods/messages_toggleChatAdmins.md) - [$MadelineProto->messages->migrateChat](../methods/messages_migrateChat.md) [$MadelineProto->messages->sendInlineBotResult](../methods/messages_sendInlineBotResult.md) @@ -72,6 +70,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [$MadelineProto->messages->getPollResults](../methods/messages_getPollResults.md) +[$MadelineProto->messages->editChatDefaultBannedRights](../methods/messages_editChatDefaultBannedRights.md) + [$MadelineProto->help->getAppChangelog](../methods/help_getAppChangelog.md) [$MadelineProto->channels->createChannel](../methods/channels_createChannel.md) @@ -90,8 +90,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [$MadelineProto->channels->deleteChannel](../methods/channels_deleteChannel.md) -[$MadelineProto->channels->toggleInvites](../methods/channels_toggleInvites.md) - [$MadelineProto->channels->toggleSignatures](../methods/channels_toggleSignatures.md) [$MadelineProto->channels->editBanned](../methods/channels_editBanned.md) diff --git a/docs/API_docs/types/WallPaper.md b/docs/API_docs/types/WallPaper.md index 8c5ac7cf..ccaafe2f 100644 --- a/docs/API_docs/types/WallPaper.md +++ b/docs/API_docs/types/WallPaper.md @@ -12,13 +12,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [wallPaper](../constructors/wallPaper.md) -[wallPaperSolid](../constructors/wallPaperSolid.md) - ### Methods that return an object of this type (methods): -[$MadelineProto->account->getWallPapers](../methods/account_getWallPapers.md) +[$MadelineProto->account->getWallPaper](../methods/account_getWallPaper.md) + +[$MadelineProto->account->uploadWallPaper](../methods/account_uploadWallPaper.md) diff --git a/docs/API_docs/types/WallPaperSettings.md b/docs/API_docs/types/WallPaperSettings.md new file mode 100644 index 00000000..a174a48a --- /dev/null +++ b/docs/API_docs/types/WallPaperSettings.md @@ -0,0 +1,20 @@ +--- +title: WallPaperSettings +description: constructors and methods of type WallPaperSettings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: WallPaperSettings +[Back to types index](index.md) + + + +### Possible values (constructors): + +[wallPaperSettings](../constructors/wallPaperSettings.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/account_WallPapers.md b/docs/API_docs/types/account_WallPapers.md new file mode 100644 index 00000000..6a082a9a --- /dev/null +++ b/docs/API_docs/types/account_WallPapers.md @@ -0,0 +1,24 @@ +--- +title: account_WallPapers +description: constructors and methods of type account_WallPapers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: account\_WallPapers +[Back to types index](index.md) + + + +### Possible values (constructors): + +[account\_wallPapersNotModified](../constructors/account_wallPapersNotModified.md) + +[account\_wallPapers](../constructors/account_wallPapers.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getWallPapers](../methods/account_getWallPapers.md) + + + diff --git a/docs/API_docs/types/index.md b/docs/API_docs/types/index.md index 0d42d902..a37d9695 100644 --- a/docs/API_docs/types/index.md +++ b/docs/API_docs/types/index.md @@ -33,10 +33,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [ChannelAdminLogEventsFilter](ChannelAdminLogEventsFilter.md) -[ChannelAdminRights](ChannelAdminRights.md) - -[ChannelBannedRights](ChannelBannedRights.md) - [ChannelMessagesFilter](ChannelMessagesFilter.md) [ChannelParticipant](ChannelParticipant.md) @@ -45,6 +41,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [Chat](Chat.md) +[ChatAdminRights](ChatAdminRights.md) + +[ChatBannedRights](ChatBannedRights.md) + [ChatFull](ChatFull.md) [ChatInvite](ChatInvite.md) @@ -57,6 +57,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [ChatPhoto](ChatPhoto.md) +[CodeSettings](CodeSettings.md) + [Config](Config.md) [Contact](Contact.md) @@ -187,6 +189,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [InputUser](InputUser.md) +[InputWallPaper](InputWallPaper.md) + [InputWebDocument](InputWebDocument.md) [InputWebFileLocation](InputWebFileLocation.md) @@ -359,6 +363,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [WallPaper](WallPaper.md) +[WallPaperSettings](WallPaperSettings.md) + [WebAuthorization](WebAuthorization.md) [WebDocument](WebDocument.md) @@ -385,6 +391,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [account\_TmpPassword](account_TmpPassword.md) +[account\_WallPapers](account_WallPapers.md) + [account\_WebAuthorizations](account_WebAuthorizations.md) [auth\_Authorization](auth_Authorization.md) diff --git a/docs/docs/USING_METHODS.md b/docs/docs/USING_METHODS.md index 1cd1ec68..9ff53d92 100644 --- a/docs/docs/USING_METHODS.md +++ b/docs/docs/USING_METHODS.md @@ -7,7 +7,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png There are simplifications for many, if not all of, these methods. -A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 91)](https://docs.madelineproto.xyz/API_docs/). +A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 95)](https://docs.madelineproto.xyz/API_docs/). * [FULL API Documentation with descriptions](https://docs.madelineproto.xyz/API_docs/methods/) * [Peers](#peers) diff --git a/old_docs/API_docs_v91/README.md b/old_docs/API_docs_v91/README.md new file mode 100644 index 00000000..291000ab --- /dev/null +++ b/old_docs/API_docs_v91/README.md @@ -0,0 +1,15 @@ +--- +title: MadelineProto API documentation (layer v91) +description: MadelineProto API documentation (layer v91) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# MadelineProto API documentation (layer v91) + +[Back to main documentation](..) + + +[Methods](methods/) + +[Constructors](constructors/) + +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v91/constructors/README.md b/old_docs/API_docs_v91/constructors/README.md new file mode 100644 index 00000000..caa7f9f2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/README.md @@ -0,0 +1,2049 @@ +--- +title: Constructors +description: List of constructors +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructors +[Back to API documentation index](..) + +*** +

[$accessPointRule](../constructors/accessPointRule.md) = \['phone_prefix_rules' => [string](../types/string.md), 'dc_id' => [int](../types/int.md), 'ips' => \[[IpPort](../types/IpPort.md)\], \]; + +*** +

[$accountDaysTTL](../constructors/accountDaysTTL.md) = \['days' => [int](../types/int.md), \]; + +*** +

[$account\_authorizationForm](../constructors/account_authorizationForm.md) = \['required_types' => \[[SecureRequiredType](../types/SecureRequiredType.md)\], 'values' => \[[SecureValue](../types/SecureValue.md)\], 'errors' => \[[SecureValueError](../types/SecureValueError.md)\], 'users' => \[[User](../types/User.md)\], 'privacy_policy_url' => [string](../types/string.md), \]; + +[$account\_authorizations](../constructors/account_authorizations.md) = \['authorizations' => \[[Authorization](../types/Authorization.md)\], \]; + +[$account\_password](../constructors/account_password.md) = \['has_recovery' => [Bool](../types/Bool.md), 'has_secure_values' => [Bool](../types/Bool.md), 'has_password' => [Bool](../types/Bool.md), 'current_algo' => [PasswordKdfAlgo](../types/PasswordKdfAlgo.md), 'srp_B' => [bytes](../types/bytes.md), 'srp_id' => [long](../types/long.md), 'hint' => [string](../types/string.md), 'email_unconfirmed_pattern' => [string](../types/string.md), 'new_algo' => [PasswordKdfAlgo](../types/PasswordKdfAlgo.md), 'new_secure_algo' => [SecurePasswordKdfAlgo](../types/SecurePasswordKdfAlgo.md), 'secure_random' => [bytes](../types/bytes.md), \]; + +[$account\_passwordInputSettings](../constructors/account_passwordInputSettings.md) = \['new_algo' => [PasswordKdfAlgo](../types/PasswordKdfAlgo.md), 'new_password_hash' => [bytes](../types/bytes.md), 'hint' => [string](../types/string.md), 'email' => [string](../types/string.md), 'new_secure_settings' => [SecureSecretSettings](../types/SecureSecretSettings.md), \]; + +[$account\_passwordSettings](../constructors/account_passwordSettings.md) = \['email' => [string](../types/string.md), 'secure_settings' => [SecureSecretSettings](../types/SecureSecretSettings.md), \]; + +[$account\_privacyRules](../constructors/account_privacyRules.md) = \['rules' => \[[PrivacyRule](../types/PrivacyRule.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$account\_sentEmailCode](../constructors/account_sentEmailCode.md) = \['email_pattern' => [string](../types/string.md), 'length' => [int](../types/int.md), \]; + +[$account\_takeout](../constructors/account_takeout.md) = \['id' => [long](../types/long.md), \]; + +[$account\_tmpPassword](../constructors/account_tmpPassword.md) = \['tmp_password' => [bytes](../types/bytes.md), 'valid_until' => [int](../types/int.md), \]; + +[$account\_webAuthorizations](../constructors/account_webAuthorizations.md) = \['authorizations' => \[[WebAuthorization](../types/WebAuthorization.md)\], 'users' => \[[User](../types/User.md)\], \]; + +*** +

[$auth\_authorization](../constructors/auth_authorization.md) = \['tmp_sessions' => [int](../types/int.md), 'user' => [User](../types/User.md), \]; + +[$auth\_checkedPhone](../constructors/auth_checkedPhone.md) = \['phone_registered' => [Bool](../types/Bool.md), \]; + +[$auth\_codeTypeCall](../constructors/auth_codeTypeCall.md) = \[\]; + +[$auth\_codeTypeFlashCall](../constructors/auth_codeTypeFlashCall.md) = \[\]; + +[$auth\_codeTypeSms](../constructors/auth_codeTypeSms.md) = \[\]; + +[$auth\_exportedAuthorization](../constructors/auth_exportedAuthorization.md) = \['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]; + +[$auth\_passwordRecovery](../constructors/auth_passwordRecovery.md) = \['email_pattern' => [string](../types/string.md), \]; + +[$auth\_sentCode](../constructors/auth_sentCode.md) = \['phone_registered' => [Bool](../types/Bool.md), 'type' => [auth\_SentCodeType](../types/auth_SentCodeType.md), 'phone_code_hash' => [string](../types/string.md), 'next_type' => [auth\_CodeType](../types/auth_CodeType.md), 'timeout' => [int](../types/int.md), 'terms_of_service' => [help\_TermsOfService](../types/help_TermsOfService.md), \]; + +[$auth\_sentCodeTypeApp](../constructors/auth_sentCodeTypeApp.md) = \['length' => [int](../types/int.md), \]; + +[$auth\_sentCodeTypeCall](../constructors/auth_sentCodeTypeCall.md) = \['length' => [int](../types/int.md), \]; + +[$auth\_sentCodeTypeFlashCall](../constructors/auth_sentCodeTypeFlashCall.md) = \['pattern' => [string](../types/string.md), \]; + +[$auth\_sentCodeTypeSms](../constructors/auth_sentCodeTypeSms.md) = \['length' => [int](../types/int.md), \]; + +*** +

[$authorization](../constructors/authorization.md) = \['current' => [Bool](../types/Bool.md), 'official_app' => [Bool](../types/Bool.md), 'password_pending' => [Bool](../types/Bool.md), 'hash' => [long](../types/long.md), 'device_model' => [string](../types/string.md), 'platform' => [string](../types/string.md), 'system_version' => [string](../types/string.md), 'api_id' => [int](../types/int.md), 'app_name' => [string](../types/string.md), 'app_version' => [string](../types/string.md), 'date_created' => [int](../types/int.md), 'date_active' => [int](../types/int.md), 'ip' => [string](../types/string.md), 'country' => [string](../types/string.md), 'region' => [string](../types/string.md), \]; + +*** +

[$boolFalse](../constructors/boolFalse.md) = \[\]; + +*** +

[$boolTrue](../constructors/boolTrue.md) = \[\]; + +*** +

[$botCommand](../constructors/botCommand.md) = \['command' => [string](../types/string.md), 'description' => [string](../types/string.md), \]; + +*** +

[$botInfo](../constructors/botInfo.md) = \['user_id' => [int](../types/int.md), 'description' => [string](../types/string.md), 'commands' => \[[BotCommand](../types/BotCommand.md)\], \]; + +*** +

[$botInlineMediaResult](../constructors/botInlineMediaResult.md) = \['id' => [string](../types/string.md), 'type' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'document' => [Document](../types/Document.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'send_message' => [BotInlineMessage](../types/BotInlineMessage.md), \]; + +*** +

[$botInlineMessageMediaAuto](../constructors/botInlineMessageMediaAuto.md) = \['message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; + +*** +

[$botInlineMessageMediaContact](../constructors/botInlineMessageMediaContact.md) = \['phone_number' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'vcard' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; + +*** +

[$botInlineMessageMediaGeo](../constructors/botInlineMessageMediaGeo.md) = \['geo' => [GeoPoint](../types/GeoPoint.md), 'period' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; + +*** +

[$botInlineMessageMediaVenue](../constructors/botInlineMessageMediaVenue.md) = \['geo' => [GeoPoint](../types/GeoPoint.md), 'title' => [string](../types/string.md), 'address' => [string](../types/string.md), 'provider' => [string](../types/string.md), 'venue_id' => [string](../types/string.md), 'venue_type' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; + +*** +

[$botInlineMessageText](../constructors/botInlineMessageText.md) = \['no_webpage' => [Bool](../types/Bool.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; + +*** +

[$botInlineResult](../constructors/botInlineResult.md) = \['id' => [string](../types/string.md), 'type' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'url' => [string](../types/string.md), 'thumb' => [WebDocument](../types/WebDocument.md), 'content' => [WebDocument](../types/WebDocument.md), 'send_message' => [BotInlineMessage](../types/BotInlineMessage.md), \]; + +*** +

[$cdnConfig](../constructors/cdnConfig.md) = \['public_keys' => \[[CdnPublicKey](../types/CdnPublicKey.md)\], \]; + +*** +

[$cdnPublicKey](../constructors/cdnPublicKey.md) = \['dc_id' => [int](../types/int.md), 'public_key' => [string](../types/string.md), \]; + +*** +

[$channel](../constructors/channel.md) = \['creator' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'editor' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'verified' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'restricted' => [Bool](../types/Bool.md), 'democracy' => [Bool](../types/Bool.md), 'signatures' => [Bool](../types/Bool.md), 'min' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'username' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'restriction_reason' => [string](../types/string.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), 'participants_count' => [int](../types/int.md), \]; + +*** +

[$channelAdminLogEvent](../constructors/channelAdminLogEvent.md) = \['id' => [long](../types/long.md), 'date' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'action' => [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md), \]; + +*** +

[$channelAdminLogEventActionChangeAbout](../constructors/channelAdminLogEventActionChangeAbout.md) = \['prev_value' => [string](../types/string.md), 'new_value' => [string](../types/string.md), \]; + +*** +

[$channelAdminLogEventActionChangePhoto](../constructors/channelAdminLogEventActionChangePhoto.md) = \['prev_photo' => [ChatPhoto](../types/ChatPhoto.md), 'new_photo' => [ChatPhoto](../types/ChatPhoto.md), \]; + +*** +

[$channelAdminLogEventActionChangeStickerSet](../constructors/channelAdminLogEventActionChangeStickerSet.md) = \['prev_stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'new_stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]; + +*** +

[$channelAdminLogEventActionChangeTitle](../constructors/channelAdminLogEventActionChangeTitle.md) = \['prev_value' => [string](../types/string.md), 'new_value' => [string](../types/string.md), \]; + +*** +

[$channelAdminLogEventActionChangeUsername](../constructors/channelAdminLogEventActionChangeUsername.md) = \['prev_value' => [string](../types/string.md), 'new_value' => [string](../types/string.md), \]; + +*** +

[$channelAdminLogEventActionDeleteMessage](../constructors/channelAdminLogEventActionDeleteMessage.md) = \['message' => [Message](../types/Message.md), \]; + +*** +

[$channelAdminLogEventActionEditMessage](../constructors/channelAdminLogEventActionEditMessage.md) = \['prev_message' => [Message](../types/Message.md), 'new_message' => [Message](../types/Message.md), \]; + +*** +

[$channelAdminLogEventActionParticipantInvite](../constructors/channelAdminLogEventActionParticipantInvite.md) = \['participant' => [ChannelParticipant](../types/ChannelParticipant.md), \]; + +*** +

[$channelAdminLogEventActionParticipantJoin](../constructors/channelAdminLogEventActionParticipantJoin.md) = \[\]; + +*** +

[$channelAdminLogEventActionParticipantLeave](../constructors/channelAdminLogEventActionParticipantLeave.md) = \[\]; + +*** +

[$channelAdminLogEventActionParticipantToggleAdmin](../constructors/channelAdminLogEventActionParticipantToggleAdmin.md) = \['prev_participant' => [ChannelParticipant](../types/ChannelParticipant.md), 'new_participant' => [ChannelParticipant](../types/ChannelParticipant.md), \]; + +*** +

[$channelAdminLogEventActionParticipantToggleBan](../constructors/channelAdminLogEventActionParticipantToggleBan.md) = \['prev_participant' => [ChannelParticipant](../types/ChannelParticipant.md), 'new_participant' => [ChannelParticipant](../types/ChannelParticipant.md), \]; + +*** +

[$channelAdminLogEventActionToggleInvites](../constructors/channelAdminLogEventActionToggleInvites.md) = \['new_value' => [Bool](../types/Bool.md), \]; + +*** +

[$channelAdminLogEventActionTogglePreHistoryHidden](../constructors/channelAdminLogEventActionTogglePreHistoryHidden.md) = \['new_value' => [Bool](../types/Bool.md), \]; + +*** +

[$channelAdminLogEventActionToggleSignatures](../constructors/channelAdminLogEventActionToggleSignatures.md) = \['new_value' => [Bool](../types/Bool.md), \]; + +*** +

[$channelAdminLogEventActionUpdatePinned](../constructors/channelAdminLogEventActionUpdatePinned.md) = \['message' => [Message](../types/Message.md), \]; + +*** +

[$channelAdminLogEventsFilter](../constructors/channelAdminLogEventsFilter.md) = \['join' => [Bool](../types/Bool.md), 'leave' => [Bool](../types/Bool.md), 'invite' => [Bool](../types/Bool.md), 'ban' => [Bool](../types/Bool.md), 'unban' => [Bool](../types/Bool.md), 'kick' => [Bool](../types/Bool.md), 'unkick' => [Bool](../types/Bool.md), 'promote' => [Bool](../types/Bool.md), 'demote' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), 'settings' => [Bool](../types/Bool.md), 'pinned' => [Bool](../types/Bool.md), 'edit' => [Bool](../types/Bool.md), 'delete' => [Bool](../types/Bool.md), \]; + +*** +

[$channelAdminRights](../constructors/channelAdminRights.md) = \['change_info' => [Bool](../types/Bool.md), 'post_messages' => [Bool](../types/Bool.md), 'edit_messages' => [Bool](../types/Bool.md), 'delete_messages' => [Bool](../types/Bool.md), 'ban_users' => [Bool](../types/Bool.md), 'invite_users' => [Bool](../types/Bool.md), 'invite_link' => [Bool](../types/Bool.md), 'pin_messages' => [Bool](../types/Bool.md), 'add_admins' => [Bool](../types/Bool.md), 'manage_call' => [Bool](../types/Bool.md), \]; + +*** +

[$channelBannedRights](../constructors/channelBannedRights.md) = \['view_messages' => [Bool](../types/Bool.md), 'send_messages' => [Bool](../types/Bool.md), 'send_media' => [Bool](../types/Bool.md), 'send_stickers' => [Bool](../types/Bool.md), 'send_gifs' => [Bool](../types/Bool.md), 'send_games' => [Bool](../types/Bool.md), 'send_inline' => [Bool](../types/Bool.md), 'embed_links' => [Bool](../types/Bool.md), 'until_date' => [int](../types/int.md), \]; + +*** +

[$channelForbidden](../constructors/channelForbidden.md) = \['broadcast' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'until_date' => [int](../types/int.md), \]; + +*** +

[$channelFull](../constructors/channelFull.md) = \['can_view_participants' => [Bool](../types/Bool.md), 'can_set_username' => [Bool](../types/Bool.md), 'can_set_stickers' => [Bool](../types/Bool.md), 'hidden_prehistory' => [Bool](../types/Bool.md), 'can_view_stats' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'about' => [string](../types/string.md), 'participants_count' => [int](../types/int.md), 'admins_count' => [int](../types/int.md), 'kicked_count' => [int](../types/int.md), 'banned_count' => [int](../types/int.md), 'online_count' => [int](../types/int.md), 'read_inbox_max_id' => [int](../types/int.md), 'read_outbox_max_id' => [int](../types/int.md), 'unread_count' => [int](../types/int.md), 'chat_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'exported_invite' => [ExportedChatInvite](../types/ExportedChatInvite.md), 'bot_info' => \[[BotInfo](../types/BotInfo.md)\], 'migrated_from_chat_id' => [int](../types/int.md), 'migrated_from_max_id' => [int](../types/int.md), 'pinned_msg_id' => [int](../types/int.md), 'stickerset' => [StickerSet](../types/StickerSet.md), 'available_min_id' => [int](../types/int.md), \]; + +*** +

[$channelMessagesFilter](../constructors/channelMessagesFilter.md) = \['exclude_new_messages' => [Bool](../types/Bool.md), 'ranges' => \[[MessageRange](../types/MessageRange.md)\], \]; + +*** +

[$channelMessagesFilterEmpty](../constructors/channelMessagesFilterEmpty.md) = \[\]; + +*** +

[$channelParticipant](../constructors/channelParticipant.md) = \['user_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \]; + +*** +

[$channelParticipantAdmin](../constructors/channelParticipantAdmin.md) = \['can_edit' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'promoted_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]; + +*** +

[$channelParticipantBanned](../constructors/channelParticipantBanned.md) = \['left' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'kicked_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]; + +*** +

[$channelParticipantCreator](../constructors/channelParticipantCreator.md) = \['user_id' => [int](../types/int.md), \]; + +*** +

[$channelParticipantSelf](../constructors/channelParticipantSelf.md) = \['user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \]; + +*** +

[$channelParticipantsAdmins](../constructors/channelParticipantsAdmins.md) = \[\]; + +*** +

[$channelParticipantsBanned](../constructors/channelParticipantsBanned.md) = \['q' => [string](../types/string.md), \]; + +*** +

[$channelParticipantsBots](../constructors/channelParticipantsBots.md) = \[\]; + +*** +

[$channelParticipantsKicked](../constructors/channelParticipantsKicked.md) = \['q' => [string](../types/string.md), \]; + +*** +

[$channelParticipantsRecent](../constructors/channelParticipantsRecent.md) = \[\]; + +*** +

[$channelParticipantsSearch](../constructors/channelParticipantsSearch.md) = \['q' => [string](../types/string.md), \]; + +*** +

[$channels\_adminLogResults](../constructors/channels_adminLogResults.md) = \['events' => \[[ChannelAdminLogEvent](../types/ChannelAdminLogEvent.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$channels\_channelParticipant](../constructors/channels_channelParticipant.md) = \['participant' => [ChannelParticipant](../types/ChannelParticipant.md), 'users' => \[[User](../types/User.md)\], \]; + +[$channels\_channelParticipants](../constructors/channels_channelParticipants.md) = \['count' => [int](../types/int.md), 'participants' => \[[ChannelParticipant](../types/ChannelParticipant.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$channels\_channelParticipantsNotModified](../constructors/channels_channelParticipantsNotModified.md) = \[\]; + +*** +

[$chat](../constructors/chat.md) = \['creator' => [Bool](../types/Bool.md), 'kicked' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'admins_enabled' => [Bool](../types/Bool.md), 'admin' => [Bool](../types/Bool.md), 'deactivated' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'participants_count' => [int](../types/int.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'migrated_to' => [InputChannel](../types/InputChannel.md), \]; + +*** +

[$chatEmpty](../constructors/chatEmpty.md) = \['id' => [int](../types/int.md), \]; + +*** +

[$chatForbidden](../constructors/chatForbidden.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]; + +*** +

[$chatFull](../constructors/chatFull.md) = \['id' => [int](../types/int.md), 'participants' => [ChatParticipants](../types/ChatParticipants.md), 'chat_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'exported_invite' => [ExportedChatInvite](../types/ExportedChatInvite.md), 'bot_info' => \[[BotInfo](../types/BotInfo.md)\], 'pinned_msg_id' => [int](../types/int.md), \]; + +*** +

[$chatInvite](../constructors/chatInvite.md) = \['channel' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'public' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'title' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'participants_count' => [int](../types/int.md), 'participants' => \[[User](../types/User.md)\], \]; + +*** +

[$chatInviteAlready](../constructors/chatInviteAlready.md) = \['chat' => [Chat](../types/Chat.md), \]; + +*** +

[$chatInviteEmpty](../constructors/chatInviteEmpty.md) = \[\]; + +*** +

[$chatInviteExported](../constructors/chatInviteExported.md) = \['link' => [string](../types/string.md), \]; + +*** +

[$chatOnlines](../constructors/chatOnlines.md) = \['onlines' => [int](../types/int.md), \]; + +*** +

[$chatParticipant](../constructors/chatParticipant.md) = \['user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \]; + +*** +

[$chatParticipantAdmin](../constructors/chatParticipantAdmin.md) = \['user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \]; + +*** +

[$chatParticipantCreator](../constructors/chatParticipantCreator.md) = \['user_id' => [int](../types/int.md), \]; + +*** +

[$chatParticipants](../constructors/chatParticipants.md) = \['chat_id' => [int](../types/int.md), 'participants' => \[[ChatParticipant](../types/ChatParticipant.md)\], 'version' => [int](../types/int.md), \]; + +*** +

[$chatParticipantsForbidden](../constructors/chatParticipantsForbidden.md) = \['chat_id' => [int](../types/int.md), 'self_participant' => [ChatParticipant](../types/ChatParticipant.md), \]; + +*** +

[$chatPhoto](../constructors/chatPhoto.md) = \['photo_small' => [FileLocation](../types/FileLocation.md), 'photo_big' => [FileLocation](../types/FileLocation.md), \]; + +*** +

[$chatPhotoEmpty](../constructors/chatPhotoEmpty.md) = \[\]; + +*** +

[$config](../constructors/config.md) = \['phonecalls_enabled' => [Bool](../types/Bool.md), 'default_p2p_contacts' => [Bool](../types/Bool.md), 'preload_featured_stickers' => [Bool](../types/Bool.md), 'ignore_phone_entities' => [Bool](../types/Bool.md), 'revoke_pm_inbox' => [Bool](../types/Bool.md), 'blocked_mode' => [Bool](../types/Bool.md), 'pfs_enabled' => [Bool](../types/Bool.md), 'date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'test_mode' => [Bool](../types/Bool.md), 'this_dc' => [int](../types/int.md), 'dc_options' => \[[DcOption](../types/DcOption.md)\], 'dc_txt_domain_name' => [string](../types/string.md), 'chat_size_max' => [int](../types/int.md), 'megagroup_size_max' => [int](../types/int.md), 'forwarded_count_max' => [int](../types/int.md), 'online_update_period_ms' => [int](../types/int.md), 'offline_blur_timeout_ms' => [int](../types/int.md), 'offline_idle_timeout_ms' => [int](../types/int.md), 'online_cloud_timeout_ms' => [int](../types/int.md), 'notify_cloud_delay_ms' => [int](../types/int.md), 'notify_default_delay_ms' => [int](../types/int.md), 'push_chat_period_ms' => [int](../types/int.md), 'push_chat_limit' => [int](../types/int.md), 'saved_gifs_limit' => [int](../types/int.md), 'edit_time_limit' => [int](../types/int.md), 'revoke_time_limit' => [int](../types/int.md), 'revoke_pm_time_limit' => [int](../types/int.md), 'rating_e_decay' => [int](../types/int.md), 'stickers_recent_limit' => [int](../types/int.md), 'stickers_faved_limit' => [int](../types/int.md), 'channels_read_media_period' => [int](../types/int.md), 'tmp_sessions' => [int](../types/int.md), 'pinned_dialogs_count_max' => [int](../types/int.md), 'call_receive_timeout_ms' => [int](../types/int.md), 'call_ring_timeout_ms' => [int](../types/int.md), 'call_connect_timeout_ms' => [int](../types/int.md), 'call_packet_timeout_ms' => [int](../types/int.md), 'me_url_prefix' => [string](../types/string.md), 'autoupdate_url_prefix' => [string](../types/string.md), 'gif_search_username' => [string](../types/string.md), 'venue_search_username' => [string](../types/string.md), 'img_search_username' => [string](../types/string.md), 'static_maps_provider' => [string](../types/string.md), 'caption_length_max' => [int](../types/int.md), 'message_length_max' => [int](../types/int.md), 'webfile_dc_id' => [int](../types/int.md), 'suggested_lang_code' => [string](../types/string.md), 'lang_pack_version' => [int](../types/int.md), 'base_lang_pack_version' => [int](../types/int.md), \]; + +*** +

[$contact](../constructors/contact.md) = \['user_id' => [int](../types/int.md), 'mutual' => [Bool](../types/Bool.md), \]; + +*** +

[$contactBlocked](../constructors/contactBlocked.md) = \['user_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \]; + +*** +

[$contactLinkContact](../constructors/contactLinkContact.md) = \[\]; + +*** +

[$contactLinkHasPhone](../constructors/contactLinkHasPhone.md) = \[\]; + +*** +

[$contactLinkNone](../constructors/contactLinkNone.md) = \[\]; + +*** +

[$contactLinkUnknown](../constructors/contactLinkUnknown.md) = \[\]; + +*** +

[$contactStatus](../constructors/contactStatus.md) = \['user_id' => [int](../types/int.md), 'status' => [UserStatus](../types/UserStatus.md), \]; + +*** +

[$contacts\_blocked](../constructors/contacts_blocked.md) = \['blocked' => \[[ContactBlocked](../types/ContactBlocked.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$contacts\_blockedSlice](../constructors/contacts_blockedSlice.md) = \['count' => [int](../types/int.md), 'blocked' => \[[ContactBlocked](../types/ContactBlocked.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$contacts\_contacts](../constructors/contacts_contacts.md) = \['contacts' => \[[Contact](../types/Contact.md)\], 'saved_count' => [int](../types/int.md), 'users' => \[[User](../types/User.md)\], \]; + +[$contacts\_contactsNotModified](../constructors/contacts_contactsNotModified.md) = \[\]; + +[$contacts\_found](../constructors/contacts_found.md) = \['my_results' => \[[Peer](../types/Peer.md)\], 'results' => \[[Peer](../types/Peer.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$contacts\_importedContacts](../constructors/contacts_importedContacts.md) = \['imported' => \[[ImportedContact](../types/ImportedContact.md)\], 'popular_invites' => \[[PopularContact](../types/PopularContact.md)\], 'retry_contacts' => \[[long](../types/long.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$contacts\_link](../constructors/contacts_link.md) = \['my_link' => [ContactLink](../types/ContactLink.md), 'foreign_link' => [ContactLink](../types/ContactLink.md), 'user' => [User](../types/User.md), \]; + +[$contacts\_resolvedPeer](../constructors/contacts_resolvedPeer.md) = \['peer' => [Peer](../types/Peer.md), 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$contacts\_topPeers](../constructors/contacts_topPeers.md) = \['categories' => \[[TopPeerCategoryPeers](../types/TopPeerCategoryPeers.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$contacts\_topPeersDisabled](../constructors/contacts_topPeersDisabled.md) = \[\]; + +[$contacts\_topPeersNotModified](../constructors/contacts_topPeersNotModified.md) = \[\]; + +*** +

[$dataJSON](../constructors/dataJSON.md) = \['data' => [string](../types/string.md), \]; + +*** +

[$dcOption](../constructors/dcOption.md) = \['ipv6' => [Bool](../types/Bool.md), 'media_only' => [Bool](../types/Bool.md), 'tcpo_only' => [Bool](../types/Bool.md), 'cdn' => [Bool](../types/Bool.md), 'static' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'ip_address' => [string](../types/string.md), 'port' => [int](../types/int.md), 'secret' => [bytes](../types/bytes.md), \]; + +*** +

[$dialog](../constructors/dialog.md) = \['pinned' => [Bool](../types/Bool.md), 'unread_mark' => [Bool](../types/Bool.md), 'peer' => [Peer](../types/Peer.md), 'top_message' => [int](../types/int.md), 'read_inbox_max_id' => [int](../types/int.md), 'read_outbox_max_id' => [int](../types/int.md), 'unread_count' => [int](../types/int.md), 'unread_mentions_count' => [int](../types/int.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'pts' => [int](../types/int.md), 'draft' => [DraftMessage](../types/DraftMessage.md), \]; + +*** +

[$dialogPeer](../constructors/dialogPeer.md) = \['peer' => [Peer](../types/Peer.md), \]; + +*** +

[$document](../constructors/document.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), 'date' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'size' => [int](../types/int.md), 'thumb' => [PhotoSize](../types/PhotoSize.md), 'dc_id' => [int](../types/int.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \]; + +*** +

[$documentAttributeAnimated](../constructors/documentAttributeAnimated.md) = \[\]; + +*** +

[$documentAttributeAudio](../constructors/documentAttributeAudio.md) = \['voice' => [Bool](../types/Bool.md), 'duration' => [int](../types/int.md), 'title' => [string](../types/string.md), 'performer' => [string](../types/string.md), 'waveform' => [bytes](../types/bytes.md), \]; + +*** +

[$documentAttributeFilename](../constructors/documentAttributeFilename.md) = \['file_name' => [string](../types/string.md), \]; + +*** +

[$documentAttributeHasStickers](../constructors/documentAttributeHasStickers.md) = \[\]; + +*** +

[$documentAttributeImageSize](../constructors/documentAttributeImageSize.md) = \['w' => [int](../types/int.md), 'h' => [int](../types/int.md), \]; + +*** +

[$documentAttributeSticker](../constructors/documentAttributeSticker.md) = \['mask' => [Bool](../types/Bool.md), 'alt' => [string](../types/string.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'mask_coords' => [MaskCoords](../types/MaskCoords.md), \]; + +*** +

[$documentAttributeVideo](../constructors/documentAttributeVideo.md) = \['round_message' => [Bool](../types/Bool.md), 'supports_streaming' => [Bool](../types/Bool.md), 'duration' => [int](../types/int.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), \]; + +*** +

[$documentEmpty](../constructors/documentEmpty.md) = \['id' => [long](../types/long.md), \]; + +*** +

[$draftMessage](../constructors/draftMessage.md) = \['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'date' => [int](../types/int.md), \]; + +*** +

[$draftMessageEmpty](../constructors/draftMessageEmpty.md) = \['date' => [int](../types/int.md), \]; + +*** +

[$encryptedChat](../constructors/encryptedChat.md) = \['id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), 'g_a_or_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]; + +*** +

[$encryptedChatDiscarded](../constructors/encryptedChatDiscarded.md) = \['id' => [int](../types/int.md), \]; + +*** +

[$encryptedChatEmpty](../constructors/encryptedChatEmpty.md) = \['id' => [int](../types/int.md), \]; + +*** +

[$encryptedChatRequested](../constructors/encryptedChatRequested.md) = \['id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), 'g_a' => [bytes](../types/bytes.md), \]; + +*** +

[$encryptedChatWaiting](../constructors/encryptedChatWaiting.md) = \['id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), \]; + +*** +

[$encryptedFile](../constructors/encryptedFile.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'size' => [int](../types/int.md), 'dc_id' => [int](../types/int.md), 'key_fingerprint' => [int](../types/int.md), \]; + +*** +

[$encryptedFileEmpty](../constructors/encryptedFileEmpty.md) = \[\]; + +*** +

[$encryptedMessage](../constructors/encryptedMessage.md) = \['chat_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'decrypted_message' => [DecryptedMessage](../types/DecryptedMessage.md), 'file' => [EncryptedFile](../types/EncryptedFile.md), \]; + +*** +

[$encryptedMessageService](../constructors/encryptedMessageService.md) = \['chat_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'decrypted_message' => [DecryptedMessage](../types/DecryptedMessage.md), \]; + +*** +

[$error](../constructors/error.md) = \['code' => [int](../types/int.md), 'text' => [string](../types/string.md), \]; + +*** +

[$exportedMessageLink](../constructors/exportedMessageLink.md) = \['link' => [string](../types/string.md), 'html' => [string](../types/string.md), \]; + +*** +

[$fileHash](../constructors/fileHash.md) = \['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [bytes](../types/bytes.md), \]; + +*** +

[$fileLocation](../constructors/fileLocation.md) = \['dc_id' => [int](../types/int.md), 'volume_id' => [long](../types/long.md), 'local_id' => [int](../types/int.md), 'secret' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), \]; + +*** +

[$fileLocationUnavailable](../constructors/fileLocationUnavailable.md) = \['volume_id' => [long](../types/long.md), 'local_id' => [int](../types/int.md), 'secret' => [long](../types/long.md), \]; + +*** +

[$foundGif](../constructors/foundGif.md) = \['url' => [string](../types/string.md), 'thumb_url' => [string](../types/string.md), 'content_url' => [string](../types/string.md), 'content_type' => [string](../types/string.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), \]; + +*** +

[$foundGifCached](../constructors/foundGifCached.md) = \['url' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'document' => [Document](../types/Document.md), \]; + +*** +

[$game](../constructors/game.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'short_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'document' => [Document](../types/Document.md), \]; + +*** +

[$geoPoint](../constructors/geoPoint.md) = \['long' => [double](../types/double.md), 'lat' => [double](../types/double.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$geoPointEmpty](../constructors/geoPointEmpty.md) = \[\]; + +*** +

[$help\_appUpdate](../constructors/help_appUpdate.md) = \['popup' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'version' => [string](../types/string.md), 'text' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'document' => [Document](../types/Document.md), 'url' => [string](../types/string.md), \]; + +[$help\_configSimple](../constructors/help_configSimple.md) = \['date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'rules' => \[[AccessPointRule](../types/AccessPointRule.md)\], \]; + +[$help\_deepLinkInfo](../constructors/help_deepLinkInfo.md) = \['update_app' => [Bool](../types/Bool.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]; + +[$help\_deepLinkInfoEmpty](../constructors/help_deepLinkInfoEmpty.md) = \[\]; + +[$help\_inviteText](../constructors/help_inviteText.md) = \['message' => [string](../types/string.md), \]; + +[$help\_noAppUpdate](../constructors/help_noAppUpdate.md) = \[\]; + +[$help\_passportConfig](../constructors/help_passportConfig.md) = \['hash' => [int](../types/int.md), 'countries_langs' => [DataJSON](../types/DataJSON.md), \]; + +[$help\_passportConfigNotModified](../constructors/help_passportConfigNotModified.md) = \[\]; + +[$help\_proxyDataEmpty](../constructors/help_proxyDataEmpty.md) = \['expires' => [int](../types/int.md), \]; + +[$help\_proxyDataPromo](../constructors/help_proxyDataPromo.md) = \['expires' => [int](../types/int.md), 'peer' => [Peer](../types/Peer.md), 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$help\_recentMeUrls](../constructors/help_recentMeUrls.md) = \['urls' => \[[RecentMeUrl](../types/RecentMeUrl.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$help\_support](../constructors/help_support.md) = \['phone_number' => [string](../types/string.md), 'user' => [User](../types/User.md), \]; + +[$help\_supportName](../constructors/help_supportName.md) = \['name' => [string](../types/string.md), \]; + +[$help\_termsOfService](../constructors/help_termsOfService.md) = \['popup' => [Bool](../types/Bool.md), 'id' => [DataJSON](../types/DataJSON.md), 'text' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'min_age_confirm' => [int](../types/int.md), \]; + +[$help\_termsOfServiceUpdate](../constructors/help_termsOfServiceUpdate.md) = \['expires' => [int](../types/int.md), 'terms_of_service' => [help\_TermsOfService](../types/help_TermsOfService.md), \]; + +[$help\_termsOfServiceUpdateEmpty](../constructors/help_termsOfServiceUpdateEmpty.md) = \['expires' => [int](../types/int.md), \]; + +[$help\_userInfo](../constructors/help_userInfo.md) = \['message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'author' => [string](../types/string.md), 'date' => [int](../types/int.md), \]; + +[$help\_userInfoEmpty](../constructors/help_userInfoEmpty.md) = \[\]; + +*** +

[$highScore](../constructors/highScore.md) = \['pos' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), \]; + +*** +

[$importedContact](../constructors/importedContact.md) = \['user_id' => [int](../types/int.md), 'client_id' => [long](../types/long.md), \]; + +*** +

[$inlineBotSwitchPM](../constructors/inlineBotSwitchPM.md) = \['text' => [string](../types/string.md), 'start_param' => [string](../types/string.md), \]; + +*** +

[$inputAppEvent](../constructors/inputAppEvent.md) = \['time' => [double](../types/double.md), 'type' => [string](../types/string.md), 'peer' => [long](../types/long.md), 'data' => [JSONValue](../types/JSONValue.md), \]; + +*** +

[$inputBotInlineMessageGame](../constructors/inputBotInlineMessageGame.md) = \['reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; + +*** +

[$inputBotInlineMessageID](../constructors/inputBotInlineMessageID.md) = \['dc_id' => [int](../types/int.md), 'id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputBotInlineMessageMediaAuto](../constructors/inputBotInlineMessageMediaAuto.md) = \['message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; + +*** +

[$inputBotInlineMessageMediaContact](../constructors/inputBotInlineMessageMediaContact.md) = \['phone_number' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'vcard' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; + +*** +

[$inputBotInlineMessageMediaGeo](../constructors/inputBotInlineMessageMediaGeo.md) = \['geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'period' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; + +*** +

[$inputBotInlineMessageMediaVenue](../constructors/inputBotInlineMessageMediaVenue.md) = \['geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'title' => [string](../types/string.md), 'address' => [string](../types/string.md), 'provider' => [string](../types/string.md), 'venue_id' => [string](../types/string.md), 'venue_type' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; + +*** +

[$inputBotInlineMessageText](../constructors/inputBotInlineMessageText.md) = \['no_webpage' => [Bool](../types/Bool.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; + +*** +

[$inputBotInlineResult](../constructors/inputBotInlineResult.md) = \['id' => [string](../types/string.md), 'type' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'url' => [string](../types/string.md), 'thumb' => [InputWebDocument](../types/InputWebDocument.md), 'content' => [InputWebDocument](../types/InputWebDocument.md), 'send_message' => [InputBotInlineMessage](../types/InputBotInlineMessage.md), \]; + +*** +

[$inputBotInlineResultDocument](../constructors/inputBotInlineResultDocument.md) = \['id' => [string](../types/string.md), 'type' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'document' => [InputDocument](../types/InputDocument.md), 'send_message' => [InputBotInlineMessage](../types/InputBotInlineMessage.md), \]; + +*** +

[$inputBotInlineResultGame](../constructors/inputBotInlineResultGame.md) = \['id' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'send_message' => [InputBotInlineMessage](../types/InputBotInlineMessage.md), \]; + +*** +

[$inputBotInlineResultPhoto](../constructors/inputBotInlineResultPhoto.md) = \['id' => [string](../types/string.md), 'type' => [string](../types/string.md), 'photo' => [InputPhoto](../types/InputPhoto.md), 'send_message' => [InputBotInlineMessage](../types/InputBotInlineMessage.md), \]; + +*** +

[$inputChannel](../constructors/inputChannel.md) = \['channel_id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputChannelEmpty](../constructors/inputChannelEmpty.md) = \[\]; + +*** +

[$inputChatPhoto](../constructors/inputChatPhoto.md) = \['id' => [InputPhoto](../types/InputPhoto.md), \]; + +*** +

[$inputChatPhotoEmpty](../constructors/inputChatPhotoEmpty.md) = \[\]; + +*** +

[$inputChatUploadedPhoto](../constructors/inputChatUploadedPhoto.md) = \['file' => [InputFile](../types/InputFile.md), \]; + +*** +

[$inputCheckPasswordEmpty](../constructors/inputCheckPasswordEmpty.md) = \[\]; + +*** +

[$inputCheckPasswordSRP](../constructors/inputCheckPasswordSRP.md) = \['srp_id' => [long](../types/long.md), 'A' => [bytes](../types/bytes.md), 'M1' => [bytes](../types/bytes.md), \]; + +*** +

[$inputClientProxy](../constructors/inputClientProxy.md) = \['address' => [string](../types/string.md), 'port' => [int](../types/int.md), \]; + +*** +

[$inputDialogPeer](../constructors/inputDialogPeer.md) = \['peer' => [InputPeer](../types/InputPeer.md), \]; + +*** +

[$inputDocument](../constructors/inputDocument.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), \]; + +*** +

[$inputDocumentEmpty](../constructors/inputDocumentEmpty.md) = \[\]; + +*** +

[$inputDocumentFileLocation](../constructors/inputDocumentFileLocation.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), \]; + +*** +

[$inputEncryptedChat](../constructors/inputEncryptedChat.md) = \['chat_id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputEncryptedFile](../constructors/inputEncryptedFile.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputEncryptedFileBigUploaded](../constructors/inputEncryptedFileBigUploaded.md) = \['id' => [long](../types/long.md), 'parts' => [int](../types/int.md), 'key_fingerprint' => [int](../types/int.md), \]; + +*** +

[$inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) = \[\]; + +*** +

[$inputEncryptedFileLocation](../constructors/inputEncryptedFileLocation.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputEncryptedFileUploaded](../constructors/inputEncryptedFileUploaded.md) = \['id' => [long](../types/long.md), 'parts' => [int](../types/int.md), 'md5_checksum' => [string](../types/string.md), 'key_fingerprint' => [int](../types/int.md), \]; + +*** +

[$inputFile](../constructors/inputFile.md) = \['id' => [long](../types/long.md), 'parts' => [int](../types/int.md), 'name' => [string](../types/string.md), 'md5_checksum' => [string](../types/string.md), \]; + +*** +

[$inputFileBig](../constructors/inputFileBig.md) = \['id' => [long](../types/long.md), 'parts' => [int](../types/int.md), 'name' => [string](../types/string.md), \]; + +*** +

[$inputFileLocation](../constructors/inputFileLocation.md) = \['volume_id' => [long](../types/long.md), 'local_id' => [int](../types/int.md), 'secret' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), \]; + +*** +

[$inputGameID](../constructors/inputGameID.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputGameShortName](../constructors/inputGameShortName.md) = \['bot_id' => [InputUser](../types/InputUser.md), 'short_name' => [string](../types/string.md), \]; + +*** +

[$inputGeoPoint](../constructors/inputGeoPoint.md) = \['lat' => [double](../types/double.md), 'long' => [double](../types/double.md), \]; + +*** +

[$inputGeoPointEmpty](../constructors/inputGeoPointEmpty.md) = \[\]; + +*** +

[$inputMediaContact](../constructors/inputMediaContact.md) = \['phone_number' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'vcard' => [string](../types/string.md), \]; + +*** +

[$inputMediaDocument](../constructors/inputMediaDocument.md) = \['id' => [InputDocument](../types/InputDocument.md), 'ttl_seconds' => [int](../types/int.md), \]; + +*** +

[$inputMediaDocumentExternal](../constructors/inputMediaDocumentExternal.md) = \['url' => [string](../types/string.md), 'ttl_seconds' => [int](../types/int.md), \]; + +*** +

[$inputMediaEmpty](../constructors/inputMediaEmpty.md) = \[\]; + +*** +

[$inputMediaGame](../constructors/inputMediaGame.md) = \['id' => [InputGame](../types/InputGame.md), \]; + +*** +

[$inputMediaGeoLive](../constructors/inputMediaGeoLive.md) = \['stopped' => [Bool](../types/Bool.md), 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'period' => [int](../types/int.md), \]; + +*** +

[$inputMediaGeoPoint](../constructors/inputMediaGeoPoint.md) = \['geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), \]; + +*** +

[$inputMediaGifExternal](../constructors/inputMediaGifExternal.md) = \['url' => [string](../types/string.md), 'q' => [string](../types/string.md), \]; + +*** +

[$inputMediaInvoice](../constructors/inputMediaInvoice.md) = \['title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [InputWebDocument](../types/InputWebDocument.md), 'invoice' => [Invoice](../types/Invoice.md), 'payload' => [bytes](../types/bytes.md), 'provider' => [string](../types/string.md), 'provider_data' => [DataJSON](../types/DataJSON.md), 'start_param' => [string](../types/string.md), \]; + +*** +

[$inputMediaPhoto](../constructors/inputMediaPhoto.md) = \['id' => [InputPhoto](../types/InputPhoto.md), 'ttl_seconds' => [int](../types/int.md), \]; + +*** +

[$inputMediaPhotoExternal](../constructors/inputMediaPhotoExternal.md) = \['url' => [string](../types/string.md), 'ttl_seconds' => [int](../types/int.md), \]; + +*** +

[$inputMediaPoll](../constructors/inputMediaPoll.md) = \['poll' => [Poll](../types/Poll.md), \]; + +*** +

[$inputMediaUploadedDocument](../constructors/inputMediaUploadedDocument.md) = \['nosound_video' => [Bool](../types/Bool.md), 'file' => [InputFile](../types/InputFile.md), 'thumb' => [InputFile](../types/InputFile.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], 'stickers' => \[[InputDocument](../types/InputDocument.md)\], 'ttl_seconds' => [int](../types/int.md), \]; + +*** +

[$inputMediaUploadedPhoto](../constructors/inputMediaUploadedPhoto.md) = \['file' => [InputFile](../types/InputFile.md), 'stickers' => \[[InputDocument](../types/InputDocument.md)\], 'ttl_seconds' => [int](../types/int.md), \]; + +*** +

[$inputMediaVenue](../constructors/inputMediaVenue.md) = \['geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'title' => [string](../types/string.md), 'address' => [string](../types/string.md), 'provider' => [string](../types/string.md), 'venue_id' => [string](../types/string.md), 'venue_type' => [string](../types/string.md), \]; + +*** +

[$inputMessageEntityMentionName](../constructors/inputMessageEntityMentionName.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]; + +*** +

[$inputMessageID](../constructors/inputMessageID.md) = \['id' => [int](../types/int.md), \]; + +*** +

[$inputMessagePinned](../constructors/inputMessagePinned.md) = \[\]; + +*** +

[$inputMessageReplyTo](../constructors/inputMessageReplyTo.md) = \['id' => [int](../types/int.md), \]; + +*** +

[$inputMessagesFilterChatPhotos](../constructors/inputMessagesFilterChatPhotos.md) = \[\]; + +*** +

[$inputMessagesFilterContacts](../constructors/inputMessagesFilterContacts.md) = \[\]; + +*** +

[$inputMessagesFilterDocument](../constructors/inputMessagesFilterDocument.md) = \[\]; + +*** +

[$inputMessagesFilterEmpty](../constructors/inputMessagesFilterEmpty.md) = \[\]; + +*** +

[$inputMessagesFilterGeo](../constructors/inputMessagesFilterGeo.md) = \[\]; + +*** +

[$inputMessagesFilterGif](../constructors/inputMessagesFilterGif.md) = \[\]; + +*** +

[$inputMessagesFilterMusic](../constructors/inputMessagesFilterMusic.md) = \[\]; + +*** +

[$inputMessagesFilterMyMentions](../constructors/inputMessagesFilterMyMentions.md) = \[\]; + +*** +

[$inputMessagesFilterPhoneCalls](../constructors/inputMessagesFilterPhoneCalls.md) = \['missed' => [Bool](../types/Bool.md), \]; + +*** +

[$inputMessagesFilterPhotoVideo](../constructors/inputMessagesFilterPhotoVideo.md) = \[\]; + +*** +

[$inputMessagesFilterPhotos](../constructors/inputMessagesFilterPhotos.md) = \[\]; + +*** +

[$inputMessagesFilterRoundVideo](../constructors/inputMessagesFilterRoundVideo.md) = \[\]; + +*** +

[$inputMessagesFilterRoundVoice](../constructors/inputMessagesFilterRoundVoice.md) = \[\]; + +*** +

[$inputMessagesFilterUrl](../constructors/inputMessagesFilterUrl.md) = \[\]; + +*** +

[$inputMessagesFilterVideo](../constructors/inputMessagesFilterVideo.md) = \[\]; + +*** +

[$inputMessagesFilterVoice](../constructors/inputMessagesFilterVoice.md) = \[\]; + +*** +

[$inputNotifyBroadcasts](../constructors/inputNotifyBroadcasts.md) = \[\]; + +*** +

[$inputNotifyChats](../constructors/inputNotifyChats.md) = \[\]; + +*** +

[$inputNotifyPeer](../constructors/inputNotifyPeer.md) = \['peer' => [InputPeer](../types/InputPeer.md), \]; + +*** +

[$inputNotifyUsers](../constructors/inputNotifyUsers.md) = \[\]; + +*** +

[$inputPaymentCredentials](../constructors/inputPaymentCredentials.md) = \['save' => [Bool](../types/Bool.md), 'data' => [DataJSON](../types/DataJSON.md), \]; + +*** +

[$inputPaymentCredentialsAndroidPay](../constructors/inputPaymentCredentialsAndroidPay.md) = \['payment_token' => [DataJSON](../types/DataJSON.md), 'google_transaction_id' => [string](../types/string.md), \]; + +*** +

[$inputPaymentCredentialsApplePay](../constructors/inputPaymentCredentialsApplePay.md) = \['payment_data' => [DataJSON](../types/DataJSON.md), \]; + +*** +

[$inputPaymentCredentialsSaved](../constructors/inputPaymentCredentialsSaved.md) = \['id' => [string](../types/string.md), 'tmp_password' => [bytes](../types/bytes.md), \]; + +*** +

[$inputPeerChannel](../constructors/inputPeerChannel.md) = \['channel_id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputPeerChat](../constructors/inputPeerChat.md) = \['chat_id' => [int](../types/int.md), \]; + +*** +

[$inputPeerEmpty](../constructors/inputPeerEmpty.md) = \[\]; + +*** +

[$inputPeerNotifySettings](../constructors/inputPeerNotifySettings.md) = \['show_previews' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'mute_until' => [int](../types/int.md), 'sound' => [string](../types/string.md), \]; + +*** +

[$inputPeerSelf](../constructors/inputPeerSelf.md) = \[\]; + +*** +

[$inputPeerUser](../constructors/inputPeerUser.md) = \['user_id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputPhoneCall](../constructors/inputPhoneCall.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputPhoneContact](../constructors/inputPhoneContact.md) = \['client_id' => [long](../types/long.md), 'phone' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]; + +*** +

[$inputPhoto](../constructors/inputPhoto.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), \]; + +*** +

[$inputPhotoEmpty](../constructors/inputPhotoEmpty.md) = \[\]; + +*** +

[$inputPrivacyKeyChatInvite](../constructors/inputPrivacyKeyChatInvite.md) = \[\]; + +*** +

[$inputPrivacyKeyPhoneCall](../constructors/inputPrivacyKeyPhoneCall.md) = \[\]; + +*** +

[$inputPrivacyKeyPhoneP2P](../constructors/inputPrivacyKeyPhoneP2P.md) = \[\]; + +*** +

[$inputPrivacyKeyStatusTimestamp](../constructors/inputPrivacyKeyStatusTimestamp.md) = \[\]; + +*** +

[$inputPrivacyValueAllowAll](../constructors/inputPrivacyValueAllowAll.md) = \[\]; + +*** +

[$inputPrivacyValueAllowContacts](../constructors/inputPrivacyValueAllowContacts.md) = \[\]; + +*** +

[$inputPrivacyValueAllowUsers](../constructors/inputPrivacyValueAllowUsers.md) = \['users' => \[[InputUser](../types/InputUser.md)\], \]; + +*** +

[$inputPrivacyValueDisallowAll](../constructors/inputPrivacyValueDisallowAll.md) = \[\]; + +*** +

[$inputPrivacyValueDisallowContacts](../constructors/inputPrivacyValueDisallowContacts.md) = \[\]; + +*** +

[$inputPrivacyValueDisallowUsers](../constructors/inputPrivacyValueDisallowUsers.md) = \['users' => \[[InputUser](../types/InputUser.md)\], \]; + +*** +

[$inputReportReasonChildAbuse](../constructors/inputReportReasonChildAbuse.md) = \[\]; + +*** +

[$inputReportReasonCopyright](../constructors/inputReportReasonCopyright.md) = \[\]; + +*** +

[$inputReportReasonOther](../constructors/inputReportReasonOther.md) = \['text' => [string](../types/string.md), \]; + +*** +

[$inputReportReasonPornography](../constructors/inputReportReasonPornography.md) = \[\]; + +*** +

[$inputReportReasonSpam](../constructors/inputReportReasonSpam.md) = \[\]; + +*** +

[$inputReportReasonViolence](../constructors/inputReportReasonViolence.md) = \[\]; + +*** +

[$inputSecureFile](../constructors/inputSecureFile.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputSecureFileLocation](../constructors/inputSecureFileLocation.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputSecureFileUploaded](../constructors/inputSecureFileUploaded.md) = \['id' => [long](../types/long.md), 'parts' => [int](../types/int.md), 'md5_checksum' => [string](../types/string.md), 'file_hash' => [bytes](../types/bytes.md), 'secret' => [bytes](../types/bytes.md), \]; + +*** +

[$inputSecureValue](../constructors/inputSecureValue.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'data' => [SecureData](../types/SecureData.md), 'front_side' => [InputSecureFile](../types/InputSecureFile.md), 'reverse_side' => [InputSecureFile](../types/InputSecureFile.md), 'selfie' => [InputSecureFile](../types/InputSecureFile.md), 'translation' => \[[InputSecureFile](../types/InputSecureFile.md)\], 'files' => \[[InputSecureFile](../types/InputSecureFile.md)\], 'plain_data' => [SecurePlainData](../types/SecurePlainData.md), \]; + +*** +

[$inputSingleMedia](../constructors/inputSingleMedia.md) = \['media' => [InputMedia](../types/InputMedia.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]; + +*** +

[$inputStickerSetEmpty](../constructors/inputStickerSetEmpty.md) = \[\]; + +*** +

[$inputStickerSetID](../constructors/inputStickerSetID.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputStickerSetItem](../constructors/inputStickerSetItem.md) = \['document' => [InputDocument](../types/InputDocument.md), 'emoji' => [string](../types/string.md), 'mask_coords' => [MaskCoords](../types/MaskCoords.md), \]; + +*** +

[$inputStickerSetShortName](../constructors/inputStickerSetShortName.md) = \['short_name' => [string](../types/string.md), \]; + +*** +

[$inputStickeredMediaDocument](../constructors/inputStickeredMediaDocument.md) = \['id' => [InputDocument](../types/InputDocument.md), \]; + +*** +

[$inputStickeredMediaPhoto](../constructors/inputStickeredMediaPhoto.md) = \['id' => [InputPhoto](../types/InputPhoto.md), \]; + +*** +

[$inputTakeoutFileLocation](../constructors/inputTakeoutFileLocation.md) = \[\]; + +*** +

[$inputUser](../constructors/inputUser.md) = \['user_id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$inputUserEmpty](../constructors/inputUserEmpty.md) = \[\]; + +*** +

[$inputUserSelf](../constructors/inputUserSelf.md) = \[\]; + +*** +

[$inputWebDocument](../constructors/inputWebDocument.md) = \['url' => [string](../types/string.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \]; + +*** +

[$inputWebFileGeoPointLocation](../constructors/inputWebFileGeoPointLocation.md) = \['geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'access_hash' => [long](../types/long.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), 'zoom' => [int](../types/int.md), 'scale' => [int](../types/int.md), \]; + +*** +

[$inputWebFileLocation](../constructors/inputWebFileLocation.md) = \['url' => [string](../types/string.md), 'access_hash' => [long](../types/long.md), \]; + +*** +

[$invoice](../constructors/invoice.md) = \['test' => [Bool](../types/Bool.md), 'name_requested' => [Bool](../types/Bool.md), 'phone_requested' => [Bool](../types/Bool.md), 'email_requested' => [Bool](../types/Bool.md), 'shipping_address_requested' => [Bool](../types/Bool.md), 'flexible' => [Bool](../types/Bool.md), 'phone_to_provider' => [Bool](../types/Bool.md), 'email_to_provider' => [Bool](../types/Bool.md), 'currency' => [string](../types/string.md), 'prices' => \[[LabeledPrice](../types/LabeledPrice.md)\], \]; + +*** +

[$ipPort](../constructors/ipPort.md) = \['ipv4' => [int](../types/int.md), 'port' => [int](../types/int.md), \]; + +*** +

[$ipPortSecret](../constructors/ipPortSecret.md) = \['ipv4' => [int](../types/int.md), 'port' => [int](../types/int.md), 'secret' => [bytes](../types/bytes.md), \]; + +*** +

[$jsonArray](../constructors/jsonArray.md) = \['value' => \[[JSONValue](../types/JSONValue.md)\], \]; + +*** +

[$jsonBool](../constructors/jsonBool.md) = \['value' => [Bool](../types/Bool.md), \]; + +*** +

[$jsonNull](../constructors/jsonNull.md) = \[\]; + +*** +

[$jsonNumber](../constructors/jsonNumber.md) = \['value' => [double](../types/double.md), \]; + +*** +

[$jsonObject](../constructors/jsonObject.md) = \['value' => \[[JSONObjectValue](../types/JSONObjectValue.md)\], \]; + +*** +

[$jsonObjectValue](../constructors/jsonObjectValue.md) = \['key' => [string](../types/string.md), 'value' => [JSONValue](../types/JSONValue.md), \]; + +*** +

[$jsonString](../constructors/jsonString.md) = \['value' => [string](../types/string.md), \]; + +*** +

[$keyboardButton](../constructors/keyboardButton.md) = \['text' => [string](../types/string.md), \]; + +*** +

[$keyboardButtonBuy](../constructors/keyboardButtonBuy.md) = \['text' => [string](../types/string.md), \]; + +*** +

[$keyboardButtonCallback](../constructors/keyboardButtonCallback.md) = \['text' => [string](../types/string.md), 'data' => [bytes](../types/bytes.md), \]; + +*** +

[$keyboardButtonGame](../constructors/keyboardButtonGame.md) = \['text' => [string](../types/string.md), \]; + +*** +

[$keyboardButtonRequestGeoLocation](../constructors/keyboardButtonRequestGeoLocation.md) = \['text' => [string](../types/string.md), \]; + +*** +

[$keyboardButtonRequestPhone](../constructors/keyboardButtonRequestPhone.md) = \['text' => [string](../types/string.md), \]; + +*** +

[$keyboardButtonRow](../constructors/keyboardButtonRow.md) = \['buttons' => \[[KeyboardButton](../types/KeyboardButton.md)\], \]; + +*** +

[$keyboardButtonSwitchInline](../constructors/keyboardButtonSwitchInline.md) = \['same_peer' => [Bool](../types/Bool.md), 'text' => [string](../types/string.md), 'query' => [string](../types/string.md), \]; + +*** +

[$keyboardButtonUrl](../constructors/keyboardButtonUrl.md) = \['text' => [string](../types/string.md), 'url' => [string](../types/string.md), \]; + +*** +

[$labeledPrice](../constructors/labeledPrice.md) = \['label' => [string](../types/string.md), 'amount' => [long](../types/long.md), \]; + +*** +

[$langPackDifference](../constructors/langPackDifference.md) = \['lang_code' => [string](../types/string.md), 'from_version' => [int](../types/int.md), 'version' => [int](../types/int.md), 'strings' => \[[LangPackString](../types/LangPackString.md)\], \]; + +*** +

[$langPackLanguage](../constructors/langPackLanguage.md) = \['official' => [Bool](../types/Bool.md), 'rtl' => [Bool](../types/Bool.md), 'beta' => [Bool](../types/Bool.md), 'name' => [string](../types/string.md), 'native_name' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'base_lang_code' => [string](../types/string.md), 'plural_code' => [string](../types/string.md), 'strings_count' => [int](../types/int.md), 'translated_count' => [int](../types/int.md), 'translations_url' => [string](../types/string.md), \]; + +*** +

[$langPackString](../constructors/langPackString.md) = \['key' => [string](../types/string.md), 'value' => [string](../types/string.md), \]; + +*** +

[$langPackStringDeleted](../constructors/langPackStringDeleted.md) = \['key' => [string](../types/string.md), \]; + +*** +

[$langPackStringPluralized](../constructors/langPackStringPluralized.md) = \['key' => [string](../types/string.md), 'zero_value' => [string](../types/string.md), 'one_value' => [string](../types/string.md), 'two_value' => [string](../types/string.md), 'few_value' => [string](../types/string.md), 'many_value' => [string](../types/string.md), 'other_value' => [string](../types/string.md), \]; + +*** +

[$maskCoords](../constructors/maskCoords.md) = \['n' => [int](../types/int.md), 'x' => [double](../types/double.md), 'y' => [double](../types/double.md), 'zoom' => [double](../types/double.md), \]; + +*** +

[$message](../constructors/message.md) = \['out' => [Bool](../types/Bool.md), 'mentioned' => [Bool](../types/Bool.md), 'media_unread' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'post' => [Bool](../types/Bool.md), 'from_scheduled' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'from_id' => [int](../types/int.md), 'to_id' => [Peer](../types/Peer.md), 'fwd_from' => [MessageFwdHeader](../types/MessageFwdHeader.md), 'via_bot_id' => [int](../types/int.md), 'reply_to_msg_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [MessageMedia](../types/MessageMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'views' => [int](../types/int.md), 'edit_date' => [int](../types/int.md), 'post_author' => [string](../types/string.md), 'grouped_id' => [long](../types/long.md), \]; + +*** +

[$messageActionBotAllowed](../constructors/messageActionBotAllowed.md) = \['domain' => [string](../types/string.md), \]; + +*** +

[$messageActionChannelCreate](../constructors/messageActionChannelCreate.md) = \['title' => [string](../types/string.md), \]; + +*** +

[$messageActionChannelMigrateFrom](../constructors/messageActionChannelMigrateFrom.md) = \['title' => [string](../types/string.md), 'chat_id' => [int](../types/int.md), \]; + +*** +

[$messageActionChatAddUser](../constructors/messageActionChatAddUser.md) = \['users' => \[[int](../types/int.md)\], \]; + +*** +

[$messageActionChatCreate](../constructors/messageActionChatCreate.md) = \['title' => [string](../types/string.md), 'users' => \[[int](../types/int.md)\], \]; + +*** +

[$messageActionChatDeletePhoto](../constructors/messageActionChatDeletePhoto.md) = \[\]; + +*** +

[$messageActionChatDeleteUser](../constructors/messageActionChatDeleteUser.md) = \['user_id' => [int](../types/int.md), \]; + +*** +

[$messageActionChatEditPhoto](../constructors/messageActionChatEditPhoto.md) = \['photo' => [Photo](../types/Photo.md), \]; + +*** +

[$messageActionChatEditTitle](../constructors/messageActionChatEditTitle.md) = \['title' => [string](../types/string.md), \]; + +*** +

[$messageActionChatJoinedByLink](../constructors/messageActionChatJoinedByLink.md) = \['inviter_id' => [int](../types/int.md), \]; + +*** +

[$messageActionChatMigrateTo](../constructors/messageActionChatMigrateTo.md) = \['channel_id' => [int](../types/int.md), \]; + +*** +

[$messageActionContactSignUp](../constructors/messageActionContactSignUp.md) = \[\]; + +*** +

[$messageActionCustomAction](../constructors/messageActionCustomAction.md) = \['message' => [string](../types/string.md), \]; + +*** +

[$messageActionEmpty](../constructors/messageActionEmpty.md) = \[\]; + +*** +

[$messageActionGameScore](../constructors/messageActionGameScore.md) = \['game_id' => [long](../types/long.md), 'score' => [int](../types/int.md), \]; + +*** +

[$messageActionHistoryClear](../constructors/messageActionHistoryClear.md) = \[\]; + +*** +

[$messageActionPaymentSent](../constructors/messageActionPaymentSent.md) = \['currency' => [string](../types/string.md), 'total_amount' => [long](../types/long.md), \]; + +*** +

[$messageActionPaymentSentMe](../constructors/messageActionPaymentSentMe.md) = \['currency' => [string](../types/string.md), 'total_amount' => [long](../types/long.md), 'payload' => [bytes](../types/bytes.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), 'shipping_option_id' => [string](../types/string.md), 'charge' => [PaymentCharge](../types/PaymentCharge.md), \]; + +*** +

[$messageActionPhoneCall](../constructors/messageActionPhoneCall.md) = \['call_id' => [long](../types/long.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'duration' => [int](../types/int.md), \]; + +*** +

[$messageActionPinMessage](../constructors/messageActionPinMessage.md) = \[\]; + +*** +

[$messageActionScreenshotTaken](../constructors/messageActionScreenshotTaken.md) = \[\]; + +*** +

[$messageActionSecureValuesSent](../constructors/messageActionSecureValuesSent.md) = \['types' => \[[SecureValueType](../types/SecureValueType.md)\], \]; + +*** +

[$messageActionSecureValuesSentMe](../constructors/messageActionSecureValuesSentMe.md) = \['values' => \[[SecureValue](../types/SecureValue.md)\], 'credentials' => [SecureCredentialsEncrypted](../types/SecureCredentialsEncrypted.md), \]; + +*** +

[$messageEmpty](../constructors/messageEmpty.md) = \['id' => [int](../types/int.md), \]; + +*** +

[$messageEntityBold](../constructors/messageEntityBold.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; + +*** +

[$messageEntityBotCommand](../constructors/messageEntityBotCommand.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; + +*** +

[$messageEntityCashtag](../constructors/messageEntityCashtag.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; + +*** +

[$messageEntityCode](../constructors/messageEntityCode.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; + +*** +

[$messageEntityEmail](../constructors/messageEntityEmail.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; + +*** +

[$messageEntityHashtag](../constructors/messageEntityHashtag.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; + +*** +

[$messageEntityItalic](../constructors/messageEntityItalic.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; + +*** +

[$messageEntityMention](../constructors/messageEntityMention.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; + +*** +

[$messageEntityMentionName](../constructors/messageEntityMentionName.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), 'user_id' => [int](../types/int.md), \]; + +*** +

[$messageEntityPhone](../constructors/messageEntityPhone.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; + +*** +

[$messageEntityPre](../constructors/messageEntityPre.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), 'language' => [string](../types/string.md), \]; + +*** +

[$messageEntityTextUrl](../constructors/messageEntityTextUrl.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), 'url' => [string](../types/string.md), \]; + +*** +

[$messageEntityUnknown](../constructors/messageEntityUnknown.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; + +*** +

[$messageEntityUrl](../constructors/messageEntityUrl.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \]; + +*** +

[$messageFwdHeader](../constructors/messageFwdHeader.md) = \['from_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'channel_id' => [int](../types/int.md), 'channel_post' => [int](../types/int.md), 'post_author' => [string](../types/string.md), 'saved_from_peer' => [Peer](../types/Peer.md), 'saved_from_msg_id' => [int](../types/int.md), \]; + +*** +

[$messageMediaContact](../constructors/messageMediaContact.md) = \['phone_number' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'vcard' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \]; + +*** +

[$messageMediaDocument](../constructors/messageMediaDocument.md) = \['document' => [Document](../types/Document.md), 'ttl_seconds' => [int](../types/int.md), \]; + +*** +

[$messageMediaEmpty](../constructors/messageMediaEmpty.md) = \[\]; + +*** +

[$messageMediaGame](../constructors/messageMediaGame.md) = \['game' => [Game](../types/Game.md), \]; + +*** +

[$messageMediaGeo](../constructors/messageMediaGeo.md) = \['geo' => [GeoPoint](../types/GeoPoint.md), \]; + +*** +

[$messageMediaGeoLive](../constructors/messageMediaGeoLive.md) = \['geo' => [GeoPoint](../types/GeoPoint.md), 'period' => [int](../types/int.md), \]; + +*** +

[$messageMediaInvoice](../constructors/messageMediaInvoice.md) = \['shipping_address_requested' => [Bool](../types/Bool.md), 'test' => [Bool](../types/Bool.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [WebDocument](../types/WebDocument.md), 'receipt_msg_id' => [int](../types/int.md), 'currency' => [string](../types/string.md), 'total_amount' => [long](../types/long.md), 'start_param' => [string](../types/string.md), \]; + +*** +

[$messageMediaPhoto](../constructors/messageMediaPhoto.md) = \['photo' => [Photo](../types/Photo.md), 'ttl_seconds' => [int](../types/int.md), \]; + +*** +

[$messageMediaPoll](../constructors/messageMediaPoll.md) = \['poll' => [Poll](../types/Poll.md), 'results' => [PollResults](../types/PollResults.md), \]; + +*** +

[$messageMediaUnsupported](../constructors/messageMediaUnsupported.md) = \[\]; + +*** +

[$messageMediaVenue](../constructors/messageMediaVenue.md) = \['geo' => [GeoPoint](../types/GeoPoint.md), 'title' => [string](../types/string.md), 'address' => [string](../types/string.md), 'provider' => [string](../types/string.md), 'venue_id' => [string](../types/string.md), 'venue_type' => [string](../types/string.md), \]; + +*** +

[$messageMediaWebPage](../constructors/messageMediaWebPage.md) = \['webpage' => [WebPage](../types/WebPage.md), \]; + +*** +

[$messageRange](../constructors/messageRange.md) = \['min_id' => [int](../types/int.md), 'max_id' => [int](../types/int.md), \]; + +*** +

[$messageService](../constructors/messageService.md) = \['out' => [Bool](../types/Bool.md), 'mentioned' => [Bool](../types/Bool.md), 'media_unread' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'post' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'from_id' => [int](../types/int.md), 'to_id' => [Peer](../types/Peer.md), 'reply_to_msg_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'action' => [MessageAction](../types/MessageAction.md), \]; + +*** +

[$messages\_affectedHistory](../constructors/messages_affectedHistory.md) = \['pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), 'offset' => [int](../types/int.md), \]; + +[$messages\_affectedMessages](../constructors/messages_affectedMessages.md) = \['pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +[$messages\_allStickers](../constructors/messages_allStickers.md) = \['hash' => [int](../types/int.md), 'sets' => \[[StickerSet](../types/StickerSet.md)\], \]; + +[$messages\_allStickersNotModified](../constructors/messages_allStickersNotModified.md) = \[\]; + +[$messages\_archivedStickers](../constructors/messages_archivedStickers.md) = \['count' => [int](../types/int.md), 'sets' => \[[StickerSetCovered](../types/StickerSetCovered.md)\], \]; + +[$messages\_botCallbackAnswer](../constructors/messages_botCallbackAnswer.md) = \['alert' => [Bool](../types/Bool.md), 'has_url' => [Bool](../types/Bool.md), 'native_ui' => [Bool](../types/Bool.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]; + +[$messages\_botResults](../constructors/messages_botResults.md) = \['gallery' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'next_offset' => [string](../types/string.md), 'switch_pm' => [InlineBotSwitchPM](../types/InlineBotSwitchPM.md), 'results' => \[[BotInlineResult](../types/BotInlineResult.md)\], 'cache_time' => [int](../types/int.md), 'users' => \[[User](../types/User.md)\], \]; + +[$messages\_channelMessages](../constructors/messages_channelMessages.md) = \['inexact' => [Bool](../types/Bool.md), 'pts' => [int](../types/int.md), 'count' => [int](../types/int.md), 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$messages\_chatFull](../constructors/messages_chatFull.md) = \['full_chat' => [ChatFull](../types/ChatFull.md), 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$messages\_chats](../constructors/messages_chats.md) = \['chats' => \[[Chat](../types/Chat.md)\], \]; + +[$messages\_chatsSlice](../constructors/messages_chatsSlice.md) = \['count' => [int](../types/int.md), 'chats' => \[[Chat](../types/Chat.md)\], \]; + +[$messages\_dhConfig](../constructors/messages_dhConfig.md) = \['g' => [int](../types/int.md), 'p' => [bytes](../types/bytes.md), 'version' => [int](../types/int.md), 'random' => [bytes](../types/bytes.md), \]; + +[$messages\_dhConfigNotModified](../constructors/messages_dhConfigNotModified.md) = \['random' => [bytes](../types/bytes.md), \]; + +[$messages\_dialogs](../constructors/messages_dialogs.md) = \['dialogs' => \[[Dialog](../types/Dialog.md)\], 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$messages\_dialogsNotModified](../constructors/messages_dialogsNotModified.md) = \['count' => [int](../types/int.md), \]; + +[$messages\_dialogsSlice](../constructors/messages_dialogsSlice.md) = \['count' => [int](../types/int.md), 'dialogs' => \[[Dialog](../types/Dialog.md)\], 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$messages\_favedStickers](../constructors/messages_favedStickers.md) = \['hash' => [int](../types/int.md), 'packs' => \[[StickerPack](../types/StickerPack.md)\], 'stickers' => \[[Document](../types/Document.md)\], \]; + +[$messages\_favedStickersNotModified](../constructors/messages_favedStickersNotModified.md) = \[\]; + +[$messages\_featuredStickers](../constructors/messages_featuredStickers.md) = \['hash' => [int](../types/int.md), 'sets' => \[[StickerSetCovered](../types/StickerSetCovered.md)\], 'unread' => \[[long](../types/long.md)\], \]; + +[$messages\_featuredStickersNotModified](../constructors/messages_featuredStickersNotModified.md) = \[\]; + +[$messages\_foundGifs](../constructors/messages_foundGifs.md) = \['next_offset' => [int](../types/int.md), 'results' => \[[FoundGif](../types/FoundGif.md)\], \]; + +[$messages\_foundStickerSets](../constructors/messages_foundStickerSets.md) = \['hash' => [int](../types/int.md), 'sets' => \[[StickerSetCovered](../types/StickerSetCovered.md)\], \]; + +[$messages\_foundStickerSetsNotModified](../constructors/messages_foundStickerSetsNotModified.md) = \[\]; + +[$messages\_highScores](../constructors/messages_highScores.md) = \['scores' => \[[HighScore](../types/HighScore.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$messages\_messageEditData](../constructors/messages_messageEditData.md) = \['caption' => [Bool](../types/Bool.md), \]; + +[$messages\_messages](../constructors/messages_messages.md) = \['messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$messages\_messagesNotModified](../constructors/messages_messagesNotModified.md) = \['count' => [int](../types/int.md), \]; + +[$messages\_messagesSlice](../constructors/messages_messagesSlice.md) = \['count' => [int](../types/int.md), 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$messages\_peerDialogs](../constructors/messages_peerDialogs.md) = \['dialogs' => \[[Dialog](../types/Dialog.md)\], 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], 'state' => [updates\_State](../types/updates_State.md), \]; + +[$messages\_recentStickers](../constructors/messages_recentStickers.md) = \['hash' => [int](../types/int.md), 'packs' => \[[StickerPack](../types/StickerPack.md)\], 'stickers' => \[[Document](../types/Document.md)\], 'dates' => \[[int](../types/int.md)\], \]; + +[$messages\_recentStickersNotModified](../constructors/messages_recentStickersNotModified.md) = \[\]; + +[$messages\_savedGifs](../constructors/messages_savedGifs.md) = \['hash' => [int](../types/int.md), 'gifs' => \[[Document](../types/Document.md)\], \]; + +[$messages\_savedGifsNotModified](../constructors/messages_savedGifsNotModified.md) = \[\]; + +[$messages\_sentEncryptedFile](../constructors/messages_sentEncryptedFile.md) = \['date' => [int](../types/int.md), 'file' => [EncryptedFile](../types/EncryptedFile.md), \]; + +[$messages\_sentEncryptedMessage](../constructors/messages_sentEncryptedMessage.md) = \['date' => [int](../types/int.md), \]; + +[$messages\_stickerSet](../constructors/messages_stickerSet.md) = \['set' => [StickerSet](../types/StickerSet.md), 'packs' => \[[StickerPack](../types/StickerPack.md)\], 'documents' => \[[Document](../types/Document.md)\], \]; + +[$messages\_stickerSetInstallResultArchive](../constructors/messages_stickerSetInstallResultArchive.md) = \['sets' => \[[StickerSetCovered](../types/StickerSetCovered.md)\], \]; + +[$messages\_stickerSetInstallResultSuccess](../constructors/messages_stickerSetInstallResultSuccess.md) = \[\]; + +[$messages\_stickers](../constructors/messages_stickers.md) = \['hash' => [int](../types/int.md), 'stickers' => \[[Document](../types/Document.md)\], \]; + +[$messages\_stickersNotModified](../constructors/messages_stickersNotModified.md) = \[\]; + +*** +

[$nearestDc](../constructors/nearestDc.md) = \['country' => [string](../types/string.md), 'this_dc' => [int](../types/int.md), 'nearest_dc' => [int](../types/int.md), \]; + +*** +

[$notifyBroadcasts](../constructors/notifyBroadcasts.md) = \[\]; + +*** +

[$notifyChats](../constructors/notifyChats.md) = \[\]; + +*** +

[$notifyPeer](../constructors/notifyPeer.md) = \['peer' => [Peer](../types/Peer.md), \]; + +*** +

[$notifyUsers](../constructors/notifyUsers.md) = \[\]; + +*** +

[$null](../constructors/null.md) = \[\]; + +*** +

[$page](../constructors/page.md) = \['part' => [Bool](../types/Bool.md), 'rtl' => [Bool](../types/Bool.md), 'v2' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'blocks' => \[[PageBlock](../types/PageBlock.md)\], 'photos' => \[[Photo](../types/Photo.md)\], 'documents' => \[[Document](../types/Document.md)\], \]; + +*** +

[$pageBlockAnchor](../constructors/pageBlockAnchor.md) = \['name' => [string](../types/string.md), \]; + +*** +

[$pageBlockAudio](../constructors/pageBlockAudio.md) = \['audio_id' => [long](../types/long.md), 'caption' => [PageCaption](../types/PageCaption.md), \]; + +*** +

[$pageBlockAuthorDate](../constructors/pageBlockAuthorDate.md) = \['author' => [RichText](../types/RichText.md), 'published_date' => [int](../types/int.md), \]; + +*** +

[$pageBlockBlockquote](../constructors/pageBlockBlockquote.md) = \['text' => [RichText](../types/RichText.md), 'caption' => [RichText](../types/RichText.md), \]; + +*** +

[$pageBlockChannel](../constructors/pageBlockChannel.md) = \['channel' => [Chat](../types/Chat.md), \]; + +*** +

[$pageBlockCollage](../constructors/pageBlockCollage.md) = \['items' => \[[PageBlock](../types/PageBlock.md)\], 'caption' => [PageCaption](../types/PageCaption.md), \]; + +*** +

[$pageBlockCover](../constructors/pageBlockCover.md) = \['cover' => [PageBlock](../types/PageBlock.md), \]; + +*** +

[$pageBlockDetails](../constructors/pageBlockDetails.md) = \['open' => [Bool](../types/Bool.md), 'blocks' => \[[PageBlock](../types/PageBlock.md)\], 'title' => [RichText](../types/RichText.md), \]; + +*** +

[$pageBlockDivider](../constructors/pageBlockDivider.md) = \[\]; + +*** +

[$pageBlockEmbed](../constructors/pageBlockEmbed.md) = \['full_width' => [Bool](../types/Bool.md), 'allow_scrolling' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'html' => [string](../types/string.md), 'poster_photo_id' => [long](../types/long.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), 'caption' => [PageCaption](../types/PageCaption.md), \]; + +*** +

[$pageBlockEmbedPost](../constructors/pageBlockEmbedPost.md) = \['url' => [string](../types/string.md), 'webpage_id' => [long](../types/long.md), 'author_photo_id' => [long](../types/long.md), 'author' => [string](../types/string.md), 'date' => [int](../types/int.md), 'blocks' => \[[PageBlock](../types/PageBlock.md)\], 'caption' => [PageCaption](../types/PageCaption.md), \]; + +*** +

[$pageBlockFooter](../constructors/pageBlockFooter.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$pageBlockHeader](../constructors/pageBlockHeader.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$pageBlockKicker](../constructors/pageBlockKicker.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$pageBlockList](../constructors/pageBlockList.md) = \['items' => \[[PageListItem](../types/PageListItem.md)\], \]; + +*** +

[$pageBlockMap](../constructors/pageBlockMap.md) = \['geo' => [GeoPoint](../types/GeoPoint.md), 'zoom' => [int](../types/int.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), 'caption' => [PageCaption](../types/PageCaption.md), \]; + +*** +

[$pageBlockOrderedList](../constructors/pageBlockOrderedList.md) = \['items' => \[[PageListOrderedItem](../types/PageListOrderedItem.md)\], \]; + +*** +

[$pageBlockParagraph](../constructors/pageBlockParagraph.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$pageBlockPhoto](../constructors/pageBlockPhoto.md) = \['photo_id' => [long](../types/long.md), 'caption' => [PageCaption](../types/PageCaption.md), 'url' => [string](../types/string.md), 'webpage_id' => [long](../types/long.md), \]; + +*** +

[$pageBlockPreformatted](../constructors/pageBlockPreformatted.md) = \['text' => [RichText](../types/RichText.md), 'language' => [string](../types/string.md), \]; + +*** +

[$pageBlockPullquote](../constructors/pageBlockPullquote.md) = \['text' => [RichText](../types/RichText.md), 'caption' => [RichText](../types/RichText.md), \]; + +*** +

[$pageBlockRelatedArticles](../constructors/pageBlockRelatedArticles.md) = \['title' => [RichText](../types/RichText.md), 'articles' => \[[PageRelatedArticle](../types/PageRelatedArticle.md)\], \]; + +*** +

[$pageBlockSlideshow](../constructors/pageBlockSlideshow.md) = \['items' => \[[PageBlock](../types/PageBlock.md)\], 'caption' => [PageCaption](../types/PageCaption.md), \]; + +*** +

[$pageBlockSubheader](../constructors/pageBlockSubheader.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$pageBlockSubtitle](../constructors/pageBlockSubtitle.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$pageBlockTable](../constructors/pageBlockTable.md) = \['bordered' => [Bool](../types/Bool.md), 'striped' => [Bool](../types/Bool.md), 'title' => [RichText](../types/RichText.md), 'rows' => \[[PageTableRow](../types/PageTableRow.md)\], \]; + +*** +

[$pageBlockTitle](../constructors/pageBlockTitle.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$pageBlockUnsupported](../constructors/pageBlockUnsupported.md) = \[\]; + +*** +

[$pageBlockVideo](../constructors/pageBlockVideo.md) = \['autoplay' => [Bool](../types/Bool.md), 'loop' => [Bool](../types/Bool.md), 'video_id' => [long](../types/long.md), 'caption' => [PageCaption](../types/PageCaption.md), \]; + +*** +

[$pageCaption](../constructors/pageCaption.md) = \['text' => [RichText](../types/RichText.md), 'credit' => [RichText](../types/RichText.md), \]; + +*** +

[$pageListItemBlocks](../constructors/pageListItemBlocks.md) = \['blocks' => \[[PageBlock](../types/PageBlock.md)\], \]; + +*** +

[$pageListItemText](../constructors/pageListItemText.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$pageListOrderedItemBlocks](../constructors/pageListOrderedItemBlocks.md) = \['num' => [string](../types/string.md), 'blocks' => \[[PageBlock](../types/PageBlock.md)\], \]; + +*** +

[$pageListOrderedItemText](../constructors/pageListOrderedItemText.md) = \['num' => [string](../types/string.md), 'text' => [RichText](../types/RichText.md), \]; + +*** +

[$pageRelatedArticle](../constructors/pageRelatedArticle.md) = \['url' => [string](../types/string.md), 'webpage_id' => [long](../types/long.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo_id' => [long](../types/long.md), 'author' => [string](../types/string.md), 'published_date' => [int](../types/int.md), \]; + +*** +

[$pageTableCell](../constructors/pageTableCell.md) = \['header' => [Bool](../types/Bool.md), 'align_center' => [Bool](../types/Bool.md), 'align_right' => [Bool](../types/Bool.md), 'valign_middle' => [Bool](../types/Bool.md), 'valign_bottom' => [Bool](../types/Bool.md), 'text' => [RichText](../types/RichText.md), 'colspan' => [int](../types/int.md), 'rowspan' => [int](../types/int.md), \]; + +*** +

[$pageTableRow](../constructors/pageTableRow.md) = \['cells' => \[[PageTableCell](../types/PageTableCell.md)\], \]; + +*** +

[$passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow](../constructors/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.md) = \['salt1' => [bytes](../types/bytes.md), 'salt2' => [bytes](../types/bytes.md), 'g' => [int](../types/int.md), 'p' => [bytes](../types/bytes.md), \]; + +*** +

[$passwordKdfAlgoUnknown](../constructors/passwordKdfAlgoUnknown.md) = \[\]; + +*** +

[$paymentCharge](../constructors/paymentCharge.md) = \['id' => [string](../types/string.md), 'provider_charge_id' => [string](../types/string.md), \]; + +*** +

[$paymentRequestedInfo](../constructors/paymentRequestedInfo.md) = \['name' => [string](../types/string.md), 'phone' => [string](../types/string.md), 'email' => [string](../types/string.md), 'shipping_address' => [PostAddress](../types/PostAddress.md), \]; + +*** +

[$paymentSavedCredentialsCard](../constructors/paymentSavedCredentialsCard.md) = \['id' => [string](../types/string.md), 'title' => [string](../types/string.md), \]; + +*** +

[$payments\_paymentForm](../constructors/payments_paymentForm.md) = \['can_save_credentials' => [Bool](../types/Bool.md), 'password_missing' => [Bool](../types/Bool.md), 'bot_id' => [int](../types/int.md), 'invoice' => [Invoice](../types/Invoice.md), 'provider_id' => [int](../types/int.md), 'url' => [string](../types/string.md), 'native_provider' => [string](../types/string.md), 'native_params' => [DataJSON](../types/DataJSON.md), 'saved_info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), 'saved_credentials' => [PaymentSavedCredentials](../types/PaymentSavedCredentials.md), 'users' => \[[User](../types/User.md)\], \]; + +[$payments\_paymentReceipt](../constructors/payments_paymentReceipt.md) = \['date' => [int](../types/int.md), 'bot_id' => [int](../types/int.md), 'invoice' => [Invoice](../types/Invoice.md), 'provider_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), 'shipping' => [ShippingOption](../types/ShippingOption.md), 'currency' => [string](../types/string.md), 'total_amount' => [long](../types/long.md), 'credentials_title' => [string](../types/string.md), 'users' => \[[User](../types/User.md)\], \]; + +[$payments\_paymentResult](../constructors/payments_paymentResult.md) = \['updates' => [Updates](../types/Updates.md), \]; + +[$payments\_paymentVerficationNeeded](../constructors/payments_paymentVerficationNeeded.md) = \['url' => [string](../types/string.md), \]; + +[$payments\_savedInfo](../constructors/payments_savedInfo.md) = \['has_saved_credentials' => [Bool](../types/Bool.md), 'saved_info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]; + +[$payments\_validatedRequestedInfo](../constructors/payments_validatedRequestedInfo.md) = \['id' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]; + +*** +

[$peerChannel](../constructors/peerChannel.md) = \['channel_id' => [int](../types/int.md), \]; + +*** +

[$peerChat](../constructors/peerChat.md) = \['chat_id' => [int](../types/int.md), \]; + +*** +

[$peerNotifySettings](../constructors/peerNotifySettings.md) = \['show_previews' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'mute_until' => [int](../types/int.md), 'sound' => [string](../types/string.md), \]; + +*** +

[$peerSettings](../constructors/peerSettings.md) = \['report_spam' => [Bool](../types/Bool.md), \]; + +*** +

[$peerUser](../constructors/peerUser.md) = \['user_id' => [int](../types/int.md), \]; + +*** +

[$phoneCall](../constructors/phoneCall.md) = \['p2p_allowed' => [Bool](../types/Bool.md), 'id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), 'g_a_or_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), 'connection' => [PhoneConnection](../types/PhoneConnection.md), 'alternative_connections' => \[[PhoneConnection](../types/PhoneConnection.md)\], 'start_date' => [int](../types/int.md), \]; + +*** +

[$phoneCallAccepted](../constructors/phoneCallAccepted.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]; + +*** +

[$phoneCallDiscardReasonBusy](../constructors/phoneCallDiscardReasonBusy.md) = \[\]; + +*** +

[$phoneCallDiscardReasonDisconnect](../constructors/phoneCallDiscardReasonDisconnect.md) = \[\]; + +*** +

[$phoneCallDiscardReasonHangup](../constructors/phoneCallDiscardReasonHangup.md) = \[\]; + +*** +

[$phoneCallDiscardReasonMissed](../constructors/phoneCallDiscardReasonMissed.md) = \[\]; + +*** +

[$phoneCallDiscarded](../constructors/phoneCallDiscarded.md) = \['need_rating' => [Bool](../types/Bool.md), 'need_debug' => [Bool](../types/Bool.md), 'id' => [long](../types/long.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'duration' => [int](../types/int.md), \]; + +*** +

[$phoneCallEmpty](../constructors/phoneCallEmpty.md) = \['id' => [long](../types/long.md), \]; + +*** +

[$phoneCallProtocol](../constructors/phoneCallProtocol.md) = \['udp_p2p' => [Bool](../types/Bool.md), 'udp_reflector' => [Bool](../types/Bool.md), 'min_layer' => [int](../types/int.md), 'max_layer' => [int](../types/int.md), \]; + +*** +

[$phoneCallRequested](../constructors/phoneCallRequested.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]; + +*** +

[$phoneCallWaiting](../constructors/phoneCallWaiting.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), 'receive_date' => [int](../types/int.md), \]; + +*** +

[$phoneConnection](../constructors/phoneConnection.md) = \['id' => [long](../types/long.md), 'ip' => [string](../types/string.md), 'ipv6' => [string](../types/string.md), 'port' => [int](../types/int.md), 'peer_tag' => [bytes](../types/bytes.md), \]; + +*** +

[$phone\_phoneCall](../constructors/phone_phoneCall.md) = \['phone_call' => [PhoneCall](../types/PhoneCall.md), 'users' => \[[User](../types/User.md)\], \]; + +*** +

[$photo](../constructors/photo.md) = \['has_stickers' => [Bool](../types/Bool.md), 'id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), 'date' => [int](../types/int.md), 'sizes' => \[[PhotoSize](../types/PhotoSize.md)\], \]; + +*** +

[$photoCachedSize](../constructors/photoCachedSize.md) = \['type' => [string](../types/string.md), 'location' => [FileLocation](../types/FileLocation.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]; + +*** +

[$photoEmpty](../constructors/photoEmpty.md) = \['id' => [long](../types/long.md), \]; + +*** +

[$photoSize](../constructors/photoSize.md) = \['type' => [string](../types/string.md), 'location' => [FileLocation](../types/FileLocation.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), 'size' => [int](../types/int.md), \]; + +*** +

[$photoSizeEmpty](../constructors/photoSizeEmpty.md) = \['type' => [string](../types/string.md), \]; + +*** +

[$photos\_photo](../constructors/photos_photo.md) = \['photo' => [Photo](../types/Photo.md), 'users' => \[[User](../types/User.md)\], \]; + +[$photos\_photos](../constructors/photos_photos.md) = \['photos' => \[[Photo](../types/Photo.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$photos\_photosSlice](../constructors/photos_photosSlice.md) = \['count' => [int](../types/int.md), 'photos' => \[[Photo](../types/Photo.md)\], 'users' => \[[User](../types/User.md)\], \]; + +*** +

[$poll](../constructors/poll.md) = \['id' => [long](../types/long.md), 'closed' => [Bool](../types/Bool.md), 'question' => [string](../types/string.md), 'answers' => \[[PollAnswer](../types/PollAnswer.md)\], \]; + +*** +

[$pollAnswer](../constructors/pollAnswer.md) = \['text' => [string](../types/string.md), 'option' => [bytes](../types/bytes.md), \]; + +*** +

[$pollAnswerVoters](../constructors/pollAnswerVoters.md) = \['chosen' => [Bool](../types/Bool.md), 'option' => [bytes](../types/bytes.md), 'voters' => [int](../types/int.md), \]; + +*** +

[$pollResults](../constructors/pollResults.md) = \['min' => [Bool](../types/Bool.md), 'results' => \[[PollAnswerVoters](../types/PollAnswerVoters.md)\], 'total_voters' => [int](../types/int.md), \]; + +*** +

[$popularContact](../constructors/popularContact.md) = \['client_id' => [long](../types/long.md), 'importers' => [int](../types/int.md), \]; + +*** +

[$postAddress](../constructors/postAddress.md) = \['street_line1' => [string](../types/string.md), 'street_line2' => [string](../types/string.md), 'city' => [string](../types/string.md), 'state' => [string](../types/string.md), 'country_iso2' => [string](../types/string.md), 'post_code' => [string](../types/string.md), \]; + +*** +

[$privacyKeyChatInvite](../constructors/privacyKeyChatInvite.md) = \[\]; + +*** +

[$privacyKeyPhoneCall](../constructors/privacyKeyPhoneCall.md) = \[\]; + +*** +

[$privacyKeyPhoneP2P](../constructors/privacyKeyPhoneP2P.md) = \[\]; + +*** +

[$privacyKeyStatusTimestamp](../constructors/privacyKeyStatusTimestamp.md) = \[\]; + +*** +

[$privacyValueAllowAll](../constructors/privacyValueAllowAll.md) = \[\]; + +*** +

[$privacyValueAllowContacts](../constructors/privacyValueAllowContacts.md) = \[\]; + +*** +

[$privacyValueAllowUsers](../constructors/privacyValueAllowUsers.md) = \['users' => \[[int](../types/int.md)\], \]; + +*** +

[$privacyValueDisallowAll](../constructors/privacyValueDisallowAll.md) = \[\]; + +*** +

[$privacyValueDisallowContacts](../constructors/privacyValueDisallowContacts.md) = \[\]; + +*** +

[$privacyValueDisallowUsers](../constructors/privacyValueDisallowUsers.md) = \['users' => \[[int](../types/int.md)\], \]; + +*** +

[$receivedNotifyMessage](../constructors/receivedNotifyMessage.md) = \['id' => [int](../types/int.md), \]; + +*** +

[$recentMeUrlChat](../constructors/recentMeUrlChat.md) = \['url' => [string](../types/string.md), 'chat_id' => [int](../types/int.md), \]; + +*** +

[$recentMeUrlChatInvite](../constructors/recentMeUrlChatInvite.md) = \['url' => [string](../types/string.md), 'chat_invite' => [ChatInvite](../types/ChatInvite.md), \]; + +*** +

[$recentMeUrlStickerSet](../constructors/recentMeUrlStickerSet.md) = \['url' => [string](../types/string.md), 'set' => [StickerSetCovered](../types/StickerSetCovered.md), \]; + +*** +

[$recentMeUrlUnknown](../constructors/recentMeUrlUnknown.md) = \['url' => [string](../types/string.md), \]; + +*** +

[$recentMeUrlUser](../constructors/recentMeUrlUser.md) = \['url' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \]; + +*** +

[$replyInlineMarkup](../constructors/replyInlineMarkup.md) = \['rows' => \[[KeyboardButtonRow](../types/KeyboardButtonRow.md)\], \]; + +*** +

[$replyKeyboardForceReply](../constructors/replyKeyboardForceReply.md) = \['single_use' => [Bool](../types/Bool.md), 'selective' => [Bool](../types/Bool.md), \]; + +*** +

[$replyKeyboardHide](../constructors/replyKeyboardHide.md) = \['selective' => [Bool](../types/Bool.md), \]; + +*** +

[$replyKeyboardMarkup](../constructors/replyKeyboardMarkup.md) = \['resize' => [Bool](../types/Bool.md), 'single_use' => [Bool](../types/Bool.md), 'selective' => [Bool](../types/Bool.md), 'rows' => \[[KeyboardButtonRow](../types/KeyboardButtonRow.md)\], \]; + +*** +

[$savedPhoneContact](../constructors/savedPhoneContact.md) = \['phone' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'date' => [int](../types/int.md), \]; + +*** +

[$secureCredentialsEncrypted](../constructors/secureCredentialsEncrypted.md) = \['data' => [bytes](../types/bytes.md), 'hash' => [bytes](../types/bytes.md), 'secret' => [bytes](../types/bytes.md), \]; + +*** +

[$secureData](../constructors/secureData.md) = \['data' => [bytes](../types/bytes.md), 'data_hash' => [bytes](../types/bytes.md), 'secret' => [bytes](../types/bytes.md), \]; + +*** +

[$secureFile](../constructors/secureFile.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'size' => [int](../types/int.md), 'dc_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'file_hash' => [bytes](../types/bytes.md), 'secret' => [bytes](../types/bytes.md), \]; + +*** +

[$secureFileEmpty](../constructors/secureFileEmpty.md) = \[\]; + +*** +

[$securePasswordKdfAlgoPBKDF2HMACSHA512iter100000](../constructors/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.md) = \['salt' => [bytes](../types/bytes.md), \]; + +*** +

[$securePasswordKdfAlgoSHA512](../constructors/securePasswordKdfAlgoSHA512.md) = \['salt' => [bytes](../types/bytes.md), \]; + +*** +

[$securePasswordKdfAlgoUnknown](../constructors/securePasswordKdfAlgoUnknown.md) = \[\]; + +*** +

[$securePlainEmail](../constructors/securePlainEmail.md) = \['email' => [string](../types/string.md), \]; + +*** +

[$securePlainPhone](../constructors/securePlainPhone.md) = \['phone' => [string](../types/string.md), \]; + +*** +

[$secureRequiredType](../constructors/secureRequiredType.md) = \['native_names' => [Bool](../types/Bool.md), 'selfie_required' => [Bool](../types/Bool.md), 'translation_required' => [Bool](../types/Bool.md), 'type' => [SecureValueType](../types/SecureValueType.md), \]; + +*** +

[$secureRequiredTypeOneOf](../constructors/secureRequiredTypeOneOf.md) = \['types' => \[[SecureRequiredType](../types/SecureRequiredType.md)\], \]; + +*** +

[$secureSecretSettings](../constructors/secureSecretSettings.md) = \['secure_algo' => [SecurePasswordKdfAlgo](../types/SecurePasswordKdfAlgo.md), 'secure_secret' => [bytes](../types/bytes.md), 'secure_secret_id' => [long](../types/long.md), \]; + +*** +

[$secureValue](../constructors/secureValue.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'data' => [SecureData](../types/SecureData.md), 'front_side' => [SecureFile](../types/SecureFile.md), 'reverse_side' => [SecureFile](../types/SecureFile.md), 'selfie' => [SecureFile](../types/SecureFile.md), 'translation' => \[[SecureFile](../types/SecureFile.md)\], 'files' => \[[SecureFile](../types/SecureFile.md)\], 'plain_data' => [SecurePlainData](../types/SecurePlainData.md), 'hash' => [bytes](../types/bytes.md), \]; + +*** +

[$secureValueError](../constructors/secureValueError.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'hash' => [bytes](../types/bytes.md), 'text' => [string](../types/string.md), \]; + +*** +

[$secureValueErrorData](../constructors/secureValueErrorData.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'data_hash' => [bytes](../types/bytes.md), 'field' => [string](../types/string.md), 'text' => [string](../types/string.md), \]; + +*** +

[$secureValueErrorFile](../constructors/secureValueErrorFile.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'file_hash' => [bytes](../types/bytes.md), 'text' => [string](../types/string.md), \]; + +*** +

[$secureValueErrorFiles](../constructors/secureValueErrorFiles.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'file_hash' => \[[bytes](../types/bytes.md)\], 'text' => [string](../types/string.md), \]; + +*** +

[$secureValueErrorFrontSide](../constructors/secureValueErrorFrontSide.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'file_hash' => [bytes](../types/bytes.md), 'text' => [string](../types/string.md), \]; + +*** +

[$secureValueErrorReverseSide](../constructors/secureValueErrorReverseSide.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'file_hash' => [bytes](../types/bytes.md), 'text' => [string](../types/string.md), \]; + +*** +

[$secureValueErrorSelfie](../constructors/secureValueErrorSelfie.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'file_hash' => [bytes](../types/bytes.md), 'text' => [string](../types/string.md), \]; + +*** +

[$secureValueErrorTranslationFile](../constructors/secureValueErrorTranslationFile.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'file_hash' => [bytes](../types/bytes.md), 'text' => [string](../types/string.md), \]; + +*** +

[$secureValueErrorTranslationFiles](../constructors/secureValueErrorTranslationFiles.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'file_hash' => \[[bytes](../types/bytes.md)\], 'text' => [string](../types/string.md), \]; + +*** +

[$secureValueHash](../constructors/secureValueHash.md) = \['type' => [SecureValueType](../types/SecureValueType.md), 'hash' => [bytes](../types/bytes.md), \]; + +*** +

[$secureValueTypeAddress](../constructors/secureValueTypeAddress.md) = \[\]; + +*** +

[$secureValueTypeBankStatement](../constructors/secureValueTypeBankStatement.md) = \[\]; + +*** +

[$secureValueTypeDriverLicense](../constructors/secureValueTypeDriverLicense.md) = \[\]; + +*** +

[$secureValueTypeEmail](../constructors/secureValueTypeEmail.md) = \[\]; + +*** +

[$secureValueTypeIdentityCard](../constructors/secureValueTypeIdentityCard.md) = \[\]; + +*** +

[$secureValueTypeInternalPassport](../constructors/secureValueTypeInternalPassport.md) = \[\]; + +*** +

[$secureValueTypePassport](../constructors/secureValueTypePassport.md) = \[\]; + +*** +

[$secureValueTypePassportRegistration](../constructors/secureValueTypePassportRegistration.md) = \[\]; + +*** +

[$secureValueTypePersonalDetails](../constructors/secureValueTypePersonalDetails.md) = \[\]; + +*** +

[$secureValueTypePhone](../constructors/secureValueTypePhone.md) = \[\]; + +*** +

[$secureValueTypeRentalAgreement](../constructors/secureValueTypeRentalAgreement.md) = \[\]; + +*** +

[$secureValueTypeTemporaryRegistration](../constructors/secureValueTypeTemporaryRegistration.md) = \[\]; + +*** +

[$secureValueTypeUtilityBill](../constructors/secureValueTypeUtilityBill.md) = \[\]; + +*** +

[$sendMessageCancelAction](../constructors/sendMessageCancelAction.md) = \[\]; + +*** +

[$sendMessageChooseContactAction](../constructors/sendMessageChooseContactAction.md) = \[\]; + +*** +

[$sendMessageGamePlayAction](../constructors/sendMessageGamePlayAction.md) = \[\]; + +*** +

[$sendMessageGeoLocationAction](../constructors/sendMessageGeoLocationAction.md) = \[\]; + +*** +

[$sendMessageRecordAudioAction](../constructors/sendMessageRecordAudioAction.md) = \[\]; + +*** +

[$sendMessageRecordRoundAction](../constructors/sendMessageRecordRoundAction.md) = \[\]; + +*** +

[$sendMessageRecordVideoAction](../constructors/sendMessageRecordVideoAction.md) = \[\]; + +*** +

[$sendMessageTypingAction](../constructors/sendMessageTypingAction.md) = \[\]; + +*** +

[$sendMessageUploadAudioAction](../constructors/sendMessageUploadAudioAction.md) = \['progress' => [int](../types/int.md), \]; + +*** +

[$sendMessageUploadDocumentAction](../constructors/sendMessageUploadDocumentAction.md) = \['progress' => [int](../types/int.md), \]; + +*** +

[$sendMessageUploadPhotoAction](../constructors/sendMessageUploadPhotoAction.md) = \['progress' => [int](../types/int.md), \]; + +*** +

[$sendMessageUploadRoundAction](../constructors/sendMessageUploadRoundAction.md) = \['progress' => [int](../types/int.md), \]; + +*** +

[$sendMessageUploadVideoAction](../constructors/sendMessageUploadVideoAction.md) = \['progress' => [int](../types/int.md), \]; + +*** +

[$shippingOption](../constructors/shippingOption.md) = \['id' => [string](../types/string.md), 'title' => [string](../types/string.md), 'prices' => \[[LabeledPrice](../types/LabeledPrice.md)\], \]; + +*** +

[$statsURL](../constructors/statsURL.md) = \['url' => [string](../types/string.md), \]; + +*** +

[$stickerPack](../constructors/stickerPack.md) = \['emoticon' => [string](../types/string.md), 'documents' => \[[long](../types/long.md)\], \]; + +*** +

[$stickerSet](../constructors/stickerSet.md) = \['archived' => [Bool](../types/Bool.md), 'official' => [Bool](../types/Bool.md), 'masks' => [Bool](../types/Bool.md), 'installed_date' => [int](../types/int.md), 'id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'count' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]; + +*** +

[$stickerSetCovered](../constructors/stickerSetCovered.md) = \['set' => [StickerSet](../types/StickerSet.md), 'cover' => [Document](../types/Document.md), \]; + +*** +

[$stickerSetMultiCovered](../constructors/stickerSetMultiCovered.md) = \['set' => [StickerSet](../types/StickerSet.md), 'covers' => \[[Document](../types/Document.md)\], \]; + +*** +

[$storage\_fileGif](../constructors/storage_fileGif.md) = \[\]; + +[$storage\_fileJpeg](../constructors/storage_fileJpeg.md) = \[\]; + +[$storage\_fileMov](../constructors/storage_fileMov.md) = \[\]; + +[$storage\_fileMp3](../constructors/storage_fileMp3.md) = \[\]; + +[$storage\_fileMp4](../constructors/storage_fileMp4.md) = \[\]; + +[$storage\_filePartial](../constructors/storage_filePartial.md) = \[\]; + +[$storage\_filePdf](../constructors/storage_filePdf.md) = \[\]; + +[$storage\_filePng](../constructors/storage_filePng.md) = \[\]; + +[$storage\_fileUnknown](../constructors/storage_fileUnknown.md) = \[\]; + +[$storage\_fileWebp](../constructors/storage_fileWebp.md) = \[\]; + +*** +

[$textAnchor](../constructors/textAnchor.md) = \['text' => [RichText](../types/RichText.md), 'name' => [string](../types/string.md), \]; + +*** +

[$textBold](../constructors/textBold.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$textConcat](../constructors/textConcat.md) = \['texts' => \[[RichText](../types/RichText.md)\], \]; + +*** +

[$textEmail](../constructors/textEmail.md) = \['text' => [RichText](../types/RichText.md), 'email' => [string](../types/string.md), \]; + +*** +

[$textEmpty](../constructors/textEmpty.md) = \[\]; + +*** +

[$textFixed](../constructors/textFixed.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$textImage](../constructors/textImage.md) = \['document_id' => [long](../types/long.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), \]; + +*** +

[$textItalic](../constructors/textItalic.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$textMarked](../constructors/textMarked.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$textPhone](../constructors/textPhone.md) = \['text' => [RichText](../types/RichText.md), 'phone' => [string](../types/string.md), \]; + +*** +

[$textPlain](../constructors/textPlain.md) = \['text' => [string](../types/string.md), \]; + +*** +

[$textStrike](../constructors/textStrike.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$textSubscript](../constructors/textSubscript.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$textSuperscript](../constructors/textSuperscript.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$textUnderline](../constructors/textUnderline.md) = \['text' => [RichText](../types/RichText.md), \]; + +*** +

[$textUrl](../constructors/textUrl.md) = \['text' => [RichText](../types/RichText.md), 'url' => [string](../types/string.md), 'webpage_id' => [long](../types/long.md), \]; + +*** +

[$topPeer](../constructors/topPeer.md) = \['peer' => [Peer](../types/Peer.md), 'rating' => [double](../types/double.md), \]; + +*** +

[$topPeerCategoryBotsInline](../constructors/topPeerCategoryBotsInline.md) = \[\]; + +*** +

[$topPeerCategoryBotsPM](../constructors/topPeerCategoryBotsPM.md) = \[\]; + +*** +

[$topPeerCategoryChannels](../constructors/topPeerCategoryChannels.md) = \[\]; + +*** +

[$topPeerCategoryCorrespondents](../constructors/topPeerCategoryCorrespondents.md) = \[\]; + +*** +

[$topPeerCategoryGroups](../constructors/topPeerCategoryGroups.md) = \[\]; + +*** +

[$topPeerCategoryPeers](../constructors/topPeerCategoryPeers.md) = \['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'count' => [int](../types/int.md), 'peers' => \[[TopPeer](../types/TopPeer.md)\], \]; + +*** +

[$topPeerCategoryPhoneCalls](../constructors/topPeerCategoryPhoneCalls.md) = \[\]; + +*** +

[$true](../constructors/true.md) = \[\]; + +*** +

[$updateBotCallbackQuery](../constructors/updateBotCallbackQuery.md) = \['query_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'peer' => [Peer](../types/Peer.md), 'msg_id' => [int](../types/int.md), 'chat_instance' => [long](../types/long.md), 'data' => [bytes](../types/bytes.md), 'game_short_name' => [string](../types/string.md), \]; + +*** +

[$updateBotInlineQuery](../constructors/updateBotInlineQuery.md) = \['query_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'query' => [string](../types/string.md), 'geo' => [GeoPoint](../types/GeoPoint.md), 'offset' => [string](../types/string.md), \]; + +*** +

[$updateBotInlineSend](../constructors/updateBotInlineSend.md) = \['user_id' => [int](../types/int.md), 'query' => [string](../types/string.md), 'geo' => [GeoPoint](../types/GeoPoint.md), 'id' => [string](../types/string.md), 'msg_id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), \]; + +*** +

[$updateBotPrecheckoutQuery](../constructors/updateBotPrecheckoutQuery.md) = \['query_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'payload' => [bytes](../types/bytes.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), 'shipping_option_id' => [string](../types/string.md), 'currency' => [string](../types/string.md), 'total_amount' => [long](../types/long.md), \]; + +*** +

[$updateBotShippingQuery](../constructors/updateBotShippingQuery.md) = \['query_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'payload' => [bytes](../types/bytes.md), 'shipping_address' => [PostAddress](../types/PostAddress.md), \]; + +*** +

[$updateBotWebhookJSON](../constructors/updateBotWebhookJSON.md) = \['data' => [DataJSON](../types/DataJSON.md), \]; + +*** +

[$updateBotWebhookJSONQuery](../constructors/updateBotWebhookJSONQuery.md) = \['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), 'timeout' => [int](../types/int.md), \]; + +*** +

[$updateChannel](../constructors/updateChannel.md) = \['channel_id' => [int](../types/int.md), \]; + +*** +

[$updateChannelAvailableMessages](../constructors/updateChannelAvailableMessages.md) = \['channel_id' => [int](../types/int.md), 'available_min_id' => [int](../types/int.md), \]; + +*** +

[$updateChannelMessageViews](../constructors/updateChannelMessageViews.md) = \['channel_id' => [int](../types/int.md), 'id' => [int](../types/int.md), 'views' => [int](../types/int.md), \]; + +*** +

[$updateChannelPinnedMessage](../constructors/updateChannelPinnedMessage.md) = \['channel_id' => [int](../types/int.md), 'id' => [int](../types/int.md), \]; + +*** +

[$updateChannelReadMessagesContents](../constructors/updateChannelReadMessagesContents.md) = \['channel_id' => [int](../types/int.md), 'messages' => \[[int](../types/int.md)\], \]; + +*** +

[$updateChannelTooLong](../constructors/updateChannelTooLong.md) = \['channel_id' => [int](../types/int.md), 'pts' => [int](../types/int.md), \]; + +*** +

[$updateChannelWebPage](../constructors/updateChannelWebPage.md) = \['channel_id' => [int](../types/int.md), 'webpage' => [WebPage](../types/WebPage.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +*** +

[$updateChatAdmins](../constructors/updateChatAdmins.md) = \['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), 'version' => [int](../types/int.md), \]; + +*** +

[$updateChatParticipantAdd](../constructors/updateChatParticipantAdd.md) = \['chat_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), \]; + +*** +

[$updateChatParticipantAdmin](../constructors/updateChatParticipantAdmin.md) = \['chat_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'is_admin' => [Bool](../types/Bool.md), 'version' => [int](../types/int.md), \]; + +*** +

[$updateChatParticipantDelete](../constructors/updateChatParticipantDelete.md) = \['chat_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'version' => [int](../types/int.md), \]; + +*** +

[$updateChatParticipants](../constructors/updateChatParticipants.md) = \['participants' => [ChatParticipants](../types/ChatParticipants.md), \]; + +*** +

[$updateChatPinnedMessage](../constructors/updateChatPinnedMessage.md) = \['chat_id' => [int](../types/int.md), 'id' => [int](../types/int.md), \]; + +*** +

[$updateChatUserTyping](../constructors/updateChatUserTyping.md) = \['chat_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]; + +*** +

[$updateConfig](../constructors/updateConfig.md) = \[\]; + +*** +

[$updateContactLink](../constructors/updateContactLink.md) = \['user_id' => [int](../types/int.md), 'my_link' => [ContactLink](../types/ContactLink.md), 'foreign_link' => [ContactLink](../types/ContactLink.md), \]; + +*** +

[$updateContactsReset](../constructors/updateContactsReset.md) = \[\]; + +*** +

[$updateDcOptions](../constructors/updateDcOptions.md) = \['dc_options' => \[[DcOption](../types/DcOption.md)\], \]; + +*** +

[$updateDeleteChannelMessages](../constructors/updateDeleteChannelMessages.md) = \['channel_id' => [int](../types/int.md), 'messages' => \[[int](../types/int.md)\], 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +*** +

[$updateDeleteMessages](../constructors/updateDeleteMessages.md) = \['messages' => \[[int](../types/int.md)\], 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +*** +

[$updateDialogPinned](../constructors/updateDialogPinned.md) = \['pinned' => [Bool](../types/Bool.md), 'peer' => [DialogPeer](../types/DialogPeer.md), \]; + +*** +

[$updateDialogUnreadMark](../constructors/updateDialogUnreadMark.md) = \['unread' => [Bool](../types/Bool.md), 'peer' => [DialogPeer](../types/DialogPeer.md), \]; + +*** +

[$updateDraftMessage](../constructors/updateDraftMessage.md) = \['peer' => [Peer](../types/Peer.md), 'draft' => [DraftMessage](../types/DraftMessage.md), \]; + +*** +

[$updateEditChannelMessage](../constructors/updateEditChannelMessage.md) = \['message' => [Message](../types/Message.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +*** +

[$updateEditMessage](../constructors/updateEditMessage.md) = \['message' => [Message](../types/Message.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +*** +

[$updateEncryptedChatTyping](../constructors/updateEncryptedChatTyping.md) = \['chat_id' => [int](../types/int.md), \]; + +*** +

[$updateEncryptedMessagesRead](../constructors/updateEncryptedMessagesRead.md) = \['chat_id' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'date' => [int](../types/int.md), \]; + +*** +

[$updateEncryption](../constructors/updateEncryption.md) = \['chat' => [EncryptedChat](../types/EncryptedChat.md), 'date' => [int](../types/int.md), \]; + +*** +

[$updateFavedStickers](../constructors/updateFavedStickers.md) = \[\]; + +*** +

[$updateInlineBotCallbackQuery](../constructors/updateInlineBotCallbackQuery.md) = \['query_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'msg_id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'chat_instance' => [long](../types/long.md), 'data' => [bytes](../types/bytes.md), 'game_short_name' => [string](../types/string.md), \]; + +*** +

[$updateLangPack](../constructors/updateLangPack.md) = \['difference' => [LangPackDifference](../types/LangPackDifference.md), \]; + +*** +

[$updateLangPackTooLong](../constructors/updateLangPackTooLong.md) = \['lang_code' => [string](../types/string.md), \]; + +*** +

[$updateMessageID](../constructors/updateMessageID.md) = \['id' => [int](../types/int.md), \]; + +*** +

[$updateMessagePoll](../constructors/updateMessagePoll.md) = \['poll_id' => [long](../types/long.md), 'poll' => [Poll](../types/Poll.md), 'results' => [PollResults](../types/PollResults.md), \]; + +*** +

[$updateNewChannelMessage](../constructors/updateNewChannelMessage.md) = \['message' => [Message](../types/Message.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +*** +

[$updateNewEncryptedMessage](../constructors/updateNewEncryptedMessage.md) = \['message' => [EncryptedMessage](../types/EncryptedMessage.md), 'qts' => [int](../types/int.md), \]; + +*** +

[$updateNewMessage](../constructors/updateNewMessage.md) = \['message' => [Message](../types/Message.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +*** +

[$updateNewStickerSet](../constructors/updateNewStickerSet.md) = \['stickerset' => [messages\_StickerSet](../types/messages_StickerSet.md), \]; + +*** +

[$updateNotifySettings](../constructors/updateNotifySettings.md) = \['peer' => [NotifyPeer](../types/NotifyPeer.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), \]; + +*** +

[$updatePhoneCall](../constructors/updatePhoneCall.md) = \['phone_call' => [PhoneCall](../types/PhoneCall.md), \]; + +*** +

[$updatePinnedDialogs](../constructors/updatePinnedDialogs.md) = \['order' => \[[DialogPeer](../types/DialogPeer.md)\], \]; + +*** +

[$updatePrivacy](../constructors/updatePrivacy.md) = \['key' => [PrivacyKey](../types/PrivacyKey.md), 'rules' => \[[PrivacyRule](../types/PrivacyRule.md)\], \]; + +*** +

[$updatePtsChanged](../constructors/updatePtsChanged.md) = \[\]; + +*** +

[$updateReadChannelInbox](../constructors/updateReadChannelInbox.md) = \['channel_id' => [int](../types/int.md), 'max_id' => [int](../types/int.md), \]; + +*** +

[$updateReadChannelOutbox](../constructors/updateReadChannelOutbox.md) = \['channel_id' => [int](../types/int.md), 'max_id' => [int](../types/int.md), \]; + +*** +

[$updateReadFeaturedStickers](../constructors/updateReadFeaturedStickers.md) = \[\]; + +*** +

[$updateReadHistoryInbox](../constructors/updateReadHistoryInbox.md) = \['peer' => [Peer](../types/Peer.md), 'max_id' => [int](../types/int.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +*** +

[$updateReadHistoryOutbox](../constructors/updateReadHistoryOutbox.md) = \['peer' => [Peer](../types/Peer.md), 'max_id' => [int](../types/int.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +*** +

[$updateReadMessagesContents](../constructors/updateReadMessagesContents.md) = \['messages' => \[[int](../types/int.md)\], 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +*** +

[$updateRecentStickers](../constructors/updateRecentStickers.md) = \[\]; + +*** +

[$updateSavedGifs](../constructors/updateSavedGifs.md) = \[\]; + +*** +

[$updateServiceNotification](../constructors/updateServiceNotification.md) = \['popup' => [Bool](../types/Bool.md), 'inbox_date' => [int](../types/int.md), 'type' => [string](../types/string.md), 'message' => [string](../types/string.md), 'media' => [MessageMedia](../types/MessageMedia.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]; + +*** +

[$updateShort](../constructors/updateShort.md) = \['update' => [Update](../types/Update.md), 'date' => [int](../types/int.md), \]; + +*** +

[$updateShortChatMessage](../constructors/updateShortChatMessage.md) = \['out' => [Bool](../types/Bool.md), 'mentioned' => [Bool](../types/Bool.md), 'media_unread' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'from_id' => [int](../types/int.md), 'chat_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), 'date' => [int](../types/int.md), 'fwd_from' => [MessageFwdHeader](../types/MessageFwdHeader.md), 'via_bot_id' => [int](../types/int.md), 'reply_to_msg_id' => [int](../types/int.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]; + +*** +

[$updateShortMessage](../constructors/updateShortMessage.md) = \['out' => [Bool](../types/Bool.md), 'mentioned' => [Bool](../types/Bool.md), 'media_unread' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), 'date' => [int](../types/int.md), 'fwd_from' => [MessageFwdHeader](../types/MessageFwdHeader.md), 'via_bot_id' => [int](../types/int.md), 'reply_to_msg_id' => [int](../types/int.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]; + +*** +

[$updateShortSentMessage](../constructors/updateShortSentMessage.md) = \['out' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), 'date' => [int](../types/int.md), 'media' => [MessageMedia](../types/MessageMedia.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]; + +*** +

[$updateStickerSets](../constructors/updateStickerSets.md) = \[\]; + +*** +

[$updateStickerSetsOrder](../constructors/updateStickerSetsOrder.md) = \['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]; + +*** +

[$updateUserBlocked](../constructors/updateUserBlocked.md) = \['user_id' => [int](../types/int.md), 'blocked' => [Bool](../types/Bool.md), \]; + +*** +

[$updateUserName](../constructors/updateUserName.md) = \['user_id' => [int](../types/int.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'username' => [string](../types/string.md), \]; + +*** +

[$updateUserPhone](../constructors/updateUserPhone.md) = \['user_id' => [int](../types/int.md), 'phone' => [string](../types/string.md), \]; + +*** +

[$updateUserPhoto](../constructors/updateUserPhoto.md) = \['user_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'photo' => [UserProfilePhoto](../types/UserProfilePhoto.md), 'previous' => [Bool](../types/Bool.md), \]; + +*** +

[$updateUserPinnedMessage](../constructors/updateUserPinnedMessage.md) = \['user_id' => [int](../types/int.md), 'id' => [int](../types/int.md), \]; + +*** +

[$updateUserStatus](../constructors/updateUserStatus.md) = \['user_id' => [int](../types/int.md), 'status' => [UserStatus](../types/UserStatus.md), \]; + +*** +

[$updateUserTyping](../constructors/updateUserTyping.md) = \['user_id' => [int](../types/int.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]; + +*** +

[$updateWebPage](../constructors/updateWebPage.md) = \['webpage' => [WebPage](../types/WebPage.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \]; + +*** +

[$updates](../constructors/updates.md) = \['updates' => \[[Update](../types/Update.md)\], 'users' => \[[User](../types/User.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'date' => [int](../types/int.md), 'seq' => [int](../types/int.md), \]; + +*** +

[$updatesCombined](../constructors/updatesCombined.md) = \['updates' => \[[Update](../types/Update.md)\], 'users' => \[[User](../types/User.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'date' => [int](../types/int.md), 'seq_start' => [int](../types/int.md), 'seq' => [int](../types/int.md), \]; + +*** +

[$updatesTooLong](../constructors/updatesTooLong.md) = \[\]; + +*** +

[$updates\_channelDifference](../constructors/updates_channelDifference.md) = \['final' => [Bool](../types/Bool.md), 'pts' => [int](../types/int.md), 'timeout' => [int](../types/int.md), 'new_messages' => \[[Message](../types/Message.md)\], 'other_updates' => \[[Update](../types/Update.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$updates\_channelDifferenceEmpty](../constructors/updates_channelDifferenceEmpty.md) = \['final' => [Bool](../types/Bool.md), 'pts' => [int](../types/int.md), 'timeout' => [int](../types/int.md), \]; + +[$updates\_channelDifferenceTooLong](../constructors/updates_channelDifferenceTooLong.md) = \['final' => [Bool](../types/Bool.md), 'pts' => [int](../types/int.md), 'timeout' => [int](../types/int.md), 'top_message' => [int](../types/int.md), 'read_inbox_max_id' => [int](../types/int.md), 'read_outbox_max_id' => [int](../types/int.md), 'unread_count' => [int](../types/int.md), 'unread_mentions_count' => [int](../types/int.md), 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; + +[$updates\_difference](../constructors/updates_difference.md) = \['new_messages' => \[[Message](../types/Message.md)\], 'new_encrypted_messages' => \[[EncryptedMessage](../types/EncryptedMessage.md)\], 'other_updates' => \[[Update](../types/Update.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], 'state' => [updates\_State](../types/updates_State.md), \]; + +[$updates\_differenceEmpty](../constructors/updates_differenceEmpty.md) = \['date' => [int](../types/int.md), 'seq' => [int](../types/int.md), \]; + +[$updates\_differenceSlice](../constructors/updates_differenceSlice.md) = \['new_messages' => \[[Message](../types/Message.md)\], 'new_encrypted_messages' => \[[EncryptedMessage](../types/EncryptedMessage.md)\], 'other_updates' => \[[Update](../types/Update.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], 'intermediate_state' => [updates\_State](../types/updates_State.md), \]; + +[$updates\_differenceTooLong](../constructors/updates_differenceTooLong.md) = \['pts' => [int](../types/int.md), \]; + +[$updates\_state](../constructors/updates_state.md) = \['pts' => [int](../types/int.md), 'qts' => [int](../types/int.md), 'date' => [int](../types/int.md), 'seq' => [int](../types/int.md), 'unread_count' => [int](../types/int.md), \]; + +*** +

[$upload\_cdnFile](../constructors/upload_cdnFile.md) = \['bytes' => [bytes](../types/bytes.md), \]; + +[$upload\_cdnFileReuploadNeeded](../constructors/upload_cdnFileReuploadNeeded.md) = \['request_token' => [bytes](../types/bytes.md), \]; + +[$upload\_file](../constructors/upload_file.md) = \['type' => [storage\_FileType](../types/storage_FileType.md), 'mtime' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]; + +[$upload\_fileCdnRedirect](../constructors/upload_fileCdnRedirect.md) = \['dc_id' => [int](../types/int.md), 'file_token' => [bytes](../types/bytes.md), 'encryption_key' => [bytes](../types/bytes.md), 'encryption_iv' => [bytes](../types/bytes.md), 'file_hashes' => \[[FileHash](../types/FileHash.md)\], \]; + +[$upload\_webFile](../constructors/upload_webFile.md) = \['size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'file_type' => [storage\_FileType](../types/storage_FileType.md), 'mtime' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]; + +*** +

[$user](../constructors/user.md) = \['self' => [Bool](../types/Bool.md), 'contact' => [Bool](../types/Bool.md), 'mutual_contact' => [Bool](../types/Bool.md), 'deleted' => [Bool](../types/Bool.md), 'bot' => [Bool](../types/Bool.md), 'bot_chat_history' => [Bool](../types/Bool.md), 'bot_nochats' => [Bool](../types/Bool.md), 'verified' => [Bool](../types/Bool.md), 'restricted' => [Bool](../types/Bool.md), 'min' => [Bool](../types/Bool.md), 'bot_inline_geo' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'username' => [string](../types/string.md), 'phone' => [string](../types/string.md), 'photo' => [UserProfilePhoto](../types/UserProfilePhoto.md), 'status' => [UserStatus](../types/UserStatus.md), 'bot_info_version' => [int](../types/int.md), 'restriction_reason' => [string](../types/string.md), 'bot_inline_placeholder' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), \]; + +*** +

[$userEmpty](../constructors/userEmpty.md) = \['id' => [int](../types/int.md), \]; + +*** +

[$userFull](../constructors/userFull.md) = \['blocked' => [Bool](../types/Bool.md), 'phone_calls_available' => [Bool](../types/Bool.md), 'phone_calls_private' => [Bool](../types/Bool.md), 'can_pin_message' => [Bool](../types/Bool.md), 'user' => [User](../types/User.md), 'about' => [string](../types/string.md), 'link' => [contacts\_Link](../types/contacts_Link.md), 'profile_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'bot_info' => [BotInfo](../types/BotInfo.md), 'pinned_msg_id' => [int](../types/int.md), 'common_chats_count' => [int](../types/int.md), \]; + +*** +

[$userProfilePhoto](../constructors/userProfilePhoto.md) = \['photo_id' => [long](../types/long.md), 'photo_small' => [FileLocation](../types/FileLocation.md), 'photo_big' => [FileLocation](../types/FileLocation.md), \]; + +*** +

[$userProfilePhotoEmpty](../constructors/userProfilePhotoEmpty.md) = \[\]; + +*** +

[$userStatusEmpty](../constructors/userStatusEmpty.md) = \[\]; + +*** +

[$userStatusLastMonth](../constructors/userStatusLastMonth.md) = \[\]; + +*** +

[$userStatusLastWeek](../constructors/userStatusLastWeek.md) = \[\]; + +*** +

[$userStatusOffline](../constructors/userStatusOffline.md) = \['was_online' => [int](../types/int.md), \]; + +*** +

[$userStatusOnline](../constructors/userStatusOnline.md) = \['expires' => [int](../types/int.md), \]; + +*** +

[$userStatusRecently](../constructors/userStatusRecently.md) = \[\]; + +*** +

[$wallPaper](../constructors/wallPaper.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'sizes' => \[[PhotoSize](../types/PhotoSize.md)\], 'color' => [int](../types/int.md), \]; + +*** +

[$wallPaperSolid](../constructors/wallPaperSolid.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'bg_color' => [int](../types/int.md), 'color' => [int](../types/int.md), \]; + +*** +

[$webAuthorization](../constructors/webAuthorization.md) = \['hash' => [long](../types/long.md), 'bot_id' => [int](../types/int.md), 'domain' => [string](../types/string.md), 'browser' => [string](../types/string.md), 'platform' => [string](../types/string.md), 'date_created' => [int](../types/int.md), 'date_active' => [int](../types/int.md), 'ip' => [string](../types/string.md), 'region' => [string](../types/string.md), \]; + +*** +

[$webDocument](../constructors/webDocument.md) = \['url' => [string](../types/string.md), 'access_hash' => [long](../types/long.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \]; + +*** +

[$webDocumentNoProxy](../constructors/webDocumentNoProxy.md) = \['url' => [string](../types/string.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \]; + +*** +

[$webPage](../constructors/webPage.md) = \['id' => [long](../types/long.md), 'url' => [string](../types/string.md), 'display_url' => [string](../types/string.md), 'hash' => [int](../types/int.md), 'type' => [string](../types/string.md), 'site_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'embed_url' => [string](../types/string.md), 'embed_type' => [string](../types/string.md), 'embed_width' => [int](../types/int.md), 'embed_height' => [int](../types/int.md), 'duration' => [int](../types/int.md), 'author' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'cached_page' => [Page](../types/Page.md), \]; + +*** +

[$webPageEmpty](../constructors/webPageEmpty.md) = \['id' => [long](../types/long.md), \]; + +*** +

[$webPageNotModified](../constructors/webPageNotModified.md) = \[\]; + +*** +

[$webPagePending](../constructors/webPagePending.md) = \['id' => [long](../types/long.md), 'date' => [int](../types/int.md), \]; + diff --git a/old_docs/API_docs_v91/constructors/accessPointRule.md b/old_docs/API_docs_v91/constructors/accessPointRule.md new file mode 100644 index 00000000..1509f3da --- /dev/null +++ b/old_docs/API_docs_v91/constructors/accessPointRule.md @@ -0,0 +1,46 @@ +--- +title: accessPointRule +description: Access point rule +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: accessPointRule +[Back to constructors index](index.md) + + + +Access point rule + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_prefix\_rules|[string](../types/string.md) | Yes|Phone prefix rules| +|dc\_id|[int](../types/int.md) | Yes|DC ID| +|ips|Array of [IpPort](../types/IpPort.md) | Yes|Ips| + + + +### Type: [AccessPointRule](../types/AccessPointRule.md) + + +### Example: + +```php +$accessPointRule = ['_' => 'accessPointRule', 'phone_prefix_rules' => 'string', 'dc_id' => int, 'ips' => [IpPort, IpPort]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "accessPointRule", "phone_prefix_rules": "string", "dc_id": int, "ips": [IpPort]} +``` + + +Or, if you're into Lua: + +```lua +accessPointRule={_='accessPointRule', phone_prefix_rules='string', dc_id=int, ips={IpPort}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/accountDaysTTL.md b/old_docs/API_docs_v91/constructors/accountDaysTTL.md new file mode 100644 index 00000000..40dc0847 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/accountDaysTTL.md @@ -0,0 +1,44 @@ +--- +title: accountDaysTTL +description: Account TTL in days +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: accountDaysTTL +[Back to constructors index](index.md) + + + +Account TTL in days + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|days|[int](../types/int.md) | Yes|Days| + + + +### Type: [AccountDaysTTL](../types/AccountDaysTTL.md) + + +### Example: + +```php +$accountDaysTTL = ['_' => 'accountDaysTTL', 'days' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "accountDaysTTL", "days": int} +``` + + +Or, if you're into Lua: + +```lua +accountDaysTTL={_='accountDaysTTL', days=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/account_authorizationForm.md b/old_docs/API_docs_v91/constructors/account_authorizationForm.md new file mode 100644 index 00000000..47c92d3f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/account_authorizationForm.md @@ -0,0 +1,48 @@ +--- +title: account.authorizationForm +description: Telegram passport authorization form +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.authorizationForm +[Back to constructors index](index.md) + + + +Telegram passport authorization form + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|required\_types|Array of [SecureRequiredType](../types/SecureRequiredType.md) | Yes|Required types| +|values|Array of [SecureValue](../types/SecureValue.md) | Yes|Values| +|errors|Array of [SecureValueError](../types/SecureValueError.md) | Yes|Errors| +|users|Array of [User](../types/User.md) | Yes|Users| +|privacy\_policy\_url|[string](../types/string.md) | Optional|Privacy policy URL| + + + +### Type: [account\_AuthorizationForm](../types/account_AuthorizationForm.md) + + +### Example: + +```php +$account_authorizationForm = ['_' => 'account.authorizationForm', 'required_types' => [SecureRequiredType, SecureRequiredType], 'values' => [SecureValue, SecureValue], 'errors' => [SecureValueError, SecureValueError], 'users' => [User, User], 'privacy_policy_url' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.authorizationForm", "required_types": [SecureRequiredType], "values": [SecureValue], "errors": [SecureValueError], "users": [User], "privacy_policy_url": "string"} +``` + + +Or, if you're into Lua: + +```lua +account_authorizationForm={_='account.authorizationForm', required_types={SecureRequiredType}, values={SecureValue}, errors={SecureValueError}, users={User}, privacy_policy_url='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/account_authorizations.md b/old_docs/API_docs_v91/constructors/account_authorizations.md new file mode 100644 index 00000000..f46b37d0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/account_authorizations.md @@ -0,0 +1,44 @@ +--- +title: account.authorizations +description: Authorized clients for this account +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.authorizations +[Back to constructors index](index.md) + + + +Authorized clients for this account + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|authorizations|Array of [Authorization](../types/Authorization.md) | Yes|Authorizations| + + + +### Type: [account\_Authorizations](../types/account_Authorizations.md) + + +### Example: + +```php +$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.authorizations", "authorizations": [Authorization]} +``` + + +Or, if you're into Lua: + +```lua +account_authorizations={_='account.authorizations', authorizations={Authorization}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/account_password.md b/old_docs/API_docs_v91/constructors/account_password.md new file mode 100644 index 00000000..7938b696 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/account_password.md @@ -0,0 +1,54 @@ +--- +title: account.password +description: Password +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.password +[Back to constructors index](index.md) + + + +Password + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|has\_recovery|[Bool](../types/Bool.md) | Optional|Has recovery?| +|has\_secure\_values|[Bool](../types/Bool.md) | Optional|Has secure values?| +|has\_password|[Bool](../types/Bool.md) | Optional|Has password?| +|current\_algo|[PasswordKdfAlgo](../types/PasswordKdfAlgo.md) | Optional|Current algo| +|srp\_B|[bytes](../types/bytes.md) | Optional|Srp b| +|srp\_id|[long](../types/long.md) | Optional|Srp ID| +|hint|[string](../types/string.md) | Optional|Hint| +|email\_unconfirmed\_pattern|[string](../types/string.md) | Optional|Email unconfirmed pattern| +|new\_algo|[PasswordKdfAlgo](../types/PasswordKdfAlgo.md) | Yes|New algo| +|new\_secure\_algo|[SecurePasswordKdfAlgo](../types/SecurePasswordKdfAlgo.md) | Yes|New secure algo| +|secure\_random|[bytes](../types/bytes.md) | Yes|Secure random| + + + +### Type: [account\_Password](../types/account_Password.md) + + +### Example: + +```php +$account_password = ['_' => 'account.password', 'has_recovery' => Bool, 'has_secure_values' => Bool, 'has_password' => Bool, 'current_algo' => PasswordKdfAlgo, 'srp_B' => 'bytes', 'srp_id' => long, 'hint' => 'string', 'email_unconfirmed_pattern' => 'string', 'new_algo' => PasswordKdfAlgo, 'new_secure_algo' => SecurePasswordKdfAlgo, 'secure_random' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.password", "has_recovery": Bool, "has_secure_values": Bool, "has_password": Bool, "current_algo": PasswordKdfAlgo, "srp_B": {"_": "bytes", "bytes":"base64 encoded bytes"}, "srp_id": long, "hint": "string", "email_unconfirmed_pattern": "string", "new_algo": PasswordKdfAlgo, "new_secure_algo": SecurePasswordKdfAlgo, "secure_random": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +account_password={_='account.password', has_recovery=Bool, has_secure_values=Bool, has_password=Bool, current_algo=PasswordKdfAlgo, srp_B='bytes', srp_id=long, hint='string', email_unconfirmed_pattern='string', new_algo=PasswordKdfAlgo, new_secure_algo=SecurePasswordKdfAlgo, secure_random='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/account_passwordInputSettings.md b/old_docs/API_docs_v91/constructors/account_passwordInputSettings.md new file mode 100644 index 00000000..fd0b27cd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/account_passwordInputSettings.md @@ -0,0 +1,48 @@ +--- +title: account.passwordInputSettings +description: 2FA password settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.passwordInputSettings +[Back to constructors index](index.md) + + + +2FA password settings + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|new\_algo|[PasswordKdfAlgo](../types/PasswordKdfAlgo.md) | Optional|New algo| +|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`| +|hint|[string](../types/string.md) | Optional|Hint| +|email|[string](../types/string.md) | Optional|Email| +|new\_secure\_settings|[SecureSecretSettings](../types/SecureSecretSettings.md) | Optional|New secure settings| + + + +### Type: [account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) + + +### Example: + +```php +$account_passwordInputSettings = ['_' => 'account.passwordInputSettings', 'new_algo' => PasswordKdfAlgo, 'new_password_hash' => 'bytes', 'hint' => 'string', 'email' => 'string', 'new_secure_settings' => SecureSecretSettings]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.passwordInputSettings", "new_algo": PasswordKdfAlgo, "new_password_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string", "email": "string", "new_secure_settings": SecureSecretSettings} +``` + + +Or, if you're into Lua: + +```lua +account_passwordInputSettings={_='account.passwordInputSettings', new_algo=PasswordKdfAlgo, new_password_hash='bytes', hint='string', email='string', new_secure_settings=SecureSecretSettings} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/account_passwordSettings.md b/old_docs/API_docs_v91/constructors/account_passwordSettings.md new file mode 100644 index 00000000..1ed01f07 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/account_passwordSettings.md @@ -0,0 +1,45 @@ +--- +title: account.passwordSettings +description: Password settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.passwordSettings +[Back to constructors index](index.md) + + + +Password settings + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|email|[string](../types/string.md) | Optional|Email| +|secure\_settings|[SecureSecretSettings](../types/SecureSecretSettings.md) | Optional|Secure settings| + + + +### Type: [account\_PasswordSettings](../types/account_PasswordSettings.md) + + +### Example: + +```php +$account_passwordSettings = ['_' => 'account.passwordSettings', 'email' => 'string', 'secure_settings' => SecureSecretSettings]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.passwordSettings", "email": "string", "secure_settings": SecureSecretSettings} +``` + + +Or, if you're into Lua: + +```lua +account_passwordSettings={_='account.passwordSettings', email='string', secure_settings=SecureSecretSettings} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/account_privacyRules.md b/old_docs/API_docs_v91/constructors/account_privacyRules.md new file mode 100644 index 00000000..78cefb2c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/account_privacyRules.md @@ -0,0 +1,45 @@ +--- +title: account.privacyRules +description: Privacy rules +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.privacyRules +[Back to constructors index](index.md) + + + +Privacy rules + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|rules|Array of [PrivacyRule](../types/PrivacyRule.md) | Yes|Rules| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [account\_PrivacyRules](../types/account_PrivacyRules.md) + + +### Example: + +```php +$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.privacyRules", "rules": [PrivacyRule], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +account_privacyRules={_='account.privacyRules', rules={PrivacyRule}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/account_sentEmailCode.md b/old_docs/API_docs_v91/constructors/account_sentEmailCode.md new file mode 100644 index 00000000..61c9373e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/account_sentEmailCode.md @@ -0,0 +1,45 @@ +--- +title: account.sentEmailCode +description: Sent email code +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.sentEmailCode +[Back to constructors index](index.md) + + + +Sent email code + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|email\_pattern|[string](../types/string.md) | Yes|Email pattern| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [account\_SentEmailCode](../types/account_SentEmailCode.md) + + +### Example: + +```php +$account_sentEmailCode = ['_' => 'account.sentEmailCode', 'email_pattern' => 'string', 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.sentEmailCode", "email_pattern": "string", "length": int} +``` + + +Or, if you're into Lua: + +```lua +account_sentEmailCode={_='account.sentEmailCode', email_pattern='string', length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/account_takeout.md b/old_docs/API_docs_v91/constructors/account_takeout.md new file mode 100644 index 00000000..b81d953b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/account_takeout.md @@ -0,0 +1,44 @@ +--- +title: account.takeout +description: Takeout +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.takeout +[Back to constructors index](index.md) + + + +Takeout + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| + + + +### Type: [account\_Takeout](../types/account_Takeout.md) + + +### Example: + +```php +$account_takeout = ['_' => 'account.takeout', 'id' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.takeout", "id": long} +``` + + +Or, if you're into Lua: + +```lua +account_takeout={_='account.takeout', id=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/account_tmpPassword.md b/old_docs/API_docs_v91/constructors/account_tmpPassword.md new file mode 100644 index 00000000..7436ac02 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/account_tmpPassword.md @@ -0,0 +1,45 @@ +--- +title: account.tmpPassword +description: Tmp password +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.tmpPassword +[Back to constructors index](index.md) + + + +Tmp password + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|tmp\_password|[bytes](../types/bytes.md) | Yes|Tmp password| +|valid\_until|[int](../types/int.md) | Yes|Valid until| + + + +### Type: [account\_TmpPassword](../types/account_TmpPassword.md) + + +### Example: + +```php +$account_tmpPassword = ['_' => 'account.tmpPassword', 'tmp_password' => 'bytes', 'valid_until' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.tmpPassword", "tmp_password": {"_": "bytes", "bytes":"base64 encoded bytes"}, "valid_until": int} +``` + + +Or, if you're into Lua: + +```lua +account_tmpPassword={_='account.tmpPassword', tmp_password='bytes', valid_until=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/account_webAuthorizations.md b/old_docs/API_docs_v91/constructors/account_webAuthorizations.md new file mode 100644 index 00000000..84fd41ab --- /dev/null +++ b/old_docs/API_docs_v91/constructors/account_webAuthorizations.md @@ -0,0 +1,45 @@ +--- +title: account.webAuthorizations +description: Telegram login authorizations +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: account.webAuthorizations +[Back to constructors index](index.md) + + + +Telegram login authorizations + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|authorizations|Array of [WebAuthorization](../types/WebAuthorization.md) | Yes|Authorizations| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [account\_WebAuthorizations](../types/account_WebAuthorizations.md) + + +### Example: + +```php +$account_webAuthorizations = ['_' => 'account.webAuthorizations', 'authorizations' => [WebAuthorization, WebAuthorization], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "account.webAuthorizations", "authorizations": [WebAuthorization], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +account_webAuthorizations={_='account.webAuthorizations', authorizations={WebAuthorization}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_authorization.md b/old_docs/API_docs_v91/constructors/auth_authorization.md new file mode 100644 index 00000000..1583e614 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_authorization.md @@ -0,0 +1,45 @@ +--- +title: auth.authorization +description: Authorization +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.authorization +[Back to constructors index](index.md) + + + +Authorization + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|tmp\_sessions|[int](../types/int.md) | Optional|Temporary sessions| +|user|[User](../types/User.md) | Optional|User| + + + +### Type: [auth\_Authorization](../types/auth_Authorization.md) + + +### Example: + +```php +$auth_authorization = ['_' => 'auth.authorization', 'tmp_sessions' => int, 'user' => User]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.authorization", "tmp_sessions": int, "user": User} +``` + + +Or, if you're into Lua: + +```lua +auth_authorization={_='auth.authorization', tmp_sessions=int, user=User} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_checkedPhone.md b/old_docs/API_docs_v91/constructors/auth_checkedPhone.md new file mode 100644 index 00000000..adc92f2d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_checkedPhone.md @@ -0,0 +1,44 @@ +--- +title: auth.checkedPhone +description: Checked phone +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.checkedPhone +[Back to constructors index](index.md) + + + +Checked phone + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_registered|[Bool](../types/Bool.md) | Yes|Phone registered?| + + + +### Type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md) + + +### Example: + +```php +$auth_checkedPhone = ['_' => 'auth.checkedPhone', 'phone_registered' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.checkedPhone", "phone_registered": Bool} +``` + + +Or, if you're into Lua: + +```lua +auth_checkedPhone={_='auth.checkedPhone', phone_registered=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_codeTypeCall.md b/old_docs/API_docs_v91/constructors/auth_codeTypeCall.md new file mode 100644 index 00000000..b419bc76 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_codeTypeCall.md @@ -0,0 +1,39 @@ +--- +title: auth.codeTypeCall +description: Auth code type: call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.codeTypeCall +[Back to constructors index](index.md) + + + +Auth code type: call + + + + +### Type: [auth\_CodeType](../types/auth_CodeType.md) + + +### Example: + +```php +$auth_codeTypeCall = ['_' => 'auth.codeTypeCall']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.codeTypeCall"} +``` + + +Or, if you're into Lua: + +```lua +auth_codeTypeCall={_='auth.codeTypeCall'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_codeTypeFlashCall.md b/old_docs/API_docs_v91/constructors/auth_codeTypeFlashCall.md new file mode 100644 index 00000000..381aec61 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_codeTypeFlashCall.md @@ -0,0 +1,39 @@ +--- +title: auth.codeTypeFlashCall +description: Auth code type: flash call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.codeTypeFlashCall +[Back to constructors index](index.md) + + + +Auth code type: flash call + + + + +### Type: [auth\_CodeType](../types/auth_CodeType.md) + + +### Example: + +```php +$auth_codeTypeFlashCall = ['_' => 'auth.codeTypeFlashCall']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.codeTypeFlashCall"} +``` + + +Or, if you're into Lua: + +```lua +auth_codeTypeFlashCall={_='auth.codeTypeFlashCall'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_codeTypeSms.md b/old_docs/API_docs_v91/constructors/auth_codeTypeSms.md new file mode 100644 index 00000000..210956a2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_codeTypeSms.md @@ -0,0 +1,39 @@ +--- +title: auth.codeTypeSms +description: Auth code type: SMS +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.codeTypeSms +[Back to constructors index](index.md) + + + +Auth code type: SMS + + + + +### Type: [auth\_CodeType](../types/auth_CodeType.md) + + +### Example: + +```php +$auth_codeTypeSms = ['_' => 'auth.codeTypeSms']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.codeTypeSms"} +``` + + +Or, if you're into Lua: + +```lua +auth_codeTypeSms={_='auth.codeTypeSms'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_exportedAuthorization.md b/old_docs/API_docs_v91/constructors/auth_exportedAuthorization.md new file mode 100644 index 00000000..fb77de4c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_exportedAuthorization.md @@ -0,0 +1,45 @@ +--- +title: auth.exportedAuthorization +description: Exported authorization +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.exportedAuthorization +[Back to constructors index](index.md) + + + +Exported authorization + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| +|bytes|[bytes](../types/bytes.md) | Yes|Bytes| + + + +### Type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + + +### Example: + +```php +$auth_exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int, 'bytes' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.exportedAuthorization", "id": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +auth_exportedAuthorization={_='auth.exportedAuthorization', id=int, bytes='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_passwordRecovery.md b/old_docs/API_docs_v91/constructors/auth_passwordRecovery.md new file mode 100644 index 00000000..0e372f5a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_passwordRecovery.md @@ -0,0 +1,44 @@ +--- +title: auth.passwordRecovery +description: Password recovery +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.passwordRecovery +[Back to constructors index](index.md) + + + +Password recovery + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|email\_pattern|[string](../types/string.md) | Yes|Email pattern| + + + +### Type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + + +### Example: + +```php +$auth_passwordRecovery = ['_' => 'auth.passwordRecovery', 'email_pattern' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.passwordRecovery", "email_pattern": "string"} +``` + + +Or, if you're into Lua: + +```lua +auth_passwordRecovery={_='auth.passwordRecovery', email_pattern='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_sentCode.md b/old_docs/API_docs_v91/constructors/auth_sentCode.md new file mode 100644 index 00000000..72fc66de --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_sentCode.md @@ -0,0 +1,49 @@ +--- +title: auth.sentCode +description: Sent code +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.sentCode +[Back to constructors index](index.md) + + + +Sent code + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_registered|[Bool](../types/Bool.md) | Optional|Phone registered?| +|type|[auth\_SentCodeType](../types/auth_SentCodeType.md) | Yes|Type| +|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| +|next\_type|[auth\_CodeType](../types/auth_CodeType.md) | Optional|Next type| +|timeout|[int](../types/int.md) | Optional|Timeout| +|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Optional|Terms of service| + + + +### Type: [auth\_SentCode](../types/auth_SentCode.md) + + +### Example: + +```php +$auth_sentCode = ['_' => 'auth.sentCode', 'phone_registered' => Bool, 'type' => auth_SentCodeType, 'phone_code_hash' => 'string', 'next_type' => auth_CodeType, 'timeout' => int, 'terms_of_service' => help_TermsOfService]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.sentCode", "phone_registered": Bool, "type": auth_SentCodeType, "phone_code_hash": "string", "next_type": auth_CodeType, "timeout": int, "terms_of_service": help_TermsOfService} +``` + + +Or, if you're into Lua: + +```lua +auth_sentCode={_='auth.sentCode', phone_registered=Bool, type=auth_SentCodeType, phone_code_hash='string', next_type=auth_CodeType, timeout=int, terms_of_service=help_TermsOfService} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_sentCodeTypeApp.md b/old_docs/API_docs_v91/constructors/auth_sentCodeTypeApp.md new file mode 100644 index 00000000..67861361 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_sentCodeTypeApp.md @@ -0,0 +1,44 @@ +--- +title: auth.sentCodeTypeApp +description: Sent code type app +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.sentCodeTypeApp +[Back to constructors index](index.md) + + + +Sent code type app + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md) + + +### Example: + +```php +$auth_sentCodeTypeApp = ['_' => 'auth.sentCodeTypeApp', 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.sentCodeTypeApp", "length": int} +``` + + +Or, if you're into Lua: + +```lua +auth_sentCodeTypeApp={_='auth.sentCodeTypeApp', length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_sentCodeTypeCall.md b/old_docs/API_docs_v91/constructors/auth_sentCodeTypeCall.md new file mode 100644 index 00000000..087184c6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_sentCodeTypeCall.md @@ -0,0 +1,44 @@ +--- +title: auth.sentCodeTypeCall +description: Sent code type call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.sentCodeTypeCall +[Back to constructors index](index.md) + + + +Sent code type call + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md) + + +### Example: + +```php +$auth_sentCodeTypeCall = ['_' => 'auth.sentCodeTypeCall', 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.sentCodeTypeCall", "length": int} +``` + + +Or, if you're into Lua: + +```lua +auth_sentCodeTypeCall={_='auth.sentCodeTypeCall', length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_sentCodeTypeFlashCall.md b/old_docs/API_docs_v91/constructors/auth_sentCodeTypeFlashCall.md new file mode 100644 index 00000000..631318fa --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_sentCodeTypeFlashCall.md @@ -0,0 +1,44 @@ +--- +title: auth.sentCodeTypeFlashCall +description: Sent code type flash call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.sentCodeTypeFlashCall +[Back to constructors index](index.md) + + + +Sent code type flash call + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|pattern|[string](../types/string.md) | Yes|Pattern| + + + +### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md) + + +### Example: + +```php +$auth_sentCodeTypeFlashCall = ['_' => 'auth.sentCodeTypeFlashCall', 'pattern' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.sentCodeTypeFlashCall", "pattern": "string"} +``` + + +Or, if you're into Lua: + +```lua +auth_sentCodeTypeFlashCall={_='auth.sentCodeTypeFlashCall', pattern='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/auth_sentCodeTypeSms.md b/old_docs/API_docs_v91/constructors/auth_sentCodeTypeSms.md new file mode 100644 index 00000000..7da3a071 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/auth_sentCodeTypeSms.md @@ -0,0 +1,44 @@ +--- +title: auth.sentCodeTypeSms +description: Sent code type sms +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: auth.sentCodeTypeSms +[Back to constructors index](index.md) + + + +Sent code type sms + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md) + + +### Example: + +```php +$auth_sentCodeTypeSms = ['_' => 'auth.sentCodeTypeSms', 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "auth.sentCodeTypeSms", "length": int} +``` + + +Or, if you're into Lua: + +```lua +auth_sentCodeTypeSms={_='auth.sentCodeTypeSms', length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/authorization.md b/old_docs/API_docs_v91/constructors/authorization.md new file mode 100644 index 00000000..dadd9b72 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/authorization.md @@ -0,0 +1,58 @@ +--- +title: authorization +description: Authorization +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: authorization +[Back to constructors index](index.md) + + + +Authorization + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|current|[Bool](../types/Bool.md) | Optional|Current?| +|official\_app|[Bool](../types/Bool.md) | Optional|Official app?| +|password\_pending|[Bool](../types/Bool.md) | Optional|Password pending?| +|hash|[long](../types/long.md) | Yes|Hash| +|device\_model|[string](../types/string.md) | Yes|Device model| +|platform|[string](../types/string.md) | Yes|Platform| +|system\_version|[string](../types/string.md) | Yes|System version| +|api\_id|[int](../types/int.md) | Yes|Api ID| +|app\_name|[string](../types/string.md) | Yes|App name| +|app\_version|[string](../types/string.md) | Yes|App version| +|date\_created|[int](../types/int.md) | Yes|Date created| +|date\_active|[int](../types/int.md) | Yes|Date active| +|ip|[string](../types/string.md) | Yes|Ip| +|country|[string](../types/string.md) | Yes|Country| +|region|[string](../types/string.md) | Yes|Region| + + + +### Type: [Authorization](../types/Authorization.md) + + +### Example: + +```php +$authorization = ['_' => 'authorization', 'current' => Bool, 'official_app' => Bool, 'password_pending' => Bool, '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']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "authorization", "current": Bool, "official_app": Bool, "password_pending": Bool, "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"} +``` + + +Or, if you're into Lua: + +```lua +authorization={_='authorization', current=Bool, official_app=Bool, password_pending=Bool, 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'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/boolFalse.md b/old_docs/API_docs_v91/constructors/boolFalse.md new file mode 100644 index 00000000..350811df --- /dev/null +++ b/old_docs/API_docs_v91/constructors/boolFalse.md @@ -0,0 +1,9 @@ +--- +title: boolFalse +description: Represents a boolean with value equal to false +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# boolFalse +[Back to constructor index](index.md) + + Represents a boolean with value equal to `false`. diff --git a/old_docs/API_docs_v91/constructors/boolTrue.md b/old_docs/API_docs_v91/constructors/boolTrue.md new file mode 100644 index 00000000..a7de7705 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/boolTrue.md @@ -0,0 +1,9 @@ +--- +title: boolTrue +description: Represents a boolean with value equal to true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# boolTrue +[Back to constructor index](index.md) + +Represents a boolean with value equal to `true`. diff --git a/old_docs/API_docs_v91/constructors/botCommand.md b/old_docs/API_docs_v91/constructors/botCommand.md new file mode 100644 index 00000000..5b65c2fc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/botCommand.md @@ -0,0 +1,45 @@ +--- +title: botCommand +description: Bot command +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: botCommand +[Back to constructors index](index.md) + + + +Bot command + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|command|[string](../types/string.md) | Yes|Command| +|description|[string](../types/string.md) | Yes|Description| + + + +### Type: [BotCommand](../types/BotCommand.md) + + +### Example: + +```php +$botCommand = ['_' => 'botCommand', 'command' => 'string', 'description' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "botCommand", "command": "string", "description": "string"} +``` + + +Or, if you're into Lua: + +```lua +botCommand={_='botCommand', command='string', description='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/botInfo.md b/old_docs/API_docs_v91/constructors/botInfo.md new file mode 100644 index 00000000..221c3334 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/botInfo.md @@ -0,0 +1,46 @@ +--- +title: botInfo +description: Bot info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: botInfo +[Back to constructors index](index.md) + + + +Bot info + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|description|[string](../types/string.md) | Yes|Description| +|commands|Array of [BotCommand](../types/BotCommand.md) | Yes|Commands| + + + +### Type: [BotInfo](../types/BotInfo.md) + + +### Example: + +```php +$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "botInfo", "user_id": int, "description": "string", "commands": [BotCommand]} +``` + + +Or, if you're into Lua: + +```lua +botInfo={_='botInfo', user_id=int, description='string', commands={BotCommand}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/botInlineMediaResult.md b/old_docs/API_docs_v91/constructors/botInlineMediaResult.md new file mode 100644 index 00000000..4e9eb026 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/botInlineMediaResult.md @@ -0,0 +1,50 @@ +--- +title: botInlineMediaResult +description: Bot inline media result +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: botInlineMediaResult +[Back to constructors index](index.md) + + + +Bot inline media result + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[string](../types/string.md) | Yes|ID| +|type|[string](../types/string.md) | Yes|Type| +|photo|[Photo](../types/Photo.md) | Optional|Photo| +|document|[Document](../types/Document.md) | Optional|Document| +|title|[string](../types/string.md) | Optional|Title| +|description|[string](../types/string.md) | Optional|Description| +|send\_message|[BotInlineMessage](../types/BotInlineMessage.md) | Yes|Send message| + + + +### Type: [BotInlineResult](../types/BotInlineResult.md) + + +### Example: + +```php +$botInlineMediaResult = ['_' => 'botInlineMediaResult', 'id' => 'string', 'type' => 'string', 'photo' => Photo, 'document' => Document, 'title' => 'string', 'description' => 'string', 'send_message' => BotInlineMessage]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "botInlineMediaResult", "id": "string", "type": "string", "photo": Photo, "document": Document, "title": "string", "description": "string", "send_message": BotInlineMessage} +``` + + +Or, if you're into Lua: + +```lua +botInlineMediaResult={_='botInlineMediaResult', id='string', type='string', photo=Photo, document=Document, title='string', description='string', send_message=BotInlineMessage} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/botInlineMessageMediaAuto.md b/old_docs/API_docs_v91/constructors/botInlineMessageMediaAuto.md new file mode 100644 index 00000000..2bd0506d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/botInlineMessageMediaAuto.md @@ -0,0 +1,52 @@ +--- +title: botInlineMessageMediaAuto +description: Bot inline message media auto +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: botInlineMessageMediaAuto +[Back to constructors index](index.md) + + + +Bot inline message media auto + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[string](../types/string.md) | Yes|Message| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| + + + +### Type: [BotInlineMessage](../types/BotInlineMessage.md) + + +### Example: + +```php +$botInlineMessageMediaAuto = ['_' => 'botInlineMessageMediaAuto', 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "botInlineMessageMediaAuto", "message": "string", "entities": [MessageEntity], "reply_markup": ReplyMarkup} +``` + + +Or, if you're into Lua: + +```lua +botInlineMessageMediaAuto={_='botInlineMessageMediaAuto', message='string', entities={MessageEntity}, reply_markup=ReplyMarkup} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/botInlineMessageMediaContact.md b/old_docs/API_docs_v91/constructors/botInlineMessageMediaContact.md new file mode 100644 index 00000000..6149543d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/botInlineMessageMediaContact.md @@ -0,0 +1,54 @@ +--- +title: botInlineMessageMediaContact +description: Bot inline message media contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: botInlineMessageMediaContact +[Back to constructors index](index.md) + + + +Bot inline message media contact + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|first\_name|[string](../types/string.md) | Yes|First name| +|last\_name|[string](../types/string.md) | Yes|Last name| +|vcard|[string](../types/string.md) | Yes|Vcard| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| + + + +### Type: [BotInlineMessage](../types/BotInlineMessage.md) + + +### Example: + +```php +$botInlineMessageMediaContact = ['_' => 'botInlineMessageMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'vcard' => 'string', 'reply_markup' => ReplyMarkup]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "botInlineMessageMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "vcard": "string", "reply_markup": ReplyMarkup} +``` + + +Or, if you're into Lua: + +```lua +botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number='string', first_name='string', last_name='string', vcard='string', reply_markup=ReplyMarkup} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/botInlineMessageMediaGeo.md b/old_docs/API_docs_v91/constructors/botInlineMessageMediaGeo.md new file mode 100644 index 00000000..fda26802 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/botInlineMessageMediaGeo.md @@ -0,0 +1,52 @@ +--- +title: botInlineMessageMediaGeo +description: Bot inline message media geo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: botInlineMessageMediaGeo +[Back to constructors index](index.md) + + + +Bot inline message media geo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Geo| +|period|[int](../types/int.md) | Yes|Period| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| + + + +### Type: [BotInlineMessage](../types/BotInlineMessage.md) + + +### Example: + +```php +$botInlineMessageMediaGeo = ['_' => 'botInlineMessageMediaGeo', 'geo' => GeoPoint, 'period' => int, 'reply_markup' => ReplyMarkup]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "botInlineMessageMediaGeo", "geo": GeoPoint, "period": int, "reply_markup": ReplyMarkup} +``` + + +Or, if you're into Lua: + +```lua +botInlineMessageMediaGeo={_='botInlineMessageMediaGeo', geo=GeoPoint, period=int, reply_markup=ReplyMarkup} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/botInlineMessageMediaVenue.md b/old_docs/API_docs_v91/constructors/botInlineMessageMediaVenue.md new file mode 100644 index 00000000..1900d5a0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/botInlineMessageMediaVenue.md @@ -0,0 +1,56 @@ +--- +title: botInlineMessageMediaVenue +description: Bot inline message media venue +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: botInlineMessageMediaVenue +[Back to constructors index](index.md) + + + +Bot inline message media venue + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Geo| +|title|[string](../types/string.md) | Yes|Title| +|address|[string](../types/string.md) | Yes|Address| +|provider|[string](../types/string.md) | Yes|Provider| +|venue\_id|[string](../types/string.md) | Yes|Venue ID| +|venue\_type|[string](../types/string.md) | Yes|Venue type| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| + + + +### Type: [BotInlineMessage](../types/BotInlineMessage.md) + + +### Example: + +```php +$botInlineMessageMediaVenue = ['_' => 'botInlineMessageMediaVenue', 'geo' => GeoPoint, 'title' => 'string', 'address' => 'string', 'provider' => 'string', 'venue_id' => 'string', 'venue_type' => 'string', 'reply_markup' => ReplyMarkup]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "botInlineMessageMediaVenue", "geo": GeoPoint, "title": "string", "address": "string", "provider": "string", "venue_id": "string", "venue_type": "string", "reply_markup": ReplyMarkup} +``` + + +Or, if you're into Lua: + +```lua +botInlineMessageMediaVenue={_='botInlineMessageMediaVenue', geo=GeoPoint, title='string', address='string', provider='string', venue_id='string', venue_type='string', reply_markup=ReplyMarkup} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/botInlineMessageText.md b/old_docs/API_docs_v91/constructors/botInlineMessageText.md new file mode 100644 index 00000000..b6fbd3f5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/botInlineMessageText.md @@ -0,0 +1,53 @@ +--- +title: botInlineMessageText +description: Bot inline message text +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: botInlineMessageText +[Back to constructors index](index.md) + + + +Bot inline message text + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|no\_webpage|[Bool](../types/Bool.md) | Optional|No webpage?| +|message|[string](../types/string.md) | Yes|Message| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| + + + +### Type: [BotInlineMessage](../types/BotInlineMessage.md) + + +### Example: + +```php +$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "botInlineMessageText", "no_webpage": Bool, "message": "string", "entities": [MessageEntity], "reply_markup": ReplyMarkup} +``` + + +Or, if you're into Lua: + +```lua +botInlineMessageText={_='botInlineMessageText', no_webpage=Bool, message='string', entities={MessageEntity}, reply_markup=ReplyMarkup} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/botInlineResult.md b/old_docs/API_docs_v91/constructors/botInlineResult.md new file mode 100644 index 00000000..ec1a53ee --- /dev/null +++ b/old_docs/API_docs_v91/constructors/botInlineResult.md @@ -0,0 +1,51 @@ +--- +title: botInlineResult +description: Bot inline result +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: botInlineResult +[Back to constructors index](index.md) + + + +Bot inline result + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[string](../types/string.md) | Yes|ID| +|type|[string](../types/string.md) | Yes|Type| +|title|[string](../types/string.md) | Optional|Title| +|description|[string](../types/string.md) | Optional|Description| +|url|[string](../types/string.md) | Optional|URL| +|thumb|[WebDocument](../types/WebDocument.md) | Optional|Thumbnailnail| +|content|[WebDocument](../types/WebDocument.md) | Optional|Content| +|send\_message|[BotInlineMessage](../types/BotInlineMessage.md) | Yes|Message to send| + + + +### Type: [BotInlineResult](../types/BotInlineResult.md) + + +### Example: + +```php +$botInlineResult = ['_' => 'botInlineResult', 'id' => 'string', 'type' => 'string', 'title' => 'string', 'description' => 'string', 'url' => 'string', 'thumb' => WebDocument, 'content' => WebDocument, 'send_message' => BotInlineMessage]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "botInlineResult", "id": "string", "type": "string", "title": "string", "description": "string", "url": "string", "thumb": WebDocument, "content": WebDocument, "send_message": BotInlineMessage} +``` + + +Or, if you're into Lua: + +```lua +botInlineResult={_='botInlineResult', id='string', type='string', title='string', description='string', url='string', thumb=WebDocument, content=WebDocument, send_message=BotInlineMessage} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/cdnConfig.md b/old_docs/API_docs_v91/constructors/cdnConfig.md new file mode 100644 index 00000000..b53eeaca --- /dev/null +++ b/old_docs/API_docs_v91/constructors/cdnConfig.md @@ -0,0 +1,44 @@ +--- +title: cdnConfig +description: CDN configuration +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: cdnConfig +[Back to constructors index](index.md) + + + +CDN configuration + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|public\_keys|Array of [CdnPublicKey](../types/CdnPublicKey.md) | Yes|Public keys| + + + +### Type: [CdnConfig](../types/CdnConfig.md) + + +### Example: + +```php +$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey, CdnPublicKey]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "cdnConfig", "public_keys": [CdnPublicKey]} +``` + + +Or, if you're into Lua: + +```lua +cdnConfig={_='cdnConfig', public_keys={CdnPublicKey}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/cdnPublicKey.md b/old_docs/API_docs_v91/constructors/cdnPublicKey.md new file mode 100644 index 00000000..9552113c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/cdnPublicKey.md @@ -0,0 +1,45 @@ +--- +title: cdnPublicKey +description: Cdn public key +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: cdnPublicKey +[Back to constructors index](index.md) + + + +Cdn public key + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|dc\_id|[int](../types/int.md) | Yes|DC ID| +|public\_key|[string](../types/string.md) | Yes|Public key| + + + +### Type: [CdnPublicKey](../types/CdnPublicKey.md) + + +### Example: + +```php +$cdnPublicKey = ['_' => 'cdnPublicKey', 'dc_id' => int, 'public_key' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "cdnPublicKey", "dc_id": int, "public_key": "string"} +``` + + +Or, if you're into Lua: + +```lua +cdnPublicKey={_='cdnPublicKey', dc_id=int, public_key='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channel.md b/old_docs/API_docs_v91/constructors/channel.md new file mode 100644 index 00000000..49f3eb84 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channel.md @@ -0,0 +1,64 @@ +--- +title: channel +description: Channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channel +[Back to constructors index](index.md) + + + +Channel + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|creator|[Bool](../types/Bool.md) | Optional|Creator?| +|left|[Bool](../types/Bool.md) | Optional|Left?| +|editor|[Bool](../types/Bool.md) | Optional|Editor?| +|broadcast|[Bool](../types/Bool.md) | Optional|Broadcast?| +|verified|[Bool](../types/Bool.md) | Optional|Verified?| +|megagroup|[Bool](../types/Bool.md) | Optional|Megagroup?| +|restricted|[Bool](../types/Bool.md) | Optional|Restricted?| +|democracy|[Bool](../types/Bool.md) | Optional|Democracy?| +|signatures|[Bool](../types/Bool.md) | Optional|Signatures?| +|min|[Bool](../types/Bool.md) | Optional|Min?| +|id|[int](../types/int.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Optional|Access hash| +|title|[string](../types/string.md) | Yes|Title| +|username|[string](../types/string.md) | Optional|Username| +|photo|[ChatPhoto](../types/ChatPhoto.md) | Optional|Photo| +|date|[int](../types/int.md) | Yes|Date| +|version|[int](../types/int.md) | Yes|Version| +|restriction\_reason|[string](../types/string.md) | Optional|Restriction reason| +|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Optional|Admin rights| +|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Optional|Banned rights| +|participants\_count|[int](../types/int.md) | Optional|Participants count| + + + +### Type: [Chat](../types/Chat.md) + + +### Example: + +```php +$channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'editor' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'democracy' => Bool, 'signatures' => Bool, 'min' => Bool, 'id' => int, 'access_hash' => long, 'title' => 'string', 'username' => 'string', 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => 'string', 'admin_rights' => ChannelAdminRights, 'banned_rights' => ChannelBannedRights, 'participants_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channel", "creator": Bool, "left": Bool, "editor": Bool, "broadcast": Bool, "verified": Bool, "megagroup": Bool, "restricted": Bool, "democracy": Bool, "signatures": Bool, "min": Bool, "id": int, "access_hash": long, "title": "string", "username": "string", "photo": ChatPhoto, "date": int, "version": int, "restriction_reason": "string", "admin_rights": ChannelAdminRights, "banned_rights": ChannelBannedRights, "participants_count": int} +``` + + +Or, if you're into Lua: + +```lua +channel={_='channel', creator=Bool, left=Bool, editor=Bool, broadcast=Bool, verified=Bool, megagroup=Bool, restricted=Bool, democracy=Bool, signatures=Bool, min=Bool, id=int, access_hash=long, title='string', username='string', photo=ChatPhoto, date=int, version=int, restriction_reason='string', admin_rights=ChannelAdminRights, banned_rights=ChannelBannedRights, participants_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEvent.md b/old_docs/API_docs_v91/constructors/channelAdminLogEvent.md new file mode 100644 index 00000000..fe9ce5cb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEvent.md @@ -0,0 +1,47 @@ +--- +title: channelAdminLogEvent +description: Channel admin log event +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEvent +[Back to constructors index](index.md) + + + +Channel admin log event + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|date|[int](../types/int.md) | Yes|Date| +|user\_id|[int](../types/int.md) | Yes|User ID| +|action|[ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) | Yes|Action| + + + +### Type: [ChannelAdminLogEvent](../types/ChannelAdminLogEvent.md) + + +### Example: + +```php +$channelAdminLogEvent = ['_' => 'channelAdminLogEvent', 'id' => long, 'date' => int, 'user_id' => int, 'action' => ChannelAdminLogEventAction]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEvent", "id": long, "date": int, "user_id": int, "action": ChannelAdminLogEventAction} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEvent={_='channelAdminLogEvent', id=long, date=int, user_id=int, action=ChannelAdminLogEventAction} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeAbout.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeAbout.md new file mode 100644 index 00000000..64e2938c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeAbout.md @@ -0,0 +1,45 @@ +--- +title: channelAdminLogEventActionChangeAbout +description: Change about text +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionChangeAbout +[Back to constructors index](index.md) + + + +Change about text + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|prev\_value|[string](../types/string.md) | Yes|Previous value| +|new\_value|[string](../types/string.md) | Yes|New value| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionChangeAbout = ['_' => 'channelAdminLogEventActionChangeAbout', 'prev_value' => 'string', 'new_value' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionChangeAbout", "prev_value": "string", "new_value": "string"} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionChangeAbout={_='channelAdminLogEventActionChangeAbout', prev_value='string', new_value='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangePhoto.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangePhoto.md new file mode 100644 index 00000000..9c7f58b4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangePhoto.md @@ -0,0 +1,45 @@ +--- +title: channelAdminLogEventActionChangePhoto +description: Change photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionChangePhoto +[Back to constructors index](index.md) + + + +Change photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|prev\_photo|[ChatPhoto](../types/ChatPhoto.md) | Optional|Previous photo| +|new\_photo|[ChatPhoto](../types/ChatPhoto.md) | Optional|New photo| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionChangePhoto = ['_' => 'channelAdminLogEventActionChangePhoto', 'prev_photo' => ChatPhoto, 'new_photo' => ChatPhoto]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionChangePhoto", "prev_photo": ChatPhoto, "new_photo": ChatPhoto} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionChangePhoto={_='channelAdminLogEventActionChangePhoto', prev_photo=ChatPhoto, new_photo=ChatPhoto} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeStickerSet.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeStickerSet.md new file mode 100644 index 00000000..404ffec9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeStickerSet.md @@ -0,0 +1,45 @@ +--- +title: channelAdminLogEventActionChangeStickerSet +description: Change stickerset +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionChangeStickerSet +[Back to constructors index](index.md) + + + +Change stickerset + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|prev\_stickerset|[InputStickerSet](../types/InputStickerSet.md) | Optional|Previous stickerset| +|new\_stickerset|[InputStickerSet](../types/InputStickerSet.md) | Optional|New stickerset| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionChangeStickerSet = ['_' => 'channelAdminLogEventActionChangeStickerSet', 'prev_stickerset' => InputStickerSet, 'new_stickerset' => InputStickerSet]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionChangeStickerSet", "prev_stickerset": InputStickerSet, "new_stickerset": InputStickerSet} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionChangeStickerSet={_='channelAdminLogEventActionChangeStickerSet', prev_stickerset=InputStickerSet, new_stickerset=InputStickerSet} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeTitle.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeTitle.md new file mode 100644 index 00000000..a8b408f9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeTitle.md @@ -0,0 +1,45 @@ +--- +title: channelAdminLogEventActionChangeTitle +description: Change title +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionChangeTitle +[Back to constructors index](index.md) + + + +Change title + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|prev\_value|[string](../types/string.md) | Yes|Previous value| +|new\_value|[string](../types/string.md) | Yes|New value| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionChangeTitle = ['_' => 'channelAdminLogEventActionChangeTitle', 'prev_value' => 'string', 'new_value' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionChangeTitle", "prev_value": "string", "new_value": "string"} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionChangeTitle={_='channelAdminLogEventActionChangeTitle', prev_value='string', new_value='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeUsername.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeUsername.md new file mode 100644 index 00000000..f4f74437 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionChangeUsername.md @@ -0,0 +1,45 @@ +--- +title: channelAdminLogEventActionChangeUsername +description: Change username +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionChangeUsername +[Back to constructors index](index.md) + + + +Change username + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|prev\_value|[string](../types/string.md) | Yes|Prev value| +|new\_value|[string](../types/string.md) | Yes|New value| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionChangeUsername = ['_' => 'channelAdminLogEventActionChangeUsername', 'prev_value' => 'string', 'new_value' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionChangeUsername", "prev_value": "string", "new_value": "string"} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionChangeUsername={_='channelAdminLogEventActionChangeUsername', prev_value='string', new_value='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionDeleteMessage.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionDeleteMessage.md new file mode 100644 index 00000000..581c4e71 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionDeleteMessage.md @@ -0,0 +1,44 @@ +--- +title: channelAdminLogEventActionDeleteMessage +description: Delete message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionDeleteMessage +[Back to constructors index](index.md) + + + +Delete message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[Message](../types/Message.md) | Optional|Message| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionDeleteMessage = ['_' => 'channelAdminLogEventActionDeleteMessage', 'message' => Message]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionDeleteMessage", "message": Message} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionDeleteMessage={_='channelAdminLogEventActionDeleteMessage', message=Message} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionEditMessage.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionEditMessage.md new file mode 100644 index 00000000..137b1376 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionEditMessage.md @@ -0,0 +1,45 @@ +--- +title: channelAdminLogEventActionEditMessage +description: Edit message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionEditMessage +[Back to constructors index](index.md) + + + +Edit message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|prev\_message|[Message](../types/Message.md) | Optional|Prev message| +|new\_message|[Message](../types/Message.md) | Optional|New message| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionEditMessage = ['_' => 'channelAdminLogEventActionEditMessage', 'prev_message' => Message, 'new_message' => Message]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionEditMessage", "prev_message": Message, "new_message": Message} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionEditMessage={_='channelAdminLogEventActionEditMessage', prev_message=Message, new_message=Message} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantInvite.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantInvite.md new file mode 100644 index 00000000..a246009e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantInvite.md @@ -0,0 +1,44 @@ +--- +title: channelAdminLogEventActionParticipantInvite +description: Invite participant +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionParticipantInvite +[Back to constructors index](index.md) + + + +Invite participant + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|Participant| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionParticipantInvite = ['_' => 'channelAdminLogEventActionParticipantInvite', 'participant' => ChannelParticipant]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionParticipantInvite", "participant": ChannelParticipant} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionParticipantInvite={_='channelAdminLogEventActionParticipantInvite', participant=ChannelParticipant} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantJoin.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantJoin.md new file mode 100644 index 00000000..5051e734 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantJoin.md @@ -0,0 +1,39 @@ +--- +title: channelAdminLogEventActionParticipantJoin +description: Joined participant +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionParticipantJoin +[Back to constructors index](index.md) + + + +Joined participant + + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionParticipantJoin = ['_' => 'channelAdminLogEventActionParticipantJoin']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionParticipantJoin"} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionParticipantJoin={_='channelAdminLogEventActionParticipantJoin'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantLeave.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantLeave.md new file mode 100644 index 00000000..424ba7c2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantLeave.md @@ -0,0 +1,39 @@ +--- +title: channelAdminLogEventActionParticipantLeave +description: Left participant +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionParticipantLeave +[Back to constructors index](index.md) + + + +Left participant + + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionParticipantLeave = ['_' => 'channelAdminLogEventActionParticipantLeave']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionParticipantLeave"} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionParticipantLeave={_='channelAdminLogEventActionParticipantLeave'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantToggleAdmin.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantToggleAdmin.md new file mode 100644 index 00000000..c3cc5f60 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantToggleAdmin.md @@ -0,0 +1,45 @@ +--- +title: channelAdminLogEventActionParticipantToggleAdmin +description: Admin toggled +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionParticipantToggleAdmin +[Back to constructors index](index.md) + + + +Admin toggled + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|prev\_participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|Prev participant| +|new\_participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|New participant| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionParticipantToggleAdmin = ['_' => 'channelAdminLogEventActionParticipantToggleAdmin', 'prev_participant' => ChannelParticipant, 'new_participant' => ChannelParticipant]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionParticipantToggleAdmin", "prev_participant": ChannelParticipant, "new_participant": ChannelParticipant} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionParticipantToggleAdmin={_='channelAdminLogEventActionParticipantToggleAdmin', prev_participant=ChannelParticipant, new_participant=ChannelParticipant} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantToggleBan.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantToggleBan.md new file mode 100644 index 00000000..049fe117 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionParticipantToggleBan.md @@ -0,0 +1,45 @@ +--- +title: channelAdminLogEventActionParticipantToggleBan +description: User banned +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionParticipantToggleBan +[Back to constructors index](index.md) + + + +User banned + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|prev\_participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|Prev participant| +|new\_participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|New participant| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionParticipantToggleBan = ['_' => 'channelAdminLogEventActionParticipantToggleBan', 'prev_participant' => ChannelParticipant, 'new_participant' => ChannelParticipant]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionParticipantToggleBan", "prev_participant": ChannelParticipant, "new_participant": ChannelParticipant} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionParticipantToggleBan={_='channelAdminLogEventActionParticipantToggleBan', prev_participant=ChannelParticipant, new_participant=ChannelParticipant} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionToggleInvites.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionToggleInvites.md new file mode 100644 index 00000000..11f980f6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionToggleInvites.md @@ -0,0 +1,44 @@ +--- +title: channelAdminLogEventActionToggleInvites +description: Invite setting toggled +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionToggleInvites +[Back to constructors index](index.md) + + + +Invite setting toggled + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|new\_value|[Bool](../types/Bool.md) | Yes|New value| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionToggleInvites = ['_' => 'channelAdminLogEventActionToggleInvites', 'new_value' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionToggleInvites", "new_value": Bool} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionToggleInvites={_='channelAdminLogEventActionToggleInvites', new_value=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionTogglePreHistoryHidden.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionTogglePreHistoryHidden.md new file mode 100644 index 00000000..cab0070e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionTogglePreHistoryHidden.md @@ -0,0 +1,44 @@ +--- +title: channelAdminLogEventActionTogglePreHistoryHidden +description: Previous history hidden +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionTogglePreHistoryHidden +[Back to constructors index](index.md) + + + +Previous history hidden + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|new\_value|[Bool](../types/Bool.md) | Yes|New value| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionTogglePreHistoryHidden = ['_' => 'channelAdminLogEventActionTogglePreHistoryHidden', 'new_value' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionTogglePreHistoryHidden", "new_value": Bool} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionTogglePreHistoryHidden={_='channelAdminLogEventActionTogglePreHistoryHidden', new_value=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionToggleSignatures.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionToggleSignatures.md new file mode 100644 index 00000000..d821bef4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionToggleSignatures.md @@ -0,0 +1,44 @@ +--- +title: channelAdminLogEventActionToggleSignatures +description: Toggle channel signatures +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionToggleSignatures +[Back to constructors index](index.md) + + + +Toggle channel signatures + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|new\_value|[Bool](../types/Bool.md) | Yes|New value?| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionToggleSignatures = ['_' => 'channelAdminLogEventActionToggleSignatures', 'new_value' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionToggleSignatures", "new_value": Bool} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionToggleSignatures={_='channelAdminLogEventActionToggleSignatures', new_value=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventActionUpdatePinned.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionUpdatePinned.md new file mode 100644 index 00000000..795c8d77 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventActionUpdatePinned.md @@ -0,0 +1,44 @@ +--- +title: channelAdminLogEventActionUpdatePinned +description: Message pinned +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventActionUpdatePinned +[Back to constructors index](index.md) + + + +Message pinned + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[Message](../types/Message.md) | Optional|Message| + + + +### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) + + +### Example: + +```php +$channelAdminLogEventActionUpdatePinned = ['_' => 'channelAdminLogEventActionUpdatePinned', 'message' => Message]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventActionUpdatePinned", "message": Message} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventActionUpdatePinned={_='channelAdminLogEventActionUpdatePinned', message=Message} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelAdminLogEventsFilter.md b/old_docs/API_docs_v91/constructors/channelAdminLogEventsFilter.md new file mode 100644 index 00000000..a11e6731 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelAdminLogEventsFilter.md @@ -0,0 +1,57 @@ +--- +title: channelAdminLogEventsFilter +description: Event filter +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelAdminLogEventsFilter +[Back to constructors index](index.md) + + + +Event filter + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|join|[Bool](../types/Bool.md) | Optional|Join users events| +|leave|[Bool](../types/Bool.md) | Optional|Left users events| +|invite|[Bool](../types/Bool.md) | Optional|Invite users events| +|ban|[Bool](../types/Bool.md) | Optional|Ban events| +|unban|[Bool](../types/Bool.md) | Optional|Unban events| +|kick|[Bool](../types/Bool.md) | Optional|Kicked users events| +|unkick|[Bool](../types/Bool.md) | Optional|Unkick events| +|promote|[Bool](../types/Bool.md) | Optional|Admin promotion events| +|demote|[Bool](../types/Bool.md) | Optional|Demote admin events| +|info|[Bool](../types/Bool.md) | Optional|Change info events| +|settings|[Bool](../types/Bool.md) | Optional|Setting changes| +|pinned|[Bool](../types/Bool.md) | Optional|Pinned message events| +|edit|[Bool](../types/Bool.md) | Optional|Edit message events| +|delete|[Bool](../types/Bool.md) | Optional|Delete message events| + + + +### Type: [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md) + + +### Example: + +```php +$channelAdminLogEventsFilter = ['_' => 'channelAdminLogEventsFilter', 'join' => Bool, 'leave' => Bool, 'invite' => Bool, 'ban' => Bool, 'unban' => Bool, 'kick' => Bool, 'unkick' => Bool, 'promote' => Bool, 'demote' => Bool, 'info' => Bool, 'settings' => Bool, 'pinned' => Bool, 'edit' => Bool, 'delete' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelAdminLogEventsFilter", "join": Bool, "leave": Bool, "invite": Bool, "ban": Bool, "unban": Bool, "kick": Bool, "unkick": Bool, "promote": Bool, "demote": Bool, "info": Bool, "settings": Bool, "pinned": Bool, "edit": Bool, "delete": Bool} +``` + + +Or, if you're into Lua: + +```lua +channelAdminLogEventsFilter={_='channelAdminLogEventsFilter', join=Bool, leave=Bool, invite=Bool, ban=Bool, unban=Bool, kick=Bool, unkick=Bool, promote=Bool, demote=Bool, info=Bool, settings=Bool, pinned=Bool, edit=Bool, delete=Bool} + +``` + + diff --git a/docs/API_docs/constructors/channelAdminRights.md b/old_docs/API_docs_v91/constructors/channelAdminRights.md similarity index 100% rename from docs/API_docs/constructors/channelAdminRights.md rename to old_docs/API_docs_v91/constructors/channelAdminRights.md diff --git a/docs/API_docs/constructors/channelBannedRights.md b/old_docs/API_docs_v91/constructors/channelBannedRights.md similarity index 100% rename from docs/API_docs/constructors/channelBannedRights.md rename to old_docs/API_docs_v91/constructors/channelBannedRights.md diff --git a/old_docs/API_docs_v91/constructors/channelForbidden.md b/old_docs/API_docs_v91/constructors/channelForbidden.md new file mode 100644 index 00000000..33f3ebd1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelForbidden.md @@ -0,0 +1,49 @@ +--- +title: channelForbidden +description: Forbidden channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelForbidden +[Back to constructors index](index.md) + + + +Forbidden channel + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|broadcast|[Bool](../types/Bool.md) | Optional|Broadcast?| +|megagroup|[Bool](../types/Bool.md) | Optional|Megagroup?| +|id|[int](../types/int.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|title|[string](../types/string.md) | Yes|Title| +|until\_date|[int](../types/int.md) | Optional|Until date| + + + +### Type: [Chat](../types/Chat.md) + + +### Example: + +```php +$channelForbidden = ['_' => 'channelForbidden', 'broadcast' => Bool, 'megagroup' => Bool, 'id' => int, 'access_hash' => long, 'title' => 'string', 'until_date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelForbidden", "broadcast": Bool, "megagroup": Bool, "id": int, "access_hash": long, "title": "string", "until_date": int} +``` + + +Or, if you're into Lua: + +```lua +channelForbidden={_='channelForbidden', broadcast=Bool, megagroup=Bool, id=int, access_hash=long, title='string', until_date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelFull.md b/old_docs/API_docs_v91/constructors/channelFull.md new file mode 100644 index 00000000..65b1ab15 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelFull.md @@ -0,0 +1,67 @@ +--- +title: channelFull +description: Full channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelFull +[Back to constructors index](index.md) + + + +Full channel + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|can\_view\_participants|[Bool](../types/Bool.md) | Optional|Can view participants?| +|can\_set\_username|[Bool](../types/Bool.md) | Optional|Can set username?| +|can\_set\_stickers|[Bool](../types/Bool.md) | Optional|Can set group stickerset?| +|hidden\_prehistory|[Bool](../types/Bool.md) | Optional|Hidden prehistory?| +|can\_view\_stats|[Bool](../types/Bool.md) | Optional|Can view stats?| +|id|[int](../types/int.md) | Yes|ID| +|about|[string](../types/string.md) | Yes|About| +|participants\_count|[int](../types/int.md) | Optional|Participants count| +|admins\_count|[int](../types/int.md) | Optional|Admins count| +|kicked\_count|[int](../types/int.md) | Optional|Kicked count| +|banned\_count|[int](../types/int.md) | Optional|Banned count| +|online\_count|[int](../types/int.md) | Optional|Online count| +|read\_inbox\_max\_id|[int](../types/int.md) | Yes|Read inbox max ID| +|read\_outbox\_max\_id|[int](../types/int.md) | Yes|Read outbox max ID| +|unread\_count|[int](../types/int.md) | Yes|Unread count| +|chat\_photo|[Photo](../types/Photo.md) | Optional|Chat photo| +|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Yes|Notify settings| +|exported\_invite|[ExportedChatInvite](../types/ExportedChatInvite.md) | Yes|Exported invite| +|bot\_info|Array of [BotInfo](../types/BotInfo.md) | Yes|Bot info| +|migrated\_from\_chat\_id|[int](../types/int.md) | Optional|Migrated from chat ID| +|migrated\_from\_max\_id|[int](../types/int.md) | Optional|Migrated from max ID| +|pinned\_msg\_id|[int](../types/int.md) | Optional|Pinned msg ID| +|stickerset|[StickerSet](../types/StickerSet.md) | Optional|Stickerset| +|available\_min\_id|[int](../types/int.md) | Optional|Available min ID| + + + +### Type: [ChatFull](../types/ChatFull.md) + + +### Example: + +```php +$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'can_view_stats' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_count' => int, 'online_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, 'stickerset' => StickerSet, 'available_min_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelFull", "can_view_participants": Bool, "can_set_username": Bool, "can_set_stickers": Bool, "hidden_prehistory": Bool, "can_view_stats": Bool, "id": int, "about": "string", "participants_count": int, "admins_count": int, "kicked_count": int, "banned_count": int, "online_count": int, "read_inbox_max_id": int, "read_outbox_max_id": int, "unread_count": int, "chat_photo": Photo, "notify_settings": PeerNotifySettings, "exported_invite": ExportedChatInvite, "bot_info": [BotInfo], "migrated_from_chat_id": int, "migrated_from_max_id": int, "pinned_msg_id": int, "stickerset": StickerSet, "available_min_id": int} +``` + + +Or, if you're into Lua: + +```lua +channelFull={_='channelFull', can_view_participants=Bool, can_set_username=Bool, can_set_stickers=Bool, hidden_prehistory=Bool, can_view_stats=Bool, id=int, about='string', participants_count=int, admins_count=int, kicked_count=int, banned_count=int, online_count=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, migrated_from_chat_id=int, migrated_from_max_id=int, pinned_msg_id=int, stickerset=StickerSet, available_min_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelMessagesFilter.md b/old_docs/API_docs_v91/constructors/channelMessagesFilter.md new file mode 100644 index 00000000..1500d4e8 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelMessagesFilter.md @@ -0,0 +1,45 @@ +--- +title: channelMessagesFilter +description: Channel messages filter +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelMessagesFilter +[Back to constructors index](index.md) + + + +Channel messages filter + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|exclude\_new\_messages|[Bool](../types/Bool.md) | Optional|Exclude new messages?| +|ranges|Array of [MessageRange](../types/MessageRange.md) | Yes|Ranges| + + + +### Type: [ChannelMessagesFilter](../types/ChannelMessagesFilter.md) + + +### Example: + +```php +$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelMessagesFilter", "exclude_new_messages": Bool, "ranges": [MessageRange]} +``` + + +Or, if you're into Lua: + +```lua +channelMessagesFilter={_='channelMessagesFilter', exclude_new_messages=Bool, ranges={MessageRange}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelMessagesFilterEmpty.md b/old_docs/API_docs_v91/constructors/channelMessagesFilterEmpty.md new file mode 100644 index 00000000..a691222d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelMessagesFilterEmpty.md @@ -0,0 +1,39 @@ +--- +title: channelMessagesFilterEmpty +description: Empty channel messages filter +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelMessagesFilterEmpty +[Back to constructors index](index.md) + + + +Empty channel messages filter + + + + +### Type: [ChannelMessagesFilter](../types/ChannelMessagesFilter.md) + + +### Example: + +```php +$channelMessagesFilterEmpty = ['_' => 'channelMessagesFilterEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelMessagesFilterEmpty"} +``` + + +Or, if you're into Lua: + +```lua +channelMessagesFilterEmpty={_='channelMessagesFilterEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelParticipant.md b/old_docs/API_docs_v91/constructors/channelParticipant.md new file mode 100644 index 00000000..5f844b75 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelParticipant.md @@ -0,0 +1,45 @@ +--- +title: channelParticipant +description: Channel participant +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipant +[Back to constructors index](index.md) + + + +Channel participant + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [ChannelParticipant](../types/ChannelParticipant.md) + + +### Example: + +```php +$channelParticipant = ['_' => 'channelParticipant', 'user_id' => int, 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipant", "user_id": int, "date": int} +``` + + +Or, if you're into Lua: + +```lua +channelParticipant={_='channelParticipant', user_id=int, date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelParticipantAdmin.md b/old_docs/API_docs_v91/constructors/channelParticipantAdmin.md new file mode 100644 index 00000000..ba43f5be --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelParticipantAdmin.md @@ -0,0 +1,49 @@ +--- +title: channelParticipantAdmin +description: Channel participant admin +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipantAdmin +[Back to constructors index](index.md) + + + +Channel participant admin + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|can\_edit|[Bool](../types/Bool.md) | Optional|Can edit?| +|user\_id|[int](../types/int.md) | Yes|User ID| +|inviter\_id|[int](../types/int.md) | Yes|Inviter ID| +|promoted\_by|[int](../types/int.md) | Yes|Promoted by| +|date|[int](../types/int.md) | Yes|Date| +|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Yes|Admin rights| + + + +### Type: [ChannelParticipant](../types/ChannelParticipant.md) + + +### Example: + +```php +$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChannelAdminRights]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipantAdmin", "can_edit": Bool, "user_id": int, "inviter_id": int, "promoted_by": int, "date": int, "admin_rights": ChannelAdminRights} +``` + + +Or, if you're into Lua: + +```lua +channelParticipantAdmin={_='channelParticipantAdmin', can_edit=Bool, user_id=int, inviter_id=int, promoted_by=int, date=int, admin_rights=ChannelAdminRights} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelParticipantBanned.md b/old_docs/API_docs_v91/constructors/channelParticipantBanned.md new file mode 100644 index 00000000..55bc3c1c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelParticipantBanned.md @@ -0,0 +1,48 @@ +--- +title: channelParticipantBanned +description: Channel participant banned +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipantBanned +[Back to constructors index](index.md) + + + +Channel participant banned + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|left|[Bool](../types/Bool.md) | Optional|Left?| +|user\_id|[int](../types/int.md) | Yes|User ID| +|kicked\_by|[int](../types/int.md) | Yes|Kicked by| +|date|[int](../types/int.md) | Yes|Date| +|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Yes|Banned rights| + + + +### Type: [ChannelParticipant](../types/ChannelParticipant.md) + + +### Example: + +```php +$channelParticipantBanned = ['_' => 'channelParticipantBanned', 'left' => Bool, 'user_id' => int, 'kicked_by' => int, 'date' => int, 'banned_rights' => ChannelBannedRights]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipantBanned", "left": Bool, "user_id": int, "kicked_by": int, "date": int, "banned_rights": ChannelBannedRights} +``` + + +Or, if you're into Lua: + +```lua +channelParticipantBanned={_='channelParticipantBanned', left=Bool, user_id=int, kicked_by=int, date=int, banned_rights=ChannelBannedRights} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelParticipantCreator.md b/old_docs/API_docs_v91/constructors/channelParticipantCreator.md new file mode 100644 index 00000000..76604c09 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelParticipantCreator.md @@ -0,0 +1,44 @@ +--- +title: channelParticipantCreator +description: Channel participant creator +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipantCreator +[Back to constructors index](index.md) + + + +Channel participant creator + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| + + + +### Type: [ChannelParticipant](../types/ChannelParticipant.md) + + +### Example: + +```php +$channelParticipantCreator = ['_' => 'channelParticipantCreator', 'user_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipantCreator", "user_id": int} +``` + + +Or, if you're into Lua: + +```lua +channelParticipantCreator={_='channelParticipantCreator', user_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelParticipantSelf.md b/old_docs/API_docs_v91/constructors/channelParticipantSelf.md new file mode 100644 index 00000000..430dcb50 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelParticipantSelf.md @@ -0,0 +1,46 @@ +--- +title: channelParticipantSelf +description: Channel participant self +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipantSelf +[Back to constructors index](index.md) + + + +Channel participant self + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|inviter\_id|[int](../types/int.md) | Yes|Inviter ID| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [ChannelParticipant](../types/ChannelParticipant.md) + + +### Example: + +```php +$channelParticipantSelf = ['_' => 'channelParticipantSelf', 'user_id' => int, 'inviter_id' => int, 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipantSelf", "user_id": int, "inviter_id": int, "date": int} +``` + + +Or, if you're into Lua: + +```lua +channelParticipantSelf={_='channelParticipantSelf', user_id=int, inviter_id=int, date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelParticipantsAdmins.md b/old_docs/API_docs_v91/constructors/channelParticipantsAdmins.md new file mode 100644 index 00000000..2e90b57f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelParticipantsAdmins.md @@ -0,0 +1,39 @@ +--- +title: channelParticipantsAdmins +description: Channel participants admins +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipantsAdmins +[Back to constructors index](index.md) + + + +Channel participants admins + + + + +### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) + + +### Example: + +```php +$channelParticipantsAdmins = ['_' => 'channelParticipantsAdmins']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipantsAdmins"} +``` + + +Or, if you're into Lua: + +```lua +channelParticipantsAdmins={_='channelParticipantsAdmins'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelParticipantsBanned.md b/old_docs/API_docs_v91/constructors/channelParticipantsBanned.md new file mode 100644 index 00000000..57f2f267 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelParticipantsBanned.md @@ -0,0 +1,44 @@ +--- +title: channelParticipantsBanned +description: Channel participants banned +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipantsBanned +[Back to constructors index](index.md) + + + +Channel participants banned + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|Query| + + + +### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) + + +### Example: + +```php +$channelParticipantsBanned = ['_' => 'channelParticipantsBanned', 'q' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipantsBanned", "q": "string"} +``` + + +Or, if you're into Lua: + +```lua +channelParticipantsBanned={_='channelParticipantsBanned', q='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelParticipantsBots.md b/old_docs/API_docs_v91/constructors/channelParticipantsBots.md new file mode 100644 index 00000000..c8b7538e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelParticipantsBots.md @@ -0,0 +1,39 @@ +--- +title: channelParticipantsBots +description: Channel participants bots +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipantsBots +[Back to constructors index](index.md) + + + +Channel participants bots + + + + +### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) + + +### Example: + +```php +$channelParticipantsBots = ['_' => 'channelParticipantsBots']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipantsBots"} +``` + + +Or, if you're into Lua: + +```lua +channelParticipantsBots={_='channelParticipantsBots'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelParticipantsKicked.md b/old_docs/API_docs_v91/constructors/channelParticipantsKicked.md new file mode 100644 index 00000000..8b255ca5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelParticipantsKicked.md @@ -0,0 +1,44 @@ +--- +title: channelParticipantsKicked +description: Channel participants kicked +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipantsKicked +[Back to constructors index](index.md) + + + +Channel participants kicked + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|Query| + + + +### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) + + +### Example: + +```php +$channelParticipantsKicked = ['_' => 'channelParticipantsKicked', 'q' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipantsKicked", "q": "string"} +``` + + +Or, if you're into Lua: + +```lua +channelParticipantsKicked={_='channelParticipantsKicked', q='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelParticipantsRecent.md b/old_docs/API_docs_v91/constructors/channelParticipantsRecent.md new file mode 100644 index 00000000..5b5aec5b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelParticipantsRecent.md @@ -0,0 +1,39 @@ +--- +title: channelParticipantsRecent +description: Channel participants recent +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipantsRecent +[Back to constructors index](index.md) + + + +Channel participants recent + + + + +### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) + + +### Example: + +```php +$channelParticipantsRecent = ['_' => 'channelParticipantsRecent']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipantsRecent"} +``` + + +Or, if you're into Lua: + +```lua +channelParticipantsRecent={_='channelParticipantsRecent'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channelParticipantsSearch.md b/old_docs/API_docs_v91/constructors/channelParticipantsSearch.md new file mode 100644 index 00000000..2ffa5215 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channelParticipantsSearch.md @@ -0,0 +1,44 @@ +--- +title: channelParticipantsSearch +description: Channel participants search +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channelParticipantsSearch +[Back to constructors index](index.md) + + + +Channel participants search + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|Query| + + + +### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) + + +### Example: + +```php +$channelParticipantsSearch = ['_' => 'channelParticipantsSearch', 'q' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channelParticipantsSearch", "q": "string"} +``` + + +Or, if you're into Lua: + +```lua +channelParticipantsSearch={_='channelParticipantsSearch', q='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channels_adminLogResults.md b/old_docs/API_docs_v91/constructors/channels_adminLogResults.md new file mode 100644 index 00000000..a00ae089 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channels_adminLogResults.md @@ -0,0 +1,46 @@ +--- +title: channels.adminLogResults +description: Admin log results +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channels.adminLogResults +[Back to constructors index](index.md) + + + +Admin log results + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|events|Array of [ChannelAdminLogEvent](../types/ChannelAdminLogEvent.md) | Yes|Events| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [channels\_AdminLogResults](../types/channels_AdminLogResults.md) + + +### Example: + +```php +$channels_adminLogResults = ['_' => 'channels.adminLogResults', 'events' => [ChannelAdminLogEvent, ChannelAdminLogEvent], 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channels.adminLogResults", "events": [ChannelAdminLogEvent], "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +channels_adminLogResults={_='channels.adminLogResults', events={ChannelAdminLogEvent}, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channels_channelParticipant.md b/old_docs/API_docs_v91/constructors/channels_channelParticipant.md new file mode 100644 index 00000000..4ca9b856 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channels_channelParticipant.md @@ -0,0 +1,45 @@ +--- +title: channels.channelParticipant +description: Channel participant +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channels.channelParticipant +[Back to constructors index](index.md) + + + +Channel participant + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|Participant| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + + +### Example: + +```php +$channels_channelParticipant = ['_' => 'channels.channelParticipant', 'participant' => ChannelParticipant, 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channels.channelParticipant", "participant": ChannelParticipant, "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +channels_channelParticipant={_='channels.channelParticipant', participant=ChannelParticipant, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channels_channelParticipants.md b/old_docs/API_docs_v91/constructors/channels_channelParticipants.md new file mode 100644 index 00000000..dc668739 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channels_channelParticipants.md @@ -0,0 +1,46 @@ +--- +title: channels.channelParticipants +description: Channel participants +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channels.channelParticipants +[Back to constructors index](index.md) + + + +Channel participants + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|count|[int](../types/int.md) | Yes|Count| +|participants|Array of [ChannelParticipant](../types/ChannelParticipant.md) | Yes|Participants| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [channels\_ChannelParticipants](../types/channels_ChannelParticipants.md) + + +### Example: + +```php +$channels_channelParticipants = ['_' => 'channels.channelParticipants', 'count' => int, 'participants' => [ChannelParticipant, ChannelParticipant], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channels.channelParticipants", "count": int, "participants": [ChannelParticipant], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +channels_channelParticipants={_='channels.channelParticipants', count=int, participants={ChannelParticipant}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/channels_channelParticipantsNotModified.md b/old_docs/API_docs_v91/constructors/channels_channelParticipantsNotModified.md new file mode 100644 index 00000000..3bb9263a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/channels_channelParticipantsNotModified.md @@ -0,0 +1,39 @@ +--- +title: channels.channelParticipantsNotModified +description: Channel participants not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: channels.channelParticipantsNotModified +[Back to constructors index](index.md) + + + +Channel participants not modified + + + + +### Type: [channels\_ChannelParticipants](../types/channels_ChannelParticipants.md) + + +### Example: + +```php +$channels_channelParticipantsNotModified = ['_' => 'channels.channelParticipantsNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "channels.channelParticipantsNotModified"} +``` + + +Or, if you're into Lua: + +```lua +channels_channelParticipantsNotModified={_='channels.channelParticipantsNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chat.md b/old_docs/API_docs_v91/constructors/chat.md new file mode 100644 index 00000000..25364f40 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chat.md @@ -0,0 +1,56 @@ +--- +title: chat +description: Chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chat +[Back to constructors index](index.md) + + + +Chat + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|creator|[Bool](../types/Bool.md) | Optional|Creator?| +|kicked|[Bool](../types/Bool.md) | Optional|Kicked?| +|left|[Bool](../types/Bool.md) | Optional|Left?| +|admins\_enabled|[Bool](../types/Bool.md) | Optional|Admins enabled?| +|admin|[Bool](../types/Bool.md) | Optional|Admin?| +|deactivated|[Bool](../types/Bool.md) | Optional|Deactivated?| +|id|[int](../types/int.md) | Yes|ID| +|title|[string](../types/string.md) | Yes|Title| +|photo|[ChatPhoto](../types/ChatPhoto.md) | Optional|Photo| +|participants\_count|[int](../types/int.md) | Yes|Participants count| +|date|[int](../types/int.md) | Yes|Date| +|version|[int](../types/int.md) | Yes|Version| +|migrated\_to|[InputChannel](../types/InputChannel.md) | Optional|Migrated to| + + + +### Type: [Chat](../types/Chat.md) + + +### Example: + +```php +$chat = ['_' => 'chat', 'creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'admins_enabled' => Bool, 'admin' => Bool, 'deactivated' => Bool, 'id' => int, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chat", "creator": Bool, "kicked": Bool, "left": Bool, "admins_enabled": Bool, "admin": Bool, "deactivated": Bool, "id": int, "title": "string", "photo": ChatPhoto, "participants_count": int, "date": int, "version": int, "migrated_to": InputChannel} +``` + + +Or, if you're into Lua: + +```lua +chat={_='chat', creator=Bool, kicked=Bool, left=Bool, admins_enabled=Bool, admin=Bool, deactivated=Bool, id=int, title='string', photo=ChatPhoto, participants_count=int, date=int, version=int, migrated_to=InputChannel} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatEmpty.md b/old_docs/API_docs_v91/constructors/chatEmpty.md new file mode 100644 index 00000000..d03e32c4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatEmpty.md @@ -0,0 +1,44 @@ +--- +title: chatEmpty +description: Empty chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatEmpty +[Back to constructors index](index.md) + + + +Empty chat + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [Chat](../types/Chat.md) + + +### Example: + +```php +$chatEmpty = ['_' => 'chatEmpty', 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatEmpty", "id": int} +``` + + +Or, if you're into Lua: + +```lua +chatEmpty={_='chatEmpty', id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatForbidden.md b/old_docs/API_docs_v91/constructors/chatForbidden.md new file mode 100644 index 00000000..c3de79e2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatForbidden.md @@ -0,0 +1,45 @@ +--- +title: chatForbidden +description: Chat forbidden +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatForbidden +[Back to constructors index](index.md) + + + +Chat forbidden + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| +|title|[string](../types/string.md) | Yes|Title| + + + +### Type: [Chat](../types/Chat.md) + + +### Example: + +```php +$chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatForbidden", "id": int, "title": "string"} +``` + + +Or, if you're into Lua: + +```lua +chatForbidden={_='chatForbidden', id=int, title='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatFull.md b/old_docs/API_docs_v91/constructors/chatFull.md new file mode 100644 index 00000000..e00de8fc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatFull.md @@ -0,0 +1,50 @@ +--- +title: chatFull +description: Chat full +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatFull +[Back to constructors index](index.md) + + + +Chat full + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| +|participants|[ChatParticipants](../types/ChatParticipants.md) | Yes|Participants| +|chat\_photo|[Photo](../types/Photo.md) | Optional|Chat photo| +|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Yes|Notify settings| +|exported\_invite|[ExportedChatInvite](../types/ExportedChatInvite.md) | Yes|Exported invite| +|bot\_info|Array of [BotInfo](../types/BotInfo.md) | Optional|Bot info| +|pinned\_msg\_id|[int](../types/int.md) | Optional|Pinned msg ID| + + + +### Type: [ChatFull](../types/ChatFull.md) + + +### Example: + +```php +$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'pinned_msg_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatFull", "id": int, "participants": ChatParticipants, "chat_photo": Photo, "notify_settings": PeerNotifySettings, "exported_invite": ExportedChatInvite, "bot_info": [BotInfo], "pinned_msg_id": int} +``` + + +Or, if you're into Lua: + +```lua +chatFull={_='chatFull', id=int, participants=ChatParticipants, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, pinned_msg_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatInvite.md b/old_docs/API_docs_v91/constructors/chatInvite.md new file mode 100644 index 00000000..46c5d7b7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatInvite.md @@ -0,0 +1,51 @@ +--- +title: chatInvite +description: Chat invite +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatInvite +[Back to constructors index](index.md) + + + +Chat invite + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel|[Bool](../types/Bool.md) | Optional|Channel?| +|broadcast|[Bool](../types/Bool.md) | Optional|Broadcast?| +|public|[Bool](../types/Bool.md) | Optional|Public?| +|megagroup|[Bool](../types/Bool.md) | Optional|Megagroup?| +|title|[string](../types/string.md) | Yes|Title| +|photo|[ChatPhoto](../types/ChatPhoto.md) | Optional|Photo| +|participants\_count|[int](../types/int.md) | Yes|Participants count| +|participants|Array of [User](../types/User.md) | Optional|Participants| + + + +### Type: [ChatInvite](../types/ChatInvite.md) + + +### Example: + +```php +$chatInvite = ['_' => 'chatInvite', 'channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatInvite", "channel": Bool, "broadcast": Bool, "public": Bool, "megagroup": Bool, "title": "string", "photo": ChatPhoto, "participants_count": int, "participants": [User]} +``` + + +Or, if you're into Lua: + +```lua +chatInvite={_='chatInvite', channel=Bool, broadcast=Bool, public=Bool, megagroup=Bool, title='string', photo=ChatPhoto, participants_count=int, participants={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatInviteAlready.md b/old_docs/API_docs_v91/constructors/chatInviteAlready.md new file mode 100644 index 00000000..1d0c1d18 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatInviteAlready.md @@ -0,0 +1,44 @@ +--- +title: chatInviteAlready +description: Invite of a chat of which I am already member +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatInviteAlready +[Back to constructors index](index.md) + + + +Invite of a chat of which I am already member + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat|[Chat](../types/Chat.md) | Optional|Chat| + + + +### Type: [ChatInvite](../types/ChatInvite.md) + + +### Example: + +```php +$chatInviteAlready = ['_' => 'chatInviteAlready', 'chat' => Chat]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatInviteAlready", "chat": Chat} +``` + + +Or, if you're into Lua: + +```lua +chatInviteAlready={_='chatInviteAlready', chat=Chat} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatInviteEmpty.md b/old_docs/API_docs_v91/constructors/chatInviteEmpty.md new file mode 100644 index 00000000..98c377da --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatInviteEmpty.md @@ -0,0 +1,39 @@ +--- +title: chatInviteEmpty +description: Empty chat invite +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatInviteEmpty +[Back to constructors index](index.md) + + + +Empty chat invite + + + + +### Type: [ExportedChatInvite](../types/ExportedChatInvite.md) + + +### Example: + +```php +$chatInviteEmpty = ['_' => 'chatInviteEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatInviteEmpty"} +``` + + +Or, if you're into Lua: + +```lua +chatInviteEmpty={_='chatInviteEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatInviteExported.md b/old_docs/API_docs_v91/constructors/chatInviteExported.md new file mode 100644 index 00000000..9ba2789a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatInviteExported.md @@ -0,0 +1,44 @@ +--- +title: chatInviteExported +description: Exported chat invite +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatInviteExported +[Back to constructors index](index.md) + + + +Exported chat invite + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|link|[string](../types/string.md) | Yes|Link| + + + +### Type: [ExportedChatInvite](../types/ExportedChatInvite.md) + + +### Example: + +```php +$chatInviteExported = ['_' => 'chatInviteExported', 'link' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatInviteExported", "link": "string"} +``` + + +Or, if you're into Lua: + +```lua +chatInviteExported={_='chatInviteExported', link='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatOnlines.md b/old_docs/API_docs_v91/constructors/chatOnlines.md new file mode 100644 index 00000000..ec7121d5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatOnlines.md @@ -0,0 +1,44 @@ +--- +title: chatOnlines +description: Chat onlines +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatOnlines +[Back to constructors index](index.md) + + + +Chat onlines + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|onlines|[int](../types/int.md) | Yes|Onlines| + + + +### Type: [ChatOnlines](../types/ChatOnlines.md) + + +### Example: + +```php +$chatOnlines = ['_' => 'chatOnlines', 'onlines' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatOnlines", "onlines": int} +``` + + +Or, if you're into Lua: + +```lua +chatOnlines={_='chatOnlines', onlines=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatParticipant.md b/old_docs/API_docs_v91/constructors/chatParticipant.md new file mode 100644 index 00000000..692081c1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatParticipant.md @@ -0,0 +1,46 @@ +--- +title: chatParticipant +description: Chat participant +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatParticipant +[Back to constructors index](index.md) + + + +Chat participant + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|inviter\_id|[int](../types/int.md) | Yes|Inviter ID| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [ChatParticipant](../types/ChatParticipant.md) + + +### Example: + +```php +$chatParticipant = ['_' => 'chatParticipant', 'user_id' => int, 'inviter_id' => int, 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatParticipant", "user_id": int, "inviter_id": int, "date": int} +``` + + +Or, if you're into Lua: + +```lua +chatParticipant={_='chatParticipant', user_id=int, inviter_id=int, date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatParticipantAdmin.md b/old_docs/API_docs_v91/constructors/chatParticipantAdmin.md new file mode 100644 index 00000000..65c66938 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatParticipantAdmin.md @@ -0,0 +1,46 @@ +--- +title: chatParticipantAdmin +description: Chat participant admin +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatParticipantAdmin +[Back to constructors index](index.md) + + + +Chat participant admin + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|inviter\_id|[int](../types/int.md) | Yes|Inviter ID| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [ChatParticipant](../types/ChatParticipant.md) + + +### Example: + +```php +$chatParticipantAdmin = ['_' => 'chatParticipantAdmin', 'user_id' => int, 'inviter_id' => int, 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatParticipantAdmin", "user_id": int, "inviter_id": int, "date": int} +``` + + +Or, if you're into Lua: + +```lua +chatParticipantAdmin={_='chatParticipantAdmin', user_id=int, inviter_id=int, date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatParticipantCreator.md b/old_docs/API_docs_v91/constructors/chatParticipantCreator.md new file mode 100644 index 00000000..e9a0e0e8 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatParticipantCreator.md @@ -0,0 +1,44 @@ +--- +title: chatParticipantCreator +description: Chat participant creator +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatParticipantCreator +[Back to constructors index](index.md) + + + +Chat participant creator + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| + + + +### Type: [ChatParticipant](../types/ChatParticipant.md) + + +### Example: + +```php +$chatParticipantCreator = ['_' => 'chatParticipantCreator', 'user_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatParticipantCreator", "user_id": int} +``` + + +Or, if you're into Lua: + +```lua +chatParticipantCreator={_='chatParticipantCreator', user_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatParticipants.md b/old_docs/API_docs_v91/constructors/chatParticipants.md new file mode 100644 index 00000000..404cab4b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatParticipants.md @@ -0,0 +1,46 @@ +--- +title: chatParticipants +description: Chat participants +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatParticipants +[Back to constructors index](index.md) + + + +Chat participants + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|participants|Array of [ChatParticipant](../types/ChatParticipant.md) | Yes|Participants| +|version|[int](../types/int.md) | Yes|Version| + + + +### Type: [ChatParticipants](../types/ChatParticipants.md) + + +### Example: + +```php +$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [ChatParticipant, ChatParticipant], 'version' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatParticipants", "chat_id": int, "participants": [ChatParticipant], "version": int} +``` + + +Or, if you're into Lua: + +```lua +chatParticipants={_='chatParticipants', chat_id=int, participants={ChatParticipant}, version=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatParticipantsForbidden.md b/old_docs/API_docs_v91/constructors/chatParticipantsForbidden.md new file mode 100644 index 00000000..5ad27498 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatParticipantsForbidden.md @@ -0,0 +1,45 @@ +--- +title: chatParticipantsForbidden +description: Chat participants forbidden +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatParticipantsForbidden +[Back to constructors index](index.md) + + + +Chat participants forbidden + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|self\_participant|[ChatParticipant](../types/ChatParticipant.md) | Optional|Self participant| + + + +### Type: [ChatParticipants](../types/ChatParticipants.md) + + +### Example: + +```php +$chatParticipantsForbidden = ['_' => 'chatParticipantsForbidden', 'chat_id' => int, 'self_participant' => ChatParticipant]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatParticipantsForbidden", "chat_id": int, "self_participant": ChatParticipant} +``` + + +Or, if you're into Lua: + +```lua +chatParticipantsForbidden={_='chatParticipantsForbidden', chat_id=int, self_participant=ChatParticipant} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatPhoto.md b/old_docs/API_docs_v91/constructors/chatPhoto.md new file mode 100644 index 00000000..9fdefeeb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatPhoto.md @@ -0,0 +1,45 @@ +--- +title: chatPhoto +description: Chat photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatPhoto +[Back to constructors index](index.md) + + + +Chat photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|photo\_small|[FileLocation](../types/FileLocation.md) | Yes|Photo small| +|photo\_big|[FileLocation](../types/FileLocation.md) | Yes|Photo big| + + + +### Type: [ChatPhoto](../types/ChatPhoto.md) + + +### Example: + +```php +$chatPhoto = ['_' => 'chatPhoto', 'photo_small' => FileLocation, 'photo_big' => FileLocation]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatPhoto", "photo_small": FileLocation, "photo_big": FileLocation} +``` + + +Or, if you're into Lua: + +```lua +chatPhoto={_='chatPhoto', photo_small=FileLocation, photo_big=FileLocation} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/chatPhotoEmpty.md b/old_docs/API_docs_v91/constructors/chatPhotoEmpty.md new file mode 100644 index 00000000..778e0bb1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/chatPhotoEmpty.md @@ -0,0 +1,39 @@ +--- +title: chatPhotoEmpty +description: Empty chat photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: chatPhotoEmpty +[Back to constructors index](index.md) + + + +Empty chat photo + + + + +### Type: [ChatPhoto](../types/ChatPhoto.md) + + +### Example: + +```php +$chatPhotoEmpty = ['_' => 'chatPhotoEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "chatPhotoEmpty"} +``` + + +Or, if you're into Lua: + +```lua +chatPhotoEmpty={_='chatPhotoEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/config.md b/old_docs/API_docs_v91/constructors/config.md new file mode 100644 index 00000000..6c535c23 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/config.md @@ -0,0 +1,93 @@ +--- +title: config +description: Config +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: config +[Back to constructors index](index.md) + + + +Config + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phonecalls\_enabled|[Bool](../types/Bool.md) | Optional|Phonecalls enabled?| +|default\_p2p\_contacts|[Bool](../types/Bool.md) | Optional|Default p2p contacts?| +|preload\_featured\_stickers|[Bool](../types/Bool.md) | Optional|Preload featured stickers?| +|ignore\_phone\_entities|[Bool](../types/Bool.md) | Optional|Ignore phone entities?| +|revoke\_pm\_inbox|[Bool](../types/Bool.md) | Optional|Revoke pm inbox?| +|blocked\_mode|[Bool](../types/Bool.md) | Optional|Blocked mode?| +|pfs\_enabled|[Bool](../types/Bool.md) | Optional|Pfs enabled?| +|date|[int](../types/int.md) | Yes|Date| +|expires|[int](../types/int.md) | Yes|Expires| +|test\_mode|[Bool](../types/Bool.md) | Yes|Test mode?| +|this\_dc|[int](../types/int.md) | Yes|This DC| +|dc\_options|Array of [DcOption](../types/DcOption.md) | Yes|DC options| +|dc\_txt\_domain\_name|[string](../types/string.md) | Yes|DC txt domain name| +|chat\_size\_max|[int](../types/int.md) | Yes|Chat size max| +|megagroup\_size\_max|[int](../types/int.md) | Yes|Megagroup size max| +|forwarded\_count\_max|[int](../types/int.md) | Yes|Forwarded count max| +|online\_update\_period\_ms|[int](../types/int.md) | Yes|Online update period ms| +|offline\_blur\_timeout\_ms|[int](../types/int.md) | Yes|Offline blur timeout ms| +|offline\_idle\_timeout\_ms|[int](../types/int.md) | Yes|Offline IDle timeout ms| +|online\_cloud\_timeout\_ms|[int](../types/int.md) | Yes|Online cloud timeout ms| +|notify\_cloud\_delay\_ms|[int](../types/int.md) | Yes|Notify cloud delay ms| +|notify\_default\_delay\_ms|[int](../types/int.md) | Yes|Notify default delay ms| +|push\_chat\_period\_ms|[int](../types/int.md) | Yes|Push chat period ms| +|push\_chat\_limit|[int](../types/int.md) | Yes|Push chat limit| +|saved\_gifs\_limit|[int](../types/int.md) | Yes|Saved gifs limit| +|edit\_time\_limit|[int](../types/int.md) | Yes|Edit time limit| +|revoke\_time\_limit|[int](../types/int.md) | Yes|Revoke time limit| +|revoke\_pm\_time\_limit|[int](../types/int.md) | Yes|Revoke pm time limit| +|rating\_e\_decay|[int](../types/int.md) | Yes|Rating e decay| +|stickers\_recent\_limit|[int](../types/int.md) | Yes|Stickers recent limit| +|stickers\_faved\_limit|[int](../types/int.md) | Yes|Stickers faved limit| +|channels\_read\_media\_period|[int](../types/int.md) | Yes|Channels read media period| +|tmp\_sessions|[int](../types/int.md) | Optional|Tmp sessions| +|pinned\_dialogs\_count\_max|[int](../types/int.md) | Yes|Pinned dialogs count max| +|call\_receive\_timeout\_ms|[int](../types/int.md) | Yes|Call receive timeout ms| +|call\_ring\_timeout\_ms|[int](../types/int.md) | Yes|Call ring timeout ms| +|call\_connect\_timeout\_ms|[int](../types/int.md) | Yes|Call connect timeout ms| +|call\_packet\_timeout\_ms|[int](../types/int.md) | Yes|Call packet timeout ms| +|me\_url\_prefix|[string](../types/string.md) | Yes|Me URL prefix| +|autoupdate\_url\_prefix|[string](../types/string.md) | Optional|Autoupdate URL prefix| +|gif\_search\_username|[string](../types/string.md) | Optional|Gif search username| +|venue\_search\_username|[string](../types/string.md) | Optional|Venue search username| +|img\_search\_username|[string](../types/string.md) | Optional|Img search username| +|static\_maps\_provider|[string](../types/string.md) | Optional|Static maps provider| +|caption\_length\_max|[int](../types/int.md) | Yes|Caption length max| +|message\_length\_max|[int](../types/int.md) | Yes|Message length max| +|webfile\_dc\_id|[int](../types/int.md) | Yes|Webfile DC ID| +|suggested\_lang\_code|[string](../types/string.md) | Optional|Suggested lang code| +|lang\_pack\_version|[int](../types/int.md) | Optional|Lang pack version| +|base\_lang\_pack\_version|[int](../types/int.md) | Optional|Base lang pack version| + + + +### Type: [Config](../types/Config.md) + + +### Example: + +```php +$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'default_p2p_contacts' => Bool, 'preload_featured_stickers' => Bool, 'ignore_phone_entities' => Bool, 'revoke_pm_inbox' => Bool, 'blocked_mode' => Bool, 'pfs_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, 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' => int, 'pinned_dialogs_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' => 'string', 'gif_search_username' => 'string', 'venue_search_username' => 'string', 'img_search_username' => 'string', 'static_maps_provider' => 'string', 'caption_length_max' => int, 'message_length_max' => int, 'webfile_dc_id' => int, 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'base_lang_pack_version' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "config", "phonecalls_enabled": Bool, "default_p2p_contacts": Bool, "preload_featured_stickers": Bool, "ignore_phone_entities": Bool, "revoke_pm_inbox": Bool, "blocked_mode": Bool, "pfs_enabled": Bool, "date": int, "expires": int, "test_mode": Bool, "this_dc": int, "dc_options": [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": int, "pinned_dialogs_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": "string", "gif_search_username": "string", "venue_search_username": "string", "img_search_username": "string", "static_maps_provider": "string", "caption_length_max": int, "message_length_max": int, "webfile_dc_id": int, "suggested_lang_code": "string", "lang_pack_version": int, "base_lang_pack_version": int} +``` + + +Or, if you're into Lua: + +```lua +config={_='config', phonecalls_enabled=Bool, default_p2p_contacts=Bool, preload_featured_stickers=Bool, ignore_phone_entities=Bool, revoke_pm_inbox=Bool, blocked_mode=Bool, pfs_enabled=Bool, date=int, expires=int, test_mode=Bool, this_dc=int, dc_options={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=int, pinned_dialogs_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='string', gif_search_username='string', venue_search_username='string', img_search_username='string', static_maps_provider='string', caption_length_max=int, message_length_max=int, webfile_dc_id=int, suggested_lang_code='string', lang_pack_version=int, base_lang_pack_version=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contact.md b/old_docs/API_docs_v91/constructors/contact.md new file mode 100644 index 00000000..8f60b155 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contact.md @@ -0,0 +1,45 @@ +--- +title: contact +description: Contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contact +[Back to constructors index](index.md) + + + +Contact + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|mutual|[Bool](../types/Bool.md) | Yes|Mutual?| + + + +### Type: [Contact](../types/Contact.md) + + +### Example: + +```php +$contact = ['_' => 'contact', 'user_id' => int, 'mutual' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contact", "user_id": int, "mutual": Bool} +``` + + +Or, if you're into Lua: + +```lua +contact={_='contact', user_id=int, mutual=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contactBlocked.md b/old_docs/API_docs_v91/constructors/contactBlocked.md new file mode 100644 index 00000000..bb3fca51 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contactBlocked.md @@ -0,0 +1,45 @@ +--- +title: contactBlocked +description: Contact blocked +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contactBlocked +[Back to constructors index](index.md) + + + +Contact blocked + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [ContactBlocked](../types/ContactBlocked.md) + + +### Example: + +```php +$contactBlocked = ['_' => 'contactBlocked', 'user_id' => int, 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contactBlocked", "user_id": int, "date": int} +``` + + +Or, if you're into Lua: + +```lua +contactBlocked={_='contactBlocked', user_id=int, date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contactLinkContact.md b/old_docs/API_docs_v91/constructors/contactLinkContact.md new file mode 100644 index 00000000..dab25db6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contactLinkContact.md @@ -0,0 +1,39 @@ +--- +title: contactLinkContact +description: Contact link contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contactLinkContact +[Back to constructors index](index.md) + + + +Contact link contact + + + + +### Type: [ContactLink](../types/ContactLink.md) + + +### Example: + +```php +$contactLinkContact = ['_' => 'contactLinkContact']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contactLinkContact"} +``` + + +Or, if you're into Lua: + +```lua +contactLinkContact={_='contactLinkContact'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contactLinkHasPhone.md b/old_docs/API_docs_v91/constructors/contactLinkHasPhone.md new file mode 100644 index 00000000..3de9f776 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contactLinkHasPhone.md @@ -0,0 +1,39 @@ +--- +title: contactLinkHasPhone +description: Contact link has phone +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contactLinkHasPhone +[Back to constructors index](index.md) + + + +Contact link has phone + + + + +### Type: [ContactLink](../types/ContactLink.md) + + +### Example: + +```php +$contactLinkHasPhone = ['_' => 'contactLinkHasPhone']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contactLinkHasPhone"} +``` + + +Or, if you're into Lua: + +```lua +contactLinkHasPhone={_='contactLinkHasPhone'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contactLinkNone.md b/old_docs/API_docs_v91/constructors/contactLinkNone.md new file mode 100644 index 00000000..a6850d8f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contactLinkNone.md @@ -0,0 +1,39 @@ +--- +title: contactLinkNone +description: Contact link none +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contactLinkNone +[Back to constructors index](index.md) + + + +Contact link none + + + + +### Type: [ContactLink](../types/ContactLink.md) + + +### Example: + +```php +$contactLinkNone = ['_' => 'contactLinkNone']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contactLinkNone"} +``` + + +Or, if you're into Lua: + +```lua +contactLinkNone={_='contactLinkNone'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contactLinkUnknown.md b/old_docs/API_docs_v91/constructors/contactLinkUnknown.md new file mode 100644 index 00000000..cddb62a6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contactLinkUnknown.md @@ -0,0 +1,39 @@ +--- +title: contactLinkUnknown +description: Contact link unknown +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contactLinkUnknown +[Back to constructors index](index.md) + + + +Contact link unknown + + + + +### Type: [ContactLink](../types/ContactLink.md) + + +### Example: + +```php +$contactLinkUnknown = ['_' => 'contactLinkUnknown']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contactLinkUnknown"} +``` + + +Or, if you're into Lua: + +```lua +contactLinkUnknown={_='contactLinkUnknown'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contactStatus.md b/old_docs/API_docs_v91/constructors/contactStatus.md new file mode 100644 index 00000000..20c9d93e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contactStatus.md @@ -0,0 +1,45 @@ +--- +title: contactStatus +description: Contact status +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contactStatus +[Back to constructors index](index.md) + + + +Contact status + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|status|[UserStatus](../types/UserStatus.md) | Optional|Status| + + + +### Type: [ContactStatus](../types/ContactStatus.md) + + +### Example: + +```php +$contactStatus = ['_' => 'contactStatus', 'user_id' => int, 'status' => UserStatus]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contactStatus", "user_id": int, "status": UserStatus} +``` + + +Or, if you're into Lua: + +```lua +contactStatus={_='contactStatus', user_id=int, status=UserStatus} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contacts_blocked.md b/old_docs/API_docs_v91/constructors/contacts_blocked.md new file mode 100644 index 00000000..63698a80 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contacts_blocked.md @@ -0,0 +1,45 @@ +--- +title: contacts.blocked +description: Blocked +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contacts.blocked +[Back to constructors index](index.md) + + + +Blocked + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|blocked|Array of [ContactBlocked](../types/ContactBlocked.md) | Yes|Blocked| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [contacts\_Blocked](../types/contacts_Blocked.md) + + +### Example: + +```php +$contacts_blocked = ['_' => 'contacts.blocked', 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contacts.blocked", "blocked": [ContactBlocked], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +contacts_blocked={_='contacts.blocked', blocked={ContactBlocked}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contacts_blockedSlice.md b/old_docs/API_docs_v91/constructors/contacts_blockedSlice.md new file mode 100644 index 00000000..c608ff48 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contacts_blockedSlice.md @@ -0,0 +1,46 @@ +--- +title: contacts.blockedSlice +description: Blocked slice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contacts.blockedSlice +[Back to constructors index](index.md) + + + +Blocked slice + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|count|[int](../types/int.md) | Yes|Count| +|blocked|Array of [ContactBlocked](../types/ContactBlocked.md) | Yes|Blocked| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [contacts\_Blocked](../types/contacts_Blocked.md) + + +### Example: + +```php +$contacts_blockedSlice = ['_' => 'contacts.blockedSlice', 'count' => int, 'blocked' => [ContactBlocked, ContactBlocked], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contacts.blockedSlice", "count": int, "blocked": [ContactBlocked], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +contacts_blockedSlice={_='contacts.blockedSlice', count=int, blocked={ContactBlocked}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contacts_contacts.md b/old_docs/API_docs_v91/constructors/contacts_contacts.md new file mode 100644 index 00000000..18d9783d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contacts_contacts.md @@ -0,0 +1,46 @@ +--- +title: contacts.contacts +description: Contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contacts.contacts +[Back to constructors index](index.md) + + + +Contacts + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|contacts|Array of [Contact](../types/Contact.md) | Yes|Contacts| +|saved\_count|[int](../types/int.md) | Yes|Saved count| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [contacts\_Contacts](../types/contacts_Contacts.md) + + +### Example: + +```php +$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact, Contact], 'saved_count' => int, 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contacts.contacts", "contacts": [Contact], "saved_count": int, "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +contacts_contacts={_='contacts.contacts', contacts={Contact}, saved_count=int, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contacts_contactsNotModified.md b/old_docs/API_docs_v91/constructors/contacts_contactsNotModified.md new file mode 100644 index 00000000..aeb70859 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contacts_contactsNotModified.md @@ -0,0 +1,39 @@ +--- +title: contacts.contactsNotModified +description: Contacts not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contacts.contactsNotModified +[Back to constructors index](index.md) + + + +Contacts not modified + + + + +### Type: [contacts\_Contacts](../types/contacts_Contacts.md) + + +### Example: + +```php +$contacts_contactsNotModified = ['_' => 'contacts.contactsNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contacts.contactsNotModified"} +``` + + +Or, if you're into Lua: + +```lua +contacts_contactsNotModified={_='contacts.contactsNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contacts_found.md b/old_docs/API_docs_v91/constructors/contacts_found.md new file mode 100644 index 00000000..7f09a20a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contacts_found.md @@ -0,0 +1,47 @@ +--- +title: contacts.found +description: Found +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contacts.found +[Back to constructors index](index.md) + + + +Found + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|my\_results|Array of [Peer](../types/Peer.md) | Yes|My results| +|results|Array of [Peer](../types/Peer.md) | Yes|Results| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [contacts\_Found](../types/contacts_Found.md) + + +### Example: + +```php +$contacts_found = ['_' => 'contacts.found', 'my_results' => [Peer, Peer], 'results' => [Peer, Peer], 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contacts.found", "my_results": [Peer], "results": [Peer], "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +contacts_found={_='contacts.found', my_results={Peer}, results={Peer}, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contacts_importedContacts.md b/old_docs/API_docs_v91/constructors/contacts_importedContacts.md new file mode 100644 index 00000000..bf175cc4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contacts_importedContacts.md @@ -0,0 +1,47 @@ +--- +title: contacts.importedContacts +description: Imported contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contacts.importedContacts +[Back to constructors index](index.md) + + + +Imported contacts + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|imported|Array of [ImportedContact](../types/ImportedContact.md) | Yes|Imported| +|popular\_invites|Array of [PopularContact](../types/PopularContact.md) | Yes|Popular invites| +|retry\_contacts|Array of [long](../types/long.md) | Yes|Retry importing contacts whose client IDs appear here| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + + +### Example: + +```php +$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact, ImportedContact], 'popular_invites' => [PopularContact, PopularContact], 'retry_contacts' => [long, long], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contacts.importedContacts", "imported": [ImportedContact], "popular_invites": [PopularContact], "retry_contacts": [long], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +contacts_importedContacts={_='contacts.importedContacts', imported={ImportedContact}, popular_invites={PopularContact}, retry_contacts={long}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contacts_link.md b/old_docs/API_docs_v91/constructors/contacts_link.md new file mode 100644 index 00000000..aa7576b7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contacts_link.md @@ -0,0 +1,46 @@ +--- +title: contacts.link +description: Link +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contacts.link +[Back to constructors index](index.md) + + + +Link + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|my\_link|[ContactLink](../types/ContactLink.md) | Yes|My link| +|foreign\_link|[ContactLink](../types/ContactLink.md) | Yes|Foreign link| +|user|[User](../types/User.md) | Optional|User| + + + +### Type: [contacts\_Link](../types/contacts_Link.md) + + +### Example: + +```php +$contacts_link = ['_' => 'contacts.link', 'my_link' => ContactLink, 'foreign_link' => ContactLink, 'user' => User]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contacts.link", "my_link": ContactLink, "foreign_link": ContactLink, "user": User} +``` + + +Or, if you're into Lua: + +```lua +contacts_link={_='contacts.link', my_link=ContactLink, foreign_link=ContactLink, user=User} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contacts_resolvedPeer.md b/old_docs/API_docs_v91/constructors/contacts_resolvedPeer.md new file mode 100644 index 00000000..4aa3749d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contacts_resolvedPeer.md @@ -0,0 +1,46 @@ +--- +title: contacts.resolvedPeer +description: Resolved peer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contacts.resolvedPeer +[Back to constructors index](index.md) + + + +Resolved peer + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Peer](../types/Peer.md) | Yes|Peer| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + + +### Example: + +```php +$contacts_resolvedPeer = ['_' => 'contacts.resolvedPeer', 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contacts.resolvedPeer", "peer": Peer, "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +contacts_resolvedPeer={_='contacts.resolvedPeer', peer=Peer, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contacts_topPeers.md b/old_docs/API_docs_v91/constructors/contacts_topPeers.md new file mode 100644 index 00000000..76cd2377 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contacts_topPeers.md @@ -0,0 +1,46 @@ +--- +title: contacts.topPeers +description: Top peers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contacts.topPeers +[Back to constructors index](index.md) + + + +Top peers + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|categories|Array of [TopPeerCategoryPeers](../types/TopPeerCategoryPeers.md) | Yes|Categories| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [contacts\_TopPeers](../types/contacts_TopPeers.md) + + +### Example: + +```php +$contacts_topPeers = ['_' => 'contacts.topPeers', 'categories' => [TopPeerCategoryPeers, TopPeerCategoryPeers], 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contacts.topPeers", "categories": [TopPeerCategoryPeers], "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +contacts_topPeers={_='contacts.topPeers', categories={TopPeerCategoryPeers}, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contacts_topPeersDisabled.md b/old_docs/API_docs_v91/constructors/contacts_topPeersDisabled.md new file mode 100644 index 00000000..737bc990 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contacts_topPeersDisabled.md @@ -0,0 +1,39 @@ +--- +title: contacts.topPeersDisabled +description: Top peers disabled +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contacts.topPeersDisabled +[Back to constructors index](index.md) + + + +Top peers disabled + + + + +### Type: [contacts\_TopPeers](../types/contacts_TopPeers.md) + + +### Example: + +```php +$contacts_topPeersDisabled = ['_' => 'contacts.topPeersDisabled']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contacts.topPeersDisabled"} +``` + + +Or, if you're into Lua: + +```lua +contacts_topPeersDisabled={_='contacts.topPeersDisabled'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/contacts_topPeersNotModified.md b/old_docs/API_docs_v91/constructors/contacts_topPeersNotModified.md new file mode 100644 index 00000000..333ed4d2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/contacts_topPeersNotModified.md @@ -0,0 +1,39 @@ +--- +title: contacts.topPeersNotModified +description: Top peers not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: contacts.topPeersNotModified +[Back to constructors index](index.md) + + + +Top peers not modified + + + + +### Type: [contacts\_TopPeers](../types/contacts_TopPeers.md) + + +### Example: + +```php +$contacts_topPeersNotModified = ['_' => 'contacts.topPeersNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "contacts.topPeersNotModified"} +``` + + +Or, if you're into Lua: + +```lua +contacts_topPeersNotModified={_='contacts.topPeersNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/dataJSON.md b/old_docs/API_docs_v91/constructors/dataJSON.md new file mode 100644 index 00000000..d3d230f1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/dataJSON.md @@ -0,0 +1,44 @@ +--- +title: dataJSON +description: Data json +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: dataJSON +[Back to constructors index](index.md) + + + +Data json + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|data|[string](../types/string.md) | Yes|Data| + + + +### Type: [DataJSON](../types/DataJSON.md) + + +### Example: + +```php +$dataJSON = ['_' => 'dataJSON', 'data' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "dataJSON", "data": "string"} +``` + + +Or, if you're into Lua: + +```lua +dataJSON={_='dataJSON', data='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/dcOption.md b/old_docs/API_docs_v91/constructors/dcOption.md new file mode 100644 index 00000000..8d561d23 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/dcOption.md @@ -0,0 +1,52 @@ +--- +title: dcOption +description: DC option +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: dcOption +[Back to constructors index](index.md) + + + +DC option + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ipv6|[Bool](../types/Bool.md) | Optional|Ipv6?| +|media\_only|[Bool](../types/Bool.md) | Optional|Media only?| +|tcpo\_only|[Bool](../types/Bool.md) | Optional|Tcpo only?| +|cdn|[Bool](../types/Bool.md) | Optional|Cdn?| +|static|[Bool](../types/Bool.md) | Optional|Static?| +|id|[int](../types/int.md) | Yes|ID| +|ip\_address|[string](../types/string.md) | Yes|Ip address| +|port|[int](../types/int.md) | Yes|Port| +|secret|[bytes](../types/bytes.md) | Optional|Secret| + + + +### Type: [DcOption](../types/DcOption.md) + + +### Example: + +```php +$dcOption = ['_' => 'dcOption', 'ipv6' => Bool, 'media_only' => Bool, 'tcpo_only' => Bool, 'cdn' => Bool, 'static' => Bool, 'id' => int, 'ip_address' => 'string', 'port' => int, 'secret' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "dcOption", "ipv6": Bool, "media_only": Bool, "tcpo_only": Bool, "cdn": Bool, "static": Bool, "id": int, "ip_address": "string", "port": int, "secret": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +dcOption={_='dcOption', ipv6=Bool, media_only=Bool, tcpo_only=Bool, cdn=Bool, static=Bool, id=int, ip_address='string', port=int, secret='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/dialog.md b/old_docs/API_docs_v91/constructors/dialog.md new file mode 100644 index 00000000..07ec92d4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/dialog.md @@ -0,0 +1,54 @@ +--- +title: dialog +description: Dialog +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: dialog +[Back to constructors index](index.md) + + + +Dialog + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|pinned|[Bool](../types/Bool.md) | Optional|Pinned?| +|unread\_mark|[Bool](../types/Bool.md) | Optional|Unread mark?| +|peer|[Peer](../types/Peer.md) | Yes|Peer| +|top\_message|[int](../types/int.md) | Yes|Top message| +|read\_inbox\_max\_id|[int](../types/int.md) | Yes|Read inbox max ID| +|read\_outbox\_max\_id|[int](../types/int.md) | Yes|Read outbox max ID| +|unread\_count|[int](../types/int.md) | Yes|Unread count| +|unread\_mentions\_count|[int](../types/int.md) | Yes|Unread mentions count| +|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Yes|Notify settings| +|pts|[int](../types/int.md) | Optional|Pts| +|draft|[DraftMessage](../types/DraftMessage.md) | Optional|Draft| + + + +### Type: [Dialog](../types/Dialog.md) + + +### Example: + +```php +$dialog = ['_' => 'dialog', 'pinned' => Bool, 'unread_mark' => Bool, 'peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'unread_mentions_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, 'draft' => DraftMessage]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "dialog", "pinned": Bool, "unread_mark": Bool, "peer": Peer, "top_message": int, "read_inbox_max_id": int, "read_outbox_max_id": int, "unread_count": int, "unread_mentions_count": int, "notify_settings": PeerNotifySettings, "pts": int, "draft": DraftMessage} +``` + + +Or, if you're into Lua: + +```lua +dialog={_='dialog', pinned=Bool, unread_mark=Bool, peer=Peer, top_message=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, unread_mentions_count=int, notify_settings=PeerNotifySettings, pts=int, draft=DraftMessage} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/dialogPeer.md b/old_docs/API_docs_v91/constructors/dialogPeer.md new file mode 100644 index 00000000..f5d1b621 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/dialogPeer.md @@ -0,0 +1,44 @@ +--- +title: dialogPeer +description: Dialog peer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: dialogPeer +[Back to constructors index](index.md) + + + +Dialog peer + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Peer](../types/Peer.md) | Yes|Peer| + + + +### Type: [DialogPeer](../types/DialogPeer.md) + + +### Example: + +```php +$dialogPeer = ['_' => 'dialogPeer', 'peer' => Peer]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "dialogPeer", "peer": Peer} +``` + + +Or, if you're into Lua: + +```lua +dialogPeer={_='dialogPeer', peer=Peer} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/document.md b/old_docs/API_docs_v91/constructors/document.md new file mode 100644 index 00000000..50e35358 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/document.md @@ -0,0 +1,52 @@ +--- +title: document +description: Document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: document +[Back to constructors index](index.md) + + + +Document + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|file\_reference|[bytes](../types/bytes.md) | Yes|File reference| +|date|[int](../types/int.md) | Yes|Date| +|mime\_type|[string](../types/string.md) | Yes|Mime type| +|size|[int](../types/int.md) | Yes|Size| +|thumb|[PhotoSize](../types/PhotoSize.md) | Optional|Thumbnail| +|dc\_id|[int](../types/int.md) | Yes|DC ID| +|attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes|Attributes| + + + +### Type: [Document](../types/Document.md) + + +### Example: + +```php +$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes', 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "document", "id": long, "access_hash": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}, "date": int, "mime_type": "string", "size": int, "thumb": PhotoSize, "dc_id": int, "attributes": [DocumentAttribute]} +``` + + +Or, if you're into Lua: + +```lua +document={_='document', id=long, access_hash=long, file_reference='bytes', date=int, mime_type='string', size=int, thumb=PhotoSize, dc_id=int, attributes={DocumentAttribute}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/documentAttributeAnimated.md b/old_docs/API_docs_v91/constructors/documentAttributeAnimated.md new file mode 100644 index 00000000..21cd10d3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/documentAttributeAnimated.md @@ -0,0 +1,39 @@ +--- +title: documentAttributeAnimated +description: Document attribute animated +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: documentAttributeAnimated +[Back to constructors index](index.md) + + + +Document attribute animated + + + + +### Type: [DocumentAttribute](../types/DocumentAttribute.md) + + +### Example: + +```php +$documentAttributeAnimated = ['_' => 'documentAttributeAnimated']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "documentAttributeAnimated"} +``` + + +Or, if you're into Lua: + +```lua +documentAttributeAnimated={_='documentAttributeAnimated'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/documentAttributeAudio.md b/old_docs/API_docs_v91/constructors/documentAttributeAudio.md new file mode 100644 index 00000000..919784c8 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/documentAttributeAudio.md @@ -0,0 +1,48 @@ +--- +title: documentAttributeAudio +description: Document attribute audio +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: documentAttributeAudio +[Back to constructors index](index.md) + + + +Document attribute audio + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|voice|[Bool](../types/Bool.md) | Optional|Voice?| +|duration|[int](../types/int.md) | Optional|Duration| +|title|[string](../types/string.md) | Optional|Title| +|performer|[string](../types/string.md) | Optional|Performer| +|waveform|[bytes](../types/bytes.md) | Optional|Waveform| + + + +### Type: [DocumentAttribute](../types/DocumentAttribute.md) + + +### Example: + +```php +$documentAttributeAudio = ['_' => 'documentAttributeAudio', 'voice' => Bool, 'duration' => int, 'title' => 'string', 'performer' => 'string', 'waveform' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "documentAttributeAudio", "voice": Bool, "duration": int, "title": "string", "performer": "string", "waveform": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +documentAttributeAudio={_='documentAttributeAudio', voice=Bool, duration=int, title='string', performer='string', waveform='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/documentAttributeFilename.md b/old_docs/API_docs_v91/constructors/documentAttributeFilename.md new file mode 100644 index 00000000..57d05673 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/documentAttributeFilename.md @@ -0,0 +1,44 @@ +--- +title: documentAttributeFilename +description: Document attribute filename +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: documentAttributeFilename +[Back to constructors index](index.md) + + + +Document attribute filename + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|file\_name|[string](../types/string.md) | Yes|File name| + + + +### Type: [DocumentAttribute](../types/DocumentAttribute.md) + + +### Example: + +```php +$documentAttributeFilename = ['_' => 'documentAttributeFilename', 'file_name' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "documentAttributeFilename", "file_name": "string"} +``` + + +Or, if you're into Lua: + +```lua +documentAttributeFilename={_='documentAttributeFilename', file_name='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/documentAttributeHasStickers.md b/old_docs/API_docs_v91/constructors/documentAttributeHasStickers.md new file mode 100644 index 00000000..fbd247f4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/documentAttributeHasStickers.md @@ -0,0 +1,39 @@ +--- +title: documentAttributeHasStickers +description: Document attribute has stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: documentAttributeHasStickers +[Back to constructors index](index.md) + + + +Document attribute has stickers + + + + +### Type: [DocumentAttribute](../types/DocumentAttribute.md) + + +### Example: + +```php +$documentAttributeHasStickers = ['_' => 'documentAttributeHasStickers']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "documentAttributeHasStickers"} +``` + + +Or, if you're into Lua: + +```lua +documentAttributeHasStickers={_='documentAttributeHasStickers'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/documentAttributeImageSize.md b/old_docs/API_docs_v91/constructors/documentAttributeImageSize.md new file mode 100644 index 00000000..cb077530 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/documentAttributeImageSize.md @@ -0,0 +1,45 @@ +--- +title: documentAttributeImageSize +description: Document attribute image size +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: documentAttributeImageSize +[Back to constructors index](index.md) + + + +Document attribute image size + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|w|[int](../types/int.md) | Optional|Width| +|h|[int](../types/int.md) | Optional|Height| + + + +### Type: [DocumentAttribute](../types/DocumentAttribute.md) + + +### Example: + +```php +$documentAttributeImageSize = ['_' => 'documentAttributeImageSize', 'w' => int, 'h' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "documentAttributeImageSize", "w": int, "h": int} +``` + + +Or, if you're into Lua: + +```lua +documentAttributeImageSize={_='documentAttributeImageSize', w=int, h=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/documentAttributeSticker.md b/old_docs/API_docs_v91/constructors/documentAttributeSticker.md new file mode 100644 index 00000000..8dcba2e8 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/documentAttributeSticker.md @@ -0,0 +1,47 @@ +--- +title: documentAttributeSticker +description: Document attribute sticker +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: documentAttributeSticker +[Back to constructors index](index.md) + + + +Document attribute sticker + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|mask|[Bool](../types/Bool.md) | Optional|Mask?| +|alt|[string](../types/string.md) | Yes|Alt| +|stickerset|[InputStickerSet](../types/InputStickerSet.md) | Optional|Stickerset| +|mask\_coords|[MaskCoords](../types/MaskCoords.md) | Optional|Mask coords| + + + +### Type: [DocumentAttribute](../types/DocumentAttribute.md) + + +### Example: + +```php +$documentAttributeSticker = ['_' => 'documentAttributeSticker', 'mask' => Bool, 'alt' => 'string', 'stickerset' => InputStickerSet, 'mask_coords' => MaskCoords]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "documentAttributeSticker", "mask": Bool, "alt": "string", "stickerset": InputStickerSet, "mask_coords": MaskCoords} +``` + + +Or, if you're into Lua: + +```lua +documentAttributeSticker={_='documentAttributeSticker', mask=Bool, alt='string', stickerset=InputStickerSet, mask_coords=MaskCoords} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/documentAttributeVideo.md b/old_docs/API_docs_v91/constructors/documentAttributeVideo.md new file mode 100644 index 00000000..5f5b8167 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/documentAttributeVideo.md @@ -0,0 +1,48 @@ +--- +title: documentAttributeVideo +description: Document attribute video +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: documentAttributeVideo +[Back to constructors index](index.md) + + + +Document attribute video + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|round\_message|[Bool](../types/Bool.md) | Optional|Round message?| +|supports\_streaming|[Bool](../types/Bool.md) | Optional|Supports streaming?| +|duration|[int](../types/int.md) | Optional|Duration| +|w|[int](../types/int.md) | Optional|Width| +|h|[int](../types/int.md) | Optional|Height| + + + +### Type: [DocumentAttribute](../types/DocumentAttribute.md) + + +### Example: + +```php +$documentAttributeVideo = ['_' => 'documentAttributeVideo', 'round_message' => Bool, 'supports_streaming' => Bool, 'duration' => int, 'w' => int, 'h' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "documentAttributeVideo", "round_message": Bool, "supports_streaming": Bool, "duration": int, "w": int, "h": int} +``` + + +Or, if you're into Lua: + +```lua +documentAttributeVideo={_='documentAttributeVideo', round_message=Bool, supports_streaming=Bool, duration=int, w=int, h=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/documentEmpty.md b/old_docs/API_docs_v91/constructors/documentEmpty.md new file mode 100644 index 00000000..634ea085 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/documentEmpty.md @@ -0,0 +1,44 @@ +--- +title: documentEmpty +description: Empty document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: documentEmpty +[Back to constructors index](index.md) + + + +Empty document + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| + + + +### Type: [Document](../types/Document.md) + + +### Example: + +```php +$documentEmpty = ['_' => 'documentEmpty', 'id' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "documentEmpty", "id": long} +``` + + +Or, if you're into Lua: + +```lua +documentEmpty={_='documentEmpty', id=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/draftMessage.md b/old_docs/API_docs_v91/constructors/draftMessage.md new file mode 100644 index 00000000..a50d7d2f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/draftMessage.md @@ -0,0 +1,48 @@ +--- +title: draftMessage +description: Draft message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: draftMessage +[Back to constructors index](index.md) + + + +Draft message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|no\_webpage|[Bool](../types/Bool.md) | Optional|No webpage?| +|reply\_to\_msg\_id|[int](../types/int.md) | Optional|Reply to msg ID| +|message|[string](../types/string.md) | Yes|Message| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [DraftMessage](../types/DraftMessage.md) + + +### Example: + +```php +$draftMessage = ['_' => 'draftMessage', 'no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "draftMessage", "no_webpage": Bool, "reply_to_msg_id": int, "message": "string", "entities": [MessageEntity], "date": int} +``` + + +Or, if you're into Lua: + +```lua +draftMessage={_='draftMessage', no_webpage=Bool, reply_to_msg_id=int, message='string', entities={MessageEntity}, date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/draftMessageEmpty.md b/old_docs/API_docs_v91/constructors/draftMessageEmpty.md new file mode 100644 index 00000000..cb616dc1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/draftMessageEmpty.md @@ -0,0 +1,44 @@ +--- +title: draftMessageEmpty +description: Empty draft message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: draftMessageEmpty +[Back to constructors index](index.md) + + + +Empty draft message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|date|[int](../types/int.md) | Optional|Date| + + + +### Type: [DraftMessage](../types/DraftMessage.md) + + +### Example: + +```php +$draftMessageEmpty = ['_' => 'draftMessageEmpty', 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "draftMessageEmpty", "date": int} +``` + + +Or, if you're into Lua: + +```lua +draftMessageEmpty={_='draftMessageEmpty', date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/encryptedChat.md b/old_docs/API_docs_v91/constructors/encryptedChat.md new file mode 100644 index 00000000..c8341c1b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/encryptedChat.md @@ -0,0 +1,50 @@ +--- +title: encryptedChat +description: Encrypted chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: encryptedChat +[Back to constructors index](index.md) + + + +Encrypted chat + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|date|[int](../types/int.md) | Yes|Date| +|admin\_id|[int](../types/int.md) | Yes|Admin ID| +|participant\_id|[int](../types/int.md) | Yes|Participant ID| +|g\_a\_or\_b|[bytes](../types/bytes.md) | Yes|G a or b| +|key\_fingerprint|[long](../types/long.md) | Yes|Key fingerprint| + + + +### Type: [EncryptedChat](../types/EncryptedChat.md) + + +### Example: + +```php +$encryptedChat = ['_' => 'encryptedChat', 'id' => int, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a_or_b' => 'bytes', 'key_fingerprint' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "key_fingerprint": long} +``` + + +Or, if you're into Lua: + +```lua +encryptedChat={_='encryptedChat', id=int, access_hash=long, date=int, admin_id=int, participant_id=int, g_a_or_b='bytes', key_fingerprint=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/encryptedChatDiscarded.md b/old_docs/API_docs_v91/constructors/encryptedChatDiscarded.md new file mode 100644 index 00000000..b1c97dfb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/encryptedChatDiscarded.md @@ -0,0 +1,44 @@ +--- +title: encryptedChatDiscarded +description: Encrypted chat discarded +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: encryptedChatDiscarded +[Back to constructors index](index.md) + + + +Encrypted chat discarded + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [EncryptedChat](../types/EncryptedChat.md) + + +### Example: + +```php +$encryptedChatDiscarded = ['_' => 'encryptedChatDiscarded', 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "encryptedChatDiscarded", "id": int} +``` + + +Or, if you're into Lua: + +```lua +encryptedChatDiscarded={_='encryptedChatDiscarded', id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/encryptedChatEmpty.md b/old_docs/API_docs_v91/constructors/encryptedChatEmpty.md new file mode 100644 index 00000000..e78d7a1d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/encryptedChatEmpty.md @@ -0,0 +1,44 @@ +--- +title: encryptedChatEmpty +description: Empty encrypted chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: encryptedChatEmpty +[Back to constructors index](index.md) + + + +Empty encrypted chat + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [EncryptedChat](../types/EncryptedChat.md) + + +### Example: + +```php +$encryptedChatEmpty = ['_' => 'encryptedChatEmpty', 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "encryptedChatEmpty", "id": int} +``` + + +Or, if you're into Lua: + +```lua +encryptedChatEmpty={_='encryptedChatEmpty', id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/encryptedChatRequested.md b/old_docs/API_docs_v91/constructors/encryptedChatRequested.md new file mode 100644 index 00000000..8d24a31b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/encryptedChatRequested.md @@ -0,0 +1,49 @@ +--- +title: encryptedChatRequested +description: Encrypted chat requested +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: encryptedChatRequested +[Back to constructors index](index.md) + + + +Encrypted chat requested + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|date|[int](../types/int.md) | Yes|Date| +|admin\_id|[int](../types/int.md) | Yes|Admin ID| +|participant\_id|[int](../types/int.md) | Yes|Participant ID| +|g\_a|[bytes](../types/bytes.md) | Yes|G a| + + + +### Type: [EncryptedChat](../types/EncryptedChat.md) + + +### Example: + +```php +$encryptedChatRequested = ['_' => 'encryptedChatRequested', 'id' => int, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +encryptedChatRequested={_='encryptedChatRequested', id=int, access_hash=long, date=int, admin_id=int, participant_id=int, g_a='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/encryptedChatWaiting.md b/old_docs/API_docs_v91/constructors/encryptedChatWaiting.md new file mode 100644 index 00000000..600c3da6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/encryptedChatWaiting.md @@ -0,0 +1,48 @@ +--- +title: encryptedChatWaiting +description: Encrypted chat waiting +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: encryptedChatWaiting +[Back to constructors index](index.md) + + + +Encrypted chat waiting + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|date|[int](../types/int.md) | Yes|Date| +|admin\_id|[int](../types/int.md) | Yes|Admin ID| +|participant\_id|[int](../types/int.md) | Yes|Participant ID| + + + +### Type: [EncryptedChat](../types/EncryptedChat.md) + + +### Example: + +```php +$encryptedChatWaiting = ['_' => 'encryptedChatWaiting', 'id' => int, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "encryptedChatWaiting", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int} +``` + + +Or, if you're into Lua: + +```lua +encryptedChatWaiting={_='encryptedChatWaiting', id=int, access_hash=long, date=int, admin_id=int, participant_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/encryptedFile.md b/old_docs/API_docs_v91/constructors/encryptedFile.md new file mode 100644 index 00000000..f5bede3e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/encryptedFile.md @@ -0,0 +1,48 @@ +--- +title: encryptedFile +description: Encrypted file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: encryptedFile +[Back to constructors index](index.md) + + + +Encrypted file + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|size|[int](../types/int.md) | Yes|Size| +|dc\_id|[int](../types/int.md) | Yes|DC ID| +|key\_fingerprint|[int](../types/int.md) | Yes|Key fingerprint| + + + +### Type: [EncryptedFile](../types/EncryptedFile.md) + + +### Example: + +```php +$encryptedFile = ['_' => 'encryptedFile', 'id' => long, 'access_hash' => long, 'size' => int, 'dc_id' => int, 'key_fingerprint' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "encryptedFile", "id": long, "access_hash": long, "size": int, "dc_id": int, "key_fingerprint": int} +``` + + +Or, if you're into Lua: + +```lua +encryptedFile={_='encryptedFile', id=long, access_hash=long, size=int, dc_id=int, key_fingerprint=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/encryptedFileEmpty.md b/old_docs/API_docs_v91/constructors/encryptedFileEmpty.md new file mode 100644 index 00000000..9533b4a8 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/encryptedFileEmpty.md @@ -0,0 +1,39 @@ +--- +title: encryptedFileEmpty +description: Empty encrypted file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: encryptedFileEmpty +[Back to constructors index](index.md) + + + +Empty encrypted file + + + + +### Type: [EncryptedFile](../types/EncryptedFile.md) + + +### Example: + +```php +$encryptedFileEmpty = ['_' => 'encryptedFileEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "encryptedFileEmpty"} +``` + + +Or, if you're into Lua: + +```lua +encryptedFileEmpty={_='encryptedFileEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/encryptedMessage.md b/old_docs/API_docs_v91/constructors/encryptedMessage.md new file mode 100644 index 00000000..bf602f3e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/encryptedMessage.md @@ -0,0 +1,47 @@ +--- +title: encryptedMessage +description: Encrypted message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: encryptedMessage +[Back to constructors index](index.md) + + + +Encrypted message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|date|[int](../types/int.md) | Yes|Date| +|decrypted\_message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes|Decrypted message| +|file|[EncryptedFile](../types/EncryptedFile.md) | Optional|File| + + + +### Type: [EncryptedMessage](../types/EncryptedMessage.md) + + +### Example: + +```php +$encryptedMessage = ['_' => 'encryptedMessage', 'chat_id' => int, 'date' => int, 'decrypted_message' => DecryptedMessage, 'file' => EncryptedFile]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "encryptedMessage", "chat_id": int, "date": int, "decrypted_message": DecryptedMessage, "file": EncryptedFile} +``` + + +Or, if you're into Lua: + +```lua +encryptedMessage={_='encryptedMessage', chat_id=int, date=int, decrypted_message=DecryptedMessage, file=EncryptedFile} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/encryptedMessageService.md b/old_docs/API_docs_v91/constructors/encryptedMessageService.md new file mode 100644 index 00000000..23b2bba7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/encryptedMessageService.md @@ -0,0 +1,46 @@ +--- +title: encryptedMessageService +description: Encrypted message service +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: encryptedMessageService +[Back to constructors index](index.md) + + + +Encrypted message service + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|date|[int](../types/int.md) | Yes|Date| +|decrypted\_message|[DecryptedMessage](../types/DecryptedMessage.md) | Yes|Decrypted message| + + + +### Type: [EncryptedMessage](../types/EncryptedMessage.md) + + +### Example: + +```php +$encryptedMessageService = ['_' => 'encryptedMessageService', 'chat_id' => int, 'date' => int, 'decrypted_message' => DecryptedMessage]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "encryptedMessageService", "chat_id": int, "date": int, "decrypted_message": DecryptedMessage} +``` + + +Or, if you're into Lua: + +```lua +encryptedMessageService={_='encryptedMessageService', chat_id=int, date=int, decrypted_message=DecryptedMessage} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/error.md b/old_docs/API_docs_v91/constructors/error.md new file mode 100644 index 00000000..50efe7e6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/error.md @@ -0,0 +1,45 @@ +--- +title: error +description: Error +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: error +[Back to constructors index](index.md) + + + +Error + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|code|[int](../types/int.md) | Yes|Code| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [Error](../types/Error.md) + + +### Example: + +```php +$error = ['_' => 'error', 'code' => int, 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "error", "code": int, "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +error={_='error', code=int, text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/exportedMessageLink.md b/old_docs/API_docs_v91/constructors/exportedMessageLink.md new file mode 100644 index 00000000..e231144c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/exportedMessageLink.md @@ -0,0 +1,45 @@ +--- +title: exportedMessageLink +description: Exported message link +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: exportedMessageLink +[Back to constructors index](index.md) + + + +Exported message link + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|link|[string](../types/string.md) | Yes|Link| +|html|[string](../types/string.md) | Yes|Html| + + + +### Type: [ExportedMessageLink](../types/ExportedMessageLink.md) + + +### Example: + +```php +$exportedMessageLink = ['_' => 'exportedMessageLink', 'link' => 'string', 'html' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "exportedMessageLink", "link": "string", "html": "string"} +``` + + +Or, if you're into Lua: + +```lua +exportedMessageLink={_='exportedMessageLink', link='string', html='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/fileHash.md b/old_docs/API_docs_v91/constructors/fileHash.md new file mode 100644 index 00000000..e974b5f3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/fileHash.md @@ -0,0 +1,46 @@ +--- +title: fileHash +description: File hash +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: fileHash +[Back to constructors index](index.md) + + + +File hash + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|limit|[int](../types/int.md) | Yes|Limit| +|hash|[bytes](../types/bytes.md) | Yes|Hash| + + + +### Type: [FileHash](../types/FileHash.md) + + +### Example: + +```php +$fileHash = ['_' => 'fileHash', 'offset' => int, 'limit' => int, 'hash' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "fileHash", "offset": int, "limit": int, "hash": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +fileHash={_='fileHash', offset=int, limit=int, hash='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/fileLocation.md b/old_docs/API_docs_v91/constructors/fileLocation.md new file mode 100644 index 00000000..643b0acd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/fileLocation.md @@ -0,0 +1,48 @@ +--- +title: fileLocation +description: File location +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: fileLocation +[Back to constructors index](index.md) + + + +File location + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|dc\_id|[int](../types/int.md) | Yes|DC ID| +|volume\_id|[long](../types/long.md) | Yes|Volume ID| +|local\_id|[int](../types/int.md) | Yes|Local ID| +|secret|[long](../types/long.md) | Yes|Secret| +|file\_reference|[bytes](../types/bytes.md) | Yes|File reference| + + + +### Type: [FileLocation](../types/FileLocation.md) + + +### Example: + +```php +$fileLocation = ['_' => 'fileLocation', 'dc_id' => int, 'volume_id' => long, 'local_id' => int, 'secret' => long, 'file_reference' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "fileLocation", "dc_id": int, "volume_id": long, "local_id": int, "secret": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +fileLocation={_='fileLocation', dc_id=int, volume_id=long, local_id=int, secret=long, file_reference='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/fileLocationUnavailable.md b/old_docs/API_docs_v91/constructors/fileLocationUnavailable.md new file mode 100644 index 00000000..3a713e8d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/fileLocationUnavailable.md @@ -0,0 +1,46 @@ +--- +title: fileLocationUnavailable +description: File location unavailable +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: fileLocationUnavailable +[Back to constructors index](index.md) + + + +File location unavailable + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|volume\_id|[long](../types/long.md) | Yes|Volume ID| +|local\_id|[int](../types/int.md) | Yes|Local ID| +|secret|[long](../types/long.md) | Yes|Secret| + + + +### Type: [FileLocation](../types/FileLocation.md) + + +### Example: + +```php +$fileLocationUnavailable = ['_' => 'fileLocationUnavailable', 'volume_id' => long, 'local_id' => int, 'secret' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "fileLocationUnavailable", "volume_id": long, "local_id": int, "secret": long} +``` + + +Or, if you're into Lua: + +```lua +fileLocationUnavailable={_='fileLocationUnavailable', volume_id=long, local_id=int, secret=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/foundGif.md b/old_docs/API_docs_v91/constructors/foundGif.md new file mode 100644 index 00000000..c51d289c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/foundGif.md @@ -0,0 +1,49 @@ +--- +title: foundGif +description: Found gif +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: foundGif +[Back to constructors index](index.md) + + + +Found gif + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|thumb\_url|[string](../types/string.md) | Yes|Thumbnail URL| +|content\_url|[string](../types/string.md) | Yes|Content URL| +|content\_type|[string](../types/string.md) | Yes|Content type| +|w|[int](../types/int.md) | Yes|Width| +|h|[int](../types/int.md) | Yes|Height| + + + +### Type: [FoundGif](../types/FoundGif.md) + + +### Example: + +```php +$foundGif = ['_' => 'foundGif', 'url' => 'string', 'thumb_url' => 'string', 'content_url' => 'string', 'content_type' => 'string', 'w' => int, 'h' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "foundGif", "url": "string", "thumb_url": "string", "content_url": "string", "content_type": "string", "w": int, "h": int} +``` + + +Or, if you're into Lua: + +```lua +foundGif={_='foundGif', url='string', thumb_url='string', content_url='string', content_type='string', w=int, h=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/foundGifCached.md b/old_docs/API_docs_v91/constructors/foundGifCached.md new file mode 100644 index 00000000..7cda26ae --- /dev/null +++ b/old_docs/API_docs_v91/constructors/foundGifCached.md @@ -0,0 +1,46 @@ +--- +title: foundGifCached +description: Found gif cached +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: foundGifCached +[Back to constructors index](index.md) + + + +Found gif cached + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|photo|[Photo](../types/Photo.md) | Optional|Photo| +|document|[Document](../types/Document.md) | Optional|Document| + + + +### Type: [FoundGif](../types/FoundGif.md) + + +### Example: + +```php +$foundGifCached = ['_' => 'foundGifCached', 'url' => 'string', 'photo' => Photo, 'document' => Document]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "foundGifCached", "url": "string", "photo": Photo, "document": Document} +``` + + +Or, if you're into Lua: + +```lua +foundGifCached={_='foundGifCached', url='string', photo=Photo, document=Document} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/game.md b/old_docs/API_docs_v91/constructors/game.md new file mode 100644 index 00000000..63c3b975 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/game.md @@ -0,0 +1,50 @@ +--- +title: game +description: Game +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: game +[Back to constructors index](index.md) + + + +Game + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|short\_name|[string](../types/string.md) | Yes|Short name| +|title|[string](../types/string.md) | Yes|Title| +|description|[string](../types/string.md) | Yes|Description| +|photo|[Photo](../types/Photo.md) | Optional|Photo| +|document|[Document](../types/Document.md) | Optional|Document| + + + +### Type: [Game](../types/Game.md) + + +### Example: + +```php +$game = ['_' => 'game', 'id' => long, 'access_hash' => long, 'short_name' => 'string', 'title' => 'string', 'description' => 'string', 'photo' => Photo, 'document' => Document]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "game", "id": long, "access_hash": long, "short_name": "string", "title": "string", "description": "string", "photo": Photo, "document": Document} +``` + + +Or, if you're into Lua: + +```lua +game={_='game', id=long, access_hash=long, short_name='string', title='string', description='string', photo=Photo, document=Document} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/geoPoint.md b/old_docs/API_docs_v91/constructors/geoPoint.md new file mode 100644 index 00000000..5df6c15a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/geoPoint.md @@ -0,0 +1,46 @@ +--- +title: geoPoint +description: Geo point +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: geoPoint +[Back to constructors index](index.md) + + + +Geo point + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|long|[double](../types/double.md) | Yes|Long| +|lat|[double](../types/double.md) | Yes|Lat| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [GeoPoint](../types/GeoPoint.md) + + +### Example: + +```php +$geoPoint = ['_' => 'geoPoint', 'long' => double, 'lat' => double, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "geoPoint", "long": double, "lat": double, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +geoPoint={_='geoPoint', long=double, lat=double, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/geoPointEmpty.md b/old_docs/API_docs_v91/constructors/geoPointEmpty.md new file mode 100644 index 00000000..190b42de --- /dev/null +++ b/old_docs/API_docs_v91/constructors/geoPointEmpty.md @@ -0,0 +1,39 @@ +--- +title: geoPointEmpty +description: Empty geo point +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: geoPointEmpty +[Back to constructors index](index.md) + + + +Empty geo point + + + + +### Type: [GeoPoint](../types/GeoPoint.md) + + +### Example: + +```php +$geoPointEmpty = ['_' => 'geoPointEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "geoPointEmpty"} +``` + + +Or, if you're into Lua: + +```lua +geoPointEmpty={_='geoPointEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_appUpdate.md b/old_docs/API_docs_v91/constructors/help_appUpdate.md new file mode 100644 index 00000000..dd72edac --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_appUpdate.md @@ -0,0 +1,50 @@ +--- +title: help.appUpdate +description: App update +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.appUpdate +[Back to constructors index](index.md) + + + +App update + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|popup|[Bool](../types/Bool.md) | Optional|Popup?| +|id|[int](../types/int.md) | Yes|ID| +|version|[string](../types/string.md) | Yes|Version| +|text|[string](../types/string.md) | Yes|Text| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Yes|Entities| +|document|[Document](../types/Document.md) | Optional|Document| +|url|[string](../types/string.md) | Optional|URL| + + + +### Type: [help\_AppUpdate](../types/help_AppUpdate.md) + + +### Example: + +```php +$help_appUpdate = ['_' => 'help.appUpdate', 'popup' => Bool, 'id' => int, 'version' => 'string', 'text' => 'string', 'entities' => [MessageEntity, MessageEntity], 'document' => Document, 'url' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.appUpdate", "popup": Bool, "id": int, "version": "string", "text": "string", "entities": [MessageEntity], "document": Document, "url": "string"} +``` + + +Or, if you're into Lua: + +```lua +help_appUpdate={_='help.appUpdate', popup=Bool, id=int, version='string', text='string', entities={MessageEntity}, document=Document, url='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_configSimple.md b/old_docs/API_docs_v91/constructors/help_configSimple.md new file mode 100644 index 00000000..b606114c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_configSimple.md @@ -0,0 +1,46 @@ +--- +title: help.configSimple +description: Config simple +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.configSimple +[Back to constructors index](index.md) + + + +Config simple + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|date|[int](../types/int.md) | Yes|Date| +|expires|[int](../types/int.md) | Yes|Expires| +|rules|Array of [AccessPointRule](../types/AccessPointRule.md) | Yes|Rules| + + + +### Type: [help\_ConfigSimple](../types/help_ConfigSimple.md) + + +### Example: + +```php +$help_configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'rules' => [AccessPointRule, AccessPointRule]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.configSimple", "date": int, "expires": int, "rules": [AccessPointRule]} +``` + + +Or, if you're into Lua: + +```lua +help_configSimple={_='help.configSimple', date=int, expires=int, rules={AccessPointRule}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_deepLinkInfo.md b/old_docs/API_docs_v91/constructors/help_deepLinkInfo.md new file mode 100644 index 00000000..4d5cfe3d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_deepLinkInfo.md @@ -0,0 +1,46 @@ +--- +title: help.deepLinkInfo +description: Deep link info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.deepLinkInfo +[Back to constructors index](index.md) + + + +Deep link info + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|update\_app|[Bool](../types/Bool.md) | Optional|Update app?| +|message|[string](../types/string.md) | Yes|Message| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities| + + + +### Type: [help\_DeepLinkInfo](../types/help_DeepLinkInfo.md) + + +### Example: + +```php +$help_deepLinkInfo = ['_' => 'help.deepLinkInfo', 'update_app' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.deepLinkInfo", "update_app": Bool, "message": "string", "entities": [MessageEntity]} +``` + + +Or, if you're into Lua: + +```lua +help_deepLinkInfo={_='help.deepLinkInfo', update_app=Bool, message='string', entities={MessageEntity}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_deepLinkInfoEmpty.md b/old_docs/API_docs_v91/constructors/help_deepLinkInfoEmpty.md new file mode 100644 index 00000000..f92781b5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_deepLinkInfoEmpty.md @@ -0,0 +1,39 @@ +--- +title: help.deepLinkInfoEmpty +description: Empty deep link info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.deepLinkInfoEmpty +[Back to constructors index](index.md) + + + +Empty deep link info + + + + +### Type: [help\_DeepLinkInfo](../types/help_DeepLinkInfo.md) + + +### Example: + +```php +$help_deepLinkInfoEmpty = ['_' => 'help.deepLinkInfoEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.deepLinkInfoEmpty"} +``` + + +Or, if you're into Lua: + +```lua +help_deepLinkInfoEmpty={_='help.deepLinkInfoEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_inviteText.md b/old_docs/API_docs_v91/constructors/help_inviteText.md new file mode 100644 index 00000000..9043d500 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_inviteText.md @@ -0,0 +1,44 @@ +--- +title: help.inviteText +description: Invite text +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.inviteText +[Back to constructors index](index.md) + + + +Invite text + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[string](../types/string.md) | Yes|Message| + + + +### Type: [help\_InviteText](../types/help_InviteText.md) + + +### Example: + +```php +$help_inviteText = ['_' => 'help.inviteText', 'message' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.inviteText", "message": "string"} +``` + + +Or, if you're into Lua: + +```lua +help_inviteText={_='help.inviteText', message='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_noAppUpdate.md b/old_docs/API_docs_v91/constructors/help_noAppUpdate.md new file mode 100644 index 00000000..48120284 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_noAppUpdate.md @@ -0,0 +1,39 @@ +--- +title: help.noAppUpdate +description: No app update +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.noAppUpdate +[Back to constructors index](index.md) + + + +No app update + + + + +### Type: [help\_AppUpdate](../types/help_AppUpdate.md) + + +### Example: + +```php +$help_noAppUpdate = ['_' => 'help.noAppUpdate']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.noAppUpdate"} +``` + + +Or, if you're into Lua: + +```lua +help_noAppUpdate={_='help.noAppUpdate'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_passportConfig.md b/old_docs/API_docs_v91/constructors/help_passportConfig.md new file mode 100644 index 00000000..4fbee939 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_passportConfig.md @@ -0,0 +1,45 @@ +--- +title: help.passportConfig +description: Passport config +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.passportConfig +[Back to constructors index](index.md) + + + +Passport config + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|Hash| +|countries\_langs|[DataJSON](../types/DataJSON.md) | Yes|Countries langs| + + + +### Type: [help\_PassportConfig](../types/help_PassportConfig.md) + + +### Example: + +```php +$help_passportConfig = ['_' => 'help.passportConfig', 'hash' => int, 'countries_langs' => DataJSON]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.passportConfig", "hash": int, "countries_langs": DataJSON} +``` + + +Or, if you're into Lua: + +```lua +help_passportConfig={_='help.passportConfig', hash=int, countries_langs=DataJSON} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_passportConfigNotModified.md b/old_docs/API_docs_v91/constructors/help_passportConfigNotModified.md new file mode 100644 index 00000000..a0c1d6fc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_passportConfigNotModified.md @@ -0,0 +1,39 @@ +--- +title: help.passportConfigNotModified +description: Passport config not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.passportConfigNotModified +[Back to constructors index](index.md) + + + +Passport config not modified + + + + +### Type: [help\_PassportConfig](../types/help_PassportConfig.md) + + +### Example: + +```php +$help_passportConfigNotModified = ['_' => 'help.passportConfigNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.passportConfigNotModified"} +``` + + +Or, if you're into Lua: + +```lua +help_passportConfigNotModified={_='help.passportConfigNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_proxyDataEmpty.md b/old_docs/API_docs_v91/constructors/help_proxyDataEmpty.md new file mode 100644 index 00000000..faf4c4d2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_proxyDataEmpty.md @@ -0,0 +1,44 @@ +--- +title: help.proxyDataEmpty +description: Empty proxy data +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.proxyDataEmpty +[Back to constructors index](index.md) + + + +Empty proxy data + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|expires|[int](../types/int.md) | Yes|Expires| + + + +### Type: [help\_ProxyData](../types/help_ProxyData.md) + + +### Example: + +```php +$help_proxyDataEmpty = ['_' => 'help.proxyDataEmpty', 'expires' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.proxyDataEmpty", "expires": int} +``` + + +Or, if you're into Lua: + +```lua +help_proxyDataEmpty={_='help.proxyDataEmpty', expires=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_proxyDataPromo.md b/old_docs/API_docs_v91/constructors/help_proxyDataPromo.md new file mode 100644 index 00000000..b42479c0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_proxyDataPromo.md @@ -0,0 +1,47 @@ +--- +title: help.proxyDataPromo +description: Proxy data promo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.proxyDataPromo +[Back to constructors index](index.md) + + + +Proxy data promo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|expires|[int](../types/int.md) | Yes|Expires| +|peer|[Peer](../types/Peer.md) | Yes|Peer| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [help\_ProxyData](../types/help_ProxyData.md) + + +### Example: + +```php +$help_proxyDataPromo = ['_' => 'help.proxyDataPromo', 'expires' => int, 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.proxyDataPromo", "expires": int, "peer": Peer, "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +help_proxyDataPromo={_='help.proxyDataPromo', expires=int, peer=Peer, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_recentMeUrls.md b/old_docs/API_docs_v91/constructors/help_recentMeUrls.md new file mode 100644 index 00000000..0df88263 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_recentMeUrls.md @@ -0,0 +1,46 @@ +--- +title: help.recentMeUrls +description: Recent me URLs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.recentMeUrls +[Back to constructors index](index.md) + + + +Recent me URLs + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|urls|Array of [RecentMeUrl](../types/RecentMeUrl.md) | Yes|URLs| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [help\_RecentMeUrls](../types/help_RecentMeUrls.md) + + +### Example: + +```php +$help_recentMeUrls = ['_' => 'help.recentMeUrls', 'urls' => [RecentMeUrl, RecentMeUrl], 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.recentMeUrls", "urls": [RecentMeUrl], "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +help_recentMeUrls={_='help.recentMeUrls', urls={RecentMeUrl}, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_support.md b/old_docs/API_docs_v91/constructors/help_support.md new file mode 100644 index 00000000..cd726add --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_support.md @@ -0,0 +1,45 @@ +--- +title: help.support +description: Support +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.support +[Back to constructors index](index.md) + + + +Support + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|user|[User](../types/User.md) | Optional|User| + + + +### Type: [help\_Support](../types/help_Support.md) + + +### Example: + +```php +$help_support = ['_' => 'help.support', 'phone_number' => 'string', 'user' => User]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.support", "phone_number": "string", "user": User} +``` + + +Or, if you're into Lua: + +```lua +help_support={_='help.support', phone_number='string', user=User} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_supportName.md b/old_docs/API_docs_v91/constructors/help_supportName.md new file mode 100644 index 00000000..8c5c5010 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_supportName.md @@ -0,0 +1,44 @@ +--- +title: help.supportName +description: Support name +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.supportName +[Back to constructors index](index.md) + + + +Support name + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|name|[string](../types/string.md) | Yes|Name| + + + +### Type: [help\_SupportName](../types/help_SupportName.md) + + +### Example: + +```php +$help_supportName = ['_' => 'help.supportName', 'name' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.supportName", "name": "string"} +``` + + +Or, if you're into Lua: + +```lua +help_supportName={_='help.supportName', name='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_termsOfService.md b/old_docs/API_docs_v91/constructors/help_termsOfService.md new file mode 100644 index 00000000..52ffa088 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_termsOfService.md @@ -0,0 +1,48 @@ +--- +title: help.termsOfService +description: Terms of service +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.termsOfService +[Back to constructors index](index.md) + + + +Terms of service + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|popup|[Bool](../types/Bool.md) | Optional|Popup?| +|id|[DataJSON](../types/DataJSON.md) | Yes|ID| +|text|[string](../types/string.md) | Yes|Text| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Yes|Entities| +|min\_age\_confirm|[int](../types/int.md) | Optional|Min age confirm| + + + +### Type: [help\_TermsOfService](../types/help_TermsOfService.md) + + +### Example: + +```php +$help_termsOfService = ['_' => 'help.termsOfService', 'popup' => Bool, 'id' => DataJSON, 'text' => 'string', 'entities' => [MessageEntity, MessageEntity], 'min_age_confirm' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.termsOfService", "popup": Bool, "id": DataJSON, "text": "string", "entities": [MessageEntity], "min_age_confirm": int} +``` + + +Or, if you're into Lua: + +```lua +help_termsOfService={_='help.termsOfService', popup=Bool, id=DataJSON, text='string', entities={MessageEntity}, min_age_confirm=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_termsOfServiceUpdate.md b/old_docs/API_docs_v91/constructors/help_termsOfServiceUpdate.md new file mode 100644 index 00000000..79eb28a3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_termsOfServiceUpdate.md @@ -0,0 +1,45 @@ +--- +title: help.termsOfServiceUpdate +description: Terms of service update +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.termsOfServiceUpdate +[Back to constructors index](index.md) + + + +Terms of service update + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|expires|[int](../types/int.md) | Yes|Expires| +|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Yes|Terms of service| + + + +### Type: [help\_TermsOfServiceUpdate](../types/help_TermsOfServiceUpdate.md) + + +### Example: + +```php +$help_termsOfServiceUpdate = ['_' => 'help.termsOfServiceUpdate', 'expires' => int, 'terms_of_service' => help_TermsOfService]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.termsOfServiceUpdate", "expires": int, "terms_of_service": help_TermsOfService} +``` + + +Or, if you're into Lua: + +```lua +help_termsOfServiceUpdate={_='help.termsOfServiceUpdate', expires=int, terms_of_service=help_TermsOfService} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_termsOfServiceUpdateEmpty.md b/old_docs/API_docs_v91/constructors/help_termsOfServiceUpdateEmpty.md new file mode 100644 index 00000000..eb8cf1e9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_termsOfServiceUpdateEmpty.md @@ -0,0 +1,44 @@ +--- +title: help.termsOfServiceUpdateEmpty +description: Empty terms of service update +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.termsOfServiceUpdateEmpty +[Back to constructors index](index.md) + + + +Empty terms of service update + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|expires|[int](../types/int.md) | Yes|Expires| + + + +### Type: [help\_TermsOfServiceUpdate](../types/help_TermsOfServiceUpdate.md) + + +### Example: + +```php +$help_termsOfServiceUpdateEmpty = ['_' => 'help.termsOfServiceUpdateEmpty', 'expires' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.termsOfServiceUpdateEmpty", "expires": int} +``` + + +Or, if you're into Lua: + +```lua +help_termsOfServiceUpdateEmpty={_='help.termsOfServiceUpdateEmpty', expires=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_userInfo.md b/old_docs/API_docs_v91/constructors/help_userInfo.md new file mode 100644 index 00000000..cd8df3c7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_userInfo.md @@ -0,0 +1,47 @@ +--- +title: help.userInfo +description: User info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.userInfo +[Back to constructors index](index.md) + + + +User info + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[string](../types/string.md) | Yes|Message| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Yes|Entities| +|author|[string](../types/string.md) | Yes|Author| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [help\_UserInfo](../types/help_UserInfo.md) + + +### Example: + +```php +$help_userInfo = ['_' => 'help.userInfo', 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'author' => 'string', 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.userInfo", "message": "string", "entities": [MessageEntity], "author": "string", "date": int} +``` + + +Or, if you're into Lua: + +```lua +help_userInfo={_='help.userInfo', message='string', entities={MessageEntity}, author='string', date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/help_userInfoEmpty.md b/old_docs/API_docs_v91/constructors/help_userInfoEmpty.md new file mode 100644 index 00000000..83dbec52 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/help_userInfoEmpty.md @@ -0,0 +1,39 @@ +--- +title: help.userInfoEmpty +description: Empty user info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: help.userInfoEmpty +[Back to constructors index](index.md) + + + +Empty user info + + + + +### Type: [help\_UserInfo](../types/help_UserInfo.md) + + +### Example: + +```php +$help_userInfoEmpty = ['_' => 'help.userInfoEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "help.userInfoEmpty"} +``` + + +Or, if you're into Lua: + +```lua +help_userInfoEmpty={_='help.userInfoEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/highScore.md b/old_docs/API_docs_v91/constructors/highScore.md new file mode 100644 index 00000000..405113f4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/highScore.md @@ -0,0 +1,46 @@ +--- +title: highScore +description: High score +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: highScore +[Back to constructors index](index.md) + + + +High score + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|pos|[int](../types/int.md) | Yes|Pos| +|user\_id|[int](../types/int.md) | Yes|User ID| +|score|[int](../types/int.md) | Yes|Score| + + + +### Type: [HighScore](../types/HighScore.md) + + +### Example: + +```php +$highScore = ['_' => 'highScore', 'pos' => int, 'user_id' => int, 'score' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "highScore", "pos": int, "user_id": int, "score": int} +``` + + +Or, if you're into Lua: + +```lua +highScore={_='highScore', pos=int, user_id=int, score=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/importedContact.md b/old_docs/API_docs_v91/constructors/importedContact.md new file mode 100644 index 00000000..b03ca261 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/importedContact.md @@ -0,0 +1,45 @@ +--- +title: importedContact +description: Imported contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: importedContact +[Back to constructors index](index.md) + + + +Imported contact + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|client\_id|[long](../types/long.md) | Yes|Client ID| + + + +### Type: [ImportedContact](../types/ImportedContact.md) + + +### Example: + +```php +$importedContact = ['_' => 'importedContact', 'user_id' => int, 'client_id' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "importedContact", "user_id": int, "client_id": long} +``` + + +Or, if you're into Lua: + +```lua +importedContact={_='importedContact', user_id=int, client_id=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inlineBotSwitchPM.md b/old_docs/API_docs_v91/constructors/inlineBotSwitchPM.md new file mode 100644 index 00000000..251f8ee0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inlineBotSwitchPM.md @@ -0,0 +1,45 @@ +--- +title: inlineBotSwitchPM +description: Inline bot switch pm +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inlineBotSwitchPM +[Back to constructors index](index.md) + + + +Inline bot switch pm + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text| +|start\_param|[string](../types/string.md) | Yes|Start param| + + + +### Type: [InlineBotSwitchPM](../types/InlineBotSwitchPM.md) + + +### Example: + +```php +$inlineBotSwitchPM = ['_' => 'inlineBotSwitchPM', 'text' => 'string', 'start_param' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inlineBotSwitchPM", "text": "string", "start_param": "string"} +``` + + +Or, if you're into Lua: + +```lua +inlineBotSwitchPM={_='inlineBotSwitchPM', text='string', start_param='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputAppEvent.md b/old_docs/API_docs_v91/constructors/inputAppEvent.md new file mode 100644 index 00000000..4af0d462 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputAppEvent.md @@ -0,0 +1,47 @@ +--- +title: inputAppEvent +description: App event +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputAppEvent +[Back to constructors index](index.md) + + + +App event + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|time|[double](../types/double.md) | Yes|Time| +|type|[string](../types/string.md) | Yes|Type| +|peer|[long](../types/long.md) | Yes|Peer| +|data|[JSONValue](../types/JSONValue.md) | Yes|Data| + + + +### Type: [InputAppEvent](../types/InputAppEvent.md) + + +### Example: + +```php +$inputAppEvent = ['_' => 'inputAppEvent', 'time' => double, 'type' => 'string', 'peer' => long, 'data' => JSONValue]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputAppEvent", "time": double, "type": "string", "peer": long, "data": JSONValue} +``` + + +Or, if you're into Lua: + +```lua +inputAppEvent={_='inputAppEvent', time=double, type='string', peer=long, data=JSONValue} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputBotInlineMessageGame.md b/old_docs/API_docs_v91/constructors/inputBotInlineMessageGame.md new file mode 100644 index 00000000..0489fc74 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputBotInlineMessageGame.md @@ -0,0 +1,50 @@ +--- +title: inputBotInlineMessageGame +description: Bot inline message game +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputBotInlineMessageGame +[Back to constructors index](index.md) + + + +Bot inline message game + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| + + + +### Type: [InputBotInlineMessage](../types/InputBotInlineMessage.md) + + +### Example: + +```php +$inputBotInlineMessageGame = ['_' => 'inputBotInlineMessageGame', 'reply_markup' => ReplyMarkup]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputBotInlineMessageGame", "reply_markup": ReplyMarkup} +``` + + +Or, if you're into Lua: + +```lua +inputBotInlineMessageGame={_='inputBotInlineMessageGame', reply_markup=ReplyMarkup} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/inputBotInlineMessageID.md b/old_docs/API_docs_v91/constructors/inputBotInlineMessageID.md new file mode 100644 index 00000000..472df512 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputBotInlineMessageID.md @@ -0,0 +1,46 @@ +--- +title: inputBotInlineMessageID +description: Bot inline message ID +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputBotInlineMessageID +[Back to constructors index](index.md) + + + +Bot inline message ID + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|dc\_id|[int](../types/int.md) | Yes|DC ID| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputBotInlineMessageID](../types/InputBotInlineMessageID.md) + + +### Example: + +```php +$inputBotInlineMessageID = ['_' => 'inputBotInlineMessageID', 'dc_id' => int, 'id' => long, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputBotInlineMessageID", "dc_id": int, "id": long, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputBotInlineMessageID={_='inputBotInlineMessageID', dc_id=int, id=long, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaAuto.md b/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaAuto.md new file mode 100644 index 00000000..50cbd73f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaAuto.md @@ -0,0 +1,52 @@ +--- +title: inputBotInlineMessageMediaAuto +description: Bot inline message media auto +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputBotInlineMessageMediaAuto +[Back to constructors index](index.md) + + + +Bot inline message media auto + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[string](../types/string.md) | Yes|Message| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| + + + +### Type: [InputBotInlineMessage](../types/InputBotInlineMessage.md) + + +### Example: + +```php +$inputBotInlineMessageMediaAuto = ['_' => 'inputBotInlineMessageMediaAuto', 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputBotInlineMessageMediaAuto", "message": "string", "entities": [MessageEntity], "reply_markup": ReplyMarkup} +``` + + +Or, if you're into Lua: + +```lua +inputBotInlineMessageMediaAuto={_='inputBotInlineMessageMediaAuto', message='string', entities={MessageEntity}, reply_markup=ReplyMarkup} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaContact.md b/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaContact.md new file mode 100644 index 00000000..4d65c7c5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaContact.md @@ -0,0 +1,54 @@ +--- +title: inputBotInlineMessageMediaContact +description: Bot inline message media contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputBotInlineMessageMediaContact +[Back to constructors index](index.md) + + + +Bot inline message media contact + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|first\_name|[string](../types/string.md) | Yes|First name| +|last\_name|[string](../types/string.md) | Yes|Last name| +|vcard|[string](../types/string.md) | Yes|Vcard| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| + + + +### Type: [InputBotInlineMessage](../types/InputBotInlineMessage.md) + + +### Example: + +```php +$inputBotInlineMessageMediaContact = ['_' => 'inputBotInlineMessageMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'vcard' => 'string', 'reply_markup' => ReplyMarkup]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputBotInlineMessageMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "vcard": "string", "reply_markup": ReplyMarkup} +``` + + +Or, if you're into Lua: + +```lua +inputBotInlineMessageMediaContact={_='inputBotInlineMessageMediaContact', phone_number='string', first_name='string', last_name='string', vcard='string', reply_markup=ReplyMarkup} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaGeo.md b/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaGeo.md new file mode 100644 index 00000000..d58268fe --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaGeo.md @@ -0,0 +1,52 @@ +--- +title: inputBotInlineMessageMediaGeo +description: Bot inline message media geo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputBotInlineMessageMediaGeo +[Back to constructors index](index.md) + + + +Bot inline message media geo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional|Geo point| +|period|[int](../types/int.md) | Yes|Period| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| + + + +### Type: [InputBotInlineMessage](../types/InputBotInlineMessage.md) + + +### Example: + +```php +$inputBotInlineMessageMediaGeo = ['_' => 'inputBotInlineMessageMediaGeo', 'geo_point' => InputGeoPoint, 'period' => int, 'reply_markup' => ReplyMarkup]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputBotInlineMessageMediaGeo", "geo_point": InputGeoPoint, "period": int, "reply_markup": ReplyMarkup} +``` + + +Or, if you're into Lua: + +```lua +inputBotInlineMessageMediaGeo={_='inputBotInlineMessageMediaGeo', geo_point=InputGeoPoint, period=int, reply_markup=ReplyMarkup} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaVenue.md b/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaVenue.md new file mode 100644 index 00000000..d076bf75 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputBotInlineMessageMediaVenue.md @@ -0,0 +1,56 @@ +--- +title: inputBotInlineMessageMediaVenue +description: Bot inline message media venue +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputBotInlineMessageMediaVenue +[Back to constructors index](index.md) + + + +Bot inline message media venue + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional|Geo point| +|title|[string](../types/string.md) | Yes|Title| +|address|[string](../types/string.md) | Yes|Address| +|provider|[string](../types/string.md) | Yes|Provider| +|venue\_id|[string](../types/string.md) | Yes|Venue ID| +|venue\_type|[string](../types/string.md) | Yes|Venue type| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| + + + +### Type: [InputBotInlineMessage](../types/InputBotInlineMessage.md) + + +### Example: + +```php +$inputBotInlineMessageMediaVenue = ['_' => 'inputBotInlineMessageMediaVenue', 'geo_point' => InputGeoPoint, 'title' => 'string', 'address' => 'string', 'provider' => 'string', 'venue_id' => 'string', 'venue_type' => 'string', 'reply_markup' => ReplyMarkup]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputBotInlineMessageMediaVenue", "geo_point": InputGeoPoint, "title": "string", "address": "string", "provider": "string", "venue_id": "string", "venue_type": "string", "reply_markup": ReplyMarkup} +``` + + +Or, if you're into Lua: + +```lua +inputBotInlineMessageMediaVenue={_='inputBotInlineMessageMediaVenue', geo_point=InputGeoPoint, title='string', address='string', provider='string', venue_id='string', venue_type='string', reply_markup=ReplyMarkup} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v91/constructors/inputBotInlineMessageText.md new file mode 100644 index 00000000..0e8c0258 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputBotInlineMessageText.md @@ -0,0 +1,53 @@ +--- +title: inputBotInlineMessageText +description: Bot inline message text +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputBotInlineMessageText +[Back to constructors index](index.md) + + + +Bot inline message text + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|no\_webpage|[Bool](../types/Bool.md) | Optional|No webpage?| +|message|[string](../types/string.md) | Yes|Message| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| + + + +### Type: [InputBotInlineMessage](../types/InputBotInlineMessage.md) + + +### Example: + +```php +$inputBotInlineMessageText = ['_' => 'inputBotInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputBotInlineMessageText", "no_webpage": Bool, "message": "string", "entities": [MessageEntity], "reply_markup": ReplyMarkup} +``` + + +Or, if you're into Lua: + +```lua +inputBotInlineMessageText={_='inputBotInlineMessageText', no_webpage=Bool, message='string', entities={MessageEntity}, reply_markup=ReplyMarkup} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/inputBotInlineResult.md b/old_docs/API_docs_v91/constructors/inputBotInlineResult.md new file mode 100644 index 00000000..b367d951 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputBotInlineResult.md @@ -0,0 +1,51 @@ +--- +title: inputBotInlineResult +description: Bot inline result +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputBotInlineResult +[Back to constructors index](index.md) + + + +Bot inline result + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[string](../types/string.md) | Yes|ID| +|type|[string](../types/string.md) | Yes|Type| +|title|[string](../types/string.md) | Optional|Title| +|description|[string](../types/string.md) | Optional|Description| +|url|[string](../types/string.md) | Optional|URL| +|thumb|[InputWebDocument](../types/InputWebDocument.md) | Optional|Thumbnail| +|content|[InputWebDocument](../types/InputWebDocument.md) | Optional|Content| +|send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes|Message to send| + + + +### Type: [InputBotInlineResult](../types/InputBotInlineResult.md) + + +### Example: + +```php +$inputBotInlineResult = ['_' => 'inputBotInlineResult', 'id' => 'string', 'type' => 'string', 'title' => 'string', 'description' => 'string', 'url' => 'string', 'thumb' => InputWebDocument, 'content' => InputWebDocument, 'send_message' => InputBotInlineMessage]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputBotInlineResult", "id": "string", "type": "string", "title": "string", "description": "string", "url": "string", "thumb": InputWebDocument, "content": InputWebDocument, "send_message": InputBotInlineMessage} +``` + + +Or, if you're into Lua: + +```lua +inputBotInlineResult={_='inputBotInlineResult', id='string', type='string', title='string', description='string', url='string', thumb=InputWebDocument, content=InputWebDocument, send_message=InputBotInlineMessage} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputBotInlineResultDocument.md b/old_docs/API_docs_v91/constructors/inputBotInlineResultDocument.md new file mode 100644 index 00000000..c6565cd0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputBotInlineResultDocument.md @@ -0,0 +1,49 @@ +--- +title: inputBotInlineResultDocument +description: Bot inline result document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputBotInlineResultDocument +[Back to constructors index](index.md) + + + +Bot inline result document + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[string](../types/string.md) | Yes|ID| +|type|[string](../types/string.md) | Yes|Type| +|title|[string](../types/string.md) | Optional|Title| +|description|[string](../types/string.md) | Optional|Description| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional|Document| +|send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes|Message to send| + + + +### Type: [InputBotInlineResult](../types/InputBotInlineResult.md) + + +### Example: + +```php +$inputBotInlineResultDocument = ['_' => 'inputBotInlineResultDocument', 'id' => 'string', 'type' => 'string', 'title' => 'string', 'description' => 'string', 'document' => InputDocument, 'send_message' => InputBotInlineMessage]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputBotInlineResultDocument", "id": "string", "type": "string", "title": "string", "description": "string", "document": InputDocument, "send_message": InputBotInlineMessage} +``` + + +Or, if you're into Lua: + +```lua +inputBotInlineResultDocument={_='inputBotInlineResultDocument', id='string', type='string', title='string', description='string', document=InputDocument, send_message=InputBotInlineMessage} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputBotInlineResultGame.md b/old_docs/API_docs_v91/constructors/inputBotInlineResultGame.md new file mode 100644 index 00000000..194e8c68 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputBotInlineResultGame.md @@ -0,0 +1,46 @@ +--- +title: inputBotInlineResultGame +description: Bot inline result game +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputBotInlineResultGame +[Back to constructors index](index.md) + + + +Bot inline result game + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[string](../types/string.md) | Yes|ID| +|short\_name|[string](../types/string.md) | Yes|Short name| +|send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes|Message to send| + + + +### Type: [InputBotInlineResult](../types/InputBotInlineResult.md) + + +### Example: + +```php +$inputBotInlineResultGame = ['_' => 'inputBotInlineResultGame', 'id' => 'string', 'short_name' => 'string', 'send_message' => InputBotInlineMessage]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputBotInlineResultGame", "id": "string", "short_name": "string", "send_message": InputBotInlineMessage} +``` + + +Or, if you're into Lua: + +```lua +inputBotInlineResultGame={_='inputBotInlineResultGame', id='string', short_name='string', send_message=InputBotInlineMessage} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputBotInlineResultPhoto.md b/old_docs/API_docs_v91/constructors/inputBotInlineResultPhoto.md new file mode 100644 index 00000000..0a3d191f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputBotInlineResultPhoto.md @@ -0,0 +1,47 @@ +--- +title: inputBotInlineResultPhoto +description: Bot inline result photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputBotInlineResultPhoto +[Back to constructors index](index.md) + + + +Bot inline result photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[string](../types/string.md) | Yes|ID| +|type|[string](../types/string.md) | Yes|Type| +|photo|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional|Photo| +|send\_message|[InputBotInlineMessage](../types/InputBotInlineMessage.md) | Yes|Message to send| + + + +### Type: [InputBotInlineResult](../types/InputBotInlineResult.md) + + +### Example: + +```php +$inputBotInlineResultPhoto = ['_' => 'inputBotInlineResultPhoto', 'id' => 'string', 'type' => 'string', 'photo' => InputPhoto, 'send_message' => InputBotInlineMessage]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputBotInlineResultPhoto", "id": "string", "type": "string", "photo": InputPhoto, "send_message": InputBotInlineMessage} +``` + + +Or, if you're into Lua: + +```lua +inputBotInlineResultPhoto={_='inputBotInlineResultPhoto', id='string', type='string', photo=InputPhoto, send_message=InputBotInlineMessage} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputChannel.md b/old_docs/API_docs_v91/constructors/inputChannel.md new file mode 100644 index 00000000..7c2b8383 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputChannel.md @@ -0,0 +1,45 @@ +--- +title: inputChannel +description: Channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputChannel +[Back to constructors index](index.md) + + + +Channel + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputChannel](../types/InputChannel.md) + + +### Example: + +```php +$inputChannel = ['_' => 'inputChannel', 'channel_id' => int, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputChannel", "channel_id": int, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputChannel={_='inputChannel', channel_id=int, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputChannelEmpty.md b/old_docs/API_docs_v91/constructors/inputChannelEmpty.md new file mode 100644 index 00000000..83236767 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputChannelEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputChannelEmpty +description: Empty input channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputChannelEmpty +[Back to constructors index](index.md) + + + +Empty input channel + + + + +### Type: [InputChannel](../types/InputChannel.md) + + +### Example: + +```php +$inputChannelEmpty = ['_' => 'inputChannelEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputChannelEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputChannelEmpty={_='inputChannelEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputChatPhoto.md b/old_docs/API_docs_v91/constructors/inputChatPhoto.md new file mode 100644 index 00000000..55f90947 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputChatPhoto.md @@ -0,0 +1,44 @@ +--- +title: inputChatPhoto +description: Chat photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputChatPhoto +[Back to constructors index](index.md) + + + +Chat photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional|ID| + + + +### Type: [InputChatPhoto](../types/InputChatPhoto.md) + + +### Example: + +```php +$inputChatPhoto = ['_' => 'inputChatPhoto', 'id' => InputPhoto]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputChatPhoto", "id": InputPhoto} +``` + + +Or, if you're into Lua: + +```lua +inputChatPhoto={_='inputChatPhoto', id=InputPhoto} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputChatPhotoEmpty.md b/old_docs/API_docs_v91/constructors/inputChatPhotoEmpty.md new file mode 100644 index 00000000..f43ae983 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputChatPhotoEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputChatPhotoEmpty +description: Empty input chat photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputChatPhotoEmpty +[Back to constructors index](index.md) + + + +Empty input chat photo + + + + +### Type: [InputChatPhoto](../types/InputChatPhoto.md) + + +### Example: + +```php +$inputChatPhotoEmpty = ['_' => 'inputChatPhotoEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputChatPhotoEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputChatPhotoEmpty={_='inputChatPhotoEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputChatUploadedPhoto.md b/old_docs/API_docs_v91/constructors/inputChatUploadedPhoto.md new file mode 100644 index 00000000..f5e2ed89 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputChatUploadedPhoto.md @@ -0,0 +1,44 @@ +--- +title: inputChatUploadedPhoto +description: Chat uploaded photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputChatUploadedPhoto +[Back to constructors index](index.md) + + + +Chat uploaded photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|file|[File path or InputFile](../types/InputFile.md) | Yes|File| + + + +### Type: [InputChatPhoto](../types/InputChatPhoto.md) + + +### Example: + +```php +$inputChatUploadedPhoto = ['_' => 'inputChatUploadedPhoto', 'file' => InputFile]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputChatUploadedPhoto", "file": InputFile} +``` + + +Or, if you're into Lua: + +```lua +inputChatUploadedPhoto={_='inputChatUploadedPhoto', file=InputFile} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputCheckPasswordEmpty.md b/old_docs/API_docs_v91/constructors/inputCheckPasswordEmpty.md new file mode 100644 index 00000000..1debaba9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputCheckPasswordEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputCheckPasswordEmpty +description: Empty input check password +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputCheckPasswordEmpty +[Back to constructors index](index.md) + + + +Empty input check password + + + + +### Type: [InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) + + +### Example: + +```php +$inputCheckPasswordEmpty = ['_' => 'inputCheckPasswordEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputCheckPasswordEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputCheckPasswordEmpty={_='inputCheckPasswordEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputCheckPasswordSRP.md b/old_docs/API_docs_v91/constructors/inputCheckPasswordSRP.md new file mode 100644 index 00000000..851ebc5e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputCheckPasswordSRP.md @@ -0,0 +1,46 @@ +--- +title: inputCheckPasswordSRP +description: Check password srp +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputCheckPasswordSRP +[Back to constructors index](index.md) + + + +Check password srp + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|srp\_id|[long](../types/long.md) | Yes|Srp ID| +|A|[bytes](../types/bytes.md) | Yes|A| +|M1|[bytes](../types/bytes.md) | Yes|M1| + + + +### Type: [InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) + + +### Example: + +```php +$inputCheckPasswordSRP = ['_' => 'inputCheckPasswordSRP', 'srp_id' => long, 'A' => 'bytes', 'M1' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputCheckPasswordSRP", "srp_id": long, "A": {"_": "bytes", "bytes":"base64 encoded bytes"}, "M1": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +inputCheckPasswordSRP={_='inputCheckPasswordSRP', srp_id=long, A='bytes', M1='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputClientProxy.md b/old_docs/API_docs_v91/constructors/inputClientProxy.md new file mode 100644 index 00000000..dac66a95 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputClientProxy.md @@ -0,0 +1,45 @@ +--- +title: inputClientProxy +description: Client proxy +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputClientProxy +[Back to constructors index](index.md) + + + +Client proxy + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|address|[string](../types/string.md) | Yes|Address| +|port|[int](../types/int.md) | Yes|Port| + + + +### Type: [InputClientProxy](../types/InputClientProxy.md) + + +### Example: + +```php +$inputClientProxy = ['_' => 'inputClientProxy', 'address' => 'string', 'port' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputClientProxy", "address": "string", "port": int} +``` + + +Or, if you're into Lua: + +```lua +inputClientProxy={_='inputClientProxy', address='string', port=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputDialogPeer.md b/old_docs/API_docs_v91/constructors/inputDialogPeer.md new file mode 100644 index 00000000..f6585164 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputDialogPeer.md @@ -0,0 +1,44 @@ +--- +title: inputDialogPeer +description: Dialog peer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputDialogPeer +[Back to constructors index](index.md) + + + +Dialog peer + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|Peer| + + + +### Type: [InputDialogPeer](../types/InputDialogPeer.md) + + +### Example: + +```php +$inputDialogPeer = ['_' => 'inputDialogPeer', 'peer' => InputPeer]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputDialogPeer", "peer": InputPeer} +``` + + +Or, if you're into Lua: + +```lua +inputDialogPeer={_='inputDialogPeer', peer=InputPeer} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputDocument.md b/old_docs/API_docs_v91/constructors/inputDocument.md new file mode 100644 index 00000000..5a27e01b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputDocument.md @@ -0,0 +1,46 @@ +--- +title: inputDocument +description: Document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputDocument +[Back to constructors index](index.md) + + + +Document + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|file\_reference|[bytes](../types/bytes.md) | Yes|File reference| + + + +### Type: [InputDocument](../types/InputDocument.md) + + +### Example: + +```php +$inputDocument = ['_' => 'inputDocument', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputDocument", "id": long, "access_hash": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +inputDocument={_='inputDocument', id=long, access_hash=long, file_reference='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputDocumentEmpty.md b/old_docs/API_docs_v91/constructors/inputDocumentEmpty.md new file mode 100644 index 00000000..018c672e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputDocumentEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputDocumentEmpty +description: Empty input document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputDocumentEmpty +[Back to constructors index](index.md) + + + +Empty input document + + + + +### Type: [InputDocument](../types/InputDocument.md) + + +### Example: + +```php +$inputDocumentEmpty = ['_' => 'inputDocumentEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputDocumentEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputDocumentEmpty={_='inputDocumentEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputDocumentFileLocation.md b/old_docs/API_docs_v91/constructors/inputDocumentFileLocation.md new file mode 100644 index 00000000..b6032c29 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputDocumentFileLocation.md @@ -0,0 +1,46 @@ +--- +title: inputDocumentFileLocation +description: Document file location +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputDocumentFileLocation +[Back to constructors index](index.md) + + + +Document file location + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|file\_reference|[bytes](../types/bytes.md) | Yes|File reference| + + + +### Type: [InputFileLocation](../types/InputFileLocation.md) + + +### Example: + +```php +$inputDocumentFileLocation = ['_' => 'inputDocumentFileLocation', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputDocumentFileLocation", "id": long, "access_hash": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +inputDocumentFileLocation={_='inputDocumentFileLocation', id=long, access_hash=long, file_reference='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputEncryptedChat.md b/old_docs/API_docs_v91/constructors/inputEncryptedChat.md new file mode 100644 index 00000000..38a0ce5c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputEncryptedChat.md @@ -0,0 +1,45 @@ +--- +title: inputEncryptedChat +description: Encrypted chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputEncryptedChat +[Back to constructors index](index.md) + + + +Encrypted chat + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputEncryptedChat](../types/InputEncryptedChat.md) + + +### Example: + +```php +$inputEncryptedChat = ['_' => 'inputEncryptedChat', 'chat_id' => int, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputEncryptedChat", "chat_id": int, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputEncryptedChat={_='inputEncryptedChat', chat_id=int, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputEncryptedFile.md b/old_docs/API_docs_v91/constructors/inputEncryptedFile.md new file mode 100644 index 00000000..d5dadcc2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputEncryptedFile.md @@ -0,0 +1,45 @@ +--- +title: inputEncryptedFile +description: Encrypted file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputEncryptedFile +[Back to constructors index](index.md) + + + +Encrypted file + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputEncryptedFile](../types/InputEncryptedFile.md) + + +### Example: + +```php +$inputEncryptedFile = ['_' => 'inputEncryptedFile', 'id' => long, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputEncryptedFile", "id": long, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputEncryptedFile={_='inputEncryptedFile', id=long, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputEncryptedFileBigUploaded.md b/old_docs/API_docs_v91/constructors/inputEncryptedFileBigUploaded.md new file mode 100644 index 00000000..69165963 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputEncryptedFileBigUploaded.md @@ -0,0 +1,46 @@ +--- +title: inputEncryptedFileBigUploaded +description: Encrypted file big uploaded +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputEncryptedFileBigUploaded +[Back to constructors index](index.md) + + + +Encrypted file big uploaded + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|parts|[int](../types/int.md) | Yes|Parts| +|key\_fingerprint|[int](../types/int.md) | Yes|Key fingerprint| + + + +### Type: [InputEncryptedFile](../types/InputEncryptedFile.md) + + +### Example: + +```php +$inputEncryptedFileBigUploaded = ['_' => 'inputEncryptedFileBigUploaded', 'id' => long, 'parts' => int, 'key_fingerprint' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputEncryptedFileBigUploaded", "id": long, "parts": int, "key_fingerprint": int} +``` + + +Or, if you're into Lua: + +```lua +inputEncryptedFileBigUploaded={_='inputEncryptedFileBigUploaded', id=long, parts=int, key_fingerprint=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputEncryptedFileEmpty.md b/old_docs/API_docs_v91/constructors/inputEncryptedFileEmpty.md new file mode 100644 index 00000000..941908dc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputEncryptedFileEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputEncryptedFileEmpty +description: Empty input encrypted file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputEncryptedFileEmpty +[Back to constructors index](index.md) + + + +Empty input encrypted file + + + + +### Type: [InputEncryptedFile](../types/InputEncryptedFile.md) + + +### Example: + +```php +$inputEncryptedFileEmpty = ['_' => 'inputEncryptedFileEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputEncryptedFileEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputEncryptedFileEmpty={_='inputEncryptedFileEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputEncryptedFileLocation.md b/old_docs/API_docs_v91/constructors/inputEncryptedFileLocation.md new file mode 100644 index 00000000..206ddd55 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputEncryptedFileLocation.md @@ -0,0 +1,45 @@ +--- +title: inputEncryptedFileLocation +description: Encrypted file location +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputEncryptedFileLocation +[Back to constructors index](index.md) + + + +Encrypted file location + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputFileLocation](../types/InputFileLocation.md) + + +### Example: + +```php +$inputEncryptedFileLocation = ['_' => 'inputEncryptedFileLocation', 'id' => long, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputEncryptedFileLocation", "id": long, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputEncryptedFileLocation={_='inputEncryptedFileLocation', id=long, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputEncryptedFileUploaded.md b/old_docs/API_docs_v91/constructors/inputEncryptedFileUploaded.md new file mode 100644 index 00000000..583a005f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputEncryptedFileUploaded.md @@ -0,0 +1,47 @@ +--- +title: inputEncryptedFileUploaded +description: Encrypted file uploaded +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputEncryptedFileUploaded +[Back to constructors index](index.md) + + + +Encrypted file uploaded + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|parts|[int](../types/int.md) | Yes|Parts| +|md5\_checksum|[string](../types/string.md) | Yes|Md5 checksum| +|key\_fingerprint|[int](../types/int.md) | Yes|Key fingerprint| + + + +### Type: [InputEncryptedFile](../types/InputEncryptedFile.md) + + +### Example: + +```php +$inputEncryptedFileUploaded = ['_' => 'inputEncryptedFileUploaded', 'id' => long, 'parts' => int, 'md5_checksum' => 'string', 'key_fingerprint' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputEncryptedFileUploaded", "id": long, "parts": int, "md5_checksum": "string", "key_fingerprint": int} +``` + + +Or, if you're into Lua: + +```lua +inputEncryptedFileUploaded={_='inputEncryptedFileUploaded', id=long, parts=int, md5_checksum='string', key_fingerprint=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputFile.md b/old_docs/API_docs_v91/constructors/inputFile.md new file mode 100644 index 00000000..02baca03 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputFile.md @@ -0,0 +1,47 @@ +--- +title: inputFile +description: File +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputFile +[Back to constructors index](index.md) + + + +File + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|parts|[int](../types/int.md) | Yes|Parts| +|name|[string](../types/string.md) | Yes|Name| +|md5\_checksum|[string](../types/string.md) | Yes|Md5 checksum| + + + +### Type: [InputFile](../types/InputFile.md) + + +### Example: + +```php +$inputFile = ['_' => 'inputFile', 'id' => long, 'parts' => int, 'name' => 'string', 'md5_checksum' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputFile", "id": long, "parts": int, "name": "string", "md5_checksum": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputFile={_='inputFile', id=long, parts=int, name='string', md5_checksum='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputFileBig.md b/old_docs/API_docs_v91/constructors/inputFileBig.md new file mode 100644 index 00000000..b63f9fca --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputFileBig.md @@ -0,0 +1,46 @@ +--- +title: inputFileBig +description: File big +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputFileBig +[Back to constructors index](index.md) + + + +File big + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|parts|[int](../types/int.md) | Yes|Parts| +|name|[string](../types/string.md) | Yes|Name| + + + +### Type: [InputFile](../types/InputFile.md) + + +### Example: + +```php +$inputFileBig = ['_' => 'inputFileBig', 'id' => long, 'parts' => int, 'name' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputFileBig", "id": long, "parts": int, "name": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputFileBig={_='inputFileBig', id=long, parts=int, name='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputFileLocation.md b/old_docs/API_docs_v91/constructors/inputFileLocation.md new file mode 100644 index 00000000..99d83af4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputFileLocation.md @@ -0,0 +1,47 @@ +--- +title: inputFileLocation +description: File location +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputFileLocation +[Back to constructors index](index.md) + + + +File location + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|volume\_id|[long](../types/long.md) | Yes|Volume ID| +|local\_id|[int](../types/int.md) | Yes|Local ID| +|secret|[long](../types/long.md) | Yes|Secret| +|file\_reference|[bytes](../types/bytes.md) | Yes|File reference| + + + +### Type: [InputFileLocation](../types/InputFileLocation.md) + + +### Example: + +```php +$inputFileLocation = ['_' => 'inputFileLocation', 'volume_id' => long, 'local_id' => int, 'secret' => long, 'file_reference' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputFileLocation", "volume_id": long, "local_id": int, "secret": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +inputFileLocation={_='inputFileLocation', volume_id=long, local_id=int, secret=long, file_reference='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputGameID.md b/old_docs/API_docs_v91/constructors/inputGameID.md new file mode 100644 index 00000000..429f590e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputGameID.md @@ -0,0 +1,45 @@ +--- +title: inputGameID +description: Game ID +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputGameID +[Back to constructors index](index.md) + + + +Game ID + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputGame](../types/InputGame.md) + + +### Example: + +```php +$inputGameID = ['_' => 'inputGameID', 'id' => long, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputGameID", "id": long, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputGameID={_='inputGameID', id=long, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputGameShortName.md b/old_docs/API_docs_v91/constructors/inputGameShortName.md new file mode 100644 index 00000000..e9c93c51 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputGameShortName.md @@ -0,0 +1,45 @@ +--- +title: inputGameShortName +description: Game short name +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputGameShortName +[Back to constructors index](index.md) + + + +Game short name + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|bot\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|Bot ID| +|short\_name|[string](../types/string.md) | Yes|Short name| + + + +### Type: [InputGame](../types/InputGame.md) + + +### Example: + +```php +$inputGameShortName = ['_' => 'inputGameShortName', 'bot_id' => InputUser, 'short_name' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputGameShortName", "bot_id": InputUser, "short_name": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputGameShortName={_='inputGameShortName', bot_id=InputUser, short_name='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputGeoPoint.md b/old_docs/API_docs_v91/constructors/inputGeoPoint.md new file mode 100644 index 00000000..69458ca9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputGeoPoint.md @@ -0,0 +1,45 @@ +--- +title: inputGeoPoint +description: Geo point +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputGeoPoint +[Back to constructors index](index.md) + + + +Geo point + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|lat|[double](../types/double.md) | Yes|Lat| +|long|[double](../types/double.md) | Yes|Long| + + + +### Type: [InputGeoPoint](../types/InputGeoPoint.md) + + +### Example: + +```php +$inputGeoPoint = ['_' => 'inputGeoPoint', 'lat' => double, 'long' => double]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputGeoPoint", "lat": double, "long": double} +``` + + +Or, if you're into Lua: + +```lua +inputGeoPoint={_='inputGeoPoint', lat=double, long=double} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputGeoPointEmpty.md b/old_docs/API_docs_v91/constructors/inputGeoPointEmpty.md new file mode 100644 index 00000000..2d796bbd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputGeoPointEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputGeoPointEmpty +description: Empty input geo point +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputGeoPointEmpty +[Back to constructors index](index.md) + + + +Empty input geo point + + + + +### Type: [InputGeoPoint](../types/InputGeoPoint.md) + + +### Example: + +```php +$inputGeoPointEmpty = ['_' => 'inputGeoPointEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputGeoPointEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputGeoPointEmpty={_='inputGeoPointEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaContact.md b/old_docs/API_docs_v91/constructors/inputMediaContact.md new file mode 100644 index 00000000..de14109d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaContact.md @@ -0,0 +1,47 @@ +--- +title: inputMediaContact +description: Media contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaContact +[Back to constructors index](index.md) + + + +Media contact + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|first\_name|[string](../types/string.md) | Yes|First name| +|last\_name|[string](../types/string.md) | Yes|Last name| +|vcard|[string](../types/string.md) | Yes|Vcard| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaContact = ['_' => 'inputMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'vcard' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "vcard": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputMediaContact={_='inputMediaContact', phone_number='string', first_name='string', last_name='string', vcard='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaDocument.md b/old_docs/API_docs_v91/constructors/inputMediaDocument.md new file mode 100644 index 00000000..db1c05b7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaDocument.md @@ -0,0 +1,45 @@ +--- +title: inputMediaDocument +description: Media document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaDocument +[Back to constructors index](index.md) + + + +Media document + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional|ID| +|ttl\_seconds|[int](../types/int.md) | Optional|Ttl seconds| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaDocument = ['_' => 'inputMediaDocument', 'id' => InputDocument, 'ttl_seconds' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaDocument", "id": InputDocument, "ttl_seconds": int} +``` + + +Or, if you're into Lua: + +```lua +inputMediaDocument={_='inputMediaDocument', id=InputDocument, ttl_seconds=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaDocumentExternal.md b/old_docs/API_docs_v91/constructors/inputMediaDocumentExternal.md new file mode 100644 index 00000000..5ba4fbdf --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaDocumentExternal.md @@ -0,0 +1,45 @@ +--- +title: inputMediaDocumentExternal +description: Media document external +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaDocumentExternal +[Back to constructors index](index.md) + + + +Media document external + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|ttl\_seconds|[int](../types/int.md) | Optional|Ttl seconds| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaDocumentExternal = ['_' => 'inputMediaDocumentExternal', 'url' => 'string', 'ttl_seconds' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaDocumentExternal", "url": "string", "ttl_seconds": int} +``` + + +Or, if you're into Lua: + +```lua +inputMediaDocumentExternal={_='inputMediaDocumentExternal', url='string', ttl_seconds=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaEmpty.md b/old_docs/API_docs_v91/constructors/inputMediaEmpty.md new file mode 100644 index 00000000..c65e4568 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputMediaEmpty +description: Empty input media +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaEmpty +[Back to constructors index](index.md) + + + +Empty input media + + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaEmpty = ['_' => 'inputMediaEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputMediaEmpty={_='inputMediaEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaGame.md b/old_docs/API_docs_v91/constructors/inputMediaGame.md new file mode 100644 index 00000000..d1dedf87 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaGame.md @@ -0,0 +1,44 @@ +--- +title: inputMediaGame +description: Media game +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaGame +[Back to constructors index](index.md) + + + +Media game + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[InputGame](../types/InputGame.md) | Yes|ID| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaGame = ['_' => 'inputMediaGame', 'id' => InputGame]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaGame", "id": InputGame} +``` + + +Or, if you're into Lua: + +```lua +inputMediaGame={_='inputMediaGame', id=InputGame} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaGeoLive.md b/old_docs/API_docs_v91/constructors/inputMediaGeoLive.md new file mode 100644 index 00000000..ceb4cd05 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaGeoLive.md @@ -0,0 +1,46 @@ +--- +title: inputMediaGeoLive +description: Media geo live +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaGeoLive +[Back to constructors index](index.md) + + + +Media geo live + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|stopped|[Bool](../types/Bool.md) | Optional|Stopped?| +|geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional|Geo point| +|period|[int](../types/int.md) | Optional|Period| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaGeoLive = ['_' => 'inputMediaGeoLive', 'stopped' => Bool, 'geo_point' => InputGeoPoint, 'period' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaGeoLive", "stopped": Bool, "geo_point": InputGeoPoint, "period": int} +``` + + +Or, if you're into Lua: + +```lua +inputMediaGeoLive={_='inputMediaGeoLive', stopped=Bool, geo_point=InputGeoPoint, period=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaGeoPoint.md b/old_docs/API_docs_v91/constructors/inputMediaGeoPoint.md new file mode 100644 index 00000000..9d35f564 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaGeoPoint.md @@ -0,0 +1,44 @@ +--- +title: inputMediaGeoPoint +description: Media geo point +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaGeoPoint +[Back to constructors index](index.md) + + + +Media geo point + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional|Geo point| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaGeoPoint = ['_' => 'inputMediaGeoPoint', 'geo_point' => InputGeoPoint]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaGeoPoint", "geo_point": InputGeoPoint} +``` + + +Or, if you're into Lua: + +```lua +inputMediaGeoPoint={_='inputMediaGeoPoint', geo_point=InputGeoPoint} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaGifExternal.md b/old_docs/API_docs_v91/constructors/inputMediaGifExternal.md new file mode 100644 index 00000000..510aa19c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaGifExternal.md @@ -0,0 +1,45 @@ +--- +title: inputMediaGifExternal +description: Media gif external +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaGifExternal +[Back to constructors index](index.md) + + + +Media gif external + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|q|[string](../types/string.md) | Yes|Q| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaGifExternal = ['_' => 'inputMediaGifExternal', 'url' => 'string', 'q' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaGifExternal", "url": "string", "q": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputMediaGifExternal={_='inputMediaGifExternal', url='string', q='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaInvoice.md b/old_docs/API_docs_v91/constructors/inputMediaInvoice.md new file mode 100644 index 00000000..8b507604 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaInvoice.md @@ -0,0 +1,51 @@ +--- +title: inputMediaInvoice +description: Media invoice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaInvoice +[Back to constructors index](index.md) + + + +Media invoice + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|title|[string](../types/string.md) | Yes|Title| +|description|[string](../types/string.md) | Yes|Description| +|photo|[InputWebDocument](../types/InputWebDocument.md) | Optional|Photo| +|invoice|[Invoice](../types/Invoice.md) | Yes|Invoice| +|payload|[bytes](../types/bytes.md) | Yes|Payload| +|provider|[string](../types/string.md) | Yes|Provider| +|provider\_data|[DataJSON](../types/DataJSON.md) | Yes|Provider data| +|start\_param|[string](../types/string.md) | Yes|Start param| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaInvoice = ['_' => 'inputMediaInvoice', 'title' => 'string', 'description' => 'string', 'photo' => InputWebDocument, 'invoice' => Invoice, 'payload' => 'bytes', 'provider' => 'string', 'provider_data' => DataJSON, 'start_param' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaInvoice", "title": "string", "description": "string", "photo": InputWebDocument, "invoice": Invoice, "payload": {"_": "bytes", "bytes":"base64 encoded bytes"}, "provider": "string", "provider_data": DataJSON, "start_param": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputMediaInvoice={_='inputMediaInvoice', title='string', description='string', photo=InputWebDocument, invoice=Invoice, payload='bytes', provider='string', provider_data=DataJSON, start_param='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaPhoto.md b/old_docs/API_docs_v91/constructors/inputMediaPhoto.md new file mode 100644 index 00000000..163831a0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaPhoto.md @@ -0,0 +1,45 @@ +--- +title: inputMediaPhoto +description: Media photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaPhoto +[Back to constructors index](index.md) + + + +Media photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional|ID| +|ttl\_seconds|[int](../types/int.md) | Optional|Ttl seconds| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaPhoto = ['_' => 'inputMediaPhoto', 'id' => InputPhoto, 'ttl_seconds' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaPhoto", "id": InputPhoto, "ttl_seconds": int} +``` + + +Or, if you're into Lua: + +```lua +inputMediaPhoto={_='inputMediaPhoto', id=InputPhoto, ttl_seconds=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaPhotoExternal.md b/old_docs/API_docs_v91/constructors/inputMediaPhotoExternal.md new file mode 100644 index 00000000..4a64152c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaPhotoExternal.md @@ -0,0 +1,45 @@ +--- +title: inputMediaPhotoExternal +description: Media photo external +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaPhotoExternal +[Back to constructors index](index.md) + + + +Media photo external + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|ttl\_seconds|[int](../types/int.md) | Optional|Ttl seconds| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaPhotoExternal = ['_' => 'inputMediaPhotoExternal', 'url' => 'string', 'ttl_seconds' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaPhotoExternal", "url": "string", "ttl_seconds": int} +``` + + +Or, if you're into Lua: + +```lua +inputMediaPhotoExternal={_='inputMediaPhotoExternal', url='string', ttl_seconds=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaPoll.md b/old_docs/API_docs_v91/constructors/inputMediaPoll.md new file mode 100644 index 00000000..b9456c46 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaPoll.md @@ -0,0 +1,44 @@ +--- +title: inputMediaPoll +description: Media poll +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaPoll +[Back to constructors index](index.md) + + + +Media poll + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|poll|[Poll](../types/Poll.md) | Yes|Poll| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaPoll = ['_' => 'inputMediaPoll', 'poll' => Poll]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaPoll", "poll": Poll} +``` + + +Or, if you're into Lua: + +```lua +inputMediaPoll={_='inputMediaPoll', poll=Poll} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaUploadedDocument.md b/old_docs/API_docs_v91/constructors/inputMediaUploadedDocument.md new file mode 100644 index 00000000..7b55b331 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaUploadedDocument.md @@ -0,0 +1,50 @@ +--- +title: inputMediaUploadedDocument +description: Media uploaded document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaUploadedDocument +[Back to constructors index](index.md) + + + +Media uploaded document + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|nosound\_video|[Bool](../types/Bool.md) | Optional|Nosound video?| +|file|[File path or InputFile](../types/InputFile.md) | Yes|File| +|thumb|[File path or InputFile](../types/InputFile.md) | Optional|Thumbnail| +|mime\_type|[string](../types/string.md) | Optional|Mime type| +|attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes|Attributes| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional|Stickers| +|ttl\_seconds|[int](../types/int.md) | Optional|Ttl seconds| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'nosound_video' => Bool, 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaUploadedDocument", "nosound_video": Bool, "file": InputFile, "thumb": InputFile, "mime_type": "string", "attributes": [DocumentAttribute], "stickers": [InputDocument], "ttl_seconds": int} +``` + + +Or, if you're into Lua: + +```lua +inputMediaUploadedDocument={_='inputMediaUploadedDocument', nosound_video=Bool, file=InputFile, thumb=InputFile, mime_type='string', attributes={DocumentAttribute}, stickers={InputDocument}, ttl_seconds=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaUploadedPhoto.md b/old_docs/API_docs_v91/constructors/inputMediaUploadedPhoto.md new file mode 100644 index 00000000..b25b921e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaUploadedPhoto.md @@ -0,0 +1,46 @@ +--- +title: inputMediaUploadedPhoto +description: Media uploaded photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaUploadedPhoto +[Back to constructors index](index.md) + + + +Media uploaded photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|file|[File path or InputFile](../types/InputFile.md) | Yes|File| +|stickers|Array of [MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional|Stickers| +|ttl\_seconds|[int](../types/int.md) | Optional|Ttl seconds| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaUploadedPhoto", "file": InputFile, "stickers": [InputDocument], "ttl_seconds": int} +``` + + +Or, if you're into Lua: + +```lua +inputMediaUploadedPhoto={_='inputMediaUploadedPhoto', file=InputFile, stickers={InputDocument}, ttl_seconds=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMediaVenue.md b/old_docs/API_docs_v91/constructors/inputMediaVenue.md new file mode 100644 index 00000000..179060ba --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMediaVenue.md @@ -0,0 +1,49 @@ +--- +title: inputMediaVenue +description: Media venue +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMediaVenue +[Back to constructors index](index.md) + + + +Media venue + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional|Geo point| +|title|[string](../types/string.md) | Yes|Title| +|address|[string](../types/string.md) | Yes|Address| +|provider|[string](../types/string.md) | Yes|Provider| +|venue\_id|[string](../types/string.md) | Yes|Venue ID| +|venue\_type|[string](../types/string.md) | Yes|Venue type| + + + +### Type: [InputMedia](../types/InputMedia.md) + + +### Example: + +```php +$inputMediaVenue = ['_' => 'inputMediaVenue', 'geo_point' => InputGeoPoint, 'title' => 'string', 'address' => 'string', 'provider' => 'string', 'venue_id' => 'string', 'venue_type' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMediaVenue", "geo_point": InputGeoPoint, "title": "string", "address": "string", "provider": "string", "venue_id": "string", "venue_type": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputMediaVenue={_='inputMediaVenue', geo_point=InputGeoPoint, title='string', address='string', provider='string', venue_id='string', venue_type='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessageEntityMentionName.md b/old_docs/API_docs_v91/constructors/inputMessageEntityMentionName.md new file mode 100644 index 00000000..6e401e46 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessageEntityMentionName.md @@ -0,0 +1,46 @@ +--- +title: inputMessageEntityMentionName +description: Message entity mention name +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessageEntityMentionName +[Back to constructors index](index.md) + + + +Message entity mention name + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| +|user\_id|[InputUser](../types/InputUser.md) | Optional|User ID| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$inputMessageEntityMentionName = ['_' => 'inputMessageEntityMentionName', 'offset' => int, 'length' => int, 'user_id' => InputUser]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessageEntityMentionName", "offset": int, "length": int, "user_id": InputUser} +``` + + +Or, if you're into Lua: + +```lua +inputMessageEntityMentionName={_='inputMessageEntityMentionName', offset=int, length=int, user_id=InputUser} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessageID.md b/old_docs/API_docs_v91/constructors/inputMessageID.md new file mode 100644 index 00000000..1268d624 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessageID.md @@ -0,0 +1,44 @@ +--- +title: inputMessageID +description: Message ID +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessageID +[Back to constructors index](index.md) + + + +Message ID + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [InputMessage](../types/InputMessage.md) + + +### Example: + +```php +$inputMessageID = ['_' => 'inputMessageID', 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessageID", "id": int} +``` + + +Or, if you're into Lua: + +```lua +inputMessageID={_='inputMessageID', id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagePinned.md b/old_docs/API_docs_v91/constructors/inputMessagePinned.md new file mode 100644 index 00000000..35d99ccf --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagePinned.md @@ -0,0 +1,39 @@ +--- +title: inputMessagePinned +description: Message pinned +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagePinned +[Back to constructors index](index.md) + + + +Message pinned + + + + +### Type: [InputMessage](../types/InputMessage.md) + + +### Example: + +```php +$inputMessagePinned = ['_' => 'inputMessagePinned']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagePinned"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagePinned={_='inputMessagePinned'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessageReplyTo.md b/old_docs/API_docs_v91/constructors/inputMessageReplyTo.md new file mode 100644 index 00000000..39c0792a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessageReplyTo.md @@ -0,0 +1,44 @@ +--- +title: inputMessageReplyTo +description: Message reply to +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessageReplyTo +[Back to constructors index](index.md) + + + +Message reply to + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [InputMessage](../types/InputMessage.md) + + +### Example: + +```php +$inputMessageReplyTo = ['_' => 'inputMessageReplyTo', 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessageReplyTo", "id": int} +``` + + +Or, if you're into Lua: + +```lua +inputMessageReplyTo={_='inputMessageReplyTo', id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterChatPhotos.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterChatPhotos.md new file mode 100644 index 00000000..0ec45e44 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterChatPhotos.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterChatPhotos +description: Messages filter chat photos +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterChatPhotos +[Back to constructors index](index.md) + + + +Messages filter chat photos + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterChatPhotos = ['_' => 'inputMessagesFilterChatPhotos']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterChatPhotos"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterChatPhotos={_='inputMessagesFilterChatPhotos'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterContacts.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterContacts.md new file mode 100644 index 00000000..ce9e6456 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterContacts.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterContacts +description: Messages filter contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterContacts +[Back to constructors index](index.md) + + + +Messages filter contacts + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterContacts = ['_' => 'inputMessagesFilterContacts']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterContacts"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterContacts={_='inputMessagesFilterContacts'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterDocument.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterDocument.md new file mode 100644 index 00000000..1d64ad62 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterDocument.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterDocument +description: Messages filter document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterDocument +[Back to constructors index](index.md) + + + +Messages filter document + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterDocument = ['_' => 'inputMessagesFilterDocument']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterDocument"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterDocument={_='inputMessagesFilterDocument'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterEmpty.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterEmpty.md new file mode 100644 index 00000000..0ef2d646 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterEmpty +description: Empty input messages filter +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterEmpty +[Back to constructors index](index.md) + + + +Empty input messages filter + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterEmpty = ['_' => 'inputMessagesFilterEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterEmpty={_='inputMessagesFilterEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterGeo.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterGeo.md new file mode 100644 index 00000000..6a85068e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterGeo.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterGeo +description: Messages filter geo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterGeo +[Back to constructors index](index.md) + + + +Messages filter geo + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterGeo = ['_' => 'inputMessagesFilterGeo']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterGeo"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterGeo={_='inputMessagesFilterGeo'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterGif.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterGif.md new file mode 100644 index 00000000..bedd95c7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterGif.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterGif +description: Messages filter gif +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterGif +[Back to constructors index](index.md) + + + +Messages filter gif + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterGif = ['_' => 'inputMessagesFilterGif']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterGif"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterGif={_='inputMessagesFilterGif'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterMusic.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterMusic.md new file mode 100644 index 00000000..634cfe8d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterMusic.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterMusic +description: Messages filter music +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterMusic +[Back to constructors index](index.md) + + + +Messages filter music + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterMusic = ['_' => 'inputMessagesFilterMusic']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterMusic"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterMusic={_='inputMessagesFilterMusic'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterMyMentions.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterMyMentions.md new file mode 100644 index 00000000..6e502bbd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterMyMentions.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterMyMentions +description: Messages filter my mentions +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterMyMentions +[Back to constructors index](index.md) + + + +Messages filter my mentions + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterMyMentions = ['_' => 'inputMessagesFilterMyMentions']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterMyMentions"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterMyMentions={_='inputMessagesFilterMyMentions'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterPhoneCalls.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterPhoneCalls.md new file mode 100644 index 00000000..8ca5e831 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterPhoneCalls.md @@ -0,0 +1,44 @@ +--- +title: inputMessagesFilterPhoneCalls +description: Messages filter phone calls +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterPhoneCalls +[Back to constructors index](index.md) + + + +Messages filter phone calls + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|missed|[Bool](../types/Bool.md) | Optional|Missed?| + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterPhoneCalls = ['_' => 'inputMessagesFilterPhoneCalls', 'missed' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterPhoneCalls", "missed": Bool} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterPhoneCalls={_='inputMessagesFilterPhoneCalls', missed=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterPhotoVideo.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterPhotoVideo.md new file mode 100644 index 00000000..87ce334d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterPhotoVideo.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterPhotoVideo +description: Messages filter photo video +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterPhotoVideo +[Back to constructors index](index.md) + + + +Messages filter photo video + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterPhotoVideo = ['_' => 'inputMessagesFilterPhotoVideo']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterPhotoVideo"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterPhotoVideo={_='inputMessagesFilterPhotoVideo'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterPhotos.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterPhotos.md new file mode 100644 index 00000000..cfe318db --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterPhotos.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterPhotos +description: Messages filter photos +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterPhotos +[Back to constructors index](index.md) + + + +Messages filter photos + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterPhotos = ['_' => 'inputMessagesFilterPhotos']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterPhotos"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterPhotos={_='inputMessagesFilterPhotos'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterRoundVideo.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterRoundVideo.md new file mode 100644 index 00000000..f8047475 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterRoundVideo.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterRoundVideo +description: Messages filter round video +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterRoundVideo +[Back to constructors index](index.md) + + + +Messages filter round video + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterRoundVideo = ['_' => 'inputMessagesFilterRoundVideo']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterRoundVideo"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterRoundVideo={_='inputMessagesFilterRoundVideo'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterRoundVoice.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterRoundVoice.md new file mode 100644 index 00000000..3f1a126d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterRoundVoice.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterRoundVoice +description: Messages filter round voice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterRoundVoice +[Back to constructors index](index.md) + + + +Messages filter round voice + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterRoundVoice = ['_' => 'inputMessagesFilterRoundVoice']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterRoundVoice"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterRoundVoice={_='inputMessagesFilterRoundVoice'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterUrl.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterUrl.md new file mode 100644 index 00000000..b8b01ea2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterUrl.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterUrl +description: Messages filter URL +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterUrl +[Back to constructors index](index.md) + + + +Messages filter URL + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterUrl = ['_' => 'inputMessagesFilterUrl']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterUrl"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterUrl={_='inputMessagesFilterUrl'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterVideo.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterVideo.md new file mode 100644 index 00000000..8a5c3482 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterVideo.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterVideo +description: Messages filter video +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterVideo +[Back to constructors index](index.md) + + + +Messages filter video + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterVideo = ['_' => 'inputMessagesFilterVideo']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterVideo"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterVideo={_='inputMessagesFilterVideo'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputMessagesFilterVoice.md b/old_docs/API_docs_v91/constructors/inputMessagesFilterVoice.md new file mode 100644 index 00000000..5f8aa5ac --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputMessagesFilterVoice.md @@ -0,0 +1,39 @@ +--- +title: inputMessagesFilterVoice +description: Messages filter voice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputMessagesFilterVoice +[Back to constructors index](index.md) + + + +Messages filter voice + + + + +### Type: [MessagesFilter](../types/MessagesFilter.md) + + +### Example: + +```php +$inputMessagesFilterVoice = ['_' => 'inputMessagesFilterVoice']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputMessagesFilterVoice"} +``` + + +Or, if you're into Lua: + +```lua +inputMessagesFilterVoice={_='inputMessagesFilterVoice'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputNotifyBroadcasts.md b/old_docs/API_docs_v91/constructors/inputNotifyBroadcasts.md new file mode 100644 index 00000000..e332a07b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputNotifyBroadcasts.md @@ -0,0 +1,39 @@ +--- +title: inputNotifyBroadcasts +description: Notify broadcasts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputNotifyBroadcasts +[Back to constructors index](index.md) + + + +Notify broadcasts + + + + +### Type: [InputNotifyPeer](../types/InputNotifyPeer.md) + + +### Example: + +```php +$inputNotifyBroadcasts = ['_' => 'inputNotifyBroadcasts']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputNotifyBroadcasts"} +``` + + +Or, if you're into Lua: + +```lua +inputNotifyBroadcasts={_='inputNotifyBroadcasts'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputNotifyChats.md b/old_docs/API_docs_v91/constructors/inputNotifyChats.md new file mode 100644 index 00000000..19ed7394 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputNotifyChats.md @@ -0,0 +1,39 @@ +--- +title: inputNotifyChats +description: Notify chats +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputNotifyChats +[Back to constructors index](index.md) + + + +Notify chats + + + + +### Type: [InputNotifyPeer](../types/InputNotifyPeer.md) + + +### Example: + +```php +$inputNotifyChats = ['_' => 'inputNotifyChats']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputNotifyChats"} +``` + + +Or, if you're into Lua: + +```lua +inputNotifyChats={_='inputNotifyChats'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputNotifyPeer.md b/old_docs/API_docs_v91/constructors/inputNotifyPeer.md new file mode 100644 index 00000000..e2740e0f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputNotifyPeer.md @@ -0,0 +1,44 @@ +--- +title: inputNotifyPeer +description: Notify peer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputNotifyPeer +[Back to constructors index](index.md) + + + +Notify peer + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|Peer| + + + +### Type: [InputNotifyPeer](../types/InputNotifyPeer.md) + + +### Example: + +```php +$inputNotifyPeer = ['_' => 'inputNotifyPeer', 'peer' => InputPeer]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputNotifyPeer", "peer": InputPeer} +``` + + +Or, if you're into Lua: + +```lua +inputNotifyPeer={_='inputNotifyPeer', peer=InputPeer} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputNotifyUsers.md b/old_docs/API_docs_v91/constructors/inputNotifyUsers.md new file mode 100644 index 00000000..f531cd4e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputNotifyUsers.md @@ -0,0 +1,39 @@ +--- +title: inputNotifyUsers +description: Notify users +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputNotifyUsers +[Back to constructors index](index.md) + + + +Notify users + + + + +### Type: [InputNotifyPeer](../types/InputNotifyPeer.md) + + +### Example: + +```php +$inputNotifyUsers = ['_' => 'inputNotifyUsers']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputNotifyUsers"} +``` + + +Or, if you're into Lua: + +```lua +inputNotifyUsers={_='inputNotifyUsers'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPaymentCredentials.md b/old_docs/API_docs_v91/constructors/inputPaymentCredentials.md new file mode 100644 index 00000000..0a8e40aa --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPaymentCredentials.md @@ -0,0 +1,45 @@ +--- +title: inputPaymentCredentials +description: Payment credentials +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPaymentCredentials +[Back to constructors index](index.md) + + + +Payment credentials + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|save|[Bool](../types/Bool.md) | Optional|Save?| +|data|[DataJSON](../types/DataJSON.md) | Yes|Data| + + + +### Type: [InputPaymentCredentials](../types/InputPaymentCredentials.md) + + +### Example: + +```php +$inputPaymentCredentials = ['_' => 'inputPaymentCredentials', 'save' => Bool, 'data' => DataJSON]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPaymentCredentials", "save": Bool, "data": DataJSON} +``` + + +Or, if you're into Lua: + +```lua +inputPaymentCredentials={_='inputPaymentCredentials', save=Bool, data=DataJSON} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPaymentCredentialsAndroidPay.md b/old_docs/API_docs_v91/constructors/inputPaymentCredentialsAndroidPay.md new file mode 100644 index 00000000..323276e7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPaymentCredentialsAndroidPay.md @@ -0,0 +1,45 @@ +--- +title: inputPaymentCredentialsAndroidPay +description: Payment credentials android pay +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPaymentCredentialsAndroidPay +[Back to constructors index](index.md) + + + +Payment credentials android pay + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|payment\_token|[DataJSON](../types/DataJSON.md) | Yes|Payment token| +|google\_transaction\_id|[string](../types/string.md) | Yes|Google transaction ID| + + + +### Type: [InputPaymentCredentials](../types/InputPaymentCredentials.md) + + +### Example: + +```php +$inputPaymentCredentialsAndroidPay = ['_' => 'inputPaymentCredentialsAndroidPay', 'payment_token' => DataJSON, 'google_transaction_id' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPaymentCredentialsAndroidPay", "payment_token": DataJSON, "google_transaction_id": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputPaymentCredentialsAndroidPay={_='inputPaymentCredentialsAndroidPay', payment_token=DataJSON, google_transaction_id='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPaymentCredentialsApplePay.md b/old_docs/API_docs_v91/constructors/inputPaymentCredentialsApplePay.md new file mode 100644 index 00000000..8077d320 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPaymentCredentialsApplePay.md @@ -0,0 +1,44 @@ +--- +title: inputPaymentCredentialsApplePay +description: Payment credentials apple pay +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPaymentCredentialsApplePay +[Back to constructors index](index.md) + + + +Payment credentials apple pay + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|payment\_data|[DataJSON](../types/DataJSON.md) | Yes|Payment data| + + + +### Type: [InputPaymentCredentials](../types/InputPaymentCredentials.md) + + +### Example: + +```php +$inputPaymentCredentialsApplePay = ['_' => 'inputPaymentCredentialsApplePay', 'payment_data' => DataJSON]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPaymentCredentialsApplePay", "payment_data": DataJSON} +``` + + +Or, if you're into Lua: + +```lua +inputPaymentCredentialsApplePay={_='inputPaymentCredentialsApplePay', payment_data=DataJSON} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPaymentCredentialsSaved.md b/old_docs/API_docs_v91/constructors/inputPaymentCredentialsSaved.md new file mode 100644 index 00000000..29dfc9f6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPaymentCredentialsSaved.md @@ -0,0 +1,45 @@ +--- +title: inputPaymentCredentialsSaved +description: Payment credentials saved +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPaymentCredentialsSaved +[Back to constructors index](index.md) + + + +Payment credentials saved + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[string](../types/string.md) | Yes|ID| +|tmp\_password|[bytes](../types/bytes.md) | Yes|Tmp password| + + + +### Type: [InputPaymentCredentials](../types/InputPaymentCredentials.md) + + +### Example: + +```php +$inputPaymentCredentialsSaved = ['_' => 'inputPaymentCredentialsSaved', 'id' => 'string', 'tmp_password' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPaymentCredentialsSaved", "id": "string", "tmp_password": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +inputPaymentCredentialsSaved={_='inputPaymentCredentialsSaved', id='string', tmp_password='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPeerChannel.md b/old_docs/API_docs_v91/constructors/inputPeerChannel.md new file mode 100644 index 00000000..6404af1b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPeerChannel.md @@ -0,0 +1,45 @@ +--- +title: inputPeerChannel +description: Peer channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPeerChannel +[Back to constructors index](index.md) + + + +Peer channel + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputPeer](../types/InputPeer.md) + + +### Example: + +```php +$inputPeerChannel = ['_' => 'inputPeerChannel', 'channel_id' => int, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPeerChannel", "channel_id": int, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputPeerChannel={_='inputPeerChannel', channel_id=int, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPeerChat.md b/old_docs/API_docs_v91/constructors/inputPeerChat.md new file mode 100644 index 00000000..f9d44f69 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPeerChat.md @@ -0,0 +1,44 @@ +--- +title: inputPeerChat +description: Peer chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPeerChat +[Back to constructors index](index.md) + + + +Peer chat + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| + + + +### Type: [InputPeer](../types/InputPeer.md) + + +### Example: + +```php +$inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPeerChat", "chat_id": int} +``` + + +Or, if you're into Lua: + +```lua +inputPeerChat={_='inputPeerChat', chat_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPeerEmpty.md b/old_docs/API_docs_v91/constructors/inputPeerEmpty.md new file mode 100644 index 00000000..7d6a5932 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPeerEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputPeerEmpty +description: Empty input peer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPeerEmpty +[Back to constructors index](index.md) + + + +Empty input peer + + + + +### Type: [InputPeer](../types/InputPeer.md) + + +### Example: + +```php +$inputPeerEmpty = ['_' => 'inputPeerEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPeerEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputPeerEmpty={_='inputPeerEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPeerNotifySettings.md b/old_docs/API_docs_v91/constructors/inputPeerNotifySettings.md new file mode 100644 index 00000000..fa2934e6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPeerNotifySettings.md @@ -0,0 +1,47 @@ +--- +title: inputPeerNotifySettings +description: Peer notify settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPeerNotifySettings +[Back to constructors index](index.md) + + + +Peer notify settings + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|show\_previews|[Bool](../types/Bool.md) | Optional|Show previews?| +|silent|[Bool](../types/Bool.md) | Optional|Silent?| +|mute\_until|[int](../types/int.md) | Optional|Mute until| +|sound|[string](../types/string.md) | Optional|Sound| + + + +### Type: [InputPeerNotifySettings](../types/InputPeerNotifySettings.md) + + +### Example: + +```php +$inputPeerNotifySettings = ['_' => 'inputPeerNotifySettings', 'show_previews' => Bool, 'silent' => Bool, 'mute_until' => int, 'sound' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPeerNotifySettings", "show_previews": Bool, "silent": Bool, "mute_until": int, "sound": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputPeerNotifySettings={_='inputPeerNotifySettings', show_previews=Bool, silent=Bool, mute_until=int, sound='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPeerSelf.md b/old_docs/API_docs_v91/constructors/inputPeerSelf.md new file mode 100644 index 00000000..838e7bdf --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPeerSelf.md @@ -0,0 +1,39 @@ +--- +title: inputPeerSelf +description: Peer self +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPeerSelf +[Back to constructors index](index.md) + + + +Peer self + + + + +### Type: [InputPeer](../types/InputPeer.md) + + +### Example: + +```php +$inputPeerSelf = ['_' => 'inputPeerSelf']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPeerSelf"} +``` + + +Or, if you're into Lua: + +```lua +inputPeerSelf={_='inputPeerSelf'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPeerUser.md b/old_docs/API_docs_v91/constructors/inputPeerUser.md new file mode 100644 index 00000000..73301b1d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPeerUser.md @@ -0,0 +1,45 @@ +--- +title: inputPeerUser +description: Peer user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPeerUser +[Back to constructors index](index.md) + + + +Peer user + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputPeer](../types/InputPeer.md) + + +### Example: + +```php +$inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPeerUser", "user_id": int, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputPeerUser={_='inputPeerUser', user_id=int, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPhoneCall.md b/old_docs/API_docs_v91/constructors/inputPhoneCall.md new file mode 100644 index 00000000..dad89c02 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPhoneCall.md @@ -0,0 +1,45 @@ +--- +title: inputPhoneCall +description: Phone call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPhoneCall +[Back to constructors index](index.md) + + + +Phone call + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputPhoneCall](../types/InputPhoneCall.md) + + +### Example: + +```php +$inputPhoneCall = ['_' => 'inputPhoneCall', 'id' => long, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPhoneCall", "id": long, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputPhoneCall={_='inputPhoneCall', id=long, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPhoneContact.md b/old_docs/API_docs_v91/constructors/inputPhoneContact.md new file mode 100644 index 00000000..5da4b8d0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPhoneContact.md @@ -0,0 +1,47 @@ +--- +title: inputPhoneContact +description: Phone contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPhoneContact +[Back to constructors index](index.md) + + + +Phone contact + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|client\_id|[long](../types/long.md) | Yes|Client ID| +|phone|[string](../types/string.md) | Yes|Phone| +|first\_name|[string](../types/string.md) | Yes|First name| +|last\_name|[string](../types/string.md) | Yes|Last name| + + + +### Type: [InputContact](../types/InputContact.md) + + +### Example: + +```php +$inputPhoneContact = ['_' => 'inputPhoneContact', 'client_id' => long, 'phone' => 'string', 'first_name' => 'string', 'last_name' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPhoneContact", "client_id": long, "phone": "string", "first_name": "string", "last_name": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputPhoneContact={_='inputPhoneContact', client_id=long, phone='string', first_name='string', last_name='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPhoto.md b/old_docs/API_docs_v91/constructors/inputPhoto.md new file mode 100644 index 00000000..bf9d2685 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPhoto.md @@ -0,0 +1,46 @@ +--- +title: inputPhoto +description: Photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPhoto +[Back to constructors index](index.md) + + + +Photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|file\_reference|[bytes](../types/bytes.md) | Yes|File reference| + + + +### Type: [InputPhoto](../types/InputPhoto.md) + + +### Example: + +```php +$inputPhoto = ['_' => 'inputPhoto', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPhoto", "id": long, "access_hash": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +inputPhoto={_='inputPhoto', id=long, access_hash=long, file_reference='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPhotoEmpty.md b/old_docs/API_docs_v91/constructors/inputPhotoEmpty.md new file mode 100644 index 00000000..079f25ac --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPhotoEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputPhotoEmpty +description: Empty input photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPhotoEmpty +[Back to constructors index](index.md) + + + +Empty input photo + + + + +### Type: [InputPhoto](../types/InputPhoto.md) + + +### Example: + +```php +$inputPhotoEmpty = ['_' => 'inputPhotoEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPhotoEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputPhotoEmpty={_='inputPhotoEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPrivacyKeyChatInvite.md b/old_docs/API_docs_v91/constructors/inputPrivacyKeyChatInvite.md new file mode 100644 index 00000000..ddc7b3ce --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPrivacyKeyChatInvite.md @@ -0,0 +1,39 @@ +--- +title: inputPrivacyKeyChatInvite +description: Privacy key chat invite +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPrivacyKeyChatInvite +[Back to constructors index](index.md) + + + +Privacy key chat invite + + + + +### Type: [InputPrivacyKey](../types/InputPrivacyKey.md) + + +### Example: + +```php +$inputPrivacyKeyChatInvite = ['_' => 'inputPrivacyKeyChatInvite']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPrivacyKeyChatInvite"} +``` + + +Or, if you're into Lua: + +```lua +inputPrivacyKeyChatInvite={_='inputPrivacyKeyChatInvite'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPrivacyKeyPhoneCall.md b/old_docs/API_docs_v91/constructors/inputPrivacyKeyPhoneCall.md new file mode 100644 index 00000000..30743a23 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPrivacyKeyPhoneCall.md @@ -0,0 +1,39 @@ +--- +title: inputPrivacyKeyPhoneCall +description: Privacy key phone call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPrivacyKeyPhoneCall +[Back to constructors index](index.md) + + + +Privacy key phone call + + + + +### Type: [InputPrivacyKey](../types/InputPrivacyKey.md) + + +### Example: + +```php +$inputPrivacyKeyPhoneCall = ['_' => 'inputPrivacyKeyPhoneCall']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPrivacyKeyPhoneCall"} +``` + + +Or, if you're into Lua: + +```lua +inputPrivacyKeyPhoneCall={_='inputPrivacyKeyPhoneCall'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPrivacyKeyPhoneP2P.md b/old_docs/API_docs_v91/constructors/inputPrivacyKeyPhoneP2P.md new file mode 100644 index 00000000..7d8bfa09 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPrivacyKeyPhoneP2P.md @@ -0,0 +1,39 @@ +--- +title: inputPrivacyKeyPhoneP2P +description: Privacy key phone p2p +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPrivacyKeyPhoneP2P +[Back to constructors index](index.md) + + + +Privacy key phone p2p + + + + +### Type: [InputPrivacyKey](../types/InputPrivacyKey.md) + + +### Example: + +```php +$inputPrivacyKeyPhoneP2P = ['_' => 'inputPrivacyKeyPhoneP2P']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPrivacyKeyPhoneP2P"} +``` + + +Or, if you're into Lua: + +```lua +inputPrivacyKeyPhoneP2P={_='inputPrivacyKeyPhoneP2P'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPrivacyKeyStatusTimestamp.md b/old_docs/API_docs_v91/constructors/inputPrivacyKeyStatusTimestamp.md new file mode 100644 index 00000000..0b5b0ab2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPrivacyKeyStatusTimestamp.md @@ -0,0 +1,39 @@ +--- +title: inputPrivacyKeyStatusTimestamp +description: Privacy key status timestamp +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPrivacyKeyStatusTimestamp +[Back to constructors index](index.md) + + + +Privacy key status timestamp + + + + +### Type: [InputPrivacyKey](../types/InputPrivacyKey.md) + + +### Example: + +```php +$inputPrivacyKeyStatusTimestamp = ['_' => 'inputPrivacyKeyStatusTimestamp']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPrivacyKeyStatusTimestamp"} +``` + + +Or, if you're into Lua: + +```lua +inputPrivacyKeyStatusTimestamp={_='inputPrivacyKeyStatusTimestamp'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPrivacyValueAllowAll.md b/old_docs/API_docs_v91/constructors/inputPrivacyValueAllowAll.md new file mode 100644 index 00000000..45fbd7fc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPrivacyValueAllowAll.md @@ -0,0 +1,39 @@ +--- +title: inputPrivacyValueAllowAll +description: Privacy value allow all +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPrivacyValueAllowAll +[Back to constructors index](index.md) + + + +Privacy value allow all + + + + +### Type: [InputPrivacyRule](../types/InputPrivacyRule.md) + + +### Example: + +```php +$inputPrivacyValueAllowAll = ['_' => 'inputPrivacyValueAllowAll']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPrivacyValueAllowAll"} +``` + + +Or, if you're into Lua: + +```lua +inputPrivacyValueAllowAll={_='inputPrivacyValueAllowAll'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPrivacyValueAllowContacts.md b/old_docs/API_docs_v91/constructors/inputPrivacyValueAllowContacts.md new file mode 100644 index 00000000..32fb6310 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPrivacyValueAllowContacts.md @@ -0,0 +1,39 @@ +--- +title: inputPrivacyValueAllowContacts +description: Privacy value allow contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPrivacyValueAllowContacts +[Back to constructors index](index.md) + + + +Privacy value allow contacts + + + + +### Type: [InputPrivacyRule](../types/InputPrivacyRule.md) + + +### Example: + +```php +$inputPrivacyValueAllowContacts = ['_' => 'inputPrivacyValueAllowContacts']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPrivacyValueAllowContacts"} +``` + + +Or, if you're into Lua: + +```lua +inputPrivacyValueAllowContacts={_='inputPrivacyValueAllowContacts'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPrivacyValueAllowUsers.md b/old_docs/API_docs_v91/constructors/inputPrivacyValueAllowUsers.md new file mode 100644 index 00000000..352cb550 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPrivacyValueAllowUsers.md @@ -0,0 +1,44 @@ +--- +title: inputPrivacyValueAllowUsers +description: Privacy value allow users +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPrivacyValueAllowUsers +[Back to constructors index](index.md) + + + +Privacy value allow users + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|Users| + + + +### Type: [InputPrivacyRule](../types/InputPrivacyRule.md) + + +### Example: + +```php +$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPrivacyValueAllowUsers", "users": [InputUser]} +``` + + +Or, if you're into Lua: + +```lua +inputPrivacyValueAllowUsers={_='inputPrivacyValueAllowUsers', users={InputUser}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowAll.md b/old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowAll.md new file mode 100644 index 00000000..bdb0b0e1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowAll.md @@ -0,0 +1,39 @@ +--- +title: inputPrivacyValueDisallowAll +description: Privacy value disallow all +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPrivacyValueDisallowAll +[Back to constructors index](index.md) + + + +Privacy value disallow all + + + + +### Type: [InputPrivacyRule](../types/InputPrivacyRule.md) + + +### Example: + +```php +$inputPrivacyValueDisallowAll = ['_' => 'inputPrivacyValueDisallowAll']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPrivacyValueDisallowAll"} +``` + + +Or, if you're into Lua: + +```lua +inputPrivacyValueDisallowAll={_='inputPrivacyValueDisallowAll'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowContacts.md b/old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowContacts.md new file mode 100644 index 00000000..5b73cf8c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowContacts.md @@ -0,0 +1,39 @@ +--- +title: inputPrivacyValueDisallowContacts +description: Privacy value disallow contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPrivacyValueDisallowContacts +[Back to constructors index](index.md) + + + +Privacy value disallow contacts + + + + +### Type: [InputPrivacyRule](../types/InputPrivacyRule.md) + + +### Example: + +```php +$inputPrivacyValueDisallowContacts = ['_' => 'inputPrivacyValueDisallowContacts']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPrivacyValueDisallowContacts"} +``` + + +Or, if you're into Lua: + +```lua +inputPrivacyValueDisallowContacts={_='inputPrivacyValueDisallowContacts'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowUsers.md b/old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowUsers.md new file mode 100644 index 00000000..76beac7d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputPrivacyValueDisallowUsers.md @@ -0,0 +1,44 @@ +--- +title: inputPrivacyValueDisallowUsers +description: Privacy value disallow users +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputPrivacyValueDisallowUsers +[Back to constructors index](index.md) + + + +Privacy value disallow users + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|Users| + + + +### Type: [InputPrivacyRule](../types/InputPrivacyRule.md) + + +### Example: + +```php +$inputPrivacyValueDisallowUsers = ['_' => 'inputPrivacyValueDisallowUsers', 'users' => [InputUser, InputUser]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputPrivacyValueDisallowUsers", "users": [InputUser]} +``` + + +Or, if you're into Lua: + +```lua +inputPrivacyValueDisallowUsers={_='inputPrivacyValueDisallowUsers', users={InputUser}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputReportReasonChildAbuse.md b/old_docs/API_docs_v91/constructors/inputReportReasonChildAbuse.md new file mode 100644 index 00000000..96622a1b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputReportReasonChildAbuse.md @@ -0,0 +1,39 @@ +--- +title: inputReportReasonChildAbuse +description: Report reason child abuse +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputReportReasonChildAbuse +[Back to constructors index](index.md) + + + +Report reason child abuse + + + + +### Type: [ReportReason](../types/ReportReason.md) + + +### Example: + +```php +$inputReportReasonChildAbuse = ['_' => 'inputReportReasonChildAbuse']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputReportReasonChildAbuse"} +``` + + +Or, if you're into Lua: + +```lua +inputReportReasonChildAbuse={_='inputReportReasonChildAbuse'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputReportReasonCopyright.md b/old_docs/API_docs_v91/constructors/inputReportReasonCopyright.md new file mode 100644 index 00000000..56a7e620 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputReportReasonCopyright.md @@ -0,0 +1,39 @@ +--- +title: inputReportReasonCopyright +description: Report reason copyright +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputReportReasonCopyright +[Back to constructors index](index.md) + + + +Report reason copyright + + + + +### Type: [ReportReason](../types/ReportReason.md) + + +### Example: + +```php +$inputReportReasonCopyright = ['_' => 'inputReportReasonCopyright']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputReportReasonCopyright"} +``` + + +Or, if you're into Lua: + +```lua +inputReportReasonCopyright={_='inputReportReasonCopyright'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputReportReasonOther.md b/old_docs/API_docs_v91/constructors/inputReportReasonOther.md new file mode 100644 index 00000000..358220f1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputReportReasonOther.md @@ -0,0 +1,44 @@ +--- +title: inputReportReasonOther +description: Report reason other +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputReportReasonOther +[Back to constructors index](index.md) + + + +Report reason other + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [ReportReason](../types/ReportReason.md) + + +### Example: + +```php +$inputReportReasonOther = ['_' => 'inputReportReasonOther', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputReportReasonOther", "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputReportReasonOther={_='inputReportReasonOther', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputReportReasonPornography.md b/old_docs/API_docs_v91/constructors/inputReportReasonPornography.md new file mode 100644 index 00000000..ff9bae32 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputReportReasonPornography.md @@ -0,0 +1,39 @@ +--- +title: inputReportReasonPornography +description: Report reason pornography +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputReportReasonPornography +[Back to constructors index](index.md) + + + +Report reason pornography + + + + +### Type: [ReportReason](../types/ReportReason.md) + + +### Example: + +```php +$inputReportReasonPornography = ['_' => 'inputReportReasonPornography']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputReportReasonPornography"} +``` + + +Or, if you're into Lua: + +```lua +inputReportReasonPornography={_='inputReportReasonPornography'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputReportReasonSpam.md b/old_docs/API_docs_v91/constructors/inputReportReasonSpam.md new file mode 100644 index 00000000..a9a39725 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputReportReasonSpam.md @@ -0,0 +1,39 @@ +--- +title: inputReportReasonSpam +description: Report reason spam +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputReportReasonSpam +[Back to constructors index](index.md) + + + +Report reason spam + + + + +### Type: [ReportReason](../types/ReportReason.md) + + +### Example: + +```php +$inputReportReasonSpam = ['_' => 'inputReportReasonSpam']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputReportReasonSpam"} +``` + + +Or, if you're into Lua: + +```lua +inputReportReasonSpam={_='inputReportReasonSpam'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputReportReasonViolence.md b/old_docs/API_docs_v91/constructors/inputReportReasonViolence.md new file mode 100644 index 00000000..1f7304cf --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputReportReasonViolence.md @@ -0,0 +1,39 @@ +--- +title: inputReportReasonViolence +description: Report reason violence +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputReportReasonViolence +[Back to constructors index](index.md) + + + +Report reason violence + + + + +### Type: [ReportReason](../types/ReportReason.md) + + +### Example: + +```php +$inputReportReasonViolence = ['_' => 'inputReportReasonViolence']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputReportReasonViolence"} +``` + + +Or, if you're into Lua: + +```lua +inputReportReasonViolence={_='inputReportReasonViolence'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputSecureFile.md b/old_docs/API_docs_v91/constructors/inputSecureFile.md new file mode 100644 index 00000000..e85cc57c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputSecureFile.md @@ -0,0 +1,45 @@ +--- +title: inputSecureFile +description: Secure file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputSecureFile +[Back to constructors index](index.md) + + + +Secure file + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputSecureFile](../types/InputSecureFile.md) + + +### Example: + +```php +$inputSecureFile = ['_' => 'inputSecureFile', 'id' => long, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputSecureFile", "id": long, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputSecureFile={_='inputSecureFile', id=long, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputSecureFileLocation.md b/old_docs/API_docs_v91/constructors/inputSecureFileLocation.md new file mode 100644 index 00000000..65f6637b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputSecureFileLocation.md @@ -0,0 +1,45 @@ +--- +title: inputSecureFileLocation +description: Secure file location +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputSecureFileLocation +[Back to constructors index](index.md) + + + +Secure file location + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputFileLocation](../types/InputFileLocation.md) + + +### Example: + +```php +$inputSecureFileLocation = ['_' => 'inputSecureFileLocation', 'id' => long, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputSecureFileLocation", "id": long, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputSecureFileLocation={_='inputSecureFileLocation', id=long, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputSecureFileUploaded.md b/old_docs/API_docs_v91/constructors/inputSecureFileUploaded.md new file mode 100644 index 00000000..f20a57d3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputSecureFileUploaded.md @@ -0,0 +1,48 @@ +--- +title: inputSecureFileUploaded +description: Secure file uploaded +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputSecureFileUploaded +[Back to constructors index](index.md) + + + +Secure file uploaded + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|parts|[int](../types/int.md) | Yes|Parts| +|md5\_checksum|[string](../types/string.md) | Yes|Md5 checksum| +|file\_hash|[bytes](../types/bytes.md) | Yes|File hash| +|secret|[bytes](../types/bytes.md) | Yes|Secret| + + + +### Type: [InputSecureFile](../types/InputSecureFile.md) + + +### Example: + +```php +$inputSecureFileUploaded = ['_' => 'inputSecureFileUploaded', 'id' => long, 'parts' => int, 'md5_checksum' => 'string', 'file_hash' => 'bytes', 'secret' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputSecureFileUploaded", "id": long, "parts": int, "md5_checksum": "string", "file_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "secret": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +inputSecureFileUploaded={_='inputSecureFileUploaded', id=long, parts=int, md5_checksum='string', file_hash='bytes', secret='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputSecureValue.md b/old_docs/API_docs_v91/constructors/inputSecureValue.md new file mode 100644 index 00000000..acad202a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputSecureValue.md @@ -0,0 +1,51 @@ +--- +title: inputSecureValue +description: Secure value +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputSecureValue +[Back to constructors index](index.md) + + + +Secure value + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|data|[SecureData](../types/SecureData.md) | Optional|Data| +|front\_side|[InputSecureFile](../types/InputSecureFile.md) | Optional|Front side| +|reverse\_side|[InputSecureFile](../types/InputSecureFile.md) | Optional|Reverse side| +|selfie|[InputSecureFile](../types/InputSecureFile.md) | Optional|Selfie| +|translation|Array of [InputSecureFile](../types/InputSecureFile.md) | Optional|Translation| +|files|Array of [InputSecureFile](../types/InputSecureFile.md) | Optional|Files| +|plain\_data|[SecurePlainData](../types/SecurePlainData.md) | Optional|Plain data| + + + +### Type: [InputSecureValue](../types/InputSecureValue.md) + + +### Example: + +```php +$inputSecureValue = ['_' => 'inputSecureValue', 'type' => SecureValueType, 'data' => SecureData, 'front_side' => InputSecureFile, 'reverse_side' => InputSecureFile, 'selfie' => InputSecureFile, 'translation' => [InputSecureFile, InputSecureFile], 'files' => [InputSecureFile, InputSecureFile], 'plain_data' => SecurePlainData]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputSecureValue", "type": SecureValueType, "data": SecureData, "front_side": InputSecureFile, "reverse_side": InputSecureFile, "selfie": InputSecureFile, "translation": [InputSecureFile], "files": [InputSecureFile], "plain_data": SecurePlainData} +``` + + +Or, if you're into Lua: + +```lua +inputSecureValue={_='inputSecureValue', type=SecureValueType, data=SecureData, front_side=InputSecureFile, reverse_side=InputSecureFile, selfie=InputSecureFile, translation={InputSecureFile}, files={InputSecureFile}, plain_data=SecurePlainData} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputSingleMedia.md b/old_docs/API_docs_v91/constructors/inputSingleMedia.md new file mode 100644 index 00000000..4bcc75c5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputSingleMedia.md @@ -0,0 +1,46 @@ +--- +title: inputSingleMedia +description: Single media +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputSingleMedia +[Back to constructors index](index.md) + + + +Single media + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|media|[MessageMedia, Message, Update or InputMedia](../types/InputMedia.md) | Optional|Media| +|message|[string](../types/string.md) | Yes|Message| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities| + + + +### Type: [InputSingleMedia](../types/InputSingleMedia.md) + + +### Example: + +```php +$inputSingleMedia = ['_' => 'inputSingleMedia', 'media' => InputMedia, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputSingleMedia", "media": InputMedia, "message": "string", "entities": [MessageEntity]} +``` + + +Or, if you're into Lua: + +```lua +inputSingleMedia={_='inputSingleMedia', media=InputMedia, message='string', entities={MessageEntity}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputStickerSetEmpty.md b/old_docs/API_docs_v91/constructors/inputStickerSetEmpty.md new file mode 100644 index 00000000..22a6ba87 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputStickerSetEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputStickerSetEmpty +description: Empty input sticker set +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputStickerSetEmpty +[Back to constructors index](index.md) + + + +Empty input sticker set + + + + +### Type: [InputStickerSet](../types/InputStickerSet.md) + + +### Example: + +```php +$inputStickerSetEmpty = ['_' => 'inputStickerSetEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputStickerSetEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputStickerSetEmpty={_='inputStickerSetEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputStickerSetID.md b/old_docs/API_docs_v91/constructors/inputStickerSetID.md new file mode 100644 index 00000000..82c07d47 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputStickerSetID.md @@ -0,0 +1,45 @@ +--- +title: inputStickerSetID +description: Sticker set ID +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputStickerSetID +[Back to constructors index](index.md) + + + +Sticker set ID + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputStickerSet](../types/InputStickerSet.md) + + +### Example: + +```php +$inputStickerSetID = ['_' => 'inputStickerSetID', 'id' => long, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputStickerSetID", "id": long, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputStickerSetID={_='inputStickerSetID', id=long, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputStickerSetItem.md b/old_docs/API_docs_v91/constructors/inputStickerSetItem.md new file mode 100644 index 00000000..9df96623 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputStickerSetItem.md @@ -0,0 +1,46 @@ +--- +title: inputStickerSetItem +description: Sticker set item +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputStickerSetItem +[Back to constructors index](index.md) + + + +Sticker set item + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|document|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional|Document| +|emoji|[string](../types/string.md) | Yes|Emoji| +|mask\_coords|[MaskCoords](../types/MaskCoords.md) | Optional|Mask coords| + + + +### Type: [InputStickerSetItem](../types/InputStickerSetItem.md) + + +### Example: + +```php +$inputStickerSetItem = ['_' => 'inputStickerSetItem', 'document' => InputDocument, 'emoji' => 'string', 'mask_coords' => MaskCoords]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputStickerSetItem", "document": InputDocument, "emoji": "string", "mask_coords": MaskCoords} +``` + + +Or, if you're into Lua: + +```lua +inputStickerSetItem={_='inputStickerSetItem', document=InputDocument, emoji='string', mask_coords=MaskCoords} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputStickerSetShortName.md b/old_docs/API_docs_v91/constructors/inputStickerSetShortName.md new file mode 100644 index 00000000..03c338c4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputStickerSetShortName.md @@ -0,0 +1,44 @@ +--- +title: inputStickerSetShortName +description: Sticker set short name +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputStickerSetShortName +[Back to constructors index](index.md) + + + +Sticker set short name + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|short\_name|[string](../types/string.md) | Yes|Short name| + + + +### Type: [InputStickerSet](../types/InputStickerSet.md) + + +### Example: + +```php +$inputStickerSetShortName = ['_' => 'inputStickerSetShortName', 'short_name' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputStickerSetShortName", "short_name": "string"} +``` + + +Or, if you're into Lua: + +```lua +inputStickerSetShortName={_='inputStickerSetShortName', short_name='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputStickeredMediaDocument.md b/old_docs/API_docs_v91/constructors/inputStickeredMediaDocument.md new file mode 100644 index 00000000..ff97cdcf --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputStickeredMediaDocument.md @@ -0,0 +1,44 @@ +--- +title: inputStickeredMediaDocument +description: Stickered media document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputStickeredMediaDocument +[Back to constructors index](index.md) + + + +Stickered media document + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional|ID| + + + +### Type: [InputStickeredMedia](../types/InputStickeredMedia.md) + + +### Example: + +```php +$inputStickeredMediaDocument = ['_' => 'inputStickeredMediaDocument', 'id' => InputDocument]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputStickeredMediaDocument", "id": InputDocument} +``` + + +Or, if you're into Lua: + +```lua +inputStickeredMediaDocument={_='inputStickeredMediaDocument', id=InputDocument} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputStickeredMediaPhoto.md b/old_docs/API_docs_v91/constructors/inputStickeredMediaPhoto.md new file mode 100644 index 00000000..78b85131 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputStickeredMediaPhoto.md @@ -0,0 +1,44 @@ +--- +title: inputStickeredMediaPhoto +description: Stickered media photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputStickeredMediaPhoto +[Back to constructors index](index.md) + + + +Stickered media photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[MessageMedia, Message, Update or InputPhoto](../types/InputPhoto.md) | Optional|ID| + + + +### Type: [InputStickeredMedia](../types/InputStickeredMedia.md) + + +### Example: + +```php +$inputStickeredMediaPhoto = ['_' => 'inputStickeredMediaPhoto', 'id' => InputPhoto]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputStickeredMediaPhoto", "id": InputPhoto} +``` + + +Or, if you're into Lua: + +```lua +inputStickeredMediaPhoto={_='inputStickeredMediaPhoto', id=InputPhoto} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputTakeoutFileLocation.md b/old_docs/API_docs_v91/constructors/inputTakeoutFileLocation.md new file mode 100644 index 00000000..f5c8783f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputTakeoutFileLocation.md @@ -0,0 +1,39 @@ +--- +title: inputTakeoutFileLocation +description: Takeout file location +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputTakeoutFileLocation +[Back to constructors index](index.md) + + + +Takeout file location + + + + +### Type: [InputFileLocation](../types/InputFileLocation.md) + + +### Example: + +```php +$inputTakeoutFileLocation = ['_' => 'inputTakeoutFileLocation']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputTakeoutFileLocation"} +``` + + +Or, if you're into Lua: + +```lua +inputTakeoutFileLocation={_='inputTakeoutFileLocation'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputUser.md b/old_docs/API_docs_v91/constructors/inputUser.md new file mode 100644 index 00000000..68391681 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputUser.md @@ -0,0 +1,45 @@ +--- +title: inputUser +description: User +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputUser +[Back to constructors index](index.md) + + + +User + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputUser](../types/InputUser.md) + + +### Example: + +```php +$inputUser = ['_' => 'inputUser', 'user_id' => int, 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputUser", "user_id": int, "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputUser={_='inputUser', user_id=int, access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputUserEmpty.md b/old_docs/API_docs_v91/constructors/inputUserEmpty.md new file mode 100644 index 00000000..436fe232 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputUserEmpty.md @@ -0,0 +1,39 @@ +--- +title: inputUserEmpty +description: Empty input user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputUserEmpty +[Back to constructors index](index.md) + + + +Empty input user + + + + +### Type: [InputUser](../types/InputUser.md) + + +### Example: + +```php +$inputUserEmpty = ['_' => 'inputUserEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputUserEmpty"} +``` + + +Or, if you're into Lua: + +```lua +inputUserEmpty={_='inputUserEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputUserSelf.md b/old_docs/API_docs_v91/constructors/inputUserSelf.md new file mode 100644 index 00000000..22d6e46c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputUserSelf.md @@ -0,0 +1,39 @@ +--- +title: inputUserSelf +description: User self +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputUserSelf +[Back to constructors index](index.md) + + + +User self + + + + +### Type: [InputUser](../types/InputUser.md) + + +### Example: + +```php +$inputUserSelf = ['_' => 'inputUserSelf']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputUserSelf"} +``` + + +Or, if you're into Lua: + +```lua +inputUserSelf={_='inputUserSelf'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputWebDocument.md b/old_docs/API_docs_v91/constructors/inputWebDocument.md new file mode 100644 index 00000000..aa777fe4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputWebDocument.md @@ -0,0 +1,47 @@ +--- +title: inputWebDocument +description: Web document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputWebDocument +[Back to constructors index](index.md) + + + +Web document + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|size|[int](../types/int.md) | Yes|Size| +|mime\_type|[string](../types/string.md) | Yes|Mime type| +|attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes|Attributes| + + + +### Type: [InputWebDocument](../types/InputWebDocument.md) + + +### Example: + +```php +$inputWebDocument = ['_' => 'inputWebDocument', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputWebDocument", "url": "string", "size": int, "mime_type": "string", "attributes": [DocumentAttribute]} +``` + + +Or, if you're into Lua: + +```lua +inputWebDocument={_='inputWebDocument', url='string', size=int, mime_type='string', attributes={DocumentAttribute}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputWebFileGeoPointLocation.md b/old_docs/API_docs_v91/constructors/inputWebFileGeoPointLocation.md new file mode 100644 index 00000000..dbfa726d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputWebFileGeoPointLocation.md @@ -0,0 +1,49 @@ +--- +title: inputWebFileGeoPointLocation +description: Web file geo point location +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputWebFileGeoPointLocation +[Back to constructors index](index.md) + + + +Web file geo point location + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | Optional|Geo point| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|w|[int](../types/int.md) | Yes|Width| +|h|[int](../types/int.md) | Yes|Height| +|zoom|[int](../types/int.md) | Yes|Zoom| +|scale|[int](../types/int.md) | Yes|Scale| + + + +### Type: [InputWebFileLocation](../types/InputWebFileLocation.md) + + +### Example: + +```php +$inputWebFileGeoPointLocation = ['_' => 'inputWebFileGeoPointLocation', 'geo_point' => InputGeoPoint, 'access_hash' => long, 'w' => int, 'h' => int, 'zoom' => int, 'scale' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputWebFileGeoPointLocation", "geo_point": InputGeoPoint, "access_hash": long, "w": int, "h": int, "zoom": int, "scale": int} +``` + + +Or, if you're into Lua: + +```lua +inputWebFileGeoPointLocation={_='inputWebFileGeoPointLocation', geo_point=InputGeoPoint, access_hash=long, w=int, h=int, zoom=int, scale=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/inputWebFileLocation.md b/old_docs/API_docs_v91/constructors/inputWebFileLocation.md new file mode 100644 index 00000000..02b3b0de --- /dev/null +++ b/old_docs/API_docs_v91/constructors/inputWebFileLocation.md @@ -0,0 +1,45 @@ +--- +title: inputWebFileLocation +description: Web file location +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: inputWebFileLocation +[Back to constructors index](index.md) + + + +Web file location + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|access\_hash|[long](../types/long.md) | Yes|Access hash| + + + +### Type: [InputWebFileLocation](../types/InputWebFileLocation.md) + + +### Example: + +```php +$inputWebFileLocation = ['_' => 'inputWebFileLocation', 'url' => 'string', 'access_hash' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "inputWebFileLocation", "url": "string", "access_hash": long} +``` + + +Or, if you're into Lua: + +```lua +inputWebFileLocation={_='inputWebFileLocation', url='string', access_hash=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/invoice.md b/old_docs/API_docs_v91/constructors/invoice.md new file mode 100644 index 00000000..42509022 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/invoice.md @@ -0,0 +1,53 @@ +--- +title: invoice +description: Invoice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: invoice +[Back to constructors index](index.md) + + + +Invoice + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|test|[Bool](../types/Bool.md) | Optional|Test?| +|name\_requested|[Bool](../types/Bool.md) | Optional|Name requested?| +|phone\_requested|[Bool](../types/Bool.md) | Optional|Phone requested?| +|email\_requested|[Bool](../types/Bool.md) | Optional|Email requested?| +|shipping\_address\_requested|[Bool](../types/Bool.md) | Optional|Shipping address requested?| +|flexible|[Bool](../types/Bool.md) | Optional|Flexible?| +|phone\_to\_provider|[Bool](../types/Bool.md) | Optional|Phone to provider?| +|email\_to\_provider|[Bool](../types/Bool.md) | Optional|Email to provider?| +|currency|[string](../types/string.md) | Yes|Currency| +|prices|Array of [LabeledPrice](../types/LabeledPrice.md) | Yes|Prices| + + + +### Type: [Invoice](../types/Invoice.md) + + +### Example: + +```php +$invoice = ['_' => 'invoice', 'test' => Bool, 'name_requested' => Bool, 'phone_requested' => Bool, 'email_requested' => Bool, 'shipping_address_requested' => Bool, 'flexible' => Bool, 'phone_to_provider' => Bool, 'email_to_provider' => Bool, 'currency' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "invoice", "test": Bool, "name_requested": Bool, "phone_requested": Bool, "email_requested": Bool, "shipping_address_requested": Bool, "flexible": Bool, "phone_to_provider": Bool, "email_to_provider": Bool, "currency": "string", "prices": [LabeledPrice]} +``` + + +Or, if you're into Lua: + +```lua +invoice={_='invoice', test=Bool, name_requested=Bool, phone_requested=Bool, email_requested=Bool, shipping_address_requested=Bool, flexible=Bool, phone_to_provider=Bool, email_to_provider=Bool, currency='string', prices={LabeledPrice}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/ipPort.md b/old_docs/API_docs_v91/constructors/ipPort.md new file mode 100644 index 00000000..921040f9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/ipPort.md @@ -0,0 +1,45 @@ +--- +title: ipPort +description: Ip port +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: ipPort +[Back to constructors index](index.md) + + + +Ip port + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ipv4|[int](../types/int.md) | Yes|Ipv4| +|port|[int](../types/int.md) | Yes|Port| + + + +### Type: [IpPort](../types/IpPort.md) + + +### Example: + +```php +$ipPort = ['_' => 'ipPort', 'ipv4' => int, 'port' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "ipPort", "ipv4": int, "port": int} +``` + + +Or, if you're into Lua: + +```lua +ipPort={_='ipPort', ipv4=int, port=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/ipPortSecret.md b/old_docs/API_docs_v91/constructors/ipPortSecret.md new file mode 100644 index 00000000..9b29d512 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/ipPortSecret.md @@ -0,0 +1,46 @@ +--- +title: ipPortSecret +description: Ip port secret +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: ipPortSecret +[Back to constructors index](index.md) + + + +Ip port secret + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|ipv4|[int](../types/int.md) | Yes|Ipv4| +|port|[int](../types/int.md) | Yes|Port| +|secret|[bytes](../types/bytes.md) | Yes|Secret| + + + +### Type: [IpPort](../types/IpPort.md) + + +### Example: + +```php +$ipPortSecret = ['_' => 'ipPortSecret', 'ipv4' => int, 'port' => int, 'secret' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "ipPortSecret", "ipv4": int, "port": int, "secret": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +ipPortSecret={_='ipPortSecret', ipv4=int, port=int, secret='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/jsonArray.md b/old_docs/API_docs_v91/constructors/jsonArray.md new file mode 100644 index 00000000..6736b97f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/jsonArray.md @@ -0,0 +1,44 @@ +--- +title: jsonArray +description: Json array +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: jsonArray +[Back to constructors index](index.md) + + + +Json array + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|value|Array of [JSONValue](../types/JSONValue.md) | Yes|Value| + + + +### Type: [JSONValue](../types/JSONValue.md) + + +### Example: + +```php +$jsonArray = ['_' => 'jsonArray', 'value' => [JSONValue, JSONValue]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "jsonArray", "value": [JSONValue]} +``` + + +Or, if you're into Lua: + +```lua +jsonArray={_='jsonArray', value={JSONValue}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/jsonBool.md b/old_docs/API_docs_v91/constructors/jsonBool.md new file mode 100644 index 00000000..560f4202 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/jsonBool.md @@ -0,0 +1,44 @@ +--- +title: jsonBool +description: Json bool +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: jsonBool +[Back to constructors index](index.md) + + + +Json bool + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|value|[Bool](../types/Bool.md) | Yes|Value?| + + + +### Type: [JSONValue](../types/JSONValue.md) + + +### Example: + +```php +$jsonBool = ['_' => 'jsonBool', 'value' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "jsonBool", "value": Bool} +``` + + +Or, if you're into Lua: + +```lua +jsonBool={_='jsonBool', value=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/jsonNull.md b/old_docs/API_docs_v91/constructors/jsonNull.md new file mode 100644 index 00000000..e00d0bcd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/jsonNull.md @@ -0,0 +1,39 @@ +--- +title: jsonNull +description: Json null +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: jsonNull +[Back to constructors index](index.md) + + + +Json null + + + + +### Type: [JSONValue](../types/JSONValue.md) + + +### Example: + +```php +$jsonNull = ['_' => 'jsonNull']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "jsonNull"} +``` + + +Or, if you're into Lua: + +```lua +jsonNull={_='jsonNull'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/jsonNumber.md b/old_docs/API_docs_v91/constructors/jsonNumber.md new file mode 100644 index 00000000..c96e5cfd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/jsonNumber.md @@ -0,0 +1,44 @@ +--- +title: jsonNumber +description: Json number +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: jsonNumber +[Back to constructors index](index.md) + + + +Json number + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|value|[double](../types/double.md) | Yes|Value| + + + +### Type: [JSONValue](../types/JSONValue.md) + + +### Example: + +```php +$jsonNumber = ['_' => 'jsonNumber', 'value' => double]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "jsonNumber", "value": double} +``` + + +Or, if you're into Lua: + +```lua +jsonNumber={_='jsonNumber', value=double} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/jsonObject.md b/old_docs/API_docs_v91/constructors/jsonObject.md new file mode 100644 index 00000000..d74d33d5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/jsonObject.md @@ -0,0 +1,44 @@ +--- +title: jsonObject +description: Json object +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: jsonObject +[Back to constructors index](index.md) + + + +Json object + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|value|Array of [JSONObjectValue](../types/JSONObjectValue.md) | Yes|Value| + + + +### Type: [JSONValue](../types/JSONValue.md) + + +### Example: + +```php +$jsonObject = ['_' => 'jsonObject', 'value' => [JSONObjectValue, JSONObjectValue]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "jsonObject", "value": [JSONObjectValue]} +``` + + +Or, if you're into Lua: + +```lua +jsonObject={_='jsonObject', value={JSONObjectValue}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/jsonObjectValue.md b/old_docs/API_docs_v91/constructors/jsonObjectValue.md new file mode 100644 index 00000000..a5c4f0c1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/jsonObjectValue.md @@ -0,0 +1,45 @@ +--- +title: jsonObjectValue +description: Json object value +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: jsonObjectValue +[Back to constructors index](index.md) + + + +Json object value + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[string](../types/string.md) | Yes|Key| +|value|[JSONValue](../types/JSONValue.md) | Yes|Value| + + + +### Type: [JSONObjectValue](../types/JSONObjectValue.md) + + +### Example: + +```php +$jsonObjectValue = ['_' => 'jsonObjectValue', 'key' => 'string', 'value' => JSONValue]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "jsonObjectValue", "key": "string", "value": JSONValue} +``` + + +Or, if you're into Lua: + +```lua +jsonObjectValue={_='jsonObjectValue', key='string', value=JSONValue} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/jsonString.md b/old_docs/API_docs_v91/constructors/jsonString.md new file mode 100644 index 00000000..42fbd79c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/jsonString.md @@ -0,0 +1,44 @@ +--- +title: jsonString +description: Json string +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: jsonString +[Back to constructors index](index.md) + + + +Json string + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|value|[string](../types/string.md) | Yes|Value| + + + +### Type: [JSONValue](../types/JSONValue.md) + + +### Example: + +```php +$jsonString = ['_' => 'jsonString', 'value' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "jsonString", "value": "string"} +``` + + +Or, if you're into Lua: + +```lua +jsonString={_='jsonString', value='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/keyboardButton.md b/old_docs/API_docs_v91/constructors/keyboardButton.md new file mode 100644 index 00000000..c4c0d174 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/keyboardButton.md @@ -0,0 +1,44 @@ +--- +title: keyboardButton +description: Keyboard button +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: keyboardButton +[Back to constructors index](index.md) + + + +Keyboard button + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [KeyboardButton](../types/KeyboardButton.md) + + +### Example: + +```php +$keyboardButton = ['_' => 'keyboardButton', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "keyboardButton", "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +keyboardButton={_='keyboardButton', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/keyboardButtonBuy.md b/old_docs/API_docs_v91/constructors/keyboardButtonBuy.md new file mode 100644 index 00000000..c7f5cef9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/keyboardButtonBuy.md @@ -0,0 +1,44 @@ +--- +title: keyboardButtonBuy +description: Keyboard button buy +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: keyboardButtonBuy +[Back to constructors index](index.md) + + + +Keyboard button buy + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [KeyboardButton](../types/KeyboardButton.md) + + +### Example: + +```php +$keyboardButtonBuy = ['_' => 'keyboardButtonBuy', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "keyboardButtonBuy", "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +keyboardButtonBuy={_='keyboardButtonBuy', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/keyboardButtonCallback.md b/old_docs/API_docs_v91/constructors/keyboardButtonCallback.md new file mode 100644 index 00000000..41595e4a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/keyboardButtonCallback.md @@ -0,0 +1,45 @@ +--- +title: keyboardButtonCallback +description: Keyboard button callback +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: keyboardButtonCallback +[Back to constructors index](index.md) + + + +Keyboard button callback + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text| +|data|[bytes](../types/bytes.md) | Yes|Data| + + + +### Type: [KeyboardButton](../types/KeyboardButton.md) + + +### Example: + +```php +$keyboardButtonCallback = ['_' => 'keyboardButtonCallback', 'text' => 'string', 'data' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "keyboardButtonCallback", "text": "string", "data": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +keyboardButtonCallback={_='keyboardButtonCallback', text='string', data='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/keyboardButtonGame.md b/old_docs/API_docs_v91/constructors/keyboardButtonGame.md new file mode 100644 index 00000000..b390627b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/keyboardButtonGame.md @@ -0,0 +1,44 @@ +--- +title: keyboardButtonGame +description: Keyboard button game +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: keyboardButtonGame +[Back to constructors index](index.md) + + + +Keyboard button game + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [KeyboardButton](../types/KeyboardButton.md) + + +### Example: + +```php +$keyboardButtonGame = ['_' => 'keyboardButtonGame', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "keyboardButtonGame", "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +keyboardButtonGame={_='keyboardButtonGame', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/keyboardButtonRequestGeoLocation.md b/old_docs/API_docs_v91/constructors/keyboardButtonRequestGeoLocation.md new file mode 100644 index 00000000..4d176825 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/keyboardButtonRequestGeoLocation.md @@ -0,0 +1,44 @@ +--- +title: keyboardButtonRequestGeoLocation +description: Keyboard button request geo location +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: keyboardButtonRequestGeoLocation +[Back to constructors index](index.md) + + + +Keyboard button request geo location + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [KeyboardButton](../types/KeyboardButton.md) + + +### Example: + +```php +$keyboardButtonRequestGeoLocation = ['_' => 'keyboardButtonRequestGeoLocation', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "keyboardButtonRequestGeoLocation", "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +keyboardButtonRequestGeoLocation={_='keyboardButtonRequestGeoLocation', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/keyboardButtonRequestPhone.md b/old_docs/API_docs_v91/constructors/keyboardButtonRequestPhone.md new file mode 100644 index 00000000..2d020598 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/keyboardButtonRequestPhone.md @@ -0,0 +1,44 @@ +--- +title: keyboardButtonRequestPhone +description: Keyboard button request phone +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: keyboardButtonRequestPhone +[Back to constructors index](index.md) + + + +Keyboard button request phone + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [KeyboardButton](../types/KeyboardButton.md) + + +### Example: + +```php +$keyboardButtonRequestPhone = ['_' => 'keyboardButtonRequestPhone', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "keyboardButtonRequestPhone", "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +keyboardButtonRequestPhone={_='keyboardButtonRequestPhone', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/keyboardButtonRow.md b/old_docs/API_docs_v91/constructors/keyboardButtonRow.md new file mode 100644 index 00000000..0f057124 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/keyboardButtonRow.md @@ -0,0 +1,44 @@ +--- +title: keyboardButtonRow +description: Keyboard button row +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: keyboardButtonRow +[Back to constructors index](index.md) + + + +Keyboard button row + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|buttons|Array of [KeyboardButton](../types/KeyboardButton.md) | Yes|Buttons| + + + +### Type: [KeyboardButtonRow](../types/KeyboardButtonRow.md) + + +### Example: + +```php +$keyboardButtonRow = ['_' => 'keyboardButtonRow', 'buttons' => [KeyboardButton, KeyboardButton]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "keyboardButtonRow", "buttons": [KeyboardButton]} +``` + + +Or, if you're into Lua: + +```lua +keyboardButtonRow={_='keyboardButtonRow', buttons={KeyboardButton}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/keyboardButtonSwitchInline.md b/old_docs/API_docs_v91/constructors/keyboardButtonSwitchInline.md new file mode 100644 index 00000000..7cee3766 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/keyboardButtonSwitchInline.md @@ -0,0 +1,46 @@ +--- +title: keyboardButtonSwitchInline +description: Keyboard button switch inline +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: keyboardButtonSwitchInline +[Back to constructors index](index.md) + + + +Keyboard button switch inline + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|same\_peer|[Bool](../types/Bool.md) | Optional|Same peer?| +|text|[string](../types/string.md) | Yes|Text| +|query|[string](../types/string.md) | Yes|Query| + + + +### Type: [KeyboardButton](../types/KeyboardButton.md) + + +### Example: + +```php +$keyboardButtonSwitchInline = ['_' => 'keyboardButtonSwitchInline', 'same_peer' => Bool, 'text' => 'string', 'query' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "keyboardButtonSwitchInline", "same_peer": Bool, "text": "string", "query": "string"} +``` + + +Or, if you're into Lua: + +```lua +keyboardButtonSwitchInline={_='keyboardButtonSwitchInline', same_peer=Bool, text='string', query='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/keyboardButtonUrl.md b/old_docs/API_docs_v91/constructors/keyboardButtonUrl.md new file mode 100644 index 00000000..71957259 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/keyboardButtonUrl.md @@ -0,0 +1,45 @@ +--- +title: keyboardButtonUrl +description: Keyboard button URL +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: keyboardButtonUrl +[Back to constructors index](index.md) + + + +Keyboard button URL + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text| +|url|[string](../types/string.md) | Yes|URL| + + + +### Type: [KeyboardButton](../types/KeyboardButton.md) + + +### Example: + +```php +$keyboardButtonUrl = ['_' => 'keyboardButtonUrl', 'text' => 'string', 'url' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "keyboardButtonUrl", "text": "string", "url": "string"} +``` + + +Or, if you're into Lua: + +```lua +keyboardButtonUrl={_='keyboardButtonUrl', text='string', url='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/labeledPrice.md b/old_docs/API_docs_v91/constructors/labeledPrice.md new file mode 100644 index 00000000..efdaefd4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/labeledPrice.md @@ -0,0 +1,45 @@ +--- +title: labeledPrice +description: Labeled price +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: labeledPrice +[Back to constructors index](index.md) + + + +Labeled price + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|label|[string](../types/string.md) | Yes|Label| +|amount|[long](../types/long.md) | Yes|Amount| + + + +### Type: [LabeledPrice](../types/LabeledPrice.md) + + +### Example: + +```php +$labeledPrice = ['_' => 'labeledPrice', 'label' => 'string', 'amount' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "labeledPrice", "label": "string", "amount": long} +``` + + +Or, if you're into Lua: + +```lua +labeledPrice={_='labeledPrice', label='string', amount=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/langPackDifference.md b/old_docs/API_docs_v91/constructors/langPackDifference.md new file mode 100644 index 00000000..1faa6c5f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/langPackDifference.md @@ -0,0 +1,47 @@ +--- +title: langPackDifference +description: Lang pack difference +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: langPackDifference +[Back to constructors index](index.md) + + + +Lang pack difference + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|lang\_code|[string](../types/string.md) | Yes|Lang code| +|from\_version|[int](../types/int.md) | Yes|From version| +|version|[int](../types/int.md) | Yes|Version| +|strings|Array of [LangPackString](../types/LangPackString.md) | Yes|Strings| + + + +### Type: [LangPackDifference](../types/LangPackDifference.md) + + +### Example: + +```php +$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString, LangPackString]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "langPackDifference", "lang_code": "string", "from_version": int, "version": int, "strings": [LangPackString]} +``` + + +Or, if you're into Lua: + +```lua +langPackDifference={_='langPackDifference', lang_code='string', from_version=int, version=int, strings={LangPackString}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/langPackLanguage.md b/old_docs/API_docs_v91/constructors/langPackLanguage.md new file mode 100644 index 00000000..2e06ee6f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/langPackLanguage.md @@ -0,0 +1,54 @@ +--- +title: langPackLanguage +description: Lang pack language +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: langPackLanguage +[Back to constructors index](index.md) + + + +Lang pack language + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|official|[Bool](../types/Bool.md) | Optional|Official?| +|rtl|[Bool](../types/Bool.md) | Optional|Rtl?| +|beta|[Bool](../types/Bool.md) | Optional|Beta?| +|name|[string](../types/string.md) | Yes|Name| +|native\_name|[string](../types/string.md) | Yes|Native name| +|lang\_code|[string](../types/string.md) | Yes|Lang code| +|base\_lang\_code|[string](../types/string.md) | Optional|Base lang code| +|plural\_code|[string](../types/string.md) | Yes|Plural code| +|strings\_count|[int](../types/int.md) | Yes|Strings count| +|translated\_count|[int](../types/int.md) | Yes|Translated count| +|translations\_url|[string](../types/string.md) | Yes|Translations URL| + + + +### Type: [LangPackLanguage](../types/LangPackLanguage.md) + + +### Example: + +```php +$langPackLanguage = ['_' => 'langPackLanguage', 'official' => Bool, 'rtl' => Bool, 'beta' => Bool, 'name' => 'string', 'native_name' => 'string', 'lang_code' => 'string', 'base_lang_code' => 'string', 'plural_code' => 'string', 'strings_count' => int, 'translated_count' => int, 'translations_url' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "langPackLanguage", "official": Bool, "rtl": Bool, "beta": Bool, "name": "string", "native_name": "string", "lang_code": "string", "base_lang_code": "string", "plural_code": "string", "strings_count": int, "translated_count": int, "translations_url": "string"} +``` + + +Or, if you're into Lua: + +```lua +langPackLanguage={_='langPackLanguage', official=Bool, rtl=Bool, beta=Bool, name='string', native_name='string', lang_code='string', base_lang_code='string', plural_code='string', strings_count=int, translated_count=int, translations_url='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/langPackString.md b/old_docs/API_docs_v91/constructors/langPackString.md new file mode 100644 index 00000000..e3f8ea83 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/langPackString.md @@ -0,0 +1,45 @@ +--- +title: langPackString +description: Lang pack string +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: langPackString +[Back to constructors index](index.md) + + + +Lang pack string + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[string](../types/string.md) | Yes|Key| +|value|[string](../types/string.md) | Yes|Value| + + + +### Type: [LangPackString](../types/LangPackString.md) + + +### Example: + +```php +$langPackString = ['_' => 'langPackString', 'key' => 'string', 'value' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "langPackString", "key": "string", "value": "string"} +``` + + +Or, if you're into Lua: + +```lua +langPackString={_='langPackString', key='string', value='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/langPackStringDeleted.md b/old_docs/API_docs_v91/constructors/langPackStringDeleted.md new file mode 100644 index 00000000..0177a0a2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/langPackStringDeleted.md @@ -0,0 +1,44 @@ +--- +title: langPackStringDeleted +description: Lang pack string deleted +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: langPackStringDeleted +[Back to constructors index](index.md) + + + +Lang pack string deleted + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[string](../types/string.md) | Yes|Key| + + + +### Type: [LangPackString](../types/LangPackString.md) + + +### Example: + +```php +$langPackStringDeleted = ['_' => 'langPackStringDeleted', 'key' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "langPackStringDeleted", "key": "string"} +``` + + +Or, if you're into Lua: + +```lua +langPackStringDeleted={_='langPackStringDeleted', key='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/langPackStringPluralized.md b/old_docs/API_docs_v91/constructors/langPackStringPluralized.md new file mode 100644 index 00000000..23a6958a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/langPackStringPluralized.md @@ -0,0 +1,50 @@ +--- +title: langPackStringPluralized +description: Lang pack string pluralized +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: langPackStringPluralized +[Back to constructors index](index.md) + + + +Lang pack string pluralized + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[string](../types/string.md) | Yes|Key| +|zero\_value|[string](../types/string.md) | Optional|Zero value| +|one\_value|[string](../types/string.md) | Optional|One value| +|two\_value|[string](../types/string.md) | Optional|Two value| +|few\_value|[string](../types/string.md) | Optional|Few value| +|many\_value|[string](../types/string.md) | Optional|Many value| +|other\_value|[string](../types/string.md) | Yes|Other value| + + + +### Type: [LangPackString](../types/LangPackString.md) + + +### Example: + +```php +$langPackStringPluralized = ['_' => 'langPackStringPluralized', 'key' => 'string', 'zero_value' => 'string', 'one_value' => 'string', 'two_value' => 'string', 'few_value' => 'string', 'many_value' => 'string', 'other_value' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "langPackStringPluralized", "key": "string", "zero_value": "string", "one_value": "string", "two_value": "string", "few_value": "string", "many_value": "string", "other_value": "string"} +``` + + +Or, if you're into Lua: + +```lua +langPackStringPluralized={_='langPackStringPluralized', key='string', zero_value='string', one_value='string', two_value='string', few_value='string', many_value='string', other_value='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/maskCoords.md b/old_docs/API_docs_v91/constructors/maskCoords.md new file mode 100644 index 00000000..5a455900 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/maskCoords.md @@ -0,0 +1,47 @@ +--- +title: maskCoords +description: Mask coords +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: maskCoords +[Back to constructors index](index.md) + + + +Mask coords + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|n|[int](../types/int.md) | Yes|N| +|x|[double](../types/double.md) | Yes|X| +|y|[double](../types/double.md) | Yes|Y| +|zoom|[double](../types/double.md) | Yes|Zoom| + + + +### Type: [MaskCoords](../types/MaskCoords.md) + + +### Example: + +```php +$maskCoords = ['_' => 'maskCoords', 'n' => int, 'x' => double, 'y' => double, 'zoom' => double]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "maskCoords", "n": int, "x": double, "y": double, "zoom": double} +``` + + +Or, if you're into Lua: + +```lua +maskCoords={_='maskCoords', n=int, x=double, y=double, zoom=double} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/message.md b/old_docs/API_docs_v91/constructors/message.md new file mode 100644 index 00000000..c09bb682 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/message.md @@ -0,0 +1,70 @@ +--- +title: message +description: Message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: message +[Back to constructors index](index.md) + + + +Message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|out|[Bool](../types/Bool.md) | Optional|Out?| +|mentioned|[Bool](../types/Bool.md) | Optional|Mentioned?| +|media\_unread|[Bool](../types/Bool.md) | Optional|Media unread?| +|silent|[Bool](../types/Bool.md) | Optional|Silent?| +|post|[Bool](../types/Bool.md) | Optional|Post?| +|from\_scheduled|[Bool](../types/Bool.md) | Optional|From scheduled?| +|id|[int](../types/int.md) | Yes|ID| +|from\_id|[int](../types/int.md) | Optional|From ID| +|to\_id|[Peer](../types/Peer.md) | Yes|To ID| +|fwd\_from|[MessageFwdHeader](../types/MessageFwdHeader.md) | Optional|Forwarded from| +|via\_bot\_id|[int](../types/int.md) | Optional|Via bot ID| +|reply\_to\_msg\_id|[int](../types/int.md) | Optional|Reply to msg ID| +|date|[int](../types/int.md) | Yes|Date| +|message|[string](../types/string.md) | Yes|Message| +|media|[MessageMedia](../types/MessageMedia.md) | Optional|Media| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities| +|views|[int](../types/int.md) | Optional|Views| +|edit\_date|[int](../types/int.md) | Optional|Edit date| +|post\_author|[string](../types/string.md) | Optional|Post author| +|grouped\_id|[long](../types/long.md) | Optional|Grouped ID| + + + +### Type: [Message](../types/Message.md) + + +### Example: + +```php +$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => Bool, 'from_scheduled' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'views' => int, 'edit_date' => int, 'post_author' => 'string', 'grouped_id' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "message", "out": Bool, "mentioned": Bool, "media_unread": Bool, "silent": Bool, "post": Bool, "from_scheduled": Bool, "id": int, "from_id": int, "to_id": Peer, "fwd_from": MessageFwdHeader, "via_bot_id": int, "reply_to_msg_id": int, "date": int, "message": "string", "media": MessageMedia, "reply_markup": ReplyMarkup, "entities": [MessageEntity], "views": int, "edit_date": int, "post_author": "string", "grouped_id": long} +``` + + +Or, if you're into Lua: + +```lua +message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, post=Bool, from_scheduled=Bool, id=int, from_id=int, to_id=Peer, fwd_from=MessageFwdHeader, via_bot_id=int, reply_to_msg_id=int, date=int, message='string', media=MessageMedia, reply_markup=ReplyMarkup, entities={MessageEntity}, views=int, edit_date=int, post_author='string', grouped_id=long} + +``` + + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v91/constructors/messageActionBotAllowed.md b/old_docs/API_docs_v91/constructors/messageActionBotAllowed.md new file mode 100644 index 00000000..2a033afc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionBotAllowed.md @@ -0,0 +1,44 @@ +--- +title: messageActionBotAllowed +description: Message action bot allowed +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionBotAllowed +[Back to constructors index](index.md) + + + +Message action bot allowed + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|domain|[string](../types/string.md) | Yes|Domain| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionBotAllowed = ['_' => 'messageActionBotAllowed', 'domain' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionBotAllowed", "domain": "string"} +``` + + +Or, if you're into Lua: + +```lua +messageActionBotAllowed={_='messageActionBotAllowed', domain='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionChannelCreate.md b/old_docs/API_docs_v91/constructors/messageActionChannelCreate.md new file mode 100644 index 00000000..7608d423 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionChannelCreate.md @@ -0,0 +1,44 @@ +--- +title: messageActionChannelCreate +description: Message action channel create +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionChannelCreate +[Back to constructors index](index.md) + + + +Message action channel create + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|title|[string](../types/string.md) | Yes|Title| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionChannelCreate = ['_' => 'messageActionChannelCreate', 'title' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionChannelCreate", "title": "string"} +``` + + +Or, if you're into Lua: + +```lua +messageActionChannelCreate={_='messageActionChannelCreate', title='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionChannelMigrateFrom.md b/old_docs/API_docs_v91/constructors/messageActionChannelMigrateFrom.md new file mode 100644 index 00000000..5c416977 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionChannelMigrateFrom.md @@ -0,0 +1,45 @@ +--- +title: messageActionChannelMigrateFrom +description: Message action channel migrate from +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionChannelMigrateFrom +[Back to constructors index](index.md) + + + +Message action channel migrate from + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|title|[string](../types/string.md) | Yes|Title| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionChannelMigrateFrom = ['_' => 'messageActionChannelMigrateFrom', 'title' => 'string', 'chat_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionChannelMigrateFrom", "title": "string", "chat_id": int} +``` + + +Or, if you're into Lua: + +```lua +messageActionChannelMigrateFrom={_='messageActionChannelMigrateFrom', title='string', chat_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionChatAddUser.md b/old_docs/API_docs_v91/constructors/messageActionChatAddUser.md new file mode 100644 index 00000000..8c4908aa --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionChatAddUser.md @@ -0,0 +1,44 @@ +--- +title: messageActionChatAddUser +description: Message action chat add user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionChatAddUser +[Back to constructors index](index.md) + + + +Message action chat add user + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|users|Array of [int](../types/int.md) | Yes|Users| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'users' => [int, int]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionChatAddUser", "users": [int]} +``` + + +Or, if you're into Lua: + +```lua +messageActionChatAddUser={_='messageActionChatAddUser', users={int}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionChatCreate.md b/old_docs/API_docs_v91/constructors/messageActionChatCreate.md new file mode 100644 index 00000000..bb9c050e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionChatCreate.md @@ -0,0 +1,45 @@ +--- +title: messageActionChatCreate +description: Message action chat create +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionChatCreate +[Back to constructors index](index.md) + + + +Message action chat create + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|title|[string](../types/string.md) | Yes|Title| +|users|Array of [int](../types/int.md) | Yes|Users| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionChatCreate = ['_' => 'messageActionChatCreate', 'title' => 'string', 'users' => [int, int]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionChatCreate", "title": "string", "users": [int]} +``` + + +Or, if you're into Lua: + +```lua +messageActionChatCreate={_='messageActionChatCreate', title='string', users={int}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionChatDeletePhoto.md b/old_docs/API_docs_v91/constructors/messageActionChatDeletePhoto.md new file mode 100644 index 00000000..6f15362f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionChatDeletePhoto.md @@ -0,0 +1,39 @@ +--- +title: messageActionChatDeletePhoto +description: Message action chat delete photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionChatDeletePhoto +[Back to constructors index](index.md) + + + +Message action chat delete photo + + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionChatDeletePhoto = ['_' => 'messageActionChatDeletePhoto']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionChatDeletePhoto"} +``` + + +Or, if you're into Lua: + +```lua +messageActionChatDeletePhoto={_='messageActionChatDeletePhoto'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionChatDeleteUser.md b/old_docs/API_docs_v91/constructors/messageActionChatDeleteUser.md new file mode 100644 index 00000000..030f31b1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionChatDeleteUser.md @@ -0,0 +1,44 @@ +--- +title: messageActionChatDeleteUser +description: Message action chat delete user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionChatDeleteUser +[Back to constructors index](index.md) + + + +Message action chat delete user + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionChatDeleteUser = ['_' => 'messageActionChatDeleteUser', 'user_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionChatDeleteUser", "user_id": int} +``` + + +Or, if you're into Lua: + +```lua +messageActionChatDeleteUser={_='messageActionChatDeleteUser', user_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionChatEditPhoto.md b/old_docs/API_docs_v91/constructors/messageActionChatEditPhoto.md new file mode 100644 index 00000000..4f3bdc2c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionChatEditPhoto.md @@ -0,0 +1,44 @@ +--- +title: messageActionChatEditPhoto +description: Message action chat edit photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionChatEditPhoto +[Back to constructors index](index.md) + + + +Message action chat edit photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|photo|[Photo](../types/Photo.md) | Optional|Photo| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionChatEditPhoto = ['_' => 'messageActionChatEditPhoto', 'photo' => Photo]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionChatEditPhoto", "photo": Photo} +``` + + +Or, if you're into Lua: + +```lua +messageActionChatEditPhoto={_='messageActionChatEditPhoto', photo=Photo} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionChatEditTitle.md b/old_docs/API_docs_v91/constructors/messageActionChatEditTitle.md new file mode 100644 index 00000000..7196d5fd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionChatEditTitle.md @@ -0,0 +1,44 @@ +--- +title: messageActionChatEditTitle +description: Message action chat edit title +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionChatEditTitle +[Back to constructors index](index.md) + + + +Message action chat edit title + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|title|[string](../types/string.md) | Yes|Title| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionChatEditTitle = ['_' => 'messageActionChatEditTitle', 'title' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionChatEditTitle", "title": "string"} +``` + + +Or, if you're into Lua: + +```lua +messageActionChatEditTitle={_='messageActionChatEditTitle', title='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionChatJoinedByLink.md b/old_docs/API_docs_v91/constructors/messageActionChatJoinedByLink.md new file mode 100644 index 00000000..3994a948 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionChatJoinedByLink.md @@ -0,0 +1,44 @@ +--- +title: messageActionChatJoinedByLink +description: Message action chat joined by link +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionChatJoinedByLink +[Back to constructors index](index.md) + + + +Message action chat joined by link + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|inviter\_id|[int](../types/int.md) | Yes|Inviter ID| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionChatJoinedByLink = ['_' => 'messageActionChatJoinedByLink', 'inviter_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionChatJoinedByLink", "inviter_id": int} +``` + + +Or, if you're into Lua: + +```lua +messageActionChatJoinedByLink={_='messageActionChatJoinedByLink', inviter_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionChatMigrateTo.md b/old_docs/API_docs_v91/constructors/messageActionChatMigrateTo.md new file mode 100644 index 00000000..5884d718 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionChatMigrateTo.md @@ -0,0 +1,44 @@ +--- +title: messageActionChatMigrateTo +description: Message action chat migrate to +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionChatMigrateTo +[Back to constructors index](index.md) + + + +Message action chat migrate to + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionChatMigrateTo = ['_' => 'messageActionChatMigrateTo', 'channel_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionChatMigrateTo", "channel_id": int} +``` + + +Or, if you're into Lua: + +```lua +messageActionChatMigrateTo={_='messageActionChatMigrateTo', channel_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionContactSignUp.md b/old_docs/API_docs_v91/constructors/messageActionContactSignUp.md new file mode 100644 index 00000000..9f804052 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionContactSignUp.md @@ -0,0 +1,39 @@ +--- +title: messageActionContactSignUp +description: Message action contact sign up +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionContactSignUp +[Back to constructors index](index.md) + + + +Message action contact sign up + + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionContactSignUp = ['_' => 'messageActionContactSignUp']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionContactSignUp"} +``` + + +Or, if you're into Lua: + +```lua +messageActionContactSignUp={_='messageActionContactSignUp'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionCustomAction.md b/old_docs/API_docs_v91/constructors/messageActionCustomAction.md new file mode 100644 index 00000000..02cf1e5a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionCustomAction.md @@ -0,0 +1,44 @@ +--- +title: messageActionCustomAction +description: Message action custom action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionCustomAction +[Back to constructors index](index.md) + + + +Message action custom action + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[string](../types/string.md) | Yes|Message| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionCustomAction = ['_' => 'messageActionCustomAction', 'message' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionCustomAction", "message": "string"} +``` + + +Or, if you're into Lua: + +```lua +messageActionCustomAction={_='messageActionCustomAction', message='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionEmpty.md b/old_docs/API_docs_v91/constructors/messageActionEmpty.md new file mode 100644 index 00000000..6f9dcbd3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionEmpty.md @@ -0,0 +1,39 @@ +--- +title: messageActionEmpty +description: Empty message action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionEmpty +[Back to constructors index](index.md) + + + +Empty message action + + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionEmpty = ['_' => 'messageActionEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionEmpty"} +``` + + +Or, if you're into Lua: + +```lua +messageActionEmpty={_='messageActionEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionGameScore.md b/old_docs/API_docs_v91/constructors/messageActionGameScore.md new file mode 100644 index 00000000..0f51a8d0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionGameScore.md @@ -0,0 +1,45 @@ +--- +title: messageActionGameScore +description: Message action game score +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionGameScore +[Back to constructors index](index.md) + + + +Message action game score + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|game\_id|[long](../types/long.md) | Yes|Game ID| +|score|[int](../types/int.md) | Yes|Score| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionGameScore = ['_' => 'messageActionGameScore', 'game_id' => long, 'score' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionGameScore", "game_id": long, "score": int} +``` + + +Or, if you're into Lua: + +```lua +messageActionGameScore={_='messageActionGameScore', game_id=long, score=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionHistoryClear.md b/old_docs/API_docs_v91/constructors/messageActionHistoryClear.md new file mode 100644 index 00000000..7046eefc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionHistoryClear.md @@ -0,0 +1,39 @@ +--- +title: messageActionHistoryClear +description: Message action history clear +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionHistoryClear +[Back to constructors index](index.md) + + + +Message action history clear + + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionHistoryClear = ['_' => 'messageActionHistoryClear']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionHistoryClear"} +``` + + +Or, if you're into Lua: + +```lua +messageActionHistoryClear={_='messageActionHistoryClear'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionPaymentSent.md b/old_docs/API_docs_v91/constructors/messageActionPaymentSent.md new file mode 100644 index 00000000..f44f70c9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionPaymentSent.md @@ -0,0 +1,45 @@ +--- +title: messageActionPaymentSent +description: Message action payment sent +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionPaymentSent +[Back to constructors index](index.md) + + + +Message action payment sent + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|currency|[string](../types/string.md) | Yes|Currency| +|total\_amount|[long](../types/long.md) | Yes|Total amount| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionPaymentSent = ['_' => 'messageActionPaymentSent', 'currency' => 'string', 'total_amount' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionPaymentSent", "currency": "string", "total_amount": long} +``` + + +Or, if you're into Lua: + +```lua +messageActionPaymentSent={_='messageActionPaymentSent', currency='string', total_amount=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionPaymentSentMe.md b/old_docs/API_docs_v91/constructors/messageActionPaymentSentMe.md new file mode 100644 index 00000000..08bc7438 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionPaymentSentMe.md @@ -0,0 +1,49 @@ +--- +title: messageActionPaymentSentMe +description: Message action payment sent me +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionPaymentSentMe +[Back to constructors index](index.md) + + + +Message action payment sent me + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|currency|[string](../types/string.md) | Yes|Currency| +|total\_amount|[long](../types/long.md) | Yes|Total amount| +|payload|[bytes](../types/bytes.md) | Yes|Payload| +|info|[PaymentRequestedInfo](../types/PaymentRequestedInfo.md) | Optional|Info| +|shipping\_option\_id|[string](../types/string.md) | Optional|Shipping option ID| +|charge|[PaymentCharge](../types/PaymentCharge.md) | Yes|Charge| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionPaymentSentMe = ['_' => 'messageActionPaymentSentMe', 'currency' => 'string', 'total_amount' => long, 'payload' => 'bytes', 'info' => PaymentRequestedInfo, 'shipping_option_id' => 'string', 'charge' => PaymentCharge]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionPaymentSentMe", "currency": "string", "total_amount": long, "payload": {"_": "bytes", "bytes":"base64 encoded bytes"}, "info": PaymentRequestedInfo, "shipping_option_id": "string", "charge": PaymentCharge} +``` + + +Or, if you're into Lua: + +```lua +messageActionPaymentSentMe={_='messageActionPaymentSentMe', currency='string', total_amount=long, payload='bytes', info=PaymentRequestedInfo, shipping_option_id='string', charge=PaymentCharge} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionPhoneCall.md b/old_docs/API_docs_v91/constructors/messageActionPhoneCall.md new file mode 100644 index 00000000..cb3776fc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionPhoneCall.md @@ -0,0 +1,46 @@ +--- +title: messageActionPhoneCall +description: Message action phone call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionPhoneCall +[Back to constructors index](index.md) + + + +Message action phone call + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|call\_id|[long](../types/long.md) | Yes|Call ID| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Optional|Reason| +|duration|[int](../types/int.md) | Optional|Duration| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionPhoneCall = ['_' => 'messageActionPhoneCall', 'call_id' => long, 'reason' => PhoneCallDiscardReason, 'duration' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionPhoneCall", "call_id": long, "reason": PhoneCallDiscardReason, "duration": int} +``` + + +Or, if you're into Lua: + +```lua +messageActionPhoneCall={_='messageActionPhoneCall', call_id=long, reason=PhoneCallDiscardReason, duration=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionPinMessage.md b/old_docs/API_docs_v91/constructors/messageActionPinMessage.md new file mode 100644 index 00000000..145ada84 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionPinMessage.md @@ -0,0 +1,39 @@ +--- +title: messageActionPinMessage +description: Message action pin message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionPinMessage +[Back to constructors index](index.md) + + + +Message action pin message + + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionPinMessage = ['_' => 'messageActionPinMessage']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionPinMessage"} +``` + + +Or, if you're into Lua: + +```lua +messageActionPinMessage={_='messageActionPinMessage'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionScreenshotTaken.md b/old_docs/API_docs_v91/constructors/messageActionScreenshotTaken.md new file mode 100644 index 00000000..9c2e584c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionScreenshotTaken.md @@ -0,0 +1,39 @@ +--- +title: messageActionScreenshotTaken +description: Message action screenshot taken +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionScreenshotTaken +[Back to constructors index](index.md) + + + +Message action screenshot taken + + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionScreenshotTaken = ['_' => 'messageActionScreenshotTaken']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionScreenshotTaken"} +``` + + +Or, if you're into Lua: + +```lua +messageActionScreenshotTaken={_='messageActionScreenshotTaken'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionSecureValuesSent.md b/old_docs/API_docs_v91/constructors/messageActionSecureValuesSent.md new file mode 100644 index 00000000..a2be3d71 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionSecureValuesSent.md @@ -0,0 +1,44 @@ +--- +title: messageActionSecureValuesSent +description: Message action secure values sent +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionSecureValuesSent +[Back to constructors index](index.md) + + + +Message action secure values sent + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|types|Array of [SecureValueType](../types/SecureValueType.md) | Yes|Types| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionSecureValuesSent = ['_' => 'messageActionSecureValuesSent', 'types' => [SecureValueType, SecureValueType]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionSecureValuesSent", "types": [SecureValueType]} +``` + + +Or, if you're into Lua: + +```lua +messageActionSecureValuesSent={_='messageActionSecureValuesSent', types={SecureValueType}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageActionSecureValuesSentMe.md b/old_docs/API_docs_v91/constructors/messageActionSecureValuesSentMe.md new file mode 100644 index 00000000..bbe9a9a9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageActionSecureValuesSentMe.md @@ -0,0 +1,45 @@ +--- +title: messageActionSecureValuesSentMe +description: Message action secure values sent me +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageActionSecureValuesSentMe +[Back to constructors index](index.md) + + + +Message action secure values sent me + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|values|Array of [SecureValue](../types/SecureValue.md) | Yes|Values| +|credentials|[SecureCredentialsEncrypted](../types/SecureCredentialsEncrypted.md) | Yes|Credentials| + + + +### Type: [MessageAction](../types/MessageAction.md) + + +### Example: + +```php +$messageActionSecureValuesSentMe = ['_' => 'messageActionSecureValuesSentMe', 'values' => [SecureValue, SecureValue], 'credentials' => SecureCredentialsEncrypted]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageActionSecureValuesSentMe", "values": [SecureValue], "credentials": SecureCredentialsEncrypted} +``` + + +Or, if you're into Lua: + +```lua +messageActionSecureValuesSentMe={_='messageActionSecureValuesSentMe', values={SecureValue}, credentials=SecureCredentialsEncrypted} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEmpty.md b/old_docs/API_docs_v91/constructors/messageEmpty.md new file mode 100644 index 00000000..033fc830 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEmpty.md @@ -0,0 +1,44 @@ +--- +title: messageEmpty +description: Empty message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEmpty +[Back to constructors index](index.md) + + + +Empty message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [Message](../types/Message.md) + + +### Example: + +```php +$messageEmpty = ['_' => 'messageEmpty', 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEmpty", "id": int} +``` + + +Or, if you're into Lua: + +```lua +messageEmpty={_='messageEmpty', id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityBold.md b/old_docs/API_docs_v91/constructors/messageEntityBold.md new file mode 100644 index 00000000..a29e881f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityBold.md @@ -0,0 +1,45 @@ +--- +title: messageEntityBold +description: Message entity bold +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityBold +[Back to constructors index](index.md) + + + +Message entity bold + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityBold = ['_' => 'messageEntityBold', 'offset' => int, 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityBold", "offset": int, "length": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityBold={_='messageEntityBold', offset=int, length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityBotCommand.md b/old_docs/API_docs_v91/constructors/messageEntityBotCommand.md new file mode 100644 index 00000000..c38f0580 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityBotCommand.md @@ -0,0 +1,45 @@ +--- +title: messageEntityBotCommand +description: Message entity bot command +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityBotCommand +[Back to constructors index](index.md) + + + +Message entity bot command + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityBotCommand = ['_' => 'messageEntityBotCommand', 'offset' => int, 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityBotCommand", "offset": int, "length": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityBotCommand={_='messageEntityBotCommand', offset=int, length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityCashtag.md b/old_docs/API_docs_v91/constructors/messageEntityCashtag.md new file mode 100644 index 00000000..5d3ca5ab --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityCashtag.md @@ -0,0 +1,45 @@ +--- +title: messageEntityCashtag +description: Message entity cashtag +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityCashtag +[Back to constructors index](index.md) + + + +Message entity cashtag + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityCashtag = ['_' => 'messageEntityCashtag', 'offset' => int, 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityCashtag", "offset": int, "length": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityCashtag={_='messageEntityCashtag', offset=int, length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityCode.md b/old_docs/API_docs_v91/constructors/messageEntityCode.md new file mode 100644 index 00000000..ca81fd76 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityCode.md @@ -0,0 +1,45 @@ +--- +title: messageEntityCode +description: Message entity code +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityCode +[Back to constructors index](index.md) + + + +Message entity code + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityCode = ['_' => 'messageEntityCode', 'offset' => int, 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityCode", "offset": int, "length": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityCode={_='messageEntityCode', offset=int, length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityEmail.md b/old_docs/API_docs_v91/constructors/messageEntityEmail.md new file mode 100644 index 00000000..847ee695 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityEmail.md @@ -0,0 +1,45 @@ +--- +title: messageEntityEmail +description: Message entity email +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityEmail +[Back to constructors index](index.md) + + + +Message entity email + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityEmail = ['_' => 'messageEntityEmail', 'offset' => int, 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityEmail", "offset": int, "length": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityEmail={_='messageEntityEmail', offset=int, length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityHashtag.md b/old_docs/API_docs_v91/constructors/messageEntityHashtag.md new file mode 100644 index 00000000..ab2ea29e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityHashtag.md @@ -0,0 +1,45 @@ +--- +title: messageEntityHashtag +description: Message entity hashtag +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityHashtag +[Back to constructors index](index.md) + + + +Message entity hashtag + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityHashtag = ['_' => 'messageEntityHashtag', 'offset' => int, 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityHashtag", "offset": int, "length": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityHashtag={_='messageEntityHashtag', offset=int, length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityItalic.md b/old_docs/API_docs_v91/constructors/messageEntityItalic.md new file mode 100644 index 00000000..82449721 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityItalic.md @@ -0,0 +1,45 @@ +--- +title: messageEntityItalic +description: Message entity italic +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityItalic +[Back to constructors index](index.md) + + + +Message entity italic + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityItalic = ['_' => 'messageEntityItalic', 'offset' => int, 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityItalic", "offset": int, "length": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityItalic={_='messageEntityItalic', offset=int, length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityMention.md b/old_docs/API_docs_v91/constructors/messageEntityMention.md new file mode 100644 index 00000000..50b708a2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityMention.md @@ -0,0 +1,45 @@ +--- +title: messageEntityMention +description: Message entity mention +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityMention +[Back to constructors index](index.md) + + + +Message entity mention + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityMention = ['_' => 'messageEntityMention', 'offset' => int, 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityMention", "offset": int, "length": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityMention={_='messageEntityMention', offset=int, length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityMentionName.md b/old_docs/API_docs_v91/constructors/messageEntityMentionName.md new file mode 100644 index 00000000..05f0d0f2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityMentionName.md @@ -0,0 +1,46 @@ +--- +title: messageEntityMentionName +description: Message entity mention name +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityMentionName +[Back to constructors index](index.md) + + + +Message entity mention name + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| +|user\_id|[int](../types/int.md) | Yes|User ID| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityMentionName = ['_' => 'messageEntityMentionName', 'offset' => int, 'length' => int, 'user_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityMentionName", "offset": int, "length": int, "user_id": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityMentionName={_='messageEntityMentionName', offset=int, length=int, user_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityPhone.md b/old_docs/API_docs_v91/constructors/messageEntityPhone.md new file mode 100644 index 00000000..85a6d017 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityPhone.md @@ -0,0 +1,45 @@ +--- +title: messageEntityPhone +description: Message entity phone +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityPhone +[Back to constructors index](index.md) + + + +Message entity phone + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityPhone = ['_' => 'messageEntityPhone', 'offset' => int, 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityPhone", "offset": int, "length": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityPhone={_='messageEntityPhone', offset=int, length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityPre.md b/old_docs/API_docs_v91/constructors/messageEntityPre.md new file mode 100644 index 00000000..149cd65d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityPre.md @@ -0,0 +1,46 @@ +--- +title: messageEntityPre +description: Message entity pre +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityPre +[Back to constructors index](index.md) + + + +Message entity pre + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| +|language|[string](../types/string.md) | Yes|Language| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityPre = ['_' => 'messageEntityPre', 'offset' => int, 'length' => int, 'language' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityPre", "offset": int, "length": int, "language": "string"} +``` + + +Or, if you're into Lua: + +```lua +messageEntityPre={_='messageEntityPre', offset=int, length=int, language='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityTextUrl.md b/old_docs/API_docs_v91/constructors/messageEntityTextUrl.md new file mode 100644 index 00000000..ddb5f895 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityTextUrl.md @@ -0,0 +1,46 @@ +--- +title: messageEntityTextUrl +description: Message entity text URL +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityTextUrl +[Back to constructors index](index.md) + + + +Message entity text URL + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| +|url|[string](../types/string.md) | Yes|URL| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityTextUrl = ['_' => 'messageEntityTextUrl', 'offset' => int, 'length' => int, 'url' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityTextUrl", "offset": int, "length": int, "url": "string"} +``` + + +Or, if you're into Lua: + +```lua +messageEntityTextUrl={_='messageEntityTextUrl', offset=int, length=int, url='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityUnknown.md b/old_docs/API_docs_v91/constructors/messageEntityUnknown.md new file mode 100644 index 00000000..a2788ad3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityUnknown.md @@ -0,0 +1,45 @@ +--- +title: messageEntityUnknown +description: Message entity unknown +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityUnknown +[Back to constructors index](index.md) + + + +Message entity unknown + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityUnknown = ['_' => 'messageEntityUnknown', 'offset' => int, 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityUnknown", "offset": int, "length": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityUnknown={_='messageEntityUnknown', offset=int, length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageEntityUrl.md b/old_docs/API_docs_v91/constructors/messageEntityUrl.md new file mode 100644 index 00000000..05c3cb7e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageEntityUrl.md @@ -0,0 +1,45 @@ +--- +title: messageEntityUrl +description: Message entity URL +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageEntityUrl +[Back to constructors index](index.md) + + + +Message entity URL + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|offset|[int](../types/int.md) | Yes|Offset| +|length|[int](../types/int.md) | Yes|Length| + + + +### Type: [MessageEntity](../types/MessageEntity.md) + + +### Example: + +```php +$messageEntityUrl = ['_' => 'messageEntityUrl', 'offset' => int, 'length' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageEntityUrl", "offset": int, "length": int} +``` + + +Or, if you're into Lua: + +```lua +messageEntityUrl={_='messageEntityUrl', offset=int, length=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageFwdHeader.md b/old_docs/API_docs_v91/constructors/messageFwdHeader.md new file mode 100644 index 00000000..46db81bf --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageFwdHeader.md @@ -0,0 +1,50 @@ +--- +title: messageFwdHeader +description: Forwarded message info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageFwdHeader +[Back to constructors index](index.md) + + + +Forwarded message info + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|from\_id|[int](../types/int.md) | Optional|From ID| +|date|[int](../types/int.md) | Yes|Date| +|channel\_id|[int](../types/int.md) | Optional|Channel ID| +|channel\_post|[int](../types/int.md) | Optional|Channel post| +|post\_author|[string](../types/string.md) | Optional|Post author| +|saved\_from\_peer|[Peer](../types/Peer.md) | Optional|Saved from peer| +|saved\_from\_msg\_id|[int](../types/int.md) | Optional|Saved from msg ID| + + + +### Type: [MessageFwdHeader](../types/MessageFwdHeader.md) + + +### Example: + +```php +$messageFwdHeader = ['_' => 'messageFwdHeader', 'from_id' => int, 'date' => int, 'channel_id' => int, 'channel_post' => int, 'post_author' => 'string', 'saved_from_peer' => Peer, 'saved_from_msg_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageFwdHeader", "from_id": int, "date": int, "channel_id": int, "channel_post": int, "post_author": "string", "saved_from_peer": Peer, "saved_from_msg_id": int} +``` + + +Or, if you're into Lua: + +```lua +messageFwdHeader={_='messageFwdHeader', from_id=int, date=int, channel_id=int, channel_post=int, post_author='string', saved_from_peer=Peer, saved_from_msg_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaContact.md b/old_docs/API_docs_v91/constructors/messageMediaContact.md new file mode 100644 index 00000000..ac9cfdc2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaContact.md @@ -0,0 +1,48 @@ +--- +title: messageMediaContact +description: Message media contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaContact +[Back to constructors index](index.md) + + + +Message media contact + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_number|[string](../types/string.md) | Yes|Phone number| +|first\_name|[string](../types/string.md) | Yes|First name| +|last\_name|[string](../types/string.md) | Yes|Last name| +|vcard|[string](../types/string.md) | Yes|Vcard| +|user\_id|[int](../types/int.md) | Yes|User ID| + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaContact = ['_' => 'messageMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'vcard' => 'string', 'user_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "vcard": "string", "user_id": int} +``` + + +Or, if you're into Lua: + +```lua +messageMediaContact={_='messageMediaContact', phone_number='string', first_name='string', last_name='string', vcard='string', user_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaDocument.md b/old_docs/API_docs_v91/constructors/messageMediaDocument.md new file mode 100644 index 00000000..b72d6dd6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaDocument.md @@ -0,0 +1,45 @@ +--- +title: messageMediaDocument +description: Message media document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaDocument +[Back to constructors index](index.md) + + + +Message media document + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|document|[Document](../types/Document.md) | Optional|Document| +|ttl\_seconds|[int](../types/int.md) | Optional|Ttl seconds| + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaDocument = ['_' => 'messageMediaDocument', 'document' => Document, 'ttl_seconds' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaDocument", "document": Document, "ttl_seconds": int} +``` + + +Or, if you're into Lua: + +```lua +messageMediaDocument={_='messageMediaDocument', document=Document, ttl_seconds=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaEmpty.md b/old_docs/API_docs_v91/constructors/messageMediaEmpty.md new file mode 100644 index 00000000..878f6648 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaEmpty.md @@ -0,0 +1,39 @@ +--- +title: messageMediaEmpty +description: Empty message media +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaEmpty +[Back to constructors index](index.md) + + + +Empty message media + + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaEmpty = ['_' => 'messageMediaEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaEmpty"} +``` + + +Or, if you're into Lua: + +```lua +messageMediaEmpty={_='messageMediaEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaGame.md b/old_docs/API_docs_v91/constructors/messageMediaGame.md new file mode 100644 index 00000000..8f4bd370 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaGame.md @@ -0,0 +1,44 @@ +--- +title: messageMediaGame +description: Message media game +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaGame +[Back to constructors index](index.md) + + + +Message media game + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|game|[Game](../types/Game.md) | Yes|Game| + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaGame = ['_' => 'messageMediaGame', 'game' => Game]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaGame", "game": Game} +``` + + +Or, if you're into Lua: + +```lua +messageMediaGame={_='messageMediaGame', game=Game} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaGeo.md b/old_docs/API_docs_v91/constructors/messageMediaGeo.md new file mode 100644 index 00000000..5ab5b861 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaGeo.md @@ -0,0 +1,44 @@ +--- +title: messageMediaGeo +description: Message media geo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaGeo +[Back to constructors index](index.md) + + + +Message media geo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Geo| + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaGeo = ['_' => 'messageMediaGeo', 'geo' => GeoPoint]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaGeo", "geo": GeoPoint} +``` + + +Or, if you're into Lua: + +```lua +messageMediaGeo={_='messageMediaGeo', geo=GeoPoint} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaGeoLive.md b/old_docs/API_docs_v91/constructors/messageMediaGeoLive.md new file mode 100644 index 00000000..78f14fae --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaGeoLive.md @@ -0,0 +1,45 @@ +--- +title: messageMediaGeoLive +description: Message media geo live +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaGeoLive +[Back to constructors index](index.md) + + + +Message media geo live + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Geo| +|period|[int](../types/int.md) | Yes|Period| + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaGeoLive = ['_' => 'messageMediaGeoLive', 'geo' => GeoPoint, 'period' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaGeoLive", "geo": GeoPoint, "period": int} +``` + + +Or, if you're into Lua: + +```lua +messageMediaGeoLive={_='messageMediaGeoLive', geo=GeoPoint, period=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaInvoice.md b/old_docs/API_docs_v91/constructors/messageMediaInvoice.md new file mode 100644 index 00000000..2a21f568 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaInvoice.md @@ -0,0 +1,52 @@ +--- +title: messageMediaInvoice +description: Message media invoice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaInvoice +[Back to constructors index](index.md) + + + +Message media invoice + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|shipping\_address\_requested|[Bool](../types/Bool.md) | Optional|Shipping address requested?| +|test|[Bool](../types/Bool.md) | Optional|Test?| +|title|[string](../types/string.md) | Yes|Title| +|description|[string](../types/string.md) | Yes|Description| +|photo|[WebDocument](../types/WebDocument.md) | Optional|Photo| +|receipt\_msg\_id|[int](../types/int.md) | Optional|Receipt msg ID| +|currency|[string](../types/string.md) | Yes|Currency| +|total\_amount|[long](../types/long.md) | Yes|Total amount| +|start\_param|[string](../types/string.md) | Yes|Start param| + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaInvoice = ['_' => 'messageMediaInvoice', 'shipping_address_requested' => Bool, 'test' => Bool, 'title' => 'string', 'description' => 'string', 'photo' => WebDocument, 'receipt_msg_id' => int, 'currency' => 'string', 'total_amount' => long, 'start_param' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaInvoice", "shipping_address_requested": Bool, "test": Bool, "title": "string", "description": "string", "photo": WebDocument, "receipt_msg_id": int, "currency": "string", "total_amount": long, "start_param": "string"} +``` + + +Or, if you're into Lua: + +```lua +messageMediaInvoice={_='messageMediaInvoice', shipping_address_requested=Bool, test=Bool, title='string', description='string', photo=WebDocument, receipt_msg_id=int, currency='string', total_amount=long, start_param='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaPhoto.md b/old_docs/API_docs_v91/constructors/messageMediaPhoto.md new file mode 100644 index 00000000..c8c1cb0d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaPhoto.md @@ -0,0 +1,45 @@ +--- +title: messageMediaPhoto +description: Message media photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaPhoto +[Back to constructors index](index.md) + + + +Message media photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|photo|[Photo](../types/Photo.md) | Optional|Photo| +|ttl\_seconds|[int](../types/int.md) | Optional|Ttl seconds| + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaPhoto = ['_' => 'messageMediaPhoto', 'photo' => Photo, 'ttl_seconds' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaPhoto", "photo": Photo, "ttl_seconds": int} +``` + + +Or, if you're into Lua: + +```lua +messageMediaPhoto={_='messageMediaPhoto', photo=Photo, ttl_seconds=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaPoll.md b/old_docs/API_docs_v91/constructors/messageMediaPoll.md new file mode 100644 index 00000000..29cd7200 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaPoll.md @@ -0,0 +1,45 @@ +--- +title: messageMediaPoll +description: Message media poll +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaPoll +[Back to constructors index](index.md) + + + +Message media poll + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|poll|[Poll](../types/Poll.md) | Yes|Poll| +|results|[PollResults](../types/PollResults.md) | Yes|Results| + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaPoll = ['_' => 'messageMediaPoll', 'poll' => Poll, 'results' => PollResults]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaPoll", "poll": Poll, "results": PollResults} +``` + + +Or, if you're into Lua: + +```lua +messageMediaPoll={_='messageMediaPoll', poll=Poll, results=PollResults} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaUnsupported.md b/old_docs/API_docs_v91/constructors/messageMediaUnsupported.md new file mode 100644 index 00000000..c953aa30 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaUnsupported.md @@ -0,0 +1,39 @@ +--- +title: messageMediaUnsupported +description: Message media unsupported +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaUnsupported +[Back to constructors index](index.md) + + + +Message media unsupported + + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaUnsupported = ['_' => 'messageMediaUnsupported']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaUnsupported"} +``` + + +Or, if you're into Lua: + +```lua +messageMediaUnsupported={_='messageMediaUnsupported'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaVenue.md b/old_docs/API_docs_v91/constructors/messageMediaVenue.md new file mode 100644 index 00000000..1807bf4f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaVenue.md @@ -0,0 +1,49 @@ +--- +title: messageMediaVenue +description: Message media venue +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaVenue +[Back to constructors index](index.md) + + + +Message media venue + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Geo| +|title|[string](../types/string.md) | Yes|Title| +|address|[string](../types/string.md) | Yes|Address| +|provider|[string](../types/string.md) | Yes|Provider| +|venue\_id|[string](../types/string.md) | Yes|Venue ID| +|venue\_type|[string](../types/string.md) | Yes|Venue type| + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaVenue = ['_' => 'messageMediaVenue', 'geo' => GeoPoint, 'title' => 'string', 'address' => 'string', 'provider' => 'string', 'venue_id' => 'string', 'venue_type' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaVenue", "geo": GeoPoint, "title": "string", "address": "string", "provider": "string", "venue_id": "string", "venue_type": "string"} +``` + + +Or, if you're into Lua: + +```lua +messageMediaVenue={_='messageMediaVenue', geo=GeoPoint, title='string', address='string', provider='string', venue_id='string', venue_type='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageMediaWebPage.md b/old_docs/API_docs_v91/constructors/messageMediaWebPage.md new file mode 100644 index 00000000..576ff665 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageMediaWebPage.md @@ -0,0 +1,44 @@ +--- +title: messageMediaWebPage +description: Message media web page +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageMediaWebPage +[Back to constructors index](index.md) + + + +Message media web page + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|webpage|[WebPage](../types/WebPage.md) | Optional|Webpage| + + + +### Type: [MessageMedia](../types/MessageMedia.md) + + +### Example: + +```php +$messageMediaWebPage = ['_' => 'messageMediaWebPage', 'webpage' => WebPage]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageMediaWebPage", "webpage": WebPage} +``` + + +Or, if you're into Lua: + +```lua +messageMediaWebPage={_='messageMediaWebPage', webpage=WebPage} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageRange.md b/old_docs/API_docs_v91/constructors/messageRange.md new file mode 100644 index 00000000..9b1b3eb6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageRange.md @@ -0,0 +1,45 @@ +--- +title: messageRange +description: Message range +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageRange +[Back to constructors index](index.md) + + + +Message range + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|min\_id|[int](../types/int.md) | Yes|Min ID| +|max\_id|[int](../types/int.md) | Yes|Max ID| + + + +### Type: [MessageRange](../types/MessageRange.md) + + +### Example: + +```php +$messageRange = ['_' => 'messageRange', 'min_id' => int, 'max_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageRange", "min_id": int, "max_id": int} +``` + + +Or, if you're into Lua: + +```lua +messageRange={_='messageRange', min_id=int, max_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messageService.md b/old_docs/API_docs_v91/constructors/messageService.md new file mode 100644 index 00000000..48487393 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messageService.md @@ -0,0 +1,54 @@ +--- +title: messageService +description: Message service +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messageService +[Back to constructors index](index.md) + + + +Message service + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|out|[Bool](../types/Bool.md) | Optional|Out?| +|mentioned|[Bool](../types/Bool.md) | Optional|Mentioned?| +|media\_unread|[Bool](../types/Bool.md) | Optional|Media unread?| +|silent|[Bool](../types/Bool.md) | Optional|Silent?| +|post|[Bool](../types/Bool.md) | Optional|Post?| +|id|[int](../types/int.md) | Yes|ID| +|from\_id|[int](../types/int.md) | Optional|From ID| +|to\_id|[Peer](../types/Peer.md) | Yes|To ID| +|reply\_to\_msg\_id|[int](../types/int.md) | Optional|Reply to msg ID| +|date|[int](../types/int.md) | Yes|Date| +|action|[MessageAction](../types/MessageAction.md) | Optional|Action| + + + +### Type: [Message](../types/Message.md) + + +### Example: + +```php +$messageService = ['_' => 'messageService', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'reply_to_msg_id' => int, 'date' => int, 'action' => MessageAction]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messageService", "out": Bool, "mentioned": Bool, "media_unread": Bool, "silent": Bool, "post": Bool, "id": int, "from_id": int, "to_id": Peer, "reply_to_msg_id": int, "date": int, "action": MessageAction} +``` + + +Or, if you're into Lua: + +```lua +messageService={_='messageService', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, post=Bool, id=int, from_id=int, to_id=Peer, reply_to_msg_id=int, date=int, action=MessageAction} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_affectedHistory.md b/old_docs/API_docs_v91/constructors/messages_affectedHistory.md new file mode 100644 index 00000000..16fbd76e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_affectedHistory.md @@ -0,0 +1,46 @@ +--- +title: messages.affectedHistory +description: Affected history +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.affectedHistory +[Back to constructors index](index.md) + + + +Affected history + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| +|offset|[int](../types/int.md) | Yes|Offset| + + + +### Type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) + + +### Example: + +```php +$messages_affectedHistory = ['_' => 'messages.affectedHistory', 'pts' => int, 'pts_count' => int, 'offset' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.affectedHistory", "pts": int, "pts_count": int, "offset": int} +``` + + +Or, if you're into Lua: + +```lua +messages_affectedHistory={_='messages.affectedHistory', pts=int, pts_count=int, offset=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_affectedMessages.md b/old_docs/API_docs_v91/constructors/messages_affectedMessages.md new file mode 100644 index 00000000..93d6475a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_affectedMessages.md @@ -0,0 +1,45 @@ +--- +title: messages.affectedMessages +description: Affected messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.affectedMessages +[Back to constructors index](index.md) + + + +Affected messages + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [messages\_AffectedMessages](../types/messages_AffectedMessages.md) + + +### Example: + +```php +$messages_affectedMessages = ['_' => 'messages.affectedMessages', 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.affectedMessages", "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +messages_affectedMessages={_='messages.affectedMessages', pts=int, pts_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_allStickers.md b/old_docs/API_docs_v91/constructors/messages_allStickers.md new file mode 100644 index 00000000..2ebcfc39 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_allStickers.md @@ -0,0 +1,45 @@ +--- +title: messages.allStickers +description: All stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.allStickers +[Back to constructors index](index.md) + + + +All stickers + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|Hash| +|sets|Array of [StickerSet](../types/StickerSet.md) | Yes|Sets| + + + +### Type: [messages\_AllStickers](../types/messages_AllStickers.md) + + +### Example: + +```php +$messages_allStickers = ['_' => 'messages.allStickers', 'hash' => int, 'sets' => [StickerSet, StickerSet]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.allStickers", "hash": int, "sets": [StickerSet]} +``` + + +Or, if you're into Lua: + +```lua +messages_allStickers={_='messages.allStickers', hash=int, sets={StickerSet}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_allStickersNotModified.md b/old_docs/API_docs_v91/constructors/messages_allStickersNotModified.md new file mode 100644 index 00000000..6e5e97ef --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_allStickersNotModified.md @@ -0,0 +1,39 @@ +--- +title: messages.allStickersNotModified +description: All stickers not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.allStickersNotModified +[Back to constructors index](index.md) + + + +All stickers not modified + + + + +### Type: [messages\_AllStickers](../types/messages_AllStickers.md) + + +### Example: + +```php +$messages_allStickersNotModified = ['_' => 'messages.allStickersNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.allStickersNotModified"} +``` + + +Or, if you're into Lua: + +```lua +messages_allStickersNotModified={_='messages.allStickersNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_archivedStickers.md b/old_docs/API_docs_v91/constructors/messages_archivedStickers.md new file mode 100644 index 00000000..ba77d4f9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_archivedStickers.md @@ -0,0 +1,45 @@ +--- +title: messages.archivedStickers +description: Archived stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.archivedStickers +[Back to constructors index](index.md) + + + +Archived stickers + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|count|[int](../types/int.md) | Yes|Count| +|sets|Array of [StickerSetCovered](../types/StickerSetCovered.md) | Yes|Sets| + + + +### Type: [messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + + +### Example: + +```php +$messages_archivedStickers = ['_' => 'messages.archivedStickers', 'count' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.archivedStickers", "count": int, "sets": [StickerSetCovered]} +``` + + +Or, if you're into Lua: + +```lua +messages_archivedStickers={_='messages.archivedStickers', count=int, sets={StickerSetCovered}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_botCallbackAnswer.md b/old_docs/API_docs_v91/constructors/messages_botCallbackAnswer.md new file mode 100644 index 00000000..a299eca6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_botCallbackAnswer.md @@ -0,0 +1,49 @@ +--- +title: messages.botCallbackAnswer +description: Bot callback answer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.botCallbackAnswer +[Back to constructors index](index.md) + + + +Bot callback answer + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|alert|[Bool](../types/Bool.md) | Optional|Alert?| +|has\_url|[Bool](../types/Bool.md) | Optional|Has URL?| +|native\_ui|[Bool](../types/Bool.md) | Optional|Native ui?| +|message|[string](../types/string.md) | Optional|Message| +|url|[string](../types/string.md) | Optional|URL| +|cache\_time|[int](../types/int.md) | Yes|Cache time| + + + +### Type: [messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + + +### Example: + +```php +$messages_botCallbackAnswer = ['_' => 'messages.botCallbackAnswer', 'alert' => Bool, 'has_url' => Bool, 'native_ui' => Bool, 'message' => 'string', 'url' => 'string', 'cache_time' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.botCallbackAnswer", "alert": Bool, "has_url": Bool, "native_ui": Bool, "message": "string", "url": "string", "cache_time": int} +``` + + +Or, if you're into Lua: + +```lua +messages_botCallbackAnswer={_='messages.botCallbackAnswer', alert=Bool, has_url=Bool, native_ui=Bool, message='string', url='string', cache_time=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_botResults.md b/old_docs/API_docs_v91/constructors/messages_botResults.md new file mode 100644 index 00000000..0ffe5ca7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_botResults.md @@ -0,0 +1,50 @@ +--- +title: messages.botResults +description: Bot results +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.botResults +[Back to constructors index](index.md) + + + +Bot results + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|gallery|[Bool](../types/Bool.md) | Optional|Gallery?| +|query\_id|[long](../types/long.md) | Yes|Query ID| +|next\_offset|[string](../types/string.md) | Optional|Next offset| +|switch\_pm|[InlineBotSwitchPM](../types/InlineBotSwitchPM.md) | Optional|Switch pm| +|results|Array of [BotInlineResult](../types/BotInlineResult.md) | Yes|Results| +|cache\_time|[int](../types/int.md) | Yes|Cache time| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [messages\_BotResults](../types/messages_BotResults.md) + + +### Example: + +```php +$messages_botResults = ['_' => 'messages.botResults', 'gallery' => Bool, 'query_id' => long, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, 'results' => [BotInlineResult, BotInlineResult], 'cache_time' => int, 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.botResults", "gallery": Bool, "query_id": long, "next_offset": "string", "switch_pm": InlineBotSwitchPM, "results": [BotInlineResult], "cache_time": int, "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +messages_botResults={_='messages.botResults', gallery=Bool, query_id=long, next_offset='string', switch_pm=InlineBotSwitchPM, results={BotInlineResult}, cache_time=int, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_channelMessages.md b/old_docs/API_docs_v91/constructors/messages_channelMessages.md new file mode 100644 index 00000000..ceff2c92 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_channelMessages.md @@ -0,0 +1,49 @@ +--- +title: messages.channelMessages +description: Channel messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.channelMessages +[Back to constructors index](index.md) + + + +Channel messages + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|inexact|[Bool](../types/Bool.md) | Optional|Inexact?| +|pts|[int](../types/int.md) | Yes|Pts| +|count|[int](../types/int.md) | Yes|Count| +|messages|Array of [Message](../types/Message.md) | Yes|Messages| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [messages\_Messages](../types/messages_Messages.md) + + +### Example: + +```php +$messages_channelMessages = ['_' => 'messages.channelMessages', 'inexact' => Bool, 'pts' => int, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.channelMessages", "inexact": Bool, "pts": int, "count": int, "messages": [Message], "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +messages_channelMessages={_='messages.channelMessages', inexact=Bool, pts=int, count=int, messages={Message}, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_chatFull.md b/old_docs/API_docs_v91/constructors/messages_chatFull.md new file mode 100644 index 00000000..b19e74db --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_chatFull.md @@ -0,0 +1,46 @@ +--- +title: messages.chatFull +description: Chat full +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.chatFull +[Back to constructors index](index.md) + + + +Chat full + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|full\_chat|[ChatFull](../types/ChatFull.md) | Yes|Full chat| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [messages\_ChatFull](../types/messages_ChatFull.md) + + +### Example: + +```php +$messages_chatFull = ['_' => 'messages.chatFull', 'full_chat' => ChatFull, 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.chatFull", "full_chat": ChatFull, "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +messages_chatFull={_='messages.chatFull', full_chat=ChatFull, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_chats.md b/old_docs/API_docs_v91/constructors/messages_chats.md new file mode 100644 index 00000000..10fd2651 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_chats.md @@ -0,0 +1,44 @@ +--- +title: messages.chats +description: Chats +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.chats +[Back to constructors index](index.md) + + + +Chats + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| + + + +### Type: [messages\_Chats](../types/messages_Chats.md) + + +### Example: + +```php +$messages_chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.chats", "chats": [Chat]} +``` + + +Or, if you're into Lua: + +```lua +messages_chats={_='messages.chats', chats={Chat}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_chatsSlice.md b/old_docs/API_docs_v91/constructors/messages_chatsSlice.md new file mode 100644 index 00000000..084e3feb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_chatsSlice.md @@ -0,0 +1,45 @@ +--- +title: messages.chatsSlice +description: Chats slice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.chatsSlice +[Back to constructors index](index.md) + + + +Chats slice + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|count|[int](../types/int.md) | Yes|Count| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| + + + +### Type: [messages\_Chats](../types/messages_Chats.md) + + +### Example: + +```php +$messages_chatsSlice = ['_' => 'messages.chatsSlice', 'count' => int, 'chats' => [Chat, Chat]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.chatsSlice", "count": int, "chats": [Chat]} +``` + + +Or, if you're into Lua: + +```lua +messages_chatsSlice={_='messages.chatsSlice', count=int, chats={Chat}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_dhConfig.md b/old_docs/API_docs_v91/constructors/messages_dhConfig.md new file mode 100644 index 00000000..dfe494a3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_dhConfig.md @@ -0,0 +1,47 @@ +--- +title: messages.dhConfig +description: Dh config +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.dhConfig +[Back to constructors index](index.md) + + + +Dh config + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|g|[int](../types/int.md) | Yes|G| +|p|[bytes](../types/bytes.md) | Yes|P| +|version|[int](../types/int.md) | Yes|Version| +|random|[bytes](../types/bytes.md) | Yes|Random| + + + +### Type: [messages\_DhConfig](../types/messages_DhConfig.md) + + +### Example: + +```php +$messages_dhConfig = ['_' => 'messages.dhConfig', 'g' => int, 'p' => 'bytes', 'version' => int, 'random' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.dhConfig", "g": int, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}, "version": int, "random": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +messages_dhConfig={_='messages.dhConfig', g=int, p='bytes', version=int, random='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_dhConfigNotModified.md b/old_docs/API_docs_v91/constructors/messages_dhConfigNotModified.md new file mode 100644 index 00000000..6315112e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_dhConfigNotModified.md @@ -0,0 +1,44 @@ +--- +title: messages.dhConfigNotModified +description: Dh config not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.dhConfigNotModified +[Back to constructors index](index.md) + + + +Dh config not modified + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|random|[bytes](../types/bytes.md) | Yes|Random| + + + +### Type: [messages\_DhConfig](../types/messages_DhConfig.md) + + +### Example: + +```php +$messages_dhConfigNotModified = ['_' => 'messages.dhConfigNotModified', 'random' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.dhConfigNotModified", "random": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +messages_dhConfigNotModified={_='messages.dhConfigNotModified', random='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_dialogs.md b/old_docs/API_docs_v91/constructors/messages_dialogs.md new file mode 100644 index 00000000..6927e742 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_dialogs.md @@ -0,0 +1,47 @@ +--- +title: messages.dialogs +description: Dialogs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.dialogs +[Back to constructors index](index.md) + + + +Dialogs + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|dialogs|Array of [Dialog](../types/Dialog.md) | Yes|Dialogs| +|messages|Array of [Message](../types/Message.md) | Yes|Messages| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [messages\_Dialogs](../types/messages_Dialogs.md) + + +### Example: + +```php +$messages_dialogs = ['_' => 'messages.dialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.dialogs", "dialogs": [Dialog], "messages": [Message], "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +messages_dialogs={_='messages.dialogs', dialogs={Dialog}, messages={Message}, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_dialogsNotModified.md b/old_docs/API_docs_v91/constructors/messages_dialogsNotModified.md new file mode 100644 index 00000000..8dba6901 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_dialogsNotModified.md @@ -0,0 +1,44 @@ +--- +title: messages.dialogsNotModified +description: Dialogs not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.dialogsNotModified +[Back to constructors index](index.md) + + + +Dialogs not modified + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|count|[int](../types/int.md) | Yes|Count| + + + +### Type: [messages\_Dialogs](../types/messages_Dialogs.md) + + +### Example: + +```php +$messages_dialogsNotModified = ['_' => 'messages.dialogsNotModified', 'count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.dialogsNotModified", "count": int} +``` + + +Or, if you're into Lua: + +```lua +messages_dialogsNotModified={_='messages.dialogsNotModified', count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_dialogsSlice.md b/old_docs/API_docs_v91/constructors/messages_dialogsSlice.md new file mode 100644 index 00000000..97ef54a0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_dialogsSlice.md @@ -0,0 +1,48 @@ +--- +title: messages.dialogsSlice +description: Dialogs slice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.dialogsSlice +[Back to constructors index](index.md) + + + +Dialogs slice + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|count|[int](../types/int.md) | Yes|Count| +|dialogs|Array of [Dialog](../types/Dialog.md) | Yes|Dialogs| +|messages|Array of [Message](../types/Message.md) | Yes|Messages| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [messages\_Dialogs](../types/messages_Dialogs.md) + + +### Example: + +```php +$messages_dialogsSlice = ['_' => 'messages.dialogsSlice', 'count' => int, 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.dialogsSlice", "count": int, "dialogs": [Dialog], "messages": [Message], "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +messages_dialogsSlice={_='messages.dialogsSlice', count=int, dialogs={Dialog}, messages={Message}, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_favedStickers.md b/old_docs/API_docs_v91/constructors/messages_favedStickers.md new file mode 100644 index 00000000..7692da66 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_favedStickers.md @@ -0,0 +1,46 @@ +--- +title: messages.favedStickers +description: Faved stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.favedStickers +[Back to constructors index](index.md) + + + +Faved stickers + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|Hash| +|packs|Array of [StickerPack](../types/StickerPack.md) | Yes|Packs| +|stickers|Array of [Document](../types/Document.md) | Yes|Stickers| + + + +### Type: [messages\_FavedStickers](../types/messages_FavedStickers.md) + + +### Example: + +```php +$messages_favedStickers = ['_' => 'messages.favedStickers', 'hash' => int, 'packs' => [StickerPack, StickerPack], 'stickers' => [Document, Document]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.favedStickers", "hash": int, "packs": [StickerPack], "stickers": [Document]} +``` + + +Or, if you're into Lua: + +```lua +messages_favedStickers={_='messages.favedStickers', hash=int, packs={StickerPack}, stickers={Document}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_favedStickersNotModified.md b/old_docs/API_docs_v91/constructors/messages_favedStickersNotModified.md new file mode 100644 index 00000000..faed12e6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_favedStickersNotModified.md @@ -0,0 +1,39 @@ +--- +title: messages.favedStickersNotModified +description: Faved stickers not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.favedStickersNotModified +[Back to constructors index](index.md) + + + +Faved stickers not modified + + + + +### Type: [messages\_FavedStickers](../types/messages_FavedStickers.md) + + +### Example: + +```php +$messages_favedStickersNotModified = ['_' => 'messages.favedStickersNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.favedStickersNotModified"} +``` + + +Or, if you're into Lua: + +```lua +messages_favedStickersNotModified={_='messages.favedStickersNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_featuredStickers.md b/old_docs/API_docs_v91/constructors/messages_featuredStickers.md new file mode 100644 index 00000000..699b8b08 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_featuredStickers.md @@ -0,0 +1,46 @@ +--- +title: messages.featuredStickers +description: Featured stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.featuredStickers +[Back to constructors index](index.md) + + + +Featured stickers + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|Hash| +|sets|Array of [StickerSetCovered](../types/StickerSetCovered.md) | Yes|Sets| +|unread|Array of [long](../types/long.md) | Yes|Unread| + + + +### Type: [messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + + +### Example: + +```php +$messages_featuredStickers = ['_' => 'messages.featuredStickers', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered], 'unread' => [long, long]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.featuredStickers", "hash": int, "sets": [StickerSetCovered], "unread": [long]} +``` + + +Or, if you're into Lua: + +```lua +messages_featuredStickers={_='messages.featuredStickers', hash=int, sets={StickerSetCovered}, unread={long}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_featuredStickersNotModified.md b/old_docs/API_docs_v91/constructors/messages_featuredStickersNotModified.md new file mode 100644 index 00000000..a5aecc21 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_featuredStickersNotModified.md @@ -0,0 +1,39 @@ +--- +title: messages.featuredStickersNotModified +description: Featured stickers not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.featuredStickersNotModified +[Back to constructors index](index.md) + + + +Featured stickers not modified + + + + +### Type: [messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + + +### Example: + +```php +$messages_featuredStickersNotModified = ['_' => 'messages.featuredStickersNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.featuredStickersNotModified"} +``` + + +Or, if you're into Lua: + +```lua +messages_featuredStickersNotModified={_='messages.featuredStickersNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_foundGifs.md b/old_docs/API_docs_v91/constructors/messages_foundGifs.md new file mode 100644 index 00000000..c35ef500 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_foundGifs.md @@ -0,0 +1,45 @@ +--- +title: messages.foundGifs +description: Found gifs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.foundGifs +[Back to constructors index](index.md) + + + +Found gifs + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|next\_offset|[int](../types/int.md) | Yes|Next offset| +|results|Array of [FoundGif](../types/FoundGif.md) | Yes|Results| + + + +### Type: [messages\_FoundGifs](../types/messages_FoundGifs.md) + + +### Example: + +```php +$messages_foundGifs = ['_' => 'messages.foundGifs', 'next_offset' => int, 'results' => [FoundGif, FoundGif]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.foundGifs", "next_offset": int, "results": [FoundGif]} +``` + + +Or, if you're into Lua: + +```lua +messages_foundGifs={_='messages.foundGifs', next_offset=int, results={FoundGif}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_foundStickerSets.md b/old_docs/API_docs_v91/constructors/messages_foundStickerSets.md new file mode 100644 index 00000000..0453ccbf --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_foundStickerSets.md @@ -0,0 +1,45 @@ +--- +title: messages.foundStickerSets +description: Found sticker sets +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.foundStickerSets +[Back to constructors index](index.md) + + + +Found sticker sets + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|Hash| +|sets|Array of [StickerSetCovered](../types/StickerSetCovered.md) | Yes|Sets| + + + +### Type: [messages\_FoundStickerSets](../types/messages_FoundStickerSets.md) + + +### Example: + +```php +$messages_foundStickerSets = ['_' => 'messages.foundStickerSets', 'hash' => int, 'sets' => [StickerSetCovered, StickerSetCovered]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.foundStickerSets", "hash": int, "sets": [StickerSetCovered]} +``` + + +Or, if you're into Lua: + +```lua +messages_foundStickerSets={_='messages.foundStickerSets', hash=int, sets={StickerSetCovered}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_foundStickerSetsNotModified.md b/old_docs/API_docs_v91/constructors/messages_foundStickerSetsNotModified.md new file mode 100644 index 00000000..e77fd31a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_foundStickerSetsNotModified.md @@ -0,0 +1,39 @@ +--- +title: messages.foundStickerSetsNotModified +description: Found sticker sets not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.foundStickerSetsNotModified +[Back to constructors index](index.md) + + + +Found sticker sets not modified + + + + +### Type: [messages\_FoundStickerSets](../types/messages_FoundStickerSets.md) + + +### Example: + +```php +$messages_foundStickerSetsNotModified = ['_' => 'messages.foundStickerSetsNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.foundStickerSetsNotModified"} +``` + + +Or, if you're into Lua: + +```lua +messages_foundStickerSetsNotModified={_='messages.foundStickerSetsNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_highScores.md b/old_docs/API_docs_v91/constructors/messages_highScores.md new file mode 100644 index 00000000..d987e63c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_highScores.md @@ -0,0 +1,45 @@ +--- +title: messages.highScores +description: High scores +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.highScores +[Back to constructors index](index.md) + + + +High scores + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|scores|Array of [HighScore](../types/HighScore.md) | Yes|Scores| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [messages\_HighScores](../types/messages_HighScores.md) + + +### Example: + +```php +$messages_highScores = ['_' => 'messages.highScores', 'scores' => [HighScore, HighScore], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.highScores", "scores": [HighScore], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +messages_highScores={_='messages.highScores', scores={HighScore}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_messageEditData.md b/old_docs/API_docs_v91/constructors/messages_messageEditData.md new file mode 100644 index 00000000..da9218c0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_messageEditData.md @@ -0,0 +1,44 @@ +--- +title: messages.messageEditData +description: Message edit data +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.messageEditData +[Back to constructors index](index.md) + + + +Message edit data + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|caption|[Bool](../types/Bool.md) | Optional|Caption?| + + + +### Type: [messages\_MessageEditData](../types/messages_MessageEditData.md) + + +### Example: + +```php +$messages_messageEditData = ['_' => 'messages.messageEditData', 'caption' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.messageEditData", "caption": Bool} +``` + + +Or, if you're into Lua: + +```lua +messages_messageEditData={_='messages.messageEditData', caption=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_messages.md b/old_docs/API_docs_v91/constructors/messages_messages.md new file mode 100644 index 00000000..b3a1b392 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_messages.md @@ -0,0 +1,46 @@ +--- +title: messages.messages +description: Messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.messages +[Back to constructors index](index.md) + + + +Messages + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|messages|Array of [Message](../types/Message.md) | Yes|Messages| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [messages\_Messages](../types/messages_Messages.md) + + +### Example: + +```php +$messages_messages = ['_' => 'messages.messages', 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.messages", "messages": [Message], "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +messages_messages={_='messages.messages', messages={Message}, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_messagesNotModified.md b/old_docs/API_docs_v91/constructors/messages_messagesNotModified.md new file mode 100644 index 00000000..9423488d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_messagesNotModified.md @@ -0,0 +1,44 @@ +--- +title: messages.messagesNotModified +description: Messages not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.messagesNotModified +[Back to constructors index](index.md) + + + +Messages not modified + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|count|[int](../types/int.md) | Yes|Count| + + + +### Type: [messages\_Messages](../types/messages_Messages.md) + + +### Example: + +```php +$messages_messagesNotModified = ['_' => 'messages.messagesNotModified', 'count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.messagesNotModified", "count": int} +``` + + +Or, if you're into Lua: + +```lua +messages_messagesNotModified={_='messages.messagesNotModified', count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_messagesSlice.md b/old_docs/API_docs_v91/constructors/messages_messagesSlice.md new file mode 100644 index 00000000..51db09fa --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_messagesSlice.md @@ -0,0 +1,47 @@ +--- +title: messages.messagesSlice +description: Messages slice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.messagesSlice +[Back to constructors index](index.md) + + + +Messages slice + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|count|[int](../types/int.md) | Yes|Count| +|messages|Array of [Message](../types/Message.md) | Yes|Messages| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [messages\_Messages](../types/messages_Messages.md) + + +### Example: + +```php +$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.messagesSlice", "count": int, "messages": [Message], "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +messages_messagesSlice={_='messages.messagesSlice', count=int, messages={Message}, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_peerDialogs.md b/old_docs/API_docs_v91/constructors/messages_peerDialogs.md new file mode 100644 index 00000000..e8e0408b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_peerDialogs.md @@ -0,0 +1,48 @@ +--- +title: messages.peerDialogs +description: Peer dialogs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.peerDialogs +[Back to constructors index](index.md) + + + +Peer dialogs + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|dialogs|Array of [Dialog](../types/Dialog.md) | Yes|Dialogs| +|messages|Array of [Message](../types/Message.md) | Yes|Messages| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| +|state|[updates\_State](../types/updates_State.md) | Yes|State| + + + +### Type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) + + +### Example: + +```php +$messages_peerDialogs = ['_' => 'messages.peerDialogs', 'dialogs' => [Dialog, Dialog], 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User], 'state' => updates_State]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.peerDialogs", "dialogs": [Dialog], "messages": [Message], "chats": [Chat], "users": [User], "state": updates_State} +``` + + +Or, if you're into Lua: + +```lua +messages_peerDialogs={_='messages.peerDialogs', dialogs={Dialog}, messages={Message}, chats={Chat}, users={User}, state=updates_State} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_recentStickers.md b/old_docs/API_docs_v91/constructors/messages_recentStickers.md new file mode 100644 index 00000000..7ee86e1b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_recentStickers.md @@ -0,0 +1,47 @@ +--- +title: messages.recentStickers +description: Recent stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.recentStickers +[Back to constructors index](index.md) + + + +Recent stickers + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|Hash| +|packs|Array of [StickerPack](../types/StickerPack.md) | Yes|Packs| +|stickers|Array of [Document](../types/Document.md) | Yes|Stickers| +|dates|Array of [int](../types/int.md) | Yes|Dates| + + + +### Type: [messages\_RecentStickers](../types/messages_RecentStickers.md) + + +### Example: + +```php +$messages_recentStickers = ['_' => 'messages.recentStickers', 'hash' => int, 'packs' => [StickerPack, StickerPack], 'stickers' => [Document, Document], 'dates' => [int, int]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.recentStickers", "hash": int, "packs": [StickerPack], "stickers": [Document], "dates": [int]} +``` + + +Or, if you're into Lua: + +```lua +messages_recentStickers={_='messages.recentStickers', hash=int, packs={StickerPack}, stickers={Document}, dates={int}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_recentStickersNotModified.md b/old_docs/API_docs_v91/constructors/messages_recentStickersNotModified.md new file mode 100644 index 00000000..c66f32ee --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_recentStickersNotModified.md @@ -0,0 +1,39 @@ +--- +title: messages.recentStickersNotModified +description: Recent stickers not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.recentStickersNotModified +[Back to constructors index](index.md) + + + +Recent stickers not modified + + + + +### Type: [messages\_RecentStickers](../types/messages_RecentStickers.md) + + +### Example: + +```php +$messages_recentStickersNotModified = ['_' => 'messages.recentStickersNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.recentStickersNotModified"} +``` + + +Or, if you're into Lua: + +```lua +messages_recentStickersNotModified={_='messages.recentStickersNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_savedGifs.md b/old_docs/API_docs_v91/constructors/messages_savedGifs.md new file mode 100644 index 00000000..b1acfa81 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_savedGifs.md @@ -0,0 +1,45 @@ +--- +title: messages.savedGifs +description: Saved gifs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.savedGifs +[Back to constructors index](index.md) + + + +Saved gifs + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|Hash| +|gifs|Array of [Document](../types/Document.md) | Yes|Gifs| + + + +### Type: [messages\_SavedGifs](../types/messages_SavedGifs.md) + + +### Example: + +```php +$messages_savedGifs = ['_' => 'messages.savedGifs', 'hash' => int, 'gifs' => [Document, Document]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.savedGifs", "hash": int, "gifs": [Document]} +``` + + +Or, if you're into Lua: + +```lua +messages_savedGifs={_='messages.savedGifs', hash=int, gifs={Document}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_savedGifsNotModified.md b/old_docs/API_docs_v91/constructors/messages_savedGifsNotModified.md new file mode 100644 index 00000000..3bddcc3f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_savedGifsNotModified.md @@ -0,0 +1,39 @@ +--- +title: messages.savedGifsNotModified +description: Saved gifs not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.savedGifsNotModified +[Back to constructors index](index.md) + + + +Saved gifs not modified + + + + +### Type: [messages\_SavedGifs](../types/messages_SavedGifs.md) + + +### Example: + +```php +$messages_savedGifsNotModified = ['_' => 'messages.savedGifsNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.savedGifsNotModified"} +``` + + +Or, if you're into Lua: + +```lua +messages_savedGifsNotModified={_='messages.savedGifsNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_sentEncryptedFile.md b/old_docs/API_docs_v91/constructors/messages_sentEncryptedFile.md new file mode 100644 index 00000000..64e1ed70 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_sentEncryptedFile.md @@ -0,0 +1,45 @@ +--- +title: messages.sentEncryptedFile +description: Sent encrypted file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.sentEncryptedFile +[Back to constructors index](index.md) + + + +Sent encrypted file + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|date|[int](../types/int.md) | Yes|Date| +|file|[EncryptedFile](../types/EncryptedFile.md) | Optional|File| + + + +### Type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + + +### Example: + +```php +$messages_sentEncryptedFile = ['_' => 'messages.sentEncryptedFile', 'date' => int, 'file' => EncryptedFile]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.sentEncryptedFile", "date": int, "file": EncryptedFile} +``` + + +Or, if you're into Lua: + +```lua +messages_sentEncryptedFile={_='messages.sentEncryptedFile', date=int, file=EncryptedFile} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_sentEncryptedMessage.md b/old_docs/API_docs_v91/constructors/messages_sentEncryptedMessage.md new file mode 100644 index 00000000..07e77136 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_sentEncryptedMessage.md @@ -0,0 +1,44 @@ +--- +title: messages.sentEncryptedMessage +description: Sent encrypted message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.sentEncryptedMessage +[Back to constructors index](index.md) + + + +Sent encrypted message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + + +### Example: + +```php +$messages_sentEncryptedMessage = ['_' => 'messages.sentEncryptedMessage', 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.sentEncryptedMessage", "date": int} +``` + + +Or, if you're into Lua: + +```lua +messages_sentEncryptedMessage={_='messages.sentEncryptedMessage', date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_stickerSet.md b/old_docs/API_docs_v91/constructors/messages_stickerSet.md new file mode 100644 index 00000000..6f69a206 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_stickerSet.md @@ -0,0 +1,46 @@ +--- +title: messages.stickerSet +description: Sticker set +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.stickerSet +[Back to constructors index](index.md) + + + +Sticker set + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|set|[StickerSet](../types/StickerSet.md) | Yes|Set| +|packs|Array of [StickerPack](../types/StickerPack.md) | Yes|Packs| +|documents|Array of [Document](../types/Document.md) | Yes|Documents| + + + +### Type: [messages\_StickerSet](../types/messages_StickerSet.md) + + +### Example: + +```php +$messages_stickerSet = ['_' => 'messages.stickerSet', 'set' => StickerSet, 'packs' => [StickerPack, StickerPack], 'documents' => [Document, Document]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.stickerSet", "set": StickerSet, "packs": [StickerPack], "documents": [Document]} +``` + + +Or, if you're into Lua: + +```lua +messages_stickerSet={_='messages.stickerSet', set=StickerSet, packs={StickerPack}, documents={Document}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_stickerSetInstallResultArchive.md b/old_docs/API_docs_v91/constructors/messages_stickerSetInstallResultArchive.md new file mode 100644 index 00000000..56e5c62c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_stickerSetInstallResultArchive.md @@ -0,0 +1,44 @@ +--- +title: messages.stickerSetInstallResultArchive +description: Sticker set install result archive +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.stickerSetInstallResultArchive +[Back to constructors index](index.md) + + + +Sticker set install result archive + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|sets|Array of [StickerSetCovered](../types/StickerSetCovered.md) | Yes|Sets| + + + +### Type: [messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + + +### Example: + +```php +$messages_stickerSetInstallResultArchive = ['_' => 'messages.stickerSetInstallResultArchive', 'sets' => [StickerSetCovered, StickerSetCovered]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.stickerSetInstallResultArchive", "sets": [StickerSetCovered]} +``` + + +Or, if you're into Lua: + +```lua +messages_stickerSetInstallResultArchive={_='messages.stickerSetInstallResultArchive', sets={StickerSetCovered}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_stickerSetInstallResultSuccess.md b/old_docs/API_docs_v91/constructors/messages_stickerSetInstallResultSuccess.md new file mode 100644 index 00000000..8bcebb86 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_stickerSetInstallResultSuccess.md @@ -0,0 +1,39 @@ +--- +title: messages.stickerSetInstallResultSuccess +description: Sticker set install result success +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.stickerSetInstallResultSuccess +[Back to constructors index](index.md) + + + +Sticker set install result success + + + + +### Type: [messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + + +### Example: + +```php +$messages_stickerSetInstallResultSuccess = ['_' => 'messages.stickerSetInstallResultSuccess']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.stickerSetInstallResultSuccess"} +``` + + +Or, if you're into Lua: + +```lua +messages_stickerSetInstallResultSuccess={_='messages.stickerSetInstallResultSuccess'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_stickers.md b/old_docs/API_docs_v91/constructors/messages_stickers.md new file mode 100644 index 00000000..e5160358 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_stickers.md @@ -0,0 +1,45 @@ +--- +title: messages.stickers +description: Stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.stickers +[Back to constructors index](index.md) + + + +Stickers + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|Hash| +|stickers|Array of [Document](../types/Document.md) | Yes|Stickers| + + + +### Type: [messages\_Stickers](../types/messages_Stickers.md) + + +### Example: + +```php +$messages_stickers = ['_' => 'messages.stickers', 'hash' => int, 'stickers' => [Document, Document]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.stickers", "hash": int, "stickers": [Document]} +``` + + +Or, if you're into Lua: + +```lua +messages_stickers={_='messages.stickers', hash=int, stickers={Document}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/messages_stickersNotModified.md b/old_docs/API_docs_v91/constructors/messages_stickersNotModified.md new file mode 100644 index 00000000..27e328ec --- /dev/null +++ b/old_docs/API_docs_v91/constructors/messages_stickersNotModified.md @@ -0,0 +1,39 @@ +--- +title: messages.stickersNotModified +description: Stickers not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: messages.stickersNotModified +[Back to constructors index](index.md) + + + +Stickers not modified + + + + +### Type: [messages\_Stickers](../types/messages_Stickers.md) + + +### Example: + +```php +$messages_stickersNotModified = ['_' => 'messages.stickersNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "messages.stickersNotModified"} +``` + + +Or, if you're into Lua: + +```lua +messages_stickersNotModified={_='messages.stickersNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/nearestDc.md b/old_docs/API_docs_v91/constructors/nearestDc.md new file mode 100644 index 00000000..1bf5dbb9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/nearestDc.md @@ -0,0 +1,46 @@ +--- +title: nearestDc +description: Nearest DC +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: nearestDc +[Back to constructors index](index.md) + + + +Nearest DC + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|country|[string](../types/string.md) | Yes|Country| +|this\_dc|[int](../types/int.md) | Yes|This DC| +|nearest\_dc|[int](../types/int.md) | Yes|Nearest DC| + + + +### Type: [NearestDc](../types/NearestDc.md) + + +### Example: + +```php +$nearestDc = ['_' => 'nearestDc', 'country' => 'string', 'this_dc' => int, 'nearest_dc' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "nearestDc", "country": "string", "this_dc": int, "nearest_dc": int} +``` + + +Or, if you're into Lua: + +```lua +nearestDc={_='nearestDc', country='string', this_dc=int, nearest_dc=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/notifyBroadcasts.md b/old_docs/API_docs_v91/constructors/notifyBroadcasts.md new file mode 100644 index 00000000..c8b4e1a3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/notifyBroadcasts.md @@ -0,0 +1,39 @@ +--- +title: notifyBroadcasts +description: Notify broadcasts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: notifyBroadcasts +[Back to constructors index](index.md) + + + +Notify broadcasts + + + + +### Type: [NotifyPeer](../types/NotifyPeer.md) + + +### Example: + +```php +$notifyBroadcasts = ['_' => 'notifyBroadcasts']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "notifyBroadcasts"} +``` + + +Or, if you're into Lua: + +```lua +notifyBroadcasts={_='notifyBroadcasts'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/notifyChats.md b/old_docs/API_docs_v91/constructors/notifyChats.md new file mode 100644 index 00000000..6bc6621f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/notifyChats.md @@ -0,0 +1,39 @@ +--- +title: notifyChats +description: Notify chats +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: notifyChats +[Back to constructors index](index.md) + + + +Notify chats + + + + +### Type: [NotifyPeer](../types/NotifyPeer.md) + + +### Example: + +```php +$notifyChats = ['_' => 'notifyChats']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "notifyChats"} +``` + + +Or, if you're into Lua: + +```lua +notifyChats={_='notifyChats'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/notifyPeer.md b/old_docs/API_docs_v91/constructors/notifyPeer.md new file mode 100644 index 00000000..62c39a8a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/notifyPeer.md @@ -0,0 +1,44 @@ +--- +title: notifyPeer +description: Notify peer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: notifyPeer +[Back to constructors index](index.md) + + + +Notify peer + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Peer](../types/Peer.md) | Yes|Peer| + + + +### Type: [NotifyPeer](../types/NotifyPeer.md) + + +### Example: + +```php +$notifyPeer = ['_' => 'notifyPeer', 'peer' => Peer]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "notifyPeer", "peer": Peer} +``` + + +Or, if you're into Lua: + +```lua +notifyPeer={_='notifyPeer', peer=Peer} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/notifyUsers.md b/old_docs/API_docs_v91/constructors/notifyUsers.md new file mode 100644 index 00000000..3ef7714c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/notifyUsers.md @@ -0,0 +1,39 @@ +--- +title: notifyUsers +description: Notify users +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: notifyUsers +[Back to constructors index](index.md) + + + +Notify users + + + + +### Type: [NotifyPeer](../types/NotifyPeer.md) + + +### Example: + +```php +$notifyUsers = ['_' => 'notifyUsers']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "notifyUsers"} +``` + + +Or, if you're into Lua: + +```lua +notifyUsers={_='notifyUsers'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/null.md b/old_docs/API_docs_v91/constructors/null.md new file mode 100644 index 00000000..29862cf2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/null.md @@ -0,0 +1,9 @@ +--- +title: null +description: Represents a null value +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# null +[Back to constructor index](index.md) + +Represents a `null` value. diff --git a/old_docs/API_docs_v91/constructors/page.md b/old_docs/API_docs_v91/constructors/page.md new file mode 100644 index 00000000..67330fc7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/page.md @@ -0,0 +1,50 @@ +--- +title: page +description: Page +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: page +[Back to constructors index](index.md) + + + +Page + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|part|[Bool](../types/Bool.md) | Optional|Part?| +|rtl|[Bool](../types/Bool.md) | Optional|Rtl?| +|v2|[Bool](../types/Bool.md) | Optional|V2?| +|url|[string](../types/string.md) | Yes|URL| +|blocks|Array of [PageBlock](../types/PageBlock.md) | Yes|Blocks| +|photos|Array of [Photo](../types/Photo.md) | Yes|Photos| +|documents|Array of [Document](../types/Document.md) | Yes|Documents| + + + +### Type: [Page](../types/Page.md) + + +### Example: + +```php +$page = ['_' => 'page', 'part' => Bool, 'rtl' => Bool, 'v2' => Bool, 'url' => 'string', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "page", "part": Bool, "rtl": Bool, "v2": Bool, "url": "string", "blocks": [PageBlock], "photos": [Photo], "documents": [Document]} +``` + + +Or, if you're into Lua: + +```lua +page={_='page', part=Bool, rtl=Bool, v2=Bool, url='string', blocks={PageBlock}, photos={Photo}, documents={Document}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockAnchor.md b/old_docs/API_docs_v91/constructors/pageBlockAnchor.md new file mode 100644 index 00000000..f74c68b2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockAnchor.md @@ -0,0 +1,44 @@ +--- +title: pageBlockAnchor +description: Page block anchor +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockAnchor +[Back to constructors index](index.md) + + + +Page block anchor + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|name|[string](../types/string.md) | Yes|Name| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockAnchor = ['_' => 'pageBlockAnchor', 'name' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockAnchor", "name": "string"} +``` + + +Or, if you're into Lua: + +```lua +pageBlockAnchor={_='pageBlockAnchor', name='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockAudio.md b/old_docs/API_docs_v91/constructors/pageBlockAudio.md new file mode 100644 index 00000000..e457598a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockAudio.md @@ -0,0 +1,45 @@ +--- +title: pageBlockAudio +description: Page block audio +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockAudio +[Back to constructors index](index.md) + + + +Page block audio + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|audio\_id|[long](../types/long.md) | Yes|Audio ID| +|caption|[PageCaption](../types/PageCaption.md) | Yes|Caption| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockAudio = ['_' => 'pageBlockAudio', 'audio_id' => long, 'caption' => PageCaption]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockAudio", "audio_id": long, "caption": PageCaption} +``` + + +Or, if you're into Lua: + +```lua +pageBlockAudio={_='pageBlockAudio', audio_id=long, caption=PageCaption} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockAuthorDate.md b/old_docs/API_docs_v91/constructors/pageBlockAuthorDate.md new file mode 100644 index 00000000..2456bc9d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockAuthorDate.md @@ -0,0 +1,45 @@ +--- +title: pageBlockAuthorDate +description: Page block author date +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockAuthorDate +[Back to constructors index](index.md) + + + +Page block author date + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|author|[RichText](../types/RichText.md) | Yes|Author| +|published\_date|[int](../types/int.md) | Yes|Published date| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockAuthorDate = ['_' => 'pageBlockAuthorDate', 'author' => RichText, 'published_date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockAuthorDate", "author": RichText, "published_date": int} +``` + + +Or, if you're into Lua: + +```lua +pageBlockAuthorDate={_='pageBlockAuthorDate', author=RichText, published_date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockBlockquote.md b/old_docs/API_docs_v91/constructors/pageBlockBlockquote.md new file mode 100644 index 00000000..ed0da124 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockBlockquote.md @@ -0,0 +1,45 @@ +--- +title: pageBlockBlockquote +description: Page block blockquote +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockBlockquote +[Back to constructors index](index.md) + + + +Page block blockquote + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| +|caption|[RichText](../types/RichText.md) | Yes|Caption| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockBlockquote = ['_' => 'pageBlockBlockquote', 'text' => RichText, 'caption' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockBlockquote", "text": RichText, "caption": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageBlockBlockquote={_='pageBlockBlockquote', text=RichText, caption=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockChannel.md b/old_docs/API_docs_v91/constructors/pageBlockChannel.md new file mode 100644 index 00000000..306cdac5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockChannel.md @@ -0,0 +1,44 @@ +--- +title: pageBlockChannel +description: Page block channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockChannel +[Back to constructors index](index.md) + + + +Page block channel + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel|[Chat](../types/Chat.md) | Optional|Channel| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockChannel = ['_' => 'pageBlockChannel', 'channel' => Chat]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockChannel", "channel": Chat} +``` + + +Or, if you're into Lua: + +```lua +pageBlockChannel={_='pageBlockChannel', channel=Chat} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockCollage.md b/old_docs/API_docs_v91/constructors/pageBlockCollage.md new file mode 100644 index 00000000..833f57eb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockCollage.md @@ -0,0 +1,45 @@ +--- +title: pageBlockCollage +description: Page block collage +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockCollage +[Back to constructors index](index.md) + + + +Page block collage + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|items|Array of [PageBlock](../types/PageBlock.md) | Yes|Items| +|caption|[PageCaption](../types/PageCaption.md) | Yes|Caption| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock, PageBlock], 'caption' => PageCaption]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockCollage", "items": [PageBlock], "caption": PageCaption} +``` + + +Or, if you're into Lua: + +```lua +pageBlockCollage={_='pageBlockCollage', items={PageBlock}, caption=PageCaption} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockCover.md b/old_docs/API_docs_v91/constructors/pageBlockCover.md new file mode 100644 index 00000000..bec0394b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockCover.md @@ -0,0 +1,44 @@ +--- +title: pageBlockCover +description: Page block cover +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockCover +[Back to constructors index](index.md) + + + +Page block cover + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|cover|[PageBlock](../types/PageBlock.md) | Yes|Cover| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockCover = ['_' => 'pageBlockCover', 'cover' => PageBlock]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockCover", "cover": PageBlock} +``` + + +Or, if you're into Lua: + +```lua +pageBlockCover={_='pageBlockCover', cover=PageBlock} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockDetails.md b/old_docs/API_docs_v91/constructors/pageBlockDetails.md new file mode 100644 index 00000000..11bf2a4a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockDetails.md @@ -0,0 +1,46 @@ +--- +title: pageBlockDetails +description: Page block details +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockDetails +[Back to constructors index](index.md) + + + +Page block details + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|open|[Bool](../types/Bool.md) | Optional|Open?| +|blocks|Array of [PageBlock](../types/PageBlock.md) | Yes|Blocks| +|title|[RichText](../types/RichText.md) | Yes|Title| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockDetails = ['_' => 'pageBlockDetails', 'open' => Bool, 'blocks' => [PageBlock, PageBlock], 'title' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockDetails", "open": Bool, "blocks": [PageBlock], "title": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageBlockDetails={_='pageBlockDetails', open=Bool, blocks={PageBlock}, title=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockDivider.md b/old_docs/API_docs_v91/constructors/pageBlockDivider.md new file mode 100644 index 00000000..ea0c372e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockDivider.md @@ -0,0 +1,39 @@ +--- +title: pageBlockDivider +description: Page block divider +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockDivider +[Back to constructors index](index.md) + + + +Page block divider + + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockDivider = ['_' => 'pageBlockDivider']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockDivider"} +``` + + +Or, if you're into Lua: + +```lua +pageBlockDivider={_='pageBlockDivider'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockEmbed.md b/old_docs/API_docs_v91/constructors/pageBlockEmbed.md new file mode 100644 index 00000000..bcde0f27 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockEmbed.md @@ -0,0 +1,51 @@ +--- +title: pageBlockEmbed +description: Page block embed +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockEmbed +[Back to constructors index](index.md) + + + +Page block embed + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|full\_width|[Bool](../types/Bool.md) | Optional|Full width?| +|allow\_scrolling|[Bool](../types/Bool.md) | Optional|Allow scrolling?| +|url|[string](../types/string.md) | Optional|URL| +|html|[string](../types/string.md) | Optional|Html| +|poster\_photo\_id|[long](../types/long.md) | Optional|Poster photo ID| +|w|[int](../types/int.md) | Optional|Width| +|h|[int](../types/int.md) | Optional|Height| +|caption|[PageCaption](../types/PageCaption.md) | Yes|Caption| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockEmbed = ['_' => 'pageBlockEmbed', 'full_width' => Bool, 'allow_scrolling' => Bool, 'url' => 'string', 'html' => 'string', 'poster_photo_id' => long, 'w' => int, 'h' => int, 'caption' => PageCaption]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockEmbed", "full_width": Bool, "allow_scrolling": Bool, "url": "string", "html": "string", "poster_photo_id": long, "w": int, "h": int, "caption": PageCaption} +``` + + +Or, if you're into Lua: + +```lua +pageBlockEmbed={_='pageBlockEmbed', full_width=Bool, allow_scrolling=Bool, url='string', html='string', poster_photo_id=long, w=int, h=int, caption=PageCaption} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockEmbedPost.md b/old_docs/API_docs_v91/constructors/pageBlockEmbedPost.md new file mode 100644 index 00000000..f68a1ccc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockEmbedPost.md @@ -0,0 +1,50 @@ +--- +title: pageBlockEmbedPost +description: Page block embed post +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockEmbedPost +[Back to constructors index](index.md) + + + +Page block embed post + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|webpage\_id|[long](../types/long.md) | Yes|Webpage ID| +|author\_photo\_id|[long](../types/long.md) | Yes|Author photo ID| +|author|[string](../types/string.md) | Yes|Author| +|date|[int](../types/int.md) | Yes|Date| +|blocks|Array of [PageBlock](../types/PageBlock.md) | Yes|Blocks| +|caption|[PageCaption](../types/PageCaption.md) | Yes|Caption| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock, PageBlock], 'caption' => PageCaption]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockEmbedPost", "url": "string", "webpage_id": long, "author_photo_id": long, "author": "string", "date": int, "blocks": [PageBlock], "caption": PageCaption} +``` + + +Or, if you're into Lua: + +```lua +pageBlockEmbedPost={_='pageBlockEmbedPost', url='string', webpage_id=long, author_photo_id=long, author='string', date=int, blocks={PageBlock}, caption=PageCaption} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockFooter.md b/old_docs/API_docs_v91/constructors/pageBlockFooter.md new file mode 100644 index 00000000..7ee6d663 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockFooter.md @@ -0,0 +1,44 @@ +--- +title: pageBlockFooter +description: Page block footer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockFooter +[Back to constructors index](index.md) + + + +Page block footer + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockFooter = ['_' => 'pageBlockFooter', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockFooter", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageBlockFooter={_='pageBlockFooter', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockHeader.md b/old_docs/API_docs_v91/constructors/pageBlockHeader.md new file mode 100644 index 00000000..7b560a29 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockHeader.md @@ -0,0 +1,44 @@ +--- +title: pageBlockHeader +description: Page block header +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockHeader +[Back to constructors index](index.md) + + + +Page block header + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockHeader = ['_' => 'pageBlockHeader', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockHeader", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageBlockHeader={_='pageBlockHeader', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockKicker.md b/old_docs/API_docs_v91/constructors/pageBlockKicker.md new file mode 100644 index 00000000..57c7b621 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockKicker.md @@ -0,0 +1,44 @@ +--- +title: pageBlockKicker +description: Page block kicker +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockKicker +[Back to constructors index](index.md) + + + +Page block kicker + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockKicker = ['_' => 'pageBlockKicker', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockKicker", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageBlockKicker={_='pageBlockKicker', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockList.md b/old_docs/API_docs_v91/constructors/pageBlockList.md new file mode 100644 index 00000000..4f73aea7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockList.md @@ -0,0 +1,44 @@ +--- +title: pageBlockList +description: Page block list +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockList +[Back to constructors index](index.md) + + + +Page block list + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|items|Array of [PageListItem](../types/PageListItem.md) | Yes|Items| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockList = ['_' => 'pageBlockList', 'items' => [PageListItem, PageListItem]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockList", "items": [PageListItem]} +``` + + +Or, if you're into Lua: + +```lua +pageBlockList={_='pageBlockList', items={PageListItem}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockMap.md b/old_docs/API_docs_v91/constructors/pageBlockMap.md new file mode 100644 index 00000000..35d0be5a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockMap.md @@ -0,0 +1,48 @@ +--- +title: pageBlockMap +description: Page block map +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockMap +[Back to constructors index](index.md) + + + +Page block map + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Geo| +|zoom|[int](../types/int.md) | Yes|Zoom| +|w|[int](../types/int.md) | Yes|Width| +|h|[int](../types/int.md) | Yes|Height| +|caption|[PageCaption](../types/PageCaption.md) | Yes|Caption| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockMap = ['_' => 'pageBlockMap', 'geo' => GeoPoint, 'zoom' => int, 'w' => int, 'h' => int, 'caption' => PageCaption]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockMap", "geo": GeoPoint, "zoom": int, "w": int, "h": int, "caption": PageCaption} +``` + + +Or, if you're into Lua: + +```lua +pageBlockMap={_='pageBlockMap', geo=GeoPoint, zoom=int, w=int, h=int, caption=PageCaption} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockOrderedList.md b/old_docs/API_docs_v91/constructors/pageBlockOrderedList.md new file mode 100644 index 00000000..32c424ba --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockOrderedList.md @@ -0,0 +1,44 @@ +--- +title: pageBlockOrderedList +description: Page block ordered list +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockOrderedList +[Back to constructors index](index.md) + + + +Page block ordered list + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|items|Array of [PageListOrderedItem](../types/PageListOrderedItem.md) | Yes|Items| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockOrderedList = ['_' => 'pageBlockOrderedList', 'items' => [PageListOrderedItem, PageListOrderedItem]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockOrderedList", "items": [PageListOrderedItem]} +``` + + +Or, if you're into Lua: + +```lua +pageBlockOrderedList={_='pageBlockOrderedList', items={PageListOrderedItem}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockParagraph.md b/old_docs/API_docs_v91/constructors/pageBlockParagraph.md new file mode 100644 index 00000000..54ebd3fd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockParagraph.md @@ -0,0 +1,44 @@ +--- +title: pageBlockParagraph +description: Page block paragraph +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockParagraph +[Back to constructors index](index.md) + + + +Page block paragraph + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockParagraph = ['_' => 'pageBlockParagraph', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockParagraph", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageBlockParagraph={_='pageBlockParagraph', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockPhoto.md b/old_docs/API_docs_v91/constructors/pageBlockPhoto.md new file mode 100644 index 00000000..67e028b2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockPhoto.md @@ -0,0 +1,47 @@ +--- +title: pageBlockPhoto +description: Page block photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockPhoto +[Back to constructors index](index.md) + + + +Page block photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|photo\_id|[long](../types/long.md) | Yes|Photo ID| +|caption|[PageCaption](../types/PageCaption.md) | Yes|Caption| +|url|[string](../types/string.md) | Optional|URL| +|webpage\_id|[long](../types/long.md) | Optional|Webpage ID| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockPhoto = ['_' => 'pageBlockPhoto', 'photo_id' => long, 'caption' => PageCaption, 'url' => 'string', 'webpage_id' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockPhoto", "photo_id": long, "caption": PageCaption, "url": "string", "webpage_id": long} +``` + + +Or, if you're into Lua: + +```lua +pageBlockPhoto={_='pageBlockPhoto', photo_id=long, caption=PageCaption, url='string', webpage_id=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockPreformatted.md b/old_docs/API_docs_v91/constructors/pageBlockPreformatted.md new file mode 100644 index 00000000..2e6f9b08 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockPreformatted.md @@ -0,0 +1,45 @@ +--- +title: pageBlockPreformatted +description: Page block preformatted +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockPreformatted +[Back to constructors index](index.md) + + + +Page block preformatted + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| +|language|[string](../types/string.md) | Yes|Language| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockPreformatted = ['_' => 'pageBlockPreformatted', 'text' => RichText, 'language' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockPreformatted", "text": RichText, "language": "string"} +``` + + +Or, if you're into Lua: + +```lua +pageBlockPreformatted={_='pageBlockPreformatted', text=RichText, language='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockPullquote.md b/old_docs/API_docs_v91/constructors/pageBlockPullquote.md new file mode 100644 index 00000000..42cc1c61 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockPullquote.md @@ -0,0 +1,45 @@ +--- +title: pageBlockPullquote +description: Page block pullquote +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockPullquote +[Back to constructors index](index.md) + + + +Page block pullquote + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| +|caption|[RichText](../types/RichText.md) | Yes|Caption| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockPullquote = ['_' => 'pageBlockPullquote', 'text' => RichText, 'caption' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockPullquote", "text": RichText, "caption": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageBlockPullquote={_='pageBlockPullquote', text=RichText, caption=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockRelatedArticles.md b/old_docs/API_docs_v91/constructors/pageBlockRelatedArticles.md new file mode 100644 index 00000000..95057981 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockRelatedArticles.md @@ -0,0 +1,45 @@ +--- +title: pageBlockRelatedArticles +description: Page block related articles +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockRelatedArticles +[Back to constructors index](index.md) + + + +Page block related articles + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|title|[RichText](../types/RichText.md) | Yes|Title| +|articles|Array of [PageRelatedArticle](../types/PageRelatedArticle.md) | Yes|Articles| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockRelatedArticles = ['_' => 'pageBlockRelatedArticles', 'title' => RichText, 'articles' => [PageRelatedArticle, PageRelatedArticle]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockRelatedArticles", "title": RichText, "articles": [PageRelatedArticle]} +``` + + +Or, if you're into Lua: + +```lua +pageBlockRelatedArticles={_='pageBlockRelatedArticles', title=RichText, articles={PageRelatedArticle}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockSlideshow.md b/old_docs/API_docs_v91/constructors/pageBlockSlideshow.md new file mode 100644 index 00000000..d28e5727 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockSlideshow.md @@ -0,0 +1,45 @@ +--- +title: pageBlockSlideshow +description: Page block slideshow +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockSlideshow +[Back to constructors index](index.md) + + + +Page block slideshow + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|items|Array of [PageBlock](../types/PageBlock.md) | Yes|Items| +|caption|[PageCaption](../types/PageCaption.md) | Yes|Caption| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockSlideshow = ['_' => 'pageBlockSlideshow', 'items' => [PageBlock, PageBlock], 'caption' => PageCaption]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockSlideshow", "items": [PageBlock], "caption": PageCaption} +``` + + +Or, if you're into Lua: + +```lua +pageBlockSlideshow={_='pageBlockSlideshow', items={PageBlock}, caption=PageCaption} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockSubheader.md b/old_docs/API_docs_v91/constructors/pageBlockSubheader.md new file mode 100644 index 00000000..33862035 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockSubheader.md @@ -0,0 +1,44 @@ +--- +title: pageBlockSubheader +description: Page block subheader +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockSubheader +[Back to constructors index](index.md) + + + +Page block subheader + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockSubheader = ['_' => 'pageBlockSubheader', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockSubheader", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageBlockSubheader={_='pageBlockSubheader', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockSubtitle.md b/old_docs/API_docs_v91/constructors/pageBlockSubtitle.md new file mode 100644 index 00000000..6ed45da3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockSubtitle.md @@ -0,0 +1,44 @@ +--- +title: pageBlockSubtitle +description: Page block subtitle +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockSubtitle +[Back to constructors index](index.md) + + + +Page block subtitle + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockSubtitle = ['_' => 'pageBlockSubtitle', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockSubtitle", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageBlockSubtitle={_='pageBlockSubtitle', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockTable.md b/old_docs/API_docs_v91/constructors/pageBlockTable.md new file mode 100644 index 00000000..a8b7d08f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockTable.md @@ -0,0 +1,47 @@ +--- +title: pageBlockTable +description: Page block table +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockTable +[Back to constructors index](index.md) + + + +Page block table + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|bordered|[Bool](../types/Bool.md) | Optional|Bordered?| +|striped|[Bool](../types/Bool.md) | Optional|Striped?| +|title|[RichText](../types/RichText.md) | Yes|Title| +|rows|Array of [PageTableRow](../types/PageTableRow.md) | Yes|Rows| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockTable = ['_' => 'pageBlockTable', 'bordered' => Bool, 'striped' => Bool, 'title' => RichText, 'rows' => [PageTableRow, PageTableRow]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockTable", "bordered": Bool, "striped": Bool, "title": RichText, "rows": [PageTableRow]} +``` + + +Or, if you're into Lua: + +```lua +pageBlockTable={_='pageBlockTable', bordered=Bool, striped=Bool, title=RichText, rows={PageTableRow}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockTitle.md b/old_docs/API_docs_v91/constructors/pageBlockTitle.md new file mode 100644 index 00000000..a0d555be --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockTitle.md @@ -0,0 +1,44 @@ +--- +title: pageBlockTitle +description: Page block title +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockTitle +[Back to constructors index](index.md) + + + +Page block title + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockTitle = ['_' => 'pageBlockTitle', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockTitle", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageBlockTitle={_='pageBlockTitle', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockUnsupported.md b/old_docs/API_docs_v91/constructors/pageBlockUnsupported.md new file mode 100644 index 00000000..7944c434 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockUnsupported.md @@ -0,0 +1,39 @@ +--- +title: pageBlockUnsupported +description: Page block unsupported +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockUnsupported +[Back to constructors index](index.md) + + + +Page block unsupported + + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockUnsupported = ['_' => 'pageBlockUnsupported']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockUnsupported"} +``` + + +Or, if you're into Lua: + +```lua +pageBlockUnsupported={_='pageBlockUnsupported'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageBlockVideo.md b/old_docs/API_docs_v91/constructors/pageBlockVideo.md new file mode 100644 index 00000000..0bf67225 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageBlockVideo.md @@ -0,0 +1,47 @@ +--- +title: pageBlockVideo +description: Page block video +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageBlockVideo +[Back to constructors index](index.md) + + + +Page block video + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|autoplay|[Bool](../types/Bool.md) | Optional|Autoplay?| +|loop|[Bool](../types/Bool.md) | Optional|Loop?| +|video\_id|[long](../types/long.md) | Yes|Video ID| +|caption|[PageCaption](../types/PageCaption.md) | Yes|Caption| + + + +### Type: [PageBlock](../types/PageBlock.md) + + +### Example: + +```php +$pageBlockVideo = ['_' => 'pageBlockVideo', 'autoplay' => Bool, 'loop' => Bool, 'video_id' => long, 'caption' => PageCaption]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageBlockVideo", "autoplay": Bool, "loop": Bool, "video_id": long, "caption": PageCaption} +``` + + +Or, if you're into Lua: + +```lua +pageBlockVideo={_='pageBlockVideo', autoplay=Bool, loop=Bool, video_id=long, caption=PageCaption} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageCaption.md b/old_docs/API_docs_v91/constructors/pageCaption.md new file mode 100644 index 00000000..ff829dcd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageCaption.md @@ -0,0 +1,45 @@ +--- +title: pageCaption +description: Page caption +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageCaption +[Back to constructors index](index.md) + + + +Page caption + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| +|credit|[RichText](../types/RichText.md) | Yes|Credit| + + + +### Type: [PageCaption](../types/PageCaption.md) + + +### Example: + +```php +$pageCaption = ['_' => 'pageCaption', 'text' => RichText, 'credit' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageCaption", "text": RichText, "credit": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageCaption={_='pageCaption', text=RichText, credit=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageListItemBlocks.md b/old_docs/API_docs_v91/constructors/pageListItemBlocks.md new file mode 100644 index 00000000..9f1d142e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageListItemBlocks.md @@ -0,0 +1,44 @@ +--- +title: pageListItemBlocks +description: Page list item blocks +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageListItemBlocks +[Back to constructors index](index.md) + + + +Page list item blocks + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|blocks|Array of [PageBlock](../types/PageBlock.md) | Yes|Blocks| + + + +### Type: [PageListItem](../types/PageListItem.md) + + +### Example: + +```php +$pageListItemBlocks = ['_' => 'pageListItemBlocks', 'blocks' => [PageBlock, PageBlock]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageListItemBlocks", "blocks": [PageBlock]} +``` + + +Or, if you're into Lua: + +```lua +pageListItemBlocks={_='pageListItemBlocks', blocks={PageBlock}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageListItemText.md b/old_docs/API_docs_v91/constructors/pageListItemText.md new file mode 100644 index 00000000..e8526eb2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageListItemText.md @@ -0,0 +1,44 @@ +--- +title: pageListItemText +description: Page list item text +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageListItemText +[Back to constructors index](index.md) + + + +Page list item text + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [PageListItem](../types/PageListItem.md) + + +### Example: + +```php +$pageListItemText = ['_' => 'pageListItemText', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageListItemText", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageListItemText={_='pageListItemText', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageListOrderedItemBlocks.md b/old_docs/API_docs_v91/constructors/pageListOrderedItemBlocks.md new file mode 100644 index 00000000..1e0d2775 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageListOrderedItemBlocks.md @@ -0,0 +1,45 @@ +--- +title: pageListOrderedItemBlocks +description: Page list ordered item blocks +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageListOrderedItemBlocks +[Back to constructors index](index.md) + + + +Page list ordered item blocks + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|num|[string](../types/string.md) | Yes|Num| +|blocks|Array of [PageBlock](../types/PageBlock.md) | Yes|Blocks| + + + +### Type: [PageListOrderedItem](../types/PageListOrderedItem.md) + + +### Example: + +```php +$pageListOrderedItemBlocks = ['_' => 'pageListOrderedItemBlocks', 'num' => 'string', 'blocks' => [PageBlock, PageBlock]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageListOrderedItemBlocks", "num": "string", "blocks": [PageBlock]} +``` + + +Or, if you're into Lua: + +```lua +pageListOrderedItemBlocks={_='pageListOrderedItemBlocks', num='string', blocks={PageBlock}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageListOrderedItemText.md b/old_docs/API_docs_v91/constructors/pageListOrderedItemText.md new file mode 100644 index 00000000..e96afd40 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageListOrderedItemText.md @@ -0,0 +1,45 @@ +--- +title: pageListOrderedItemText +description: Page list ordered item text +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageListOrderedItemText +[Back to constructors index](index.md) + + + +Page list ordered item text + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|num|[string](../types/string.md) | Yes|Num| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [PageListOrderedItem](../types/PageListOrderedItem.md) + + +### Example: + +```php +$pageListOrderedItemText = ['_' => 'pageListOrderedItemText', 'num' => 'string', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageListOrderedItemText", "num": "string", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +pageListOrderedItemText={_='pageListOrderedItemText', num='string', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageRelatedArticle.md b/old_docs/API_docs_v91/constructors/pageRelatedArticle.md new file mode 100644 index 00000000..0c76ef88 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageRelatedArticle.md @@ -0,0 +1,50 @@ +--- +title: pageRelatedArticle +description: Page related article +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageRelatedArticle +[Back to constructors index](index.md) + + + +Page related article + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|webpage\_id|[long](../types/long.md) | Yes|Webpage ID| +|title|[string](../types/string.md) | Optional|Title| +|description|[string](../types/string.md) | Optional|Description| +|photo\_id|[long](../types/long.md) | Optional|Photo ID| +|author|[string](../types/string.md) | Optional|Author| +|published\_date|[int](../types/int.md) | Optional|Published date| + + + +### Type: [PageRelatedArticle](../types/PageRelatedArticle.md) + + +### Example: + +```php +$pageRelatedArticle = ['_' => 'pageRelatedArticle', 'url' => 'string', 'webpage_id' => long, 'title' => 'string', 'description' => 'string', 'photo_id' => long, 'author' => 'string', 'published_date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageRelatedArticle", "url": "string", "webpage_id": long, "title": "string", "description": "string", "photo_id": long, "author": "string", "published_date": int} +``` + + +Or, if you're into Lua: + +```lua +pageRelatedArticle={_='pageRelatedArticle', url='string', webpage_id=long, title='string', description='string', photo_id=long, author='string', published_date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageTableCell.md b/old_docs/API_docs_v91/constructors/pageTableCell.md new file mode 100644 index 00000000..8821f129 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageTableCell.md @@ -0,0 +1,51 @@ +--- +title: pageTableCell +description: Page table cell +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageTableCell +[Back to constructors index](index.md) + + + +Page table cell + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|header|[Bool](../types/Bool.md) | Optional|Header?| +|align\_center|[Bool](../types/Bool.md) | Optional|Align center?| +|align\_right|[Bool](../types/Bool.md) | Optional|Align right?| +|valign\_middle|[Bool](../types/Bool.md) | Optional|Valign middle?| +|valign\_bottom|[Bool](../types/Bool.md) | Optional|Valign bottom?| +|text|[RichText](../types/RichText.md) | Optional|Text| +|colspan|[int](../types/int.md) | Optional|Colspan| +|rowspan|[int](../types/int.md) | Optional|Rowspan| + + + +### Type: [PageTableCell](../types/PageTableCell.md) + + +### Example: + +```php +$pageTableCell = ['_' => 'pageTableCell', 'header' => Bool, 'align_center' => Bool, 'align_right' => Bool, 'valign_middle' => Bool, 'valign_bottom' => Bool, 'text' => RichText, 'colspan' => int, 'rowspan' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageTableCell", "header": Bool, "align_center": Bool, "align_right": Bool, "valign_middle": Bool, "valign_bottom": Bool, "text": RichText, "colspan": int, "rowspan": int} +``` + + +Or, if you're into Lua: + +```lua +pageTableCell={_='pageTableCell', header=Bool, align_center=Bool, align_right=Bool, valign_middle=Bool, valign_bottom=Bool, text=RichText, colspan=int, rowspan=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pageTableRow.md b/old_docs/API_docs_v91/constructors/pageTableRow.md new file mode 100644 index 00000000..8823cfeb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pageTableRow.md @@ -0,0 +1,44 @@ +--- +title: pageTableRow +description: Page table row +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pageTableRow +[Back to constructors index](index.md) + + + +Page table row + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|cells|Array of [PageTableCell](../types/PageTableCell.md) | Yes|Cells| + + + +### Type: [PageTableRow](../types/PageTableRow.md) + + +### Example: + +```php +$pageTableRow = ['_' => 'pageTableRow', 'cells' => [PageTableCell, PageTableCell]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pageTableRow", "cells": [PageTableCell]} +``` + + +Or, if you're into Lua: + +```lua +pageTableRow={_='pageTableRow', cells={PageTableCell}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.md b/old_docs/API_docs_v91/constructors/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.md new file mode 100644 index 00000000..e43c99c2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.md @@ -0,0 +1,47 @@ +--- +title: passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow +description: Password kdf algo sha256sha256pbkdf2hmacsh a512iter100000 sha256 mod pow +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow +[Back to constructors index](index.md) + + + +Password kdf algo sha256sha256pbkdf2hmacsh a512iter100000 sha256 mod pow + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|salt1|[bytes](../types/bytes.md) | Yes|Salt1| +|salt2|[bytes](../types/bytes.md) | Yes|Salt2| +|g|[int](../types/int.md) | Yes|G| +|p|[bytes](../types/bytes.md) | Yes|P| + + + +### Type: [PasswordKdfAlgo](../types/PasswordKdfAlgo.md) + + +### Example: + +```php +$passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow = ['_' => 'passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow', 'salt1' => 'bytes', 'salt2' => 'bytes', 'g' => int, 'p' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow", "salt1": {"_": "bytes", "bytes":"base64 encoded bytes"}, "salt2": {"_": "bytes", "bytes":"base64 encoded bytes"}, "g": int, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow={_='passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow', salt1='bytes', salt2='bytes', g=int, p='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/passwordKdfAlgoUnknown.md b/old_docs/API_docs_v91/constructors/passwordKdfAlgoUnknown.md new file mode 100644 index 00000000..0de6003d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/passwordKdfAlgoUnknown.md @@ -0,0 +1,39 @@ +--- +title: passwordKdfAlgoUnknown +description: Password kdf algo unknown +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: passwordKdfAlgoUnknown +[Back to constructors index](index.md) + + + +Password kdf algo unknown + + + + +### Type: [PasswordKdfAlgo](../types/PasswordKdfAlgo.md) + + +### Example: + +```php +$passwordKdfAlgoUnknown = ['_' => 'passwordKdfAlgoUnknown']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "passwordKdfAlgoUnknown"} +``` + + +Or, if you're into Lua: + +```lua +passwordKdfAlgoUnknown={_='passwordKdfAlgoUnknown'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/paymentCharge.md b/old_docs/API_docs_v91/constructors/paymentCharge.md new file mode 100644 index 00000000..dd2ec994 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/paymentCharge.md @@ -0,0 +1,45 @@ +--- +title: paymentCharge +description: Payment charge +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: paymentCharge +[Back to constructors index](index.md) + + + +Payment charge + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[string](../types/string.md) | Yes|ID| +|provider\_charge\_id|[string](../types/string.md) | Yes|Provider charge ID| + + + +### Type: [PaymentCharge](../types/PaymentCharge.md) + + +### Example: + +```php +$paymentCharge = ['_' => 'paymentCharge', 'id' => 'string', 'provider_charge_id' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "paymentCharge", "id": "string", "provider_charge_id": "string"} +``` + + +Or, if you're into Lua: + +```lua +paymentCharge={_='paymentCharge', id='string', provider_charge_id='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/paymentRequestedInfo.md b/old_docs/API_docs_v91/constructors/paymentRequestedInfo.md new file mode 100644 index 00000000..e5ec887a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/paymentRequestedInfo.md @@ -0,0 +1,47 @@ +--- +title: paymentRequestedInfo +description: Payment requested info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: paymentRequestedInfo +[Back to constructors index](index.md) + + + +Payment requested info + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|name|[string](../types/string.md) | Optional|Name| +|phone|[string](../types/string.md) | Optional|Phone| +|email|[string](../types/string.md) | Optional|Email| +|shipping\_address|[PostAddress](../types/PostAddress.md) | Optional|Shipping address| + + + +### Type: [PaymentRequestedInfo](../types/PaymentRequestedInfo.md) + + +### Example: + +```php +$paymentRequestedInfo = ['_' => 'paymentRequestedInfo', 'name' => 'string', 'phone' => 'string', 'email' => 'string', 'shipping_address' => PostAddress]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "paymentRequestedInfo", "name": "string", "phone": "string", "email": "string", "shipping_address": PostAddress} +``` + + +Or, if you're into Lua: + +```lua +paymentRequestedInfo={_='paymentRequestedInfo', name='string', phone='string', email='string', shipping_address=PostAddress} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/paymentSavedCredentialsCard.md b/old_docs/API_docs_v91/constructors/paymentSavedCredentialsCard.md new file mode 100644 index 00000000..63892827 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/paymentSavedCredentialsCard.md @@ -0,0 +1,45 @@ +--- +title: paymentSavedCredentialsCard +description: Payment saved credentials card +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: paymentSavedCredentialsCard +[Back to constructors index](index.md) + + + +Payment saved credentials card + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[string](../types/string.md) | Yes|ID| +|title|[string](../types/string.md) | Yes|Title| + + + +### Type: [PaymentSavedCredentials](../types/PaymentSavedCredentials.md) + + +### Example: + +```php +$paymentSavedCredentialsCard = ['_' => 'paymentSavedCredentialsCard', 'id' => 'string', 'title' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "paymentSavedCredentialsCard", "id": "string", "title": "string"} +``` + + +Or, if you're into Lua: + +```lua +paymentSavedCredentialsCard={_='paymentSavedCredentialsCard', id='string', title='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/payments_paymentForm.md b/old_docs/API_docs_v91/constructors/payments_paymentForm.md new file mode 100644 index 00000000..dba5d931 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/payments_paymentForm.md @@ -0,0 +1,54 @@ +--- +title: payments.paymentForm +description: Payment form +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: payments.paymentForm +[Back to constructors index](index.md) + + + +Payment form + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|can\_save\_credentials|[Bool](../types/Bool.md) | Optional|Can save credentials?| +|password\_missing|[Bool](../types/Bool.md) | Optional|Password missing?| +|bot\_id|[int](../types/int.md) | Yes|Bot ID| +|invoice|[Invoice](../types/Invoice.md) | Yes|Invoice| +|provider\_id|[int](../types/int.md) | Yes|Provider ID| +|url|[string](../types/string.md) | Yes|URL| +|native\_provider|[string](../types/string.md) | Optional|Native provider| +|native\_params|[DataJSON](../types/DataJSON.md) | Optional|Native params| +|saved\_info|[PaymentRequestedInfo](../types/PaymentRequestedInfo.md) | Optional|Saved info| +|saved\_credentials|[PaymentSavedCredentials](../types/PaymentSavedCredentials.md) | Optional|Saved credentials| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [payments\_PaymentForm](../types/payments_PaymentForm.md) + + +### Example: + +```php +$payments_paymentForm = ['_' => 'payments.paymentForm', 'can_save_credentials' => Bool, 'password_missing' => Bool, 'bot_id' => int, 'invoice' => Invoice, 'provider_id' => int, 'url' => 'string', 'native_provider' => 'string', 'native_params' => DataJSON, 'saved_info' => PaymentRequestedInfo, 'saved_credentials' => PaymentSavedCredentials, 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "payments.paymentForm", "can_save_credentials": Bool, "password_missing": Bool, "bot_id": int, "invoice": Invoice, "provider_id": int, "url": "string", "native_provider": "string", "native_params": DataJSON, "saved_info": PaymentRequestedInfo, "saved_credentials": PaymentSavedCredentials, "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +payments_paymentForm={_='payments.paymentForm', can_save_credentials=Bool, password_missing=Bool, bot_id=int, invoice=Invoice, provider_id=int, url='string', native_provider='string', native_params=DataJSON, saved_info=PaymentRequestedInfo, saved_credentials=PaymentSavedCredentials, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/payments_paymentReceipt.md b/old_docs/API_docs_v91/constructors/payments_paymentReceipt.md new file mode 100644 index 00000000..f2c009af --- /dev/null +++ b/old_docs/API_docs_v91/constructors/payments_paymentReceipt.md @@ -0,0 +1,53 @@ +--- +title: payments.paymentReceipt +description: Payment receipt +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: payments.paymentReceipt +[Back to constructors index](index.md) + + + +Payment receipt + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|date|[int](../types/int.md) | Yes|Date| +|bot\_id|[int](../types/int.md) | Yes|Bot ID| +|invoice|[Invoice](../types/Invoice.md) | Yes|Invoice| +|provider\_id|[int](../types/int.md) | Yes|Provider ID| +|info|[PaymentRequestedInfo](../types/PaymentRequestedInfo.md) | Optional|Info| +|shipping|[ShippingOption](../types/ShippingOption.md) | Optional|Shipping| +|currency|[string](../types/string.md) | Yes|Currency| +|total\_amount|[long](../types/long.md) | Yes|Total amount| +|credentials\_title|[string](../types/string.md) | Yes|Credentials title| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) + + +### Example: + +```php +$payments_paymentReceipt = ['_' => 'payments.paymentReceipt', 'date' => int, 'bot_id' => int, 'invoice' => Invoice, 'provider_id' => int, 'info' => PaymentRequestedInfo, 'shipping' => ShippingOption, 'currency' => 'string', 'total_amount' => long, 'credentials_title' => 'string', 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "payments.paymentReceipt", "date": int, "bot_id": int, "invoice": Invoice, "provider_id": int, "info": PaymentRequestedInfo, "shipping": ShippingOption, "currency": "string", "total_amount": long, "credentials_title": "string", "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +payments_paymentReceipt={_='payments.paymentReceipt', date=int, bot_id=int, invoice=Invoice, provider_id=int, info=PaymentRequestedInfo, shipping=ShippingOption, currency='string', total_amount=long, credentials_title='string', users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/payments_paymentResult.md b/old_docs/API_docs_v91/constructors/payments_paymentResult.md new file mode 100644 index 00000000..3d876d50 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/payments_paymentResult.md @@ -0,0 +1,44 @@ +--- +title: payments.paymentResult +description: Payment result +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: payments.paymentResult +[Back to constructors index](index.md) + + + +Payment result + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|updates|[Updates](../types/Updates.md) | Yes|Updates| + + + +### Type: [payments\_PaymentResult](../types/payments_PaymentResult.md) + + +### Example: + +```php +$payments_paymentResult = ['_' => 'payments.paymentResult', 'updates' => Updates]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "payments.paymentResult", "updates": Updates} +``` + + +Or, if you're into Lua: + +```lua +payments_paymentResult={_='payments.paymentResult', updates=Updates} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/payments_paymentVerficationNeeded.md b/old_docs/API_docs_v91/constructors/payments_paymentVerficationNeeded.md new file mode 100644 index 00000000..459ea0b9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/payments_paymentVerficationNeeded.md @@ -0,0 +1,44 @@ +--- +title: payments.paymentVerficationNeeded +description: Payment verfication needed +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: payments.paymentVerficationNeeded +[Back to constructors index](index.md) + + + +Payment verfication needed + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| + + + +### Type: [payments\_PaymentResult](../types/payments_PaymentResult.md) + + +### Example: + +```php +$payments_paymentVerficationNeeded = ['_' => 'payments.paymentVerficationNeeded', 'url' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "payments.paymentVerficationNeeded", "url": "string"} +``` + + +Or, if you're into Lua: + +```lua +payments_paymentVerficationNeeded={_='payments.paymentVerficationNeeded', url='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/payments_savedInfo.md b/old_docs/API_docs_v91/constructors/payments_savedInfo.md new file mode 100644 index 00000000..088ac0dc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/payments_savedInfo.md @@ -0,0 +1,45 @@ +--- +title: payments.savedInfo +description: Saved info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: payments.savedInfo +[Back to constructors index](index.md) + + + +Saved info + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|has\_saved\_credentials|[Bool](../types/Bool.md) | Optional|Has saved credentials?| +|saved\_info|[PaymentRequestedInfo](../types/PaymentRequestedInfo.md) | Optional|Saved info| + + + +### Type: [payments\_SavedInfo](../types/payments_SavedInfo.md) + + +### Example: + +```php +$payments_savedInfo = ['_' => 'payments.savedInfo', 'has_saved_credentials' => Bool, 'saved_info' => PaymentRequestedInfo]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "payments.savedInfo", "has_saved_credentials": Bool, "saved_info": PaymentRequestedInfo} +``` + + +Or, if you're into Lua: + +```lua +payments_savedInfo={_='payments.savedInfo', has_saved_credentials=Bool, saved_info=PaymentRequestedInfo} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/payments_validatedRequestedInfo.md b/old_docs/API_docs_v91/constructors/payments_validatedRequestedInfo.md new file mode 100644 index 00000000..bdddf954 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/payments_validatedRequestedInfo.md @@ -0,0 +1,45 @@ +--- +title: payments.validatedRequestedInfo +description: Validated requested info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: payments.validatedRequestedInfo +[Back to constructors index](index.md) + + + +Validated requested info + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[string](../types/string.md) | Optional|ID| +|shipping\_options|Array of [ShippingOption](../types/ShippingOption.md) | Optional|Shipping options| + + + +### Type: [payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) + + +### Example: + +```php +$payments_validatedRequestedInfo = ['_' => 'payments.validatedRequestedInfo', 'id' => 'string', 'shipping_options' => [ShippingOption, ShippingOption]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "payments.validatedRequestedInfo", "id": "string", "shipping_options": [ShippingOption]} +``` + + +Or, if you're into Lua: + +```lua +payments_validatedRequestedInfo={_='payments.validatedRequestedInfo', id='string', shipping_options={ShippingOption}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/peerChannel.md b/old_docs/API_docs_v91/constructors/peerChannel.md new file mode 100644 index 00000000..fb6f6840 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/peerChannel.md @@ -0,0 +1,44 @@ +--- +title: peerChannel +description: Peer channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: peerChannel +[Back to constructors index](index.md) + + + +Peer channel + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| + + + +### Type: [Peer](../types/Peer.md) + + +### Example: + +```php +$peerChannel = ['_' => 'peerChannel', 'channel_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "peerChannel", "channel_id": int} +``` + + +Or, if you're into Lua: + +```lua +peerChannel={_='peerChannel', channel_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/peerChat.md b/old_docs/API_docs_v91/constructors/peerChat.md new file mode 100644 index 00000000..e3d5b173 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/peerChat.md @@ -0,0 +1,44 @@ +--- +title: peerChat +description: Peer chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: peerChat +[Back to constructors index](index.md) + + + +Peer chat + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| + + + +### Type: [Peer](../types/Peer.md) + + +### Example: + +```php +$peerChat = ['_' => 'peerChat', 'chat_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "peerChat", "chat_id": int} +``` + + +Or, if you're into Lua: + +```lua +peerChat={_='peerChat', chat_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/peerNotifySettings.md b/old_docs/API_docs_v91/constructors/peerNotifySettings.md new file mode 100644 index 00000000..8d5d04a7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/peerNotifySettings.md @@ -0,0 +1,47 @@ +--- +title: peerNotifySettings +description: Peer notify settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: peerNotifySettings +[Back to constructors index](index.md) + + + +Peer notify settings + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|show\_previews|[Bool](../types/Bool.md) | Optional|Show previews?| +|silent|[Bool](../types/Bool.md) | Optional|Silent?| +|mute\_until|[int](../types/int.md) | Optional|Mute until| +|sound|[string](../types/string.md) | Optional|Sound| + + + +### Type: [PeerNotifySettings](../types/PeerNotifySettings.md) + + +### Example: + +```php +$peerNotifySettings = ['_' => 'peerNotifySettings', 'show_previews' => Bool, 'silent' => Bool, 'mute_until' => int, 'sound' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "peerNotifySettings", "show_previews": Bool, "silent": Bool, "mute_until": int, "sound": "string"} +``` + + +Or, if you're into Lua: + +```lua +peerNotifySettings={_='peerNotifySettings', show_previews=Bool, silent=Bool, mute_until=int, sound='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/peerSettings.md b/old_docs/API_docs_v91/constructors/peerSettings.md new file mode 100644 index 00000000..e076f81f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/peerSettings.md @@ -0,0 +1,44 @@ +--- +title: peerSettings +description: Peer settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: peerSettings +[Back to constructors index](index.md) + + + +Peer settings + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|report\_spam|[Bool](../types/Bool.md) | Optional|Report spam?| + + + +### Type: [PeerSettings](../types/PeerSettings.md) + + +### Example: + +```php +$peerSettings = ['_' => 'peerSettings', 'report_spam' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "peerSettings", "report_spam": Bool} +``` + + +Or, if you're into Lua: + +```lua +peerSettings={_='peerSettings', report_spam=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/peerUser.md b/old_docs/API_docs_v91/constructors/peerUser.md new file mode 100644 index 00000000..1dec4568 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/peerUser.md @@ -0,0 +1,44 @@ +--- +title: peerUser +description: Peer user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: peerUser +[Back to constructors index](index.md) + + + +Peer user + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| + + + +### Type: [Peer](../types/Peer.md) + + +### Example: + +```php +$peerUser = ['_' => 'peerUser', 'user_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "peerUser", "user_id": int} +``` + + +Or, if you're into Lua: + +```lua +peerUser={_='peerUser', user_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneCall.md b/old_docs/API_docs_v91/constructors/phoneCall.md new file mode 100644 index 00000000..bbbeee51 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneCall.md @@ -0,0 +1,55 @@ +--- +title: phoneCall +description: Phone call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneCall +[Back to constructors index](index.md) + + + +Phone call + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|p2p\_allowed|[Bool](../types/Bool.md) | Optional|P2p allowed?| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|date|[int](../types/int.md) | Yes|Date| +|admin\_id|[int](../types/int.md) | Yes|Admin ID| +|participant\_id|[int](../types/int.md) | Yes|Participant ID| +|g\_a\_or\_b|[bytes](../types/bytes.md) | Yes|G a or b| +|key\_fingerprint|[long](../types/long.md) | Yes|Key fingerprint| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Yes|Protocol| +|connection|[PhoneConnection](../types/PhoneConnection.md) | Yes|Connection| +|alternative\_connections|Array of [PhoneConnection](../types/PhoneConnection.md) | Yes|Alternative connections| +|start\_date|[int](../types/int.md) | Yes|Start date| + + + +### Type: [PhoneCall](../types/PhoneCall.md) + + +### Example: + +```php +$phoneCall = ['_' => 'phoneCall', 'p2p_allowed' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a_or_b' => 'bytes', 'key_fingerprint' => long, 'protocol' => PhoneCallProtocol, 'connection' => PhoneConnection, 'alternative_connections' => [PhoneConnection, PhoneConnection], 'start_date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneCall", "p2p_allowed": Bool, "id": long, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "key_fingerprint": long, "protocol": PhoneCallProtocol, "connection": PhoneConnection, "alternative_connections": [PhoneConnection], "start_date": int} +``` + + +Or, if you're into Lua: + +```lua +phoneCall={_='phoneCall', p2p_allowed=Bool, id=long, access_hash=long, date=int, admin_id=int, participant_id=int, g_a_or_b='bytes', key_fingerprint=long, protocol=PhoneCallProtocol, connection=PhoneConnection, alternative_connections={PhoneConnection}, start_date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneCallAccepted.md b/old_docs/API_docs_v91/constructors/phoneCallAccepted.md new file mode 100644 index 00000000..dbb2d62b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneCallAccepted.md @@ -0,0 +1,50 @@ +--- +title: phoneCallAccepted +description: Phone call accepted +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneCallAccepted +[Back to constructors index](index.md) + + + +Phone call accepted + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|date|[int](../types/int.md) | Yes|Date| +|admin\_id|[int](../types/int.md) | Yes|Admin ID| +|participant\_id|[int](../types/int.md) | Yes|Participant ID| +|g\_b|[bytes](../types/bytes.md) | Yes|G b| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Yes|Protocol| + + + +### Type: [PhoneCall](../types/PhoneCall.md) + + +### Example: + +```php +$phoneCallAccepted = ['_' => 'phoneCallAccepted', 'id' => long, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_b' => 'bytes', 'protocol' => PhoneCallProtocol]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneCallAccepted", "id": long, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "protocol": PhoneCallProtocol} +``` + + +Or, if you're into Lua: + +```lua +phoneCallAccepted={_='phoneCallAccepted', id=long, access_hash=long, date=int, admin_id=int, participant_id=int, g_b='bytes', protocol=PhoneCallProtocol} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonBusy.md b/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonBusy.md new file mode 100644 index 00000000..d6a7eb74 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonBusy.md @@ -0,0 +1,39 @@ +--- +title: phoneCallDiscardReasonBusy +description: Phone call discard reason busy +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneCallDiscardReasonBusy +[Back to constructors index](index.md) + + + +Phone call discard reason busy + + + + +### Type: [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) + + +### Example: + +```php +$phoneCallDiscardReasonBusy = ['_' => 'phoneCallDiscardReasonBusy']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneCallDiscardReasonBusy"} +``` + + +Or, if you're into Lua: + +```lua +phoneCallDiscardReasonBusy={_='phoneCallDiscardReasonBusy'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonDisconnect.md b/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonDisconnect.md new file mode 100644 index 00000000..917a9ccc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonDisconnect.md @@ -0,0 +1,39 @@ +--- +title: phoneCallDiscardReasonDisconnect +description: Phone call discard reason disconnect +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneCallDiscardReasonDisconnect +[Back to constructors index](index.md) + + + +Phone call discard reason disconnect + + + + +### Type: [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) + + +### Example: + +```php +$phoneCallDiscardReasonDisconnect = ['_' => 'phoneCallDiscardReasonDisconnect']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneCallDiscardReasonDisconnect"} +``` + + +Or, if you're into Lua: + +```lua +phoneCallDiscardReasonDisconnect={_='phoneCallDiscardReasonDisconnect'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonHangup.md b/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonHangup.md new file mode 100644 index 00000000..966cec0e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonHangup.md @@ -0,0 +1,39 @@ +--- +title: phoneCallDiscardReasonHangup +description: Phone call discard reason hangup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneCallDiscardReasonHangup +[Back to constructors index](index.md) + + + +Phone call discard reason hangup + + + + +### Type: [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) + + +### Example: + +```php +$phoneCallDiscardReasonHangup = ['_' => 'phoneCallDiscardReasonHangup']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneCallDiscardReasonHangup"} +``` + + +Or, if you're into Lua: + +```lua +phoneCallDiscardReasonHangup={_='phoneCallDiscardReasonHangup'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonMissed.md b/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonMissed.md new file mode 100644 index 00000000..0fb3aaca --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneCallDiscardReasonMissed.md @@ -0,0 +1,39 @@ +--- +title: phoneCallDiscardReasonMissed +description: Phone call discard reason missed +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneCallDiscardReasonMissed +[Back to constructors index](index.md) + + + +Phone call discard reason missed + + + + +### Type: [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) + + +### Example: + +```php +$phoneCallDiscardReasonMissed = ['_' => 'phoneCallDiscardReasonMissed']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneCallDiscardReasonMissed"} +``` + + +Or, if you're into Lua: + +```lua +phoneCallDiscardReasonMissed={_='phoneCallDiscardReasonMissed'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneCallDiscarded.md b/old_docs/API_docs_v91/constructors/phoneCallDiscarded.md new file mode 100644 index 00000000..6f60d33f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneCallDiscarded.md @@ -0,0 +1,48 @@ +--- +title: phoneCallDiscarded +description: Phone call discarded +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneCallDiscarded +[Back to constructors index](index.md) + + + +Phone call discarded + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|need\_rating|[Bool](../types/Bool.md) | Optional|Need rating?| +|need\_debug|[Bool](../types/Bool.md) | Optional|Need debug?| +|id|[long](../types/long.md) | Yes|ID| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Optional|Reason| +|duration|[int](../types/int.md) | Optional|Duration| + + + +### Type: [PhoneCall](../types/PhoneCall.md) + + +### Example: + +```php +$phoneCallDiscarded = ['_' => 'phoneCallDiscarded', 'need_rating' => Bool, 'need_debug' => Bool, 'id' => long, 'reason' => PhoneCallDiscardReason, 'duration' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneCallDiscarded", "need_rating": Bool, "need_debug": Bool, "id": long, "reason": PhoneCallDiscardReason, "duration": int} +``` + + +Or, if you're into Lua: + +```lua +phoneCallDiscarded={_='phoneCallDiscarded', need_rating=Bool, need_debug=Bool, id=long, reason=PhoneCallDiscardReason, duration=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneCallEmpty.md b/old_docs/API_docs_v91/constructors/phoneCallEmpty.md new file mode 100644 index 00000000..6a58e636 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneCallEmpty.md @@ -0,0 +1,44 @@ +--- +title: phoneCallEmpty +description: Empty phone call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneCallEmpty +[Back to constructors index](index.md) + + + +Empty phone call + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| + + + +### Type: [PhoneCall](../types/PhoneCall.md) + + +### Example: + +```php +$phoneCallEmpty = ['_' => 'phoneCallEmpty', 'id' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneCallEmpty", "id": long} +``` + + +Or, if you're into Lua: + +```lua +phoneCallEmpty={_='phoneCallEmpty', id=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneCallProtocol.md b/old_docs/API_docs_v91/constructors/phoneCallProtocol.md new file mode 100644 index 00000000..ea9c0ad2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneCallProtocol.md @@ -0,0 +1,47 @@ +--- +title: phoneCallProtocol +description: Phone call protocol +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneCallProtocol +[Back to constructors index](index.md) + + + +Phone call protocol + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|udp\_p2p|[Bool](../types/Bool.md) | Optional|Udp p2p?| +|udp\_reflector|[Bool](../types/Bool.md) | Optional|Udp reflector?| +|min\_layer|[int](../types/int.md) | Yes|Min layer| +|max\_layer|[int](../types/int.md) | Yes|Max layer| + + + +### Type: [PhoneCallProtocol](../types/PhoneCallProtocol.md) + + +### Example: + +```php +$phoneCallProtocol = ['_' => 'phoneCallProtocol', 'udp_p2p' => Bool, 'udp_reflector' => Bool, 'min_layer' => int, 'max_layer' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneCallProtocol", "udp_p2p": Bool, "udp_reflector": Bool, "min_layer": int, "max_layer": int} +``` + + +Or, if you're into Lua: + +```lua +phoneCallProtocol={_='phoneCallProtocol', udp_p2p=Bool, udp_reflector=Bool, min_layer=int, max_layer=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneCallRequested.md b/old_docs/API_docs_v91/constructors/phoneCallRequested.md new file mode 100644 index 00000000..9767b6de --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneCallRequested.md @@ -0,0 +1,50 @@ +--- +title: phoneCallRequested +description: Phone call requested +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneCallRequested +[Back to constructors index](index.md) + + + +Phone call requested + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|date|[int](../types/int.md) | Yes|Date| +|admin\_id|[int](../types/int.md) | Yes|Admin ID| +|participant\_id|[int](../types/int.md) | Yes|Participant ID| +|g\_a\_hash|[bytes](../types/bytes.md) | Yes|G a hash| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Yes|Protocol| + + + +### Type: [PhoneCall](../types/PhoneCall.md) + + +### Example: + +```php +$phoneCallRequested = ['_' => 'phoneCallRequested', 'id' => long, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a_hash' => 'bytes', 'protocol' => PhoneCallProtocol]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneCallRequested", "id": long, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "protocol": PhoneCallProtocol} +``` + + +Or, if you're into Lua: + +```lua +phoneCallRequested={_='phoneCallRequested', id=long, access_hash=long, date=int, admin_id=int, participant_id=int, g_a_hash='bytes', protocol=PhoneCallProtocol} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneCallWaiting.md b/old_docs/API_docs_v91/constructors/phoneCallWaiting.md new file mode 100644 index 00000000..03918b98 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneCallWaiting.md @@ -0,0 +1,50 @@ +--- +title: phoneCallWaiting +description: Phone call waiting +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneCallWaiting +[Back to constructors index](index.md) + + + +Phone call waiting + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|date|[int](../types/int.md) | Yes|Date| +|admin\_id|[int](../types/int.md) | Yes|Admin ID| +|participant\_id|[int](../types/int.md) | Yes|Participant ID| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Yes|Protocol| +|receive\_date|[int](../types/int.md) | Optional|Receive date| + + + +### Type: [PhoneCall](../types/PhoneCall.md) + + +### Example: + +```php +$phoneCallWaiting = ['_' => 'phoneCallWaiting', 'id' => long, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'protocol' => PhoneCallProtocol, 'receive_date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneCallWaiting", "id": long, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "protocol": PhoneCallProtocol, "receive_date": int} +``` + + +Or, if you're into Lua: + +```lua +phoneCallWaiting={_='phoneCallWaiting', id=long, access_hash=long, date=int, admin_id=int, participant_id=int, protocol=PhoneCallProtocol, receive_date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phoneConnection.md b/old_docs/API_docs_v91/constructors/phoneConnection.md new file mode 100644 index 00000000..1586ffcd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phoneConnection.md @@ -0,0 +1,48 @@ +--- +title: phoneConnection +description: Phone connection +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phoneConnection +[Back to constructors index](index.md) + + + +Phone connection + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|ip|[string](../types/string.md) | Yes|Ip| +|ipv6|[string](../types/string.md) | Yes|Ipv6| +|port|[int](../types/int.md) | Yes|Port| +|peer\_tag|[bytes](../types/bytes.md) | Yes|Peer tag| + + + +### Type: [PhoneConnection](../types/PhoneConnection.md) + + +### Example: + +```php +$phoneConnection = ['_' => 'phoneConnection', 'id' => long, 'ip' => 'string', 'ipv6' => 'string', 'port' => int, 'peer_tag' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phoneConnection", "id": long, "ip": "string", "ipv6": "string", "port": int, "peer_tag": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +phoneConnection={_='phoneConnection', id=long, ip='string', ipv6='string', port=int, peer_tag='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/phone_phoneCall.md b/old_docs/API_docs_v91/constructors/phone_phoneCall.md new file mode 100644 index 00000000..9e15e8e4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/phone_phoneCall.md @@ -0,0 +1,45 @@ +--- +title: phone.phoneCall +description: Phone call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: phone.phoneCall +[Back to constructors index](index.md) + + + +Phone call + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_call|[PhoneCall](../types/PhoneCall.md) | Optional|Phone call| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [phone\_PhoneCall](../types/phone_PhoneCall.md) + + +### Example: + +```php +$phone_phoneCall = ['_' => 'phone.phoneCall', 'phone_call' => PhoneCall, 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "phone.phoneCall", "phone_call": PhoneCall, "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +phone_phoneCall={_='phone.phoneCall', phone_call=PhoneCall, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/photo.md b/old_docs/API_docs_v91/constructors/photo.md new file mode 100644 index 00000000..cbcd888c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/photo.md @@ -0,0 +1,49 @@ +--- +title: photo +description: Photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: photo +[Back to constructors index](index.md) + + + +Photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|has\_stickers|[Bool](../types/Bool.md) | Optional|Has stickers?| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|file\_reference|[bytes](../types/bytes.md) | Yes|File reference| +|date|[int](../types/int.md) | Yes|Date| +|sizes|Array of [PhotoSize](../types/PhotoSize.md) | Yes|Sizes| + + + +### Type: [Photo](../types/Photo.md) + + +### Example: + +```php +$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes', 'date' => int, 'sizes' => [PhotoSize, PhotoSize]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "photo", "has_stickers": Bool, "id": long, "access_hash": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}, "date": int, "sizes": [PhotoSize]} +``` + + +Or, if you're into Lua: + +```lua +photo={_='photo', has_stickers=Bool, id=long, access_hash=long, file_reference='bytes', date=int, sizes={PhotoSize}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/photoCachedSize.md b/old_docs/API_docs_v91/constructors/photoCachedSize.md new file mode 100644 index 00000000..31660c7d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/photoCachedSize.md @@ -0,0 +1,48 @@ +--- +title: photoCachedSize +description: Photo cached size +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: photoCachedSize +[Back to constructors index](index.md) + + + +Photo cached size + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[string](../types/string.md) | Yes|Type| +|location|[FileLocation](../types/FileLocation.md) | Yes|Location| +|w|[int](../types/int.md) | Yes|Width| +|h|[int](../types/int.md) | Yes|Height| +|bytes|[bytes](../types/bytes.md) | Yes|Bytes| + + + +### Type: [PhotoSize](../types/PhotoSize.md) + + +### Example: + +```php +$photoCachedSize = ['_' => 'photoCachedSize', 'type' => 'string', 'location' => FileLocation, 'w' => int, 'h' => int, 'bytes' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +photoCachedSize={_='photoCachedSize', type='string', location=FileLocation, w=int, h=int, bytes='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/photoEmpty.md b/old_docs/API_docs_v91/constructors/photoEmpty.md new file mode 100644 index 00000000..c9237d5d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/photoEmpty.md @@ -0,0 +1,44 @@ +--- +title: photoEmpty +description: Empty photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: photoEmpty +[Back to constructors index](index.md) + + + +Empty photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| + + + +### Type: [Photo](../types/Photo.md) + + +### Example: + +```php +$photoEmpty = ['_' => 'photoEmpty', 'id' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "photoEmpty", "id": long} +``` + + +Or, if you're into Lua: + +```lua +photoEmpty={_='photoEmpty', id=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/photoSize.md b/old_docs/API_docs_v91/constructors/photoSize.md new file mode 100644 index 00000000..11aac11c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/photoSize.md @@ -0,0 +1,48 @@ +--- +title: photoSize +description: Photo size +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: photoSize +[Back to constructors index](index.md) + + + +Photo size + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[string](../types/string.md) | Yes|Type| +|location|[FileLocation](../types/FileLocation.md) | Yes|Location| +|w|[int](../types/int.md) | Yes|Width| +|h|[int](../types/int.md) | Yes|Height| +|size|[int](../types/int.md) | Yes|Size| + + + +### Type: [PhotoSize](../types/PhotoSize.md) + + +### Example: + +```php +$photoSize = ['_' => 'photoSize', 'type' => 'string', 'location' => FileLocation, 'w' => int, 'h' => int, 'size' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "photoSize", "type": "string", "location": FileLocation, "w": int, "h": int, "size": int} +``` + + +Or, if you're into Lua: + +```lua +photoSize={_='photoSize', type='string', location=FileLocation, w=int, h=int, size=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/photoSizeEmpty.md b/old_docs/API_docs_v91/constructors/photoSizeEmpty.md new file mode 100644 index 00000000..b8970047 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/photoSizeEmpty.md @@ -0,0 +1,44 @@ +--- +title: photoSizeEmpty +description: Empty photo size +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: photoSizeEmpty +[Back to constructors index](index.md) + + + +Empty photo size + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[string](../types/string.md) | Yes|Type| + + + +### Type: [PhotoSize](../types/PhotoSize.md) + + +### Example: + +```php +$photoSizeEmpty = ['_' => 'photoSizeEmpty', 'type' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "photoSizeEmpty", "type": "string"} +``` + + +Or, if you're into Lua: + +```lua +photoSizeEmpty={_='photoSizeEmpty', type='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/photos_photo.md b/old_docs/API_docs_v91/constructors/photos_photo.md new file mode 100644 index 00000000..b13e4377 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/photos_photo.md @@ -0,0 +1,45 @@ +--- +title: photos.photo +description: Photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: photos.photo +[Back to constructors index](index.md) + + + +Photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|photo|[Photo](../types/Photo.md) | Optional|Photo| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [photos\_Photo](../types/photos_Photo.md) + + +### Example: + +```php +$photos_photo = ['_' => 'photos.photo', 'photo' => Photo, 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "photos.photo", "photo": Photo, "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +photos_photo={_='photos.photo', photo=Photo, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/photos_photos.md b/old_docs/API_docs_v91/constructors/photos_photos.md new file mode 100644 index 00000000..113a0156 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/photos_photos.md @@ -0,0 +1,45 @@ +--- +title: photos.photos +description: Photos +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: photos.photos +[Back to constructors index](index.md) + + + +Photos + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|photos|Array of [Photo](../types/Photo.md) | Yes|Photos| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [photos\_Photos](../types/photos_Photos.md) + + +### Example: + +```php +$photos_photos = ['_' => 'photos.photos', 'photos' => [Photo, Photo], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "photos.photos", "photos": [Photo], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +photos_photos={_='photos.photos', photos={Photo}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/photos_photosSlice.md b/old_docs/API_docs_v91/constructors/photos_photosSlice.md new file mode 100644 index 00000000..7ae367c0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/photos_photosSlice.md @@ -0,0 +1,46 @@ +--- +title: photos.photosSlice +description: Photos slice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: photos.photosSlice +[Back to constructors index](index.md) + + + +Photos slice + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|count|[int](../types/int.md) | Yes|Count| +|photos|Array of [Photo](../types/Photo.md) | Yes|Photos| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [photos\_Photos](../types/photos_Photos.md) + + +### Example: + +```php +$photos_photosSlice = ['_' => 'photos.photosSlice', 'count' => int, 'photos' => [Photo, Photo], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "photos.photosSlice", "count": int, "photos": [Photo], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +photos_photosSlice={_='photos.photosSlice', count=int, photos={Photo}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/poll.md b/old_docs/API_docs_v91/constructors/poll.md new file mode 100644 index 00000000..dc844699 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/poll.md @@ -0,0 +1,47 @@ +--- +title: poll +description: Poll +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: poll +[Back to constructors index](index.md) + + + +Poll + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|closed|[Bool](../types/Bool.md) | Optional|Closed?| +|question|[string](../types/string.md) | Yes|Question| +|answers|Array of [PollAnswer](../types/PollAnswer.md) | Yes|Answers| + + + +### Type: [Poll](../types/Poll.md) + + +### Example: + +```php +$poll = ['_' => 'poll', 'id' => long, 'closed' => Bool, 'question' => 'string', 'answers' => [PollAnswer, PollAnswer]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "poll", "id": long, "closed": Bool, "question": "string", "answers": [PollAnswer]} +``` + + +Or, if you're into Lua: + +```lua +poll={_='poll', id=long, closed=Bool, question='string', answers={PollAnswer}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pollAnswer.md b/old_docs/API_docs_v91/constructors/pollAnswer.md new file mode 100644 index 00000000..36481a20 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pollAnswer.md @@ -0,0 +1,45 @@ +--- +title: pollAnswer +description: Poll answer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pollAnswer +[Back to constructors index](index.md) + + + +Poll answer + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text| +|option|[bytes](../types/bytes.md) | Yes|Option| + + + +### Type: [PollAnswer](../types/PollAnswer.md) + + +### Example: + +```php +$pollAnswer = ['_' => 'pollAnswer', 'text' => 'string', 'option' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pollAnswer", "text": "string", "option": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +pollAnswer={_='pollAnswer', text='string', option='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pollAnswerVoters.md b/old_docs/API_docs_v91/constructors/pollAnswerVoters.md new file mode 100644 index 00000000..b8177933 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pollAnswerVoters.md @@ -0,0 +1,46 @@ +--- +title: pollAnswerVoters +description: Poll answer voters +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pollAnswerVoters +[Back to constructors index](index.md) + + + +Poll answer voters + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chosen|[Bool](../types/Bool.md) | Optional|Chosen?| +|option|[bytes](../types/bytes.md) | Yes|Option| +|voters|[int](../types/int.md) | Yes|Voters| + + + +### Type: [PollAnswerVoters](../types/PollAnswerVoters.md) + + +### Example: + +```php +$pollAnswerVoters = ['_' => 'pollAnswerVoters', 'chosen' => Bool, 'option' => 'bytes', 'voters' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pollAnswerVoters", "chosen": Bool, "option": {"_": "bytes", "bytes":"base64 encoded bytes"}, "voters": int} +``` + + +Or, if you're into Lua: + +```lua +pollAnswerVoters={_='pollAnswerVoters', chosen=Bool, option='bytes', voters=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/pollResults.md b/old_docs/API_docs_v91/constructors/pollResults.md new file mode 100644 index 00000000..c2525675 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/pollResults.md @@ -0,0 +1,46 @@ +--- +title: pollResults +description: Poll results +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: pollResults +[Back to constructors index](index.md) + + + +Poll results + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|min|[Bool](../types/Bool.md) | Optional|Min?| +|results|Array of [PollAnswerVoters](../types/PollAnswerVoters.md) | Optional|Results| +|total\_voters|[int](../types/int.md) | Optional|Total voters| + + + +### Type: [PollResults](../types/PollResults.md) + + +### Example: + +```php +$pollResults = ['_' => 'pollResults', 'min' => Bool, 'results' => [PollAnswerVoters, PollAnswerVoters], 'total_voters' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "pollResults", "min": Bool, "results": [PollAnswerVoters], "total_voters": int} +``` + + +Or, if you're into Lua: + +```lua +pollResults={_='pollResults', min=Bool, results={PollAnswerVoters}, total_voters=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/popularContact.md b/old_docs/API_docs_v91/constructors/popularContact.md new file mode 100644 index 00000000..103a7e06 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/popularContact.md @@ -0,0 +1,45 @@ +--- +title: popularContact +description: Popular contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: popularContact +[Back to constructors index](index.md) + + + +Popular contact + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|client\_id|[long](../types/long.md) | Yes|Client ID| +|importers|[int](../types/int.md) | Yes|Importers| + + + +### Type: [PopularContact](../types/PopularContact.md) + + +### Example: + +```php +$popularContact = ['_' => 'popularContact', 'client_id' => long, 'importers' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "popularContact", "client_id": long, "importers": int} +``` + + +Or, if you're into Lua: + +```lua +popularContact={_='popularContact', client_id=long, importers=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/postAddress.md b/old_docs/API_docs_v91/constructors/postAddress.md new file mode 100644 index 00000000..8ac201a6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/postAddress.md @@ -0,0 +1,49 @@ +--- +title: postAddress +description: Post address +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: postAddress +[Back to constructors index](index.md) + + + +Post address + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|street\_line1|[string](../types/string.md) | Yes|Street line1| +|street\_line2|[string](../types/string.md) | Yes|Street line2| +|city|[string](../types/string.md) | Yes|City| +|state|[string](../types/string.md) | Yes|State| +|country\_iso2|[string](../types/string.md) | Yes|Country iso2| +|post\_code|[string](../types/string.md) | Yes|Post code| + + + +### Type: [PostAddress](../types/PostAddress.md) + + +### Example: + +```php +$postAddress = ['_' => 'postAddress', 'street_line1' => 'string', 'street_line2' => 'string', 'city' => 'string', 'state' => 'string', 'country_iso2' => 'string', 'post_code' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "postAddress", "street_line1": "string", "street_line2": "string", "city": "string", "state": "string", "country_iso2": "string", "post_code": "string"} +``` + + +Or, if you're into Lua: + +```lua +postAddress={_='postAddress', street_line1='string', street_line2='string', city='string', state='string', country_iso2='string', post_code='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/privacyKeyChatInvite.md b/old_docs/API_docs_v91/constructors/privacyKeyChatInvite.md new file mode 100644 index 00000000..06e0eb31 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/privacyKeyChatInvite.md @@ -0,0 +1,39 @@ +--- +title: privacyKeyChatInvite +description: Privacy key chat invite +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: privacyKeyChatInvite +[Back to constructors index](index.md) + + + +Privacy key chat invite + + + + +### Type: [PrivacyKey](../types/PrivacyKey.md) + + +### Example: + +```php +$privacyKeyChatInvite = ['_' => 'privacyKeyChatInvite']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "privacyKeyChatInvite"} +``` + + +Or, if you're into Lua: + +```lua +privacyKeyChatInvite={_='privacyKeyChatInvite'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/privacyKeyPhoneCall.md b/old_docs/API_docs_v91/constructors/privacyKeyPhoneCall.md new file mode 100644 index 00000000..fedb6932 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/privacyKeyPhoneCall.md @@ -0,0 +1,39 @@ +--- +title: privacyKeyPhoneCall +description: Privacy key phone call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: privacyKeyPhoneCall +[Back to constructors index](index.md) + + + +Privacy key phone call + + + + +### Type: [PrivacyKey](../types/PrivacyKey.md) + + +### Example: + +```php +$privacyKeyPhoneCall = ['_' => 'privacyKeyPhoneCall']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "privacyKeyPhoneCall"} +``` + + +Or, if you're into Lua: + +```lua +privacyKeyPhoneCall={_='privacyKeyPhoneCall'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/privacyKeyPhoneP2P.md b/old_docs/API_docs_v91/constructors/privacyKeyPhoneP2P.md new file mode 100644 index 00000000..97a30618 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/privacyKeyPhoneP2P.md @@ -0,0 +1,39 @@ +--- +title: privacyKeyPhoneP2P +description: Privacy key phone p2p +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: privacyKeyPhoneP2P +[Back to constructors index](index.md) + + + +Privacy key phone p2p + + + + +### Type: [PrivacyKey](../types/PrivacyKey.md) + + +### Example: + +```php +$privacyKeyPhoneP2P = ['_' => 'privacyKeyPhoneP2P']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "privacyKeyPhoneP2P"} +``` + + +Or, if you're into Lua: + +```lua +privacyKeyPhoneP2P={_='privacyKeyPhoneP2P'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/privacyKeyStatusTimestamp.md b/old_docs/API_docs_v91/constructors/privacyKeyStatusTimestamp.md new file mode 100644 index 00000000..e6111896 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/privacyKeyStatusTimestamp.md @@ -0,0 +1,39 @@ +--- +title: privacyKeyStatusTimestamp +description: Privacy key status timestamp +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: privacyKeyStatusTimestamp +[Back to constructors index](index.md) + + + +Privacy key status timestamp + + + + +### Type: [PrivacyKey](../types/PrivacyKey.md) + + +### Example: + +```php +$privacyKeyStatusTimestamp = ['_' => 'privacyKeyStatusTimestamp']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "privacyKeyStatusTimestamp"} +``` + + +Or, if you're into Lua: + +```lua +privacyKeyStatusTimestamp={_='privacyKeyStatusTimestamp'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/privacyValueAllowAll.md b/old_docs/API_docs_v91/constructors/privacyValueAllowAll.md new file mode 100644 index 00000000..61feddd7 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/privacyValueAllowAll.md @@ -0,0 +1,39 @@ +--- +title: privacyValueAllowAll +description: Privacy value allow all +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: privacyValueAllowAll +[Back to constructors index](index.md) + + + +Privacy value allow all + + + + +### Type: [PrivacyRule](../types/PrivacyRule.md) + + +### Example: + +```php +$privacyValueAllowAll = ['_' => 'privacyValueAllowAll']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "privacyValueAllowAll"} +``` + + +Or, if you're into Lua: + +```lua +privacyValueAllowAll={_='privacyValueAllowAll'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/privacyValueAllowContacts.md b/old_docs/API_docs_v91/constructors/privacyValueAllowContacts.md new file mode 100644 index 00000000..f7e385c3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/privacyValueAllowContacts.md @@ -0,0 +1,39 @@ +--- +title: privacyValueAllowContacts +description: Privacy value allow contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: privacyValueAllowContacts +[Back to constructors index](index.md) + + + +Privacy value allow contacts + + + + +### Type: [PrivacyRule](../types/PrivacyRule.md) + + +### Example: + +```php +$privacyValueAllowContacts = ['_' => 'privacyValueAllowContacts']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "privacyValueAllowContacts"} +``` + + +Or, if you're into Lua: + +```lua +privacyValueAllowContacts={_='privacyValueAllowContacts'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/privacyValueAllowUsers.md b/old_docs/API_docs_v91/constructors/privacyValueAllowUsers.md new file mode 100644 index 00000000..dd718d68 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/privacyValueAllowUsers.md @@ -0,0 +1,44 @@ +--- +title: privacyValueAllowUsers +description: Privacy value allow users +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: privacyValueAllowUsers +[Back to constructors index](index.md) + + + +Privacy value allow users + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|users|Array of [int](../types/int.md) | Yes|Users| + + + +### Type: [PrivacyRule](../types/PrivacyRule.md) + + +### Example: + +```php +$privacyValueAllowUsers = ['_' => 'privacyValueAllowUsers', 'users' => [int, int]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "privacyValueAllowUsers", "users": [int]} +``` + + +Or, if you're into Lua: + +```lua +privacyValueAllowUsers={_='privacyValueAllowUsers', users={int}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/privacyValueDisallowAll.md b/old_docs/API_docs_v91/constructors/privacyValueDisallowAll.md new file mode 100644 index 00000000..9c9422ff --- /dev/null +++ b/old_docs/API_docs_v91/constructors/privacyValueDisallowAll.md @@ -0,0 +1,39 @@ +--- +title: privacyValueDisallowAll +description: Privacy value disallow all +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: privacyValueDisallowAll +[Back to constructors index](index.md) + + + +Privacy value disallow all + + + + +### Type: [PrivacyRule](../types/PrivacyRule.md) + + +### Example: + +```php +$privacyValueDisallowAll = ['_' => 'privacyValueDisallowAll']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "privacyValueDisallowAll"} +``` + + +Or, if you're into Lua: + +```lua +privacyValueDisallowAll={_='privacyValueDisallowAll'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/privacyValueDisallowContacts.md b/old_docs/API_docs_v91/constructors/privacyValueDisallowContacts.md new file mode 100644 index 00000000..5371c9d3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/privacyValueDisallowContacts.md @@ -0,0 +1,39 @@ +--- +title: privacyValueDisallowContacts +description: Privacy value disallow contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: privacyValueDisallowContacts +[Back to constructors index](index.md) + + + +Privacy value disallow contacts + + + + +### Type: [PrivacyRule](../types/PrivacyRule.md) + + +### Example: + +```php +$privacyValueDisallowContacts = ['_' => 'privacyValueDisallowContacts']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "privacyValueDisallowContacts"} +``` + + +Or, if you're into Lua: + +```lua +privacyValueDisallowContacts={_='privacyValueDisallowContacts'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/privacyValueDisallowUsers.md b/old_docs/API_docs_v91/constructors/privacyValueDisallowUsers.md new file mode 100644 index 00000000..3bf33e63 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/privacyValueDisallowUsers.md @@ -0,0 +1,44 @@ +--- +title: privacyValueDisallowUsers +description: Privacy value disallow users +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: privacyValueDisallowUsers +[Back to constructors index](index.md) + + + +Privacy value disallow users + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|users|Array of [int](../types/int.md) | Yes|Users| + + + +### Type: [PrivacyRule](../types/PrivacyRule.md) + + +### Example: + +```php +$privacyValueDisallowUsers = ['_' => 'privacyValueDisallowUsers', 'users' => [int, int]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "privacyValueDisallowUsers", "users": [int]} +``` + + +Or, if you're into Lua: + +```lua +privacyValueDisallowUsers={_='privacyValueDisallowUsers', users={int}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/receivedNotifyMessage.md b/old_docs/API_docs_v91/constructors/receivedNotifyMessage.md new file mode 100644 index 00000000..0a81a6f9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/receivedNotifyMessage.md @@ -0,0 +1,44 @@ +--- +title: receivedNotifyMessage +description: Received notify message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: receivedNotifyMessage +[Back to constructors index](index.md) + + + +Received notify message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + + +### Example: + +```php +$receivedNotifyMessage = ['_' => 'receivedNotifyMessage', 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "receivedNotifyMessage", "id": int} +``` + + +Or, if you're into Lua: + +```lua +receivedNotifyMessage={_='receivedNotifyMessage', id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/recentMeUrlChat.md b/old_docs/API_docs_v91/constructors/recentMeUrlChat.md new file mode 100644 index 00000000..530a8bfa --- /dev/null +++ b/old_docs/API_docs_v91/constructors/recentMeUrlChat.md @@ -0,0 +1,45 @@ +--- +title: recentMeUrlChat +description: Recent me URL chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: recentMeUrlChat +[Back to constructors index](index.md) + + + +Recent me URL chat + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| + + + +### Type: [RecentMeUrl](../types/RecentMeUrl.md) + + +### Example: + +```php +$recentMeUrlChat = ['_' => 'recentMeUrlChat', 'url' => 'string', 'chat_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "recentMeUrlChat", "url": "string", "chat_id": int} +``` + + +Or, if you're into Lua: + +```lua +recentMeUrlChat={_='recentMeUrlChat', url='string', chat_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/recentMeUrlChatInvite.md b/old_docs/API_docs_v91/constructors/recentMeUrlChatInvite.md new file mode 100644 index 00000000..e1e9f4f5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/recentMeUrlChatInvite.md @@ -0,0 +1,45 @@ +--- +title: recentMeUrlChatInvite +description: Recent me URL chat invite +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: recentMeUrlChatInvite +[Back to constructors index](index.md) + + + +Recent me URL chat invite + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|chat\_invite|[ChatInvite](../types/ChatInvite.md) | Optional|Chat invite| + + + +### Type: [RecentMeUrl](../types/RecentMeUrl.md) + + +### Example: + +```php +$recentMeUrlChatInvite = ['_' => 'recentMeUrlChatInvite', 'url' => 'string', 'chat_invite' => ChatInvite]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "recentMeUrlChatInvite", "url": "string", "chat_invite": ChatInvite} +``` + + +Or, if you're into Lua: + +```lua +recentMeUrlChatInvite={_='recentMeUrlChatInvite', url='string', chat_invite=ChatInvite} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/recentMeUrlStickerSet.md b/old_docs/API_docs_v91/constructors/recentMeUrlStickerSet.md new file mode 100644 index 00000000..f3a39f67 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/recentMeUrlStickerSet.md @@ -0,0 +1,45 @@ +--- +title: recentMeUrlStickerSet +description: Recent me URL sticker set +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: recentMeUrlStickerSet +[Back to constructors index](index.md) + + + +Recent me URL sticker set + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|set|[StickerSetCovered](../types/StickerSetCovered.md) | Yes|Set| + + + +### Type: [RecentMeUrl](../types/RecentMeUrl.md) + + +### Example: + +```php +$recentMeUrlStickerSet = ['_' => 'recentMeUrlStickerSet', 'url' => 'string', 'set' => StickerSetCovered]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "recentMeUrlStickerSet", "url": "string", "set": StickerSetCovered} +``` + + +Or, if you're into Lua: + +```lua +recentMeUrlStickerSet={_='recentMeUrlStickerSet', url='string', set=StickerSetCovered} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/recentMeUrlUnknown.md b/old_docs/API_docs_v91/constructors/recentMeUrlUnknown.md new file mode 100644 index 00000000..06a4d370 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/recentMeUrlUnknown.md @@ -0,0 +1,44 @@ +--- +title: recentMeUrlUnknown +description: Recent me URL unknown +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: recentMeUrlUnknown +[Back to constructors index](index.md) + + + +Recent me URL unknown + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| + + + +### Type: [RecentMeUrl](../types/RecentMeUrl.md) + + +### Example: + +```php +$recentMeUrlUnknown = ['_' => 'recentMeUrlUnknown', 'url' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "recentMeUrlUnknown", "url": "string"} +``` + + +Or, if you're into Lua: + +```lua +recentMeUrlUnknown={_='recentMeUrlUnknown', url='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/recentMeUrlUser.md b/old_docs/API_docs_v91/constructors/recentMeUrlUser.md new file mode 100644 index 00000000..7cb008dd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/recentMeUrlUser.md @@ -0,0 +1,45 @@ +--- +title: recentMeUrlUser +description: Recent me URL user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: recentMeUrlUser +[Back to constructors index](index.md) + + + +Recent me URL user + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|user\_id|[int](../types/int.md) | Yes|User ID| + + + +### Type: [RecentMeUrl](../types/RecentMeUrl.md) + + +### Example: + +```php +$recentMeUrlUser = ['_' => 'recentMeUrlUser', 'url' => 'string', 'user_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "recentMeUrlUser", "url": "string", "user_id": int} +``` + + +Or, if you're into Lua: + +```lua +recentMeUrlUser={_='recentMeUrlUser', url='string', user_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/replyInlineMarkup.md b/old_docs/API_docs_v91/constructors/replyInlineMarkup.md new file mode 100644 index 00000000..522da0af --- /dev/null +++ b/old_docs/API_docs_v91/constructors/replyInlineMarkup.md @@ -0,0 +1,44 @@ +--- +title: replyInlineMarkup +description: Reply inline markup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: replyInlineMarkup +[Back to constructors index](index.md) + + + +Reply inline markup + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|rows|Array of [KeyboardButtonRow](../types/KeyboardButtonRow.md) | Yes|Rows| + + + +### Type: [ReplyMarkup](../types/ReplyMarkup.md) + + +### Example: + +```php +$replyInlineMarkup = ['_' => 'replyInlineMarkup', 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "replyInlineMarkup", "rows": [KeyboardButtonRow]} +``` + + +Or, if you're into Lua: + +```lua +replyInlineMarkup={_='replyInlineMarkup', rows={KeyboardButtonRow}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/replyKeyboardForceReply.md b/old_docs/API_docs_v91/constructors/replyKeyboardForceReply.md new file mode 100644 index 00000000..f42e1749 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/replyKeyboardForceReply.md @@ -0,0 +1,45 @@ +--- +title: replyKeyboardForceReply +description: Reply keyboard force reply +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: replyKeyboardForceReply +[Back to constructors index](index.md) + + + +Reply keyboard force reply + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|single\_use|[Bool](../types/Bool.md) | Optional|Single use?| +|selective|[Bool](../types/Bool.md) | Optional|Selective?| + + + +### Type: [ReplyMarkup](../types/ReplyMarkup.md) + + +### Example: + +```php +$replyKeyboardForceReply = ['_' => 'replyKeyboardForceReply', 'single_use' => Bool, 'selective' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "replyKeyboardForceReply", "single_use": Bool, "selective": Bool} +``` + + +Or, if you're into Lua: + +```lua +replyKeyboardForceReply={_='replyKeyboardForceReply', single_use=Bool, selective=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/replyKeyboardHide.md b/old_docs/API_docs_v91/constructors/replyKeyboardHide.md new file mode 100644 index 00000000..d60e8144 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/replyKeyboardHide.md @@ -0,0 +1,44 @@ +--- +title: replyKeyboardHide +description: Reply keyboard hide +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: replyKeyboardHide +[Back to constructors index](index.md) + + + +Reply keyboard hide + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|selective|[Bool](../types/Bool.md) | Optional|Selective?| + + + +### Type: [ReplyMarkup](../types/ReplyMarkup.md) + + +### Example: + +```php +$replyKeyboardHide = ['_' => 'replyKeyboardHide', 'selective' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "replyKeyboardHide", "selective": Bool} +``` + + +Or, if you're into Lua: + +```lua +replyKeyboardHide={_='replyKeyboardHide', selective=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/replyKeyboardMarkup.md b/old_docs/API_docs_v91/constructors/replyKeyboardMarkup.md new file mode 100644 index 00000000..9fd2dd32 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/replyKeyboardMarkup.md @@ -0,0 +1,47 @@ +--- +title: replyKeyboardMarkup +description: Reply keyboard markup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: replyKeyboardMarkup +[Back to constructors index](index.md) + + + +Reply keyboard markup + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|resize|[Bool](../types/Bool.md) | Optional|Resize?| +|single\_use|[Bool](../types/Bool.md) | Optional|Single use?| +|selective|[Bool](../types/Bool.md) | Optional|Selective?| +|rows|Array of [KeyboardButtonRow](../types/KeyboardButtonRow.md) | Yes|Rows| + + + +### Type: [ReplyMarkup](../types/ReplyMarkup.md) + + +### Example: + +```php +$replyKeyboardMarkup = ['_' => 'replyKeyboardMarkup', 'resize' => Bool, 'single_use' => Bool, 'selective' => Bool, 'rows' => [KeyboardButtonRow, KeyboardButtonRow]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "replyKeyboardMarkup", "resize": Bool, "single_use": Bool, "selective": Bool, "rows": [KeyboardButtonRow]} +``` + + +Or, if you're into Lua: + +```lua +replyKeyboardMarkup={_='replyKeyboardMarkup', resize=Bool, single_use=Bool, selective=Bool, rows={KeyboardButtonRow}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/savedPhoneContact.md b/old_docs/API_docs_v91/constructors/savedPhoneContact.md new file mode 100644 index 00000000..c268e2db --- /dev/null +++ b/old_docs/API_docs_v91/constructors/savedPhoneContact.md @@ -0,0 +1,47 @@ +--- +title: savedPhoneContact +description: Saved phone contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: savedPhoneContact +[Back to constructors index](index.md) + + + +Saved phone contact + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone|[string](../types/string.md) | Yes|Phone| +|first\_name|[string](../types/string.md) | Yes|First name| +|last\_name|[string](../types/string.md) | Yes|Last name| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [SavedContact](../types/SavedContact.md) + + +### Example: + +```php +$savedPhoneContact = ['_' => 'savedPhoneContact', 'phone' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "savedPhoneContact", "phone": "string", "first_name": "string", "last_name": "string", "date": int} +``` + + +Or, if you're into Lua: + +```lua +savedPhoneContact={_='savedPhoneContact', phone='string', first_name='string', last_name='string', date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureCredentialsEncrypted.md b/old_docs/API_docs_v91/constructors/secureCredentialsEncrypted.md new file mode 100644 index 00000000..4820b9fa --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureCredentialsEncrypted.md @@ -0,0 +1,46 @@ +--- +title: secureCredentialsEncrypted +description: Secure credentials encrypted +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureCredentialsEncrypted +[Back to constructors index](index.md) + + + +Secure credentials encrypted + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|data|[bytes](../types/bytes.md) | Yes|Data| +|hash|[bytes](../types/bytes.md) | Yes|Hash| +|secret|[bytes](../types/bytes.md) | Yes|Secret| + + + +### Type: [SecureCredentialsEncrypted](../types/SecureCredentialsEncrypted.md) + + +### Example: + +```php +$secureCredentialsEncrypted = ['_' => 'secureCredentialsEncrypted', 'data' => 'bytes', 'hash' => 'bytes', 'secret' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureCredentialsEncrypted", "data": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "secret": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +secureCredentialsEncrypted={_='secureCredentialsEncrypted', data='bytes', hash='bytes', secret='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureData.md b/old_docs/API_docs_v91/constructors/secureData.md new file mode 100644 index 00000000..7fc5f1fa --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureData.md @@ -0,0 +1,46 @@ +--- +title: secureData +description: Secure data +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureData +[Back to constructors index](index.md) + + + +Secure data + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|data|[bytes](../types/bytes.md) | Yes|Data| +|data\_hash|[bytes](../types/bytes.md) | Yes|Data hash| +|secret|[bytes](../types/bytes.md) | Yes|Secret| + + + +### Type: [SecureData](../types/SecureData.md) + + +### Example: + +```php +$secureData = ['_' => 'secureData', 'data' => 'bytes', 'data_hash' => 'bytes', 'secret' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureData", "data": {"_": "bytes", "bytes":"base64 encoded bytes"}, "data_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "secret": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +secureData={_='secureData', data='bytes', data_hash='bytes', secret='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureFile.md b/old_docs/API_docs_v91/constructors/secureFile.md new file mode 100644 index 00000000..7739d725 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureFile.md @@ -0,0 +1,50 @@ +--- +title: secureFile +description: Secure file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureFile +[Back to constructors index](index.md) + + + +Secure file + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|size|[int](../types/int.md) | Yes|Size| +|dc\_id|[int](../types/int.md) | Yes|DC ID| +|date|[int](../types/int.md) | Yes|Date| +|file\_hash|[bytes](../types/bytes.md) | Yes|File hash| +|secret|[bytes](../types/bytes.md) | Yes|Secret| + + + +### Type: [SecureFile](../types/SecureFile.md) + + +### Example: + +```php +$secureFile = ['_' => 'secureFile', 'id' => long, 'access_hash' => long, 'size' => int, 'dc_id' => int, 'date' => int, 'file_hash' => 'bytes', 'secret' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureFile", "id": long, "access_hash": long, "size": int, "dc_id": int, "date": int, "file_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "secret": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +secureFile={_='secureFile', id=long, access_hash=long, size=int, dc_id=int, date=int, file_hash='bytes', secret='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureFileEmpty.md b/old_docs/API_docs_v91/constructors/secureFileEmpty.md new file mode 100644 index 00000000..5f6e3688 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureFileEmpty.md @@ -0,0 +1,39 @@ +--- +title: secureFileEmpty +description: Empty secure file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureFileEmpty +[Back to constructors index](index.md) + + + +Empty secure file + + + + +### Type: [SecureFile](../types/SecureFile.md) + + +### Example: + +```php +$secureFileEmpty = ['_' => 'secureFileEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureFileEmpty"} +``` + + +Or, if you're into Lua: + +```lua +secureFileEmpty={_='secureFileEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.md b/old_docs/API_docs_v91/constructors/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.md new file mode 100644 index 00000000..72369f9b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.md @@ -0,0 +1,44 @@ +--- +title: securePasswordKdfAlgoPBKDF2HMACSHA512iter100000 +description: Secure password kdf algo pbkdf2hmacsh a512iter100000 +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: securePasswordKdfAlgoPBKDF2HMACSHA512iter100000 +[Back to constructors index](index.md) + + + +Secure password kdf algo pbkdf2hmacsh a512iter100000 + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|salt|[bytes](../types/bytes.md) | Yes|Salt| + + + +### Type: [SecurePasswordKdfAlgo](../types/SecurePasswordKdfAlgo.md) + + +### Example: + +```php +$securePasswordKdfAlgoPBKDF2HMACSHA512iter100000 = ['_' => 'securePasswordKdfAlgoPBKDF2HMACSHA512iter100000', 'salt' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "securePasswordKdfAlgoPBKDF2HMACSHA512iter100000", "salt": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +securePasswordKdfAlgoPBKDF2HMACSHA512iter100000={_='securePasswordKdfAlgoPBKDF2HMACSHA512iter100000', salt='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/securePasswordKdfAlgoSHA512.md b/old_docs/API_docs_v91/constructors/securePasswordKdfAlgoSHA512.md new file mode 100644 index 00000000..ed340f32 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/securePasswordKdfAlgoSHA512.md @@ -0,0 +1,44 @@ +--- +title: securePasswordKdfAlgoSHA512 +description: Secure password kdf algo sha512 +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: securePasswordKdfAlgoSHA512 +[Back to constructors index](index.md) + + + +Secure password kdf algo sha512 + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|salt|[bytes](../types/bytes.md) | Yes|Salt| + + + +### Type: [SecurePasswordKdfAlgo](../types/SecurePasswordKdfAlgo.md) + + +### Example: + +```php +$securePasswordKdfAlgoSHA512 = ['_' => 'securePasswordKdfAlgoSHA512', 'salt' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "securePasswordKdfAlgoSHA512", "salt": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +securePasswordKdfAlgoSHA512={_='securePasswordKdfAlgoSHA512', salt='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/securePasswordKdfAlgoUnknown.md b/old_docs/API_docs_v91/constructors/securePasswordKdfAlgoUnknown.md new file mode 100644 index 00000000..c7ce500d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/securePasswordKdfAlgoUnknown.md @@ -0,0 +1,39 @@ +--- +title: securePasswordKdfAlgoUnknown +description: Secure password kdf algo unknown +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: securePasswordKdfAlgoUnknown +[Back to constructors index](index.md) + + + +Secure password kdf algo unknown + + + + +### Type: [SecurePasswordKdfAlgo](../types/SecurePasswordKdfAlgo.md) + + +### Example: + +```php +$securePasswordKdfAlgoUnknown = ['_' => 'securePasswordKdfAlgoUnknown']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "securePasswordKdfAlgoUnknown"} +``` + + +Or, if you're into Lua: + +```lua +securePasswordKdfAlgoUnknown={_='securePasswordKdfAlgoUnknown'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/securePlainEmail.md b/old_docs/API_docs_v91/constructors/securePlainEmail.md new file mode 100644 index 00000000..1cc3a039 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/securePlainEmail.md @@ -0,0 +1,44 @@ +--- +title: securePlainEmail +description: Secure plain email +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: securePlainEmail +[Back to constructors index](index.md) + + + +Secure plain email + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|email|[string](../types/string.md) | Yes|Email| + + + +### Type: [SecurePlainData](../types/SecurePlainData.md) + + +### Example: + +```php +$securePlainEmail = ['_' => 'securePlainEmail', 'email' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "securePlainEmail", "email": "string"} +``` + + +Or, if you're into Lua: + +```lua +securePlainEmail={_='securePlainEmail', email='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/securePlainPhone.md b/old_docs/API_docs_v91/constructors/securePlainPhone.md new file mode 100644 index 00000000..79156a7a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/securePlainPhone.md @@ -0,0 +1,44 @@ +--- +title: securePlainPhone +description: Secure plain phone +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: securePlainPhone +[Back to constructors index](index.md) + + + +Secure plain phone + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone|[string](../types/string.md) | Yes|Phone| + + + +### Type: [SecurePlainData](../types/SecurePlainData.md) + + +### Example: + +```php +$securePlainPhone = ['_' => 'securePlainPhone', 'phone' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "securePlainPhone", "phone": "string"} +``` + + +Or, if you're into Lua: + +```lua +securePlainPhone={_='securePlainPhone', phone='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureRequiredType.md b/old_docs/API_docs_v91/constructors/secureRequiredType.md new file mode 100644 index 00000000..c4a9128c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureRequiredType.md @@ -0,0 +1,47 @@ +--- +title: secureRequiredType +description: Secure required type +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureRequiredType +[Back to constructors index](index.md) + + + +Secure required type + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|native\_names|[Bool](../types/Bool.md) | Optional|Native names?| +|selfie\_required|[Bool](../types/Bool.md) | Optional|Selfie required?| +|translation\_required|[Bool](../types/Bool.md) | Optional|Translation required?| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| + + + +### Type: [SecureRequiredType](../types/SecureRequiredType.md) + + +### Example: + +```php +$secureRequiredType = ['_' => 'secureRequiredType', 'native_names' => Bool, 'selfie_required' => Bool, 'translation_required' => Bool, 'type' => SecureValueType]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureRequiredType", "native_names": Bool, "selfie_required": Bool, "translation_required": Bool, "type": SecureValueType} +``` + + +Or, if you're into Lua: + +```lua +secureRequiredType={_='secureRequiredType', native_names=Bool, selfie_required=Bool, translation_required=Bool, type=SecureValueType} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureRequiredTypeOneOf.md b/old_docs/API_docs_v91/constructors/secureRequiredTypeOneOf.md new file mode 100644 index 00000000..3c065237 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureRequiredTypeOneOf.md @@ -0,0 +1,44 @@ +--- +title: secureRequiredTypeOneOf +description: Secure required type one of +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureRequiredTypeOneOf +[Back to constructors index](index.md) + + + +Secure required type one of + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|types|Array of [SecureRequiredType](../types/SecureRequiredType.md) | Yes|Types| + + + +### Type: [SecureRequiredType](../types/SecureRequiredType.md) + + +### Example: + +```php +$secureRequiredTypeOneOf = ['_' => 'secureRequiredTypeOneOf', 'types' => [SecureRequiredType, SecureRequiredType]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureRequiredTypeOneOf", "types": [SecureRequiredType]} +``` + + +Or, if you're into Lua: + +```lua +secureRequiredTypeOneOf={_='secureRequiredTypeOneOf', types={SecureRequiredType}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureSecretSettings.md b/old_docs/API_docs_v91/constructors/secureSecretSettings.md new file mode 100644 index 00000000..0facec08 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureSecretSettings.md @@ -0,0 +1,46 @@ +--- +title: secureSecretSettings +description: Secure secret settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureSecretSettings +[Back to constructors index](index.md) + + + +Secure secret settings + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|secure\_algo|[SecurePasswordKdfAlgo](../types/SecurePasswordKdfAlgo.md) | Yes|Secure algo| +|secure\_secret|[bytes](../types/bytes.md) | Yes|Secure secret| +|secure\_secret\_id|[long](../types/long.md) | Yes|Secure secret ID| + + + +### Type: [SecureSecretSettings](../types/SecureSecretSettings.md) + + +### Example: + +```php +$secureSecretSettings = ['_' => 'secureSecretSettings', 'secure_algo' => SecurePasswordKdfAlgo, 'secure_secret' => 'bytes', 'secure_secret_id' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureSecretSettings", "secure_algo": SecurePasswordKdfAlgo, "secure_secret": {"_": "bytes", "bytes":"base64 encoded bytes"}, "secure_secret_id": long} +``` + + +Or, if you're into Lua: + +```lua +secureSecretSettings={_='secureSecretSettings', secure_algo=SecurePasswordKdfAlgo, secure_secret='bytes', secure_secret_id=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValue.md b/old_docs/API_docs_v91/constructors/secureValue.md new file mode 100644 index 00000000..e107231b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValue.md @@ -0,0 +1,52 @@ +--- +title: secureValue +description: Secure value +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValue +[Back to constructors index](index.md) + + + +Secure value + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|data|[SecureData](../types/SecureData.md) | Optional|Data| +|front\_side|[SecureFile](../types/SecureFile.md) | Optional|Front side| +|reverse\_side|[SecureFile](../types/SecureFile.md) | Optional|Reverse side| +|selfie|[SecureFile](../types/SecureFile.md) | Optional|Selfie| +|translation|Array of [SecureFile](../types/SecureFile.md) | Optional|Translation| +|files|Array of [SecureFile](../types/SecureFile.md) | Optional|Files| +|plain\_data|[SecurePlainData](../types/SecurePlainData.md) | Optional|Plain data| +|hash|[bytes](../types/bytes.md) | Yes|Hash| + + + +### Type: [SecureValue](../types/SecureValue.md) + + +### Example: + +```php +$secureValue = ['_' => 'secureValue', 'type' => SecureValueType, 'data' => SecureData, 'front_side' => SecureFile, 'reverse_side' => SecureFile, 'selfie' => SecureFile, 'translation' => [SecureFile, SecureFile], 'files' => [SecureFile, SecureFile], 'plain_data' => SecurePlainData, 'hash' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValue", "type": SecureValueType, "data": SecureData, "front_side": SecureFile, "reverse_side": SecureFile, "selfie": SecureFile, "translation": [SecureFile], "files": [SecureFile], "plain_data": SecurePlainData, "hash": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +secureValue={_='secureValue', type=SecureValueType, data=SecureData, front_side=SecureFile, reverse_side=SecureFile, selfie=SecureFile, translation={SecureFile}, files={SecureFile}, plain_data=SecurePlainData, hash='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueError.md b/old_docs/API_docs_v91/constructors/secureValueError.md new file mode 100644 index 00000000..89b6edbe --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueError.md @@ -0,0 +1,46 @@ +--- +title: secureValueError +description: Secure value error +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueError +[Back to constructors index](index.md) + + + +Secure value error + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|hash|[bytes](../types/bytes.md) | Yes|Hash| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [SecureValueError](../types/SecureValueError.md) + + +### Example: + +```php +$secureValueError = ['_' => 'secureValueError', 'type' => SecureValueType, 'hash' => 'bytes', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueError", "type": SecureValueType, "hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +secureValueError={_='secureValueError', type=SecureValueType, hash='bytes', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueErrorData.md b/old_docs/API_docs_v91/constructors/secureValueErrorData.md new file mode 100644 index 00000000..dd3852e5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueErrorData.md @@ -0,0 +1,47 @@ +--- +title: secureValueErrorData +description: Secure value error data +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueErrorData +[Back to constructors index](index.md) + + + +Secure value error data + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|data\_hash|[bytes](../types/bytes.md) | Yes|Data hash| +|field|[string](../types/string.md) | Yes|Field| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [SecureValueError](../types/SecureValueError.md) + + +### Example: + +```php +$secureValueErrorData = ['_' => 'secureValueErrorData', 'type' => SecureValueType, 'data_hash' => 'bytes', 'field' => 'string', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueErrorData", "type": SecureValueType, "data_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "field": "string", "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +secureValueErrorData={_='secureValueErrorData', type=SecureValueType, data_hash='bytes', field='string', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueErrorFile.md b/old_docs/API_docs_v91/constructors/secureValueErrorFile.md new file mode 100644 index 00000000..57a5f095 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueErrorFile.md @@ -0,0 +1,46 @@ +--- +title: secureValueErrorFile +description: Secure value error file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueErrorFile +[Back to constructors index](index.md) + + + +Secure value error file + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|file\_hash|[bytes](../types/bytes.md) | Yes|File hash| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [SecureValueError](../types/SecureValueError.md) + + +### Example: + +```php +$secureValueErrorFile = ['_' => 'secureValueErrorFile', 'type' => SecureValueType, 'file_hash' => 'bytes', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueErrorFile", "type": SecureValueType, "file_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +secureValueErrorFile={_='secureValueErrorFile', type=SecureValueType, file_hash='bytes', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueErrorFiles.md b/old_docs/API_docs_v91/constructors/secureValueErrorFiles.md new file mode 100644 index 00000000..45727e12 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueErrorFiles.md @@ -0,0 +1,46 @@ +--- +title: secureValueErrorFiles +description: Secure value error files +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueErrorFiles +[Back to constructors index](index.md) + + + +Secure value error files + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|file\_hash|Array of [bytes](../types/bytes.md) | Yes|File hash| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [SecureValueError](../types/SecureValueError.md) + + +### Example: + +```php +$secureValueErrorFiles = ['_' => 'secureValueErrorFiles', 'type' => SecureValueType, 'file_hash' => ['bytes', 'bytes'], 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueErrorFiles", "type": SecureValueType, "file_hash": [{"_": "bytes", "bytes":"base64 encoded bytes"}], "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +secureValueErrorFiles={_='secureValueErrorFiles', type=SecureValueType, file_hash={'bytes'}, text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueErrorFrontSide.md b/old_docs/API_docs_v91/constructors/secureValueErrorFrontSide.md new file mode 100644 index 00000000..225df215 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueErrorFrontSide.md @@ -0,0 +1,46 @@ +--- +title: secureValueErrorFrontSide +description: Secure value error front side +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueErrorFrontSide +[Back to constructors index](index.md) + + + +Secure value error front side + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|file\_hash|[bytes](../types/bytes.md) | Yes|File hash| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [SecureValueError](../types/SecureValueError.md) + + +### Example: + +```php +$secureValueErrorFrontSide = ['_' => 'secureValueErrorFrontSide', 'type' => SecureValueType, 'file_hash' => 'bytes', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueErrorFrontSide", "type": SecureValueType, "file_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +secureValueErrorFrontSide={_='secureValueErrorFrontSide', type=SecureValueType, file_hash='bytes', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueErrorReverseSide.md b/old_docs/API_docs_v91/constructors/secureValueErrorReverseSide.md new file mode 100644 index 00000000..331de4e2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueErrorReverseSide.md @@ -0,0 +1,46 @@ +--- +title: secureValueErrorReverseSide +description: Secure value error reverse side +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueErrorReverseSide +[Back to constructors index](index.md) + + + +Secure value error reverse side + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|file\_hash|[bytes](../types/bytes.md) | Yes|File hash| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [SecureValueError](../types/SecureValueError.md) + + +### Example: + +```php +$secureValueErrorReverseSide = ['_' => 'secureValueErrorReverseSide', 'type' => SecureValueType, 'file_hash' => 'bytes', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueErrorReverseSide", "type": SecureValueType, "file_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +secureValueErrorReverseSide={_='secureValueErrorReverseSide', type=SecureValueType, file_hash='bytes', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueErrorSelfie.md b/old_docs/API_docs_v91/constructors/secureValueErrorSelfie.md new file mode 100644 index 00000000..06d4163a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueErrorSelfie.md @@ -0,0 +1,46 @@ +--- +title: secureValueErrorSelfie +description: Secure value error selfie +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueErrorSelfie +[Back to constructors index](index.md) + + + +Secure value error selfie + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|file\_hash|[bytes](../types/bytes.md) | Yes|File hash| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [SecureValueError](../types/SecureValueError.md) + + +### Example: + +```php +$secureValueErrorSelfie = ['_' => 'secureValueErrorSelfie', 'type' => SecureValueType, 'file_hash' => 'bytes', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueErrorSelfie", "type": SecureValueType, "file_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +secureValueErrorSelfie={_='secureValueErrorSelfie', type=SecureValueType, file_hash='bytes', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueErrorTranslationFile.md b/old_docs/API_docs_v91/constructors/secureValueErrorTranslationFile.md new file mode 100644 index 00000000..fbf1344a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueErrorTranslationFile.md @@ -0,0 +1,46 @@ +--- +title: secureValueErrorTranslationFile +description: Secure value error translation file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueErrorTranslationFile +[Back to constructors index](index.md) + + + +Secure value error translation file + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|file\_hash|[bytes](../types/bytes.md) | Yes|File hash| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [SecureValueError](../types/SecureValueError.md) + + +### Example: + +```php +$secureValueErrorTranslationFile = ['_' => 'secureValueErrorTranslationFile', 'type' => SecureValueType, 'file_hash' => 'bytes', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueErrorTranslationFile", "type": SecureValueType, "file_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +secureValueErrorTranslationFile={_='secureValueErrorTranslationFile', type=SecureValueType, file_hash='bytes', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueErrorTranslationFiles.md b/old_docs/API_docs_v91/constructors/secureValueErrorTranslationFiles.md new file mode 100644 index 00000000..a4008eed --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueErrorTranslationFiles.md @@ -0,0 +1,46 @@ +--- +title: secureValueErrorTranslationFiles +description: Secure value error translation files +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueErrorTranslationFiles +[Back to constructors index](index.md) + + + +Secure value error translation files + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|file\_hash|Array of [bytes](../types/bytes.md) | Yes|File hash| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [SecureValueError](../types/SecureValueError.md) + + +### Example: + +```php +$secureValueErrorTranslationFiles = ['_' => 'secureValueErrorTranslationFiles', 'type' => SecureValueType, 'file_hash' => ['bytes', 'bytes'], 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueErrorTranslationFiles", "type": SecureValueType, "file_hash": [{"_": "bytes", "bytes":"base64 encoded bytes"}], "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +secureValueErrorTranslationFiles={_='secureValueErrorTranslationFiles', type=SecureValueType, file_hash={'bytes'}, text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueHash.md b/old_docs/API_docs_v91/constructors/secureValueHash.md new file mode 100644 index 00000000..2cc0df36 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueHash.md @@ -0,0 +1,45 @@ +--- +title: secureValueHash +description: Secure value hash +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueHash +[Back to constructors index](index.md) + + + +Secure value hash + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[SecureValueType](../types/SecureValueType.md) | Yes|Type| +|hash|[bytes](../types/bytes.md) | Yes|Hash| + + + +### Type: [SecureValueHash](../types/SecureValueHash.md) + + +### Example: + +```php +$secureValueHash = ['_' => 'secureValueHash', 'type' => SecureValueType, 'hash' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueHash", "type": SecureValueType, "hash": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +secureValueHash={_='secureValueHash', type=SecureValueType, hash='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypeAddress.md b/old_docs/API_docs_v91/constructors/secureValueTypeAddress.md new file mode 100644 index 00000000..fde6b05d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypeAddress.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypeAddress +description: Secure value type address +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypeAddress +[Back to constructors index](index.md) + + + +Secure value type address + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypeAddress = ['_' => 'secureValueTypeAddress']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypeAddress"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypeAddress={_='secureValueTypeAddress'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypeBankStatement.md b/old_docs/API_docs_v91/constructors/secureValueTypeBankStatement.md new file mode 100644 index 00000000..cdb6284e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypeBankStatement.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypeBankStatement +description: Secure value type bank statement +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypeBankStatement +[Back to constructors index](index.md) + + + +Secure value type bank statement + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypeBankStatement = ['_' => 'secureValueTypeBankStatement']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypeBankStatement"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypeBankStatement={_='secureValueTypeBankStatement'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypeDriverLicense.md b/old_docs/API_docs_v91/constructors/secureValueTypeDriverLicense.md new file mode 100644 index 00000000..a97b87d1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypeDriverLicense.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypeDriverLicense +description: Secure value type driver license +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypeDriverLicense +[Back to constructors index](index.md) + + + +Secure value type driver license + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypeDriverLicense = ['_' => 'secureValueTypeDriverLicense']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypeDriverLicense"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypeDriverLicense={_='secureValueTypeDriverLicense'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypeEmail.md b/old_docs/API_docs_v91/constructors/secureValueTypeEmail.md new file mode 100644 index 00000000..fd0f4a9f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypeEmail.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypeEmail +description: Secure value type email +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypeEmail +[Back to constructors index](index.md) + + + +Secure value type email + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypeEmail = ['_' => 'secureValueTypeEmail']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypeEmail"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypeEmail={_='secureValueTypeEmail'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypeIdentityCard.md b/old_docs/API_docs_v91/constructors/secureValueTypeIdentityCard.md new file mode 100644 index 00000000..5af209d9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypeIdentityCard.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypeIdentityCard +description: Secure value type IDentity card +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypeIdentityCard +[Back to constructors index](index.md) + + + +Secure value type IDentity card + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypeIdentityCard = ['_' => 'secureValueTypeIdentityCard']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypeIdentityCard"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypeIdentityCard={_='secureValueTypeIdentityCard'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypeInternalPassport.md b/old_docs/API_docs_v91/constructors/secureValueTypeInternalPassport.md new file mode 100644 index 00000000..6ed980cc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypeInternalPassport.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypeInternalPassport +description: Secure value type internal passport +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypeInternalPassport +[Back to constructors index](index.md) + + + +Secure value type internal passport + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypeInternalPassport = ['_' => 'secureValueTypeInternalPassport']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypeInternalPassport"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypeInternalPassport={_='secureValueTypeInternalPassport'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypePassport.md b/old_docs/API_docs_v91/constructors/secureValueTypePassport.md new file mode 100644 index 00000000..2f956246 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypePassport.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypePassport +description: Secure value type passport +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypePassport +[Back to constructors index](index.md) + + + +Secure value type passport + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypePassport = ['_' => 'secureValueTypePassport']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypePassport"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypePassport={_='secureValueTypePassport'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypePassportRegistration.md b/old_docs/API_docs_v91/constructors/secureValueTypePassportRegistration.md new file mode 100644 index 00000000..96ecadf4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypePassportRegistration.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypePassportRegistration +description: Secure value type passport registration +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypePassportRegistration +[Back to constructors index](index.md) + + + +Secure value type passport registration + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypePassportRegistration = ['_' => 'secureValueTypePassportRegistration']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypePassportRegistration"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypePassportRegistration={_='secureValueTypePassportRegistration'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypePersonalDetails.md b/old_docs/API_docs_v91/constructors/secureValueTypePersonalDetails.md new file mode 100644 index 00000000..67d3a805 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypePersonalDetails.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypePersonalDetails +description: Secure value type personal details +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypePersonalDetails +[Back to constructors index](index.md) + + + +Secure value type personal details + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypePersonalDetails = ['_' => 'secureValueTypePersonalDetails']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypePersonalDetails"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypePersonalDetails={_='secureValueTypePersonalDetails'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypePhone.md b/old_docs/API_docs_v91/constructors/secureValueTypePhone.md new file mode 100644 index 00000000..81e9c814 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypePhone.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypePhone +description: Secure value type phone +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypePhone +[Back to constructors index](index.md) + + + +Secure value type phone + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypePhone = ['_' => 'secureValueTypePhone']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypePhone"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypePhone={_='secureValueTypePhone'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypeRentalAgreement.md b/old_docs/API_docs_v91/constructors/secureValueTypeRentalAgreement.md new file mode 100644 index 00000000..bb8e512d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypeRentalAgreement.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypeRentalAgreement +description: Secure value type rental agreement +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypeRentalAgreement +[Back to constructors index](index.md) + + + +Secure value type rental agreement + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypeRentalAgreement = ['_' => 'secureValueTypeRentalAgreement']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypeRentalAgreement"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypeRentalAgreement={_='secureValueTypeRentalAgreement'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypeTemporaryRegistration.md b/old_docs/API_docs_v91/constructors/secureValueTypeTemporaryRegistration.md new file mode 100644 index 00000000..dea8f1f3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypeTemporaryRegistration.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypeTemporaryRegistration +description: Secure value type temporary registration +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypeTemporaryRegistration +[Back to constructors index](index.md) + + + +Secure value type temporary registration + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypeTemporaryRegistration = ['_' => 'secureValueTypeTemporaryRegistration']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypeTemporaryRegistration"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypeTemporaryRegistration={_='secureValueTypeTemporaryRegistration'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/secureValueTypeUtilityBill.md b/old_docs/API_docs_v91/constructors/secureValueTypeUtilityBill.md new file mode 100644 index 00000000..e5cd908f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/secureValueTypeUtilityBill.md @@ -0,0 +1,39 @@ +--- +title: secureValueTypeUtilityBill +description: Secure value type utility bill +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: secureValueTypeUtilityBill +[Back to constructors index](index.md) + + + +Secure value type utility bill + + + + +### Type: [SecureValueType](../types/SecureValueType.md) + + +### Example: + +```php +$secureValueTypeUtilityBill = ['_' => 'secureValueTypeUtilityBill']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "secureValueTypeUtilityBill"} +``` + + +Or, if you're into Lua: + +```lua +secureValueTypeUtilityBill={_='secureValueTypeUtilityBill'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageCancelAction.md b/old_docs/API_docs_v91/constructors/sendMessageCancelAction.md new file mode 100644 index 00000000..4ba76980 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageCancelAction.md @@ -0,0 +1,39 @@ +--- +title: sendMessageCancelAction +description: Send message cancel action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageCancelAction +[Back to constructors index](index.md) + + + +Send message cancel action + + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageCancelAction = ['_' => 'sendMessageCancelAction']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageCancelAction"} +``` + + +Or, if you're into Lua: + +```lua +sendMessageCancelAction={_='sendMessageCancelAction'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageChooseContactAction.md b/old_docs/API_docs_v91/constructors/sendMessageChooseContactAction.md new file mode 100644 index 00000000..bc91ee9d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageChooseContactAction.md @@ -0,0 +1,39 @@ +--- +title: sendMessageChooseContactAction +description: Send message choose contact action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageChooseContactAction +[Back to constructors index](index.md) + + + +Send message choose contact action + + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageChooseContactAction = ['_' => 'sendMessageChooseContactAction']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageChooseContactAction"} +``` + + +Or, if you're into Lua: + +```lua +sendMessageChooseContactAction={_='sendMessageChooseContactAction'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageGamePlayAction.md b/old_docs/API_docs_v91/constructors/sendMessageGamePlayAction.md new file mode 100644 index 00000000..42ae3037 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageGamePlayAction.md @@ -0,0 +1,39 @@ +--- +title: sendMessageGamePlayAction +description: Send message game play action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageGamePlayAction +[Back to constructors index](index.md) + + + +Send message game play action + + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageGamePlayAction = ['_' => 'sendMessageGamePlayAction']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageGamePlayAction"} +``` + + +Or, if you're into Lua: + +```lua +sendMessageGamePlayAction={_='sendMessageGamePlayAction'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageGeoLocationAction.md b/old_docs/API_docs_v91/constructors/sendMessageGeoLocationAction.md new file mode 100644 index 00000000..2d1b3092 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageGeoLocationAction.md @@ -0,0 +1,39 @@ +--- +title: sendMessageGeoLocationAction +description: Send message geo location action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageGeoLocationAction +[Back to constructors index](index.md) + + + +Send message geo location action + + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageGeoLocationAction = ['_' => 'sendMessageGeoLocationAction']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageGeoLocationAction"} +``` + + +Or, if you're into Lua: + +```lua +sendMessageGeoLocationAction={_='sendMessageGeoLocationAction'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageRecordAudioAction.md b/old_docs/API_docs_v91/constructors/sendMessageRecordAudioAction.md new file mode 100644 index 00000000..d91dd595 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageRecordAudioAction.md @@ -0,0 +1,39 @@ +--- +title: sendMessageRecordAudioAction +description: Send message record audio action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageRecordAudioAction +[Back to constructors index](index.md) + + + +Send message record audio action + + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageRecordAudioAction = ['_' => 'sendMessageRecordAudioAction']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageRecordAudioAction"} +``` + + +Or, if you're into Lua: + +```lua +sendMessageRecordAudioAction={_='sendMessageRecordAudioAction'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageRecordRoundAction.md b/old_docs/API_docs_v91/constructors/sendMessageRecordRoundAction.md new file mode 100644 index 00000000..a9c9ba63 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageRecordRoundAction.md @@ -0,0 +1,39 @@ +--- +title: sendMessageRecordRoundAction +description: Send message record round action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageRecordRoundAction +[Back to constructors index](index.md) + + + +Send message record round action + + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageRecordRoundAction = ['_' => 'sendMessageRecordRoundAction']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageRecordRoundAction"} +``` + + +Or, if you're into Lua: + +```lua +sendMessageRecordRoundAction={_='sendMessageRecordRoundAction'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageRecordVideoAction.md b/old_docs/API_docs_v91/constructors/sendMessageRecordVideoAction.md new file mode 100644 index 00000000..ed9fc1ad --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageRecordVideoAction.md @@ -0,0 +1,39 @@ +--- +title: sendMessageRecordVideoAction +description: Send message record video action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageRecordVideoAction +[Back to constructors index](index.md) + + + +Send message record video action + + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageRecordVideoAction = ['_' => 'sendMessageRecordVideoAction']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageRecordVideoAction"} +``` + + +Or, if you're into Lua: + +```lua +sendMessageRecordVideoAction={_='sendMessageRecordVideoAction'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageTypingAction.md b/old_docs/API_docs_v91/constructors/sendMessageTypingAction.md new file mode 100644 index 00000000..55084042 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageTypingAction.md @@ -0,0 +1,39 @@ +--- +title: sendMessageTypingAction +description: Send message typing action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageTypingAction +[Back to constructors index](index.md) + + + +Send message typing action + + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageTypingAction = ['_' => 'sendMessageTypingAction']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageTypingAction"} +``` + + +Or, if you're into Lua: + +```lua +sendMessageTypingAction={_='sendMessageTypingAction'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageUploadAudioAction.md b/old_docs/API_docs_v91/constructors/sendMessageUploadAudioAction.md new file mode 100644 index 00000000..8627ea28 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageUploadAudioAction.md @@ -0,0 +1,44 @@ +--- +title: sendMessageUploadAudioAction +description: Send message upload audio action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageUploadAudioAction +[Back to constructors index](index.md) + + + +Send message upload audio action + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|progress|[int](../types/int.md) | Yes|Progress| + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageUploadAudioAction = ['_' => 'sendMessageUploadAudioAction', 'progress' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageUploadAudioAction", "progress": int} +``` + + +Or, if you're into Lua: + +```lua +sendMessageUploadAudioAction={_='sendMessageUploadAudioAction', progress=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageUploadDocumentAction.md b/old_docs/API_docs_v91/constructors/sendMessageUploadDocumentAction.md new file mode 100644 index 00000000..ec9f9bfb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageUploadDocumentAction.md @@ -0,0 +1,44 @@ +--- +title: sendMessageUploadDocumentAction +description: Send message upload document action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageUploadDocumentAction +[Back to constructors index](index.md) + + + +Send message upload document action + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|progress|[int](../types/int.md) | Yes|Progress| + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageUploadDocumentAction = ['_' => 'sendMessageUploadDocumentAction', 'progress' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageUploadDocumentAction", "progress": int} +``` + + +Or, if you're into Lua: + +```lua +sendMessageUploadDocumentAction={_='sendMessageUploadDocumentAction', progress=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageUploadPhotoAction.md b/old_docs/API_docs_v91/constructors/sendMessageUploadPhotoAction.md new file mode 100644 index 00000000..8f2467f5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageUploadPhotoAction.md @@ -0,0 +1,44 @@ +--- +title: sendMessageUploadPhotoAction +description: Send message upload photo action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageUploadPhotoAction +[Back to constructors index](index.md) + + + +Send message upload photo action + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|progress|[int](../types/int.md) | Yes|Progress| + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageUploadPhotoAction = ['_' => 'sendMessageUploadPhotoAction', 'progress' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageUploadPhotoAction", "progress": int} +``` + + +Or, if you're into Lua: + +```lua +sendMessageUploadPhotoAction={_='sendMessageUploadPhotoAction', progress=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageUploadRoundAction.md b/old_docs/API_docs_v91/constructors/sendMessageUploadRoundAction.md new file mode 100644 index 00000000..b4764f6a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageUploadRoundAction.md @@ -0,0 +1,44 @@ +--- +title: sendMessageUploadRoundAction +description: Send message upload round action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageUploadRoundAction +[Back to constructors index](index.md) + + + +Send message upload round action + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|progress|[int](../types/int.md) | Yes|Progress| + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageUploadRoundAction = ['_' => 'sendMessageUploadRoundAction', 'progress' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageUploadRoundAction", "progress": int} +``` + + +Or, if you're into Lua: + +```lua +sendMessageUploadRoundAction={_='sendMessageUploadRoundAction', progress=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/sendMessageUploadVideoAction.md b/old_docs/API_docs_v91/constructors/sendMessageUploadVideoAction.md new file mode 100644 index 00000000..a9d9cddd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/sendMessageUploadVideoAction.md @@ -0,0 +1,44 @@ +--- +title: sendMessageUploadVideoAction +description: Send message upload video action +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: sendMessageUploadVideoAction +[Back to constructors index](index.md) + + + +Send message upload video action + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|progress|[int](../types/int.md) | Yes|Progress| + + + +### Type: [SendMessageAction](../types/SendMessageAction.md) + + +### Example: + +```php +$sendMessageUploadVideoAction = ['_' => 'sendMessageUploadVideoAction', 'progress' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "sendMessageUploadVideoAction", "progress": int} +``` + + +Or, if you're into Lua: + +```lua +sendMessageUploadVideoAction={_='sendMessageUploadVideoAction', progress=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/shippingOption.md b/old_docs/API_docs_v91/constructors/shippingOption.md new file mode 100644 index 00000000..158a0fb6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/shippingOption.md @@ -0,0 +1,46 @@ +--- +title: shippingOption +description: Shipping option +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: shippingOption +[Back to constructors index](index.md) + + + +Shipping option + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[string](../types/string.md) | Yes|ID| +|title|[string](../types/string.md) | Yes|Title| +|prices|Array of [LabeledPrice](../types/LabeledPrice.md) | Yes|Prices| + + + +### Type: [ShippingOption](../types/ShippingOption.md) + + +### Example: + +```php +$shippingOption = ['_' => 'shippingOption', 'id' => 'string', 'title' => 'string', 'prices' => [LabeledPrice, LabeledPrice]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "shippingOption", "id": "string", "title": "string", "prices": [LabeledPrice]} +``` + + +Or, if you're into Lua: + +```lua +shippingOption={_='shippingOption', id='string', title='string', prices={LabeledPrice}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/statsURL.md b/old_docs/API_docs_v91/constructors/statsURL.md new file mode 100644 index 00000000..84ce87c1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/statsURL.md @@ -0,0 +1,44 @@ +--- +title: statsURL +description: Stats URL +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: statsURL +[Back to constructors index](index.md) + + + +Stats URL + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| + + + +### Type: [StatsURL](../types/StatsURL.md) + + +### Example: + +```php +$statsURL = ['_' => 'statsURL', 'url' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "statsURL", "url": "string"} +``` + + +Or, if you're into Lua: + +```lua +statsURL={_='statsURL', url='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/stickerPack.md b/old_docs/API_docs_v91/constructors/stickerPack.md new file mode 100644 index 00000000..4b05cd1d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/stickerPack.md @@ -0,0 +1,45 @@ +--- +title: stickerPack +description: Sticker pack +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: stickerPack +[Back to constructors index](index.md) + + + +Sticker pack + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|emoticon|[string](../types/string.md) | Yes|Emoticon| +|documents|Array of [long](../types/long.md) | Yes|Documents| + + + +### Type: [StickerPack](../types/StickerPack.md) + + +### Example: + +```php +$stickerPack = ['_' => 'stickerPack', 'emoticon' => 'string', 'documents' => [long, long]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "stickerPack", "emoticon": "string", "documents": [long]} +``` + + +Or, if you're into Lua: + +```lua +stickerPack={_='stickerPack', emoticon='string', documents={long}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/stickerSet.md b/old_docs/API_docs_v91/constructors/stickerSet.md new file mode 100644 index 00000000..0baa6db6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/stickerSet.md @@ -0,0 +1,53 @@ +--- +title: stickerSet +description: Sticker set +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: stickerSet +[Back to constructors index](index.md) + + + +Sticker set + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|archived|[Bool](../types/Bool.md) | Optional|Archived?| +|official|[Bool](../types/Bool.md) | Optional|Official?| +|masks|[Bool](../types/Bool.md) | Optional|Masks?| +|installed\_date|[int](../types/int.md) | Optional|Installed date| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|title|[string](../types/string.md) | Yes|Title| +|short\_name|[string](../types/string.md) | Yes|Short name| +|count|[int](../types/int.md) | Yes|Count| +|hash|[int](../types/int.md) | Yes|Hash| + + + +### Type: [StickerSet](../types/StickerSet.md) + + +### Example: + +```php +$stickerSet = ['_' => 'stickerSet', 'archived' => Bool, 'official' => Bool, 'masks' => Bool, 'installed_date' => int, 'id' => long, 'access_hash' => long, 'title' => 'string', 'short_name' => 'string', 'count' => int, 'hash' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "stickerSet", "archived": Bool, "official": Bool, "masks": Bool, "installed_date": int, "id": long, "access_hash": long, "title": "string", "short_name": "string", "count": int, "hash": int} +``` + + +Or, if you're into Lua: + +```lua +stickerSet={_='stickerSet', archived=Bool, official=Bool, masks=Bool, installed_date=int, id=long, access_hash=long, title='string', short_name='string', count=int, hash=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/stickerSetCovered.md b/old_docs/API_docs_v91/constructors/stickerSetCovered.md new file mode 100644 index 00000000..3bfe7648 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/stickerSetCovered.md @@ -0,0 +1,45 @@ +--- +title: stickerSetCovered +description: Sticker set covered +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: stickerSetCovered +[Back to constructors index](index.md) + + + +Sticker set covered + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|set|[StickerSet](../types/StickerSet.md) | Yes|Set| +|cover|[Document](../types/Document.md) | Optional|Cover| + + + +### Type: [StickerSetCovered](../types/StickerSetCovered.md) + + +### Example: + +```php +$stickerSetCovered = ['_' => 'stickerSetCovered', 'set' => StickerSet, 'cover' => Document]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "stickerSetCovered", "set": StickerSet, "cover": Document} +``` + + +Or, if you're into Lua: + +```lua +stickerSetCovered={_='stickerSetCovered', set=StickerSet, cover=Document} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/stickerSetMultiCovered.md b/old_docs/API_docs_v91/constructors/stickerSetMultiCovered.md new file mode 100644 index 00000000..e4775910 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/stickerSetMultiCovered.md @@ -0,0 +1,45 @@ +--- +title: stickerSetMultiCovered +description: Sticker set multi covered +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: stickerSetMultiCovered +[Back to constructors index](index.md) + + + +Sticker set multi covered + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|set|[StickerSet](../types/StickerSet.md) | Yes|Set| +|covers|Array of [Document](../types/Document.md) | Yes|Covers| + + + +### Type: [StickerSetCovered](../types/StickerSetCovered.md) + + +### Example: + +```php +$stickerSetMultiCovered = ['_' => 'stickerSetMultiCovered', 'set' => StickerSet, 'covers' => [Document, Document]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "stickerSetMultiCovered", "set": StickerSet, "covers": [Document]} +``` + + +Or, if you're into Lua: + +```lua +stickerSetMultiCovered={_='stickerSetMultiCovered', set=StickerSet, covers={Document}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/storage_fileGif.md b/old_docs/API_docs_v91/constructors/storage_fileGif.md new file mode 100644 index 00000000..1f35c41c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/storage_fileGif.md @@ -0,0 +1,39 @@ +--- +title: storage.fileGif +description: File gif +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: storage.fileGif +[Back to constructors index](index.md) + + + +File gif + + + + +### Type: [storage\_FileType](../types/storage_FileType.md) + + +### Example: + +```php +$storage_fileGif = ['_' => 'storage.fileGif']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "storage.fileGif"} +``` + + +Or, if you're into Lua: + +```lua +storage_fileGif={_='storage.fileGif'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/storage_fileJpeg.md b/old_docs/API_docs_v91/constructors/storage_fileJpeg.md new file mode 100644 index 00000000..4acc0a1f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/storage_fileJpeg.md @@ -0,0 +1,39 @@ +--- +title: storage.fileJpeg +description: File jpeg +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: storage.fileJpeg +[Back to constructors index](index.md) + + + +File jpeg + + + + +### Type: [storage\_FileType](../types/storage_FileType.md) + + +### Example: + +```php +$storage_fileJpeg = ['_' => 'storage.fileJpeg']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "storage.fileJpeg"} +``` + + +Or, if you're into Lua: + +```lua +storage_fileJpeg={_='storage.fileJpeg'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/storage_fileMov.md b/old_docs/API_docs_v91/constructors/storage_fileMov.md new file mode 100644 index 00000000..cd2c6478 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/storage_fileMov.md @@ -0,0 +1,39 @@ +--- +title: storage.fileMov +description: File mov +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: storage.fileMov +[Back to constructors index](index.md) + + + +File mov + + + + +### Type: [storage\_FileType](../types/storage_FileType.md) + + +### Example: + +```php +$storage_fileMov = ['_' => 'storage.fileMov']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "storage.fileMov"} +``` + + +Or, if you're into Lua: + +```lua +storage_fileMov={_='storage.fileMov'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/storage_fileMp3.md b/old_docs/API_docs_v91/constructors/storage_fileMp3.md new file mode 100644 index 00000000..c4bb67e2 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/storage_fileMp3.md @@ -0,0 +1,39 @@ +--- +title: storage.fileMp3 +description: File mp3 +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: storage.fileMp3 +[Back to constructors index](index.md) + + + +File mp3 + + + + +### Type: [storage\_FileType](../types/storage_FileType.md) + + +### Example: + +```php +$storage_fileMp3 = ['_' => 'storage.fileMp3']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "storage.fileMp3"} +``` + + +Or, if you're into Lua: + +```lua +storage_fileMp3={_='storage.fileMp3'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/storage_fileMp4.md b/old_docs/API_docs_v91/constructors/storage_fileMp4.md new file mode 100644 index 00000000..fb82d1d5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/storage_fileMp4.md @@ -0,0 +1,39 @@ +--- +title: storage.fileMp4 +description: File mp4 +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: storage.fileMp4 +[Back to constructors index](index.md) + + + +File mp4 + + + + +### Type: [storage\_FileType](../types/storage_FileType.md) + + +### Example: + +```php +$storage_fileMp4 = ['_' => 'storage.fileMp4']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "storage.fileMp4"} +``` + + +Or, if you're into Lua: + +```lua +storage_fileMp4={_='storage.fileMp4'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/storage_filePartial.md b/old_docs/API_docs_v91/constructors/storage_filePartial.md new file mode 100644 index 00000000..60c6d530 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/storage_filePartial.md @@ -0,0 +1,39 @@ +--- +title: storage.filePartial +description: File partial +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: storage.filePartial +[Back to constructors index](index.md) + + + +File partial + + + + +### Type: [storage\_FileType](../types/storage_FileType.md) + + +### Example: + +```php +$storage_filePartial = ['_' => 'storage.filePartial']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "storage.filePartial"} +``` + + +Or, if you're into Lua: + +```lua +storage_filePartial={_='storage.filePartial'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/storage_filePdf.md b/old_docs/API_docs_v91/constructors/storage_filePdf.md new file mode 100644 index 00000000..3f6da9ac --- /dev/null +++ b/old_docs/API_docs_v91/constructors/storage_filePdf.md @@ -0,0 +1,39 @@ +--- +title: storage.filePdf +description: File pdf +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: storage.filePdf +[Back to constructors index](index.md) + + + +File pdf + + + + +### Type: [storage\_FileType](../types/storage_FileType.md) + + +### Example: + +```php +$storage_filePdf = ['_' => 'storage.filePdf']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "storage.filePdf"} +``` + + +Or, if you're into Lua: + +```lua +storage_filePdf={_='storage.filePdf'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/storage_filePng.md b/old_docs/API_docs_v91/constructors/storage_filePng.md new file mode 100644 index 00000000..8c10dfe1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/storage_filePng.md @@ -0,0 +1,39 @@ +--- +title: storage.filePng +description: File png +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: storage.filePng +[Back to constructors index](index.md) + + + +File png + + + + +### Type: [storage\_FileType](../types/storage_FileType.md) + + +### Example: + +```php +$storage_filePng = ['_' => 'storage.filePng']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "storage.filePng"} +``` + + +Or, if you're into Lua: + +```lua +storage_filePng={_='storage.filePng'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/storage_fileUnknown.md b/old_docs/API_docs_v91/constructors/storage_fileUnknown.md new file mode 100644 index 00000000..de0e62b6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/storage_fileUnknown.md @@ -0,0 +1,39 @@ +--- +title: storage.fileUnknown +description: File unknown +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: storage.fileUnknown +[Back to constructors index](index.md) + + + +File unknown + + + + +### Type: [storage\_FileType](../types/storage_FileType.md) + + +### Example: + +```php +$storage_fileUnknown = ['_' => 'storage.fileUnknown']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "storage.fileUnknown"} +``` + + +Or, if you're into Lua: + +```lua +storage_fileUnknown={_='storage.fileUnknown'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/storage_fileWebp.md b/old_docs/API_docs_v91/constructors/storage_fileWebp.md new file mode 100644 index 00000000..6e5e41fb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/storage_fileWebp.md @@ -0,0 +1,39 @@ +--- +title: storage.fileWebp +description: File webp +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: storage.fileWebp +[Back to constructors index](index.md) + + + +File webp + + + + +### Type: [storage\_FileType](../types/storage_FileType.md) + + +### Example: + +```php +$storage_fileWebp = ['_' => 'storage.fileWebp']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "storage.fileWebp"} +``` + + +Or, if you're into Lua: + +```lua +storage_fileWebp={_='storage.fileWebp'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textAnchor.md b/old_docs/API_docs_v91/constructors/textAnchor.md new file mode 100644 index 00000000..e7b0da52 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textAnchor.md @@ -0,0 +1,45 @@ +--- +title: textAnchor +description: Text anchor +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textAnchor +[Back to constructors index](index.md) + + + +Text anchor + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| +|name|[string](../types/string.md) | Yes|Name| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textAnchor = ['_' => 'textAnchor', 'text' => RichText, 'name' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textAnchor", "text": RichText, "name": "string"} +``` + + +Or, if you're into Lua: + +```lua +textAnchor={_='textAnchor', text=RichText, name='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textBold.md b/old_docs/API_docs_v91/constructors/textBold.md new file mode 100644 index 00000000..0d9548b4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textBold.md @@ -0,0 +1,44 @@ +--- +title: textBold +description: Text bold +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textBold +[Back to constructors index](index.md) + + + +Text bold + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textBold = ['_' => 'textBold', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textBold", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +textBold={_='textBold', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textConcat.md b/old_docs/API_docs_v91/constructors/textConcat.md new file mode 100644 index 00000000..0e5737e0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textConcat.md @@ -0,0 +1,44 @@ +--- +title: textConcat +description: Text concat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textConcat +[Back to constructors index](index.md) + + + +Text concat + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|texts|Array of [RichText](../types/RichText.md) | Yes|Texts| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textConcat = ['_' => 'textConcat', 'texts' => [RichText, RichText]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textConcat", "texts": [RichText]} +``` + + +Or, if you're into Lua: + +```lua +textConcat={_='textConcat', texts={RichText}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textEmail.md b/old_docs/API_docs_v91/constructors/textEmail.md new file mode 100644 index 00000000..5106f972 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textEmail.md @@ -0,0 +1,45 @@ +--- +title: textEmail +description: Text email +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textEmail +[Back to constructors index](index.md) + + + +Text email + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| +|email|[string](../types/string.md) | Yes|Email| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textEmail = ['_' => 'textEmail', 'text' => RichText, 'email' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textEmail", "text": RichText, "email": "string"} +``` + + +Or, if you're into Lua: + +```lua +textEmail={_='textEmail', text=RichText, email='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textEmpty.md b/old_docs/API_docs_v91/constructors/textEmpty.md new file mode 100644 index 00000000..d1413912 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textEmpty.md @@ -0,0 +1,39 @@ +--- +title: textEmpty +description: Empty text +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textEmpty +[Back to constructors index](index.md) + + + +Empty text + + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textEmpty = ['_' => 'textEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textEmpty"} +``` + + +Or, if you're into Lua: + +```lua +textEmpty={_='textEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textFixed.md b/old_docs/API_docs_v91/constructors/textFixed.md new file mode 100644 index 00000000..8ea2dd60 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textFixed.md @@ -0,0 +1,44 @@ +--- +title: textFixed +description: Text fixed +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textFixed +[Back to constructors index](index.md) + + + +Text fixed + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textFixed = ['_' => 'textFixed', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textFixed", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +textFixed={_='textFixed', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textImage.md b/old_docs/API_docs_v91/constructors/textImage.md new file mode 100644 index 00000000..483f481a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textImage.md @@ -0,0 +1,46 @@ +--- +title: textImage +description: Text image +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textImage +[Back to constructors index](index.md) + + + +Text image + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|document\_id|[long](../types/long.md) | Yes|Document ID| +|w|[int](../types/int.md) | Yes|Width| +|h|[int](../types/int.md) | Yes|Height| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textImage = ['_' => 'textImage', 'document_id' => long, 'w' => int, 'h' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textImage", "document_id": long, "w": int, "h": int} +``` + + +Or, if you're into Lua: + +```lua +textImage={_='textImage', document_id=long, w=int, h=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textItalic.md b/old_docs/API_docs_v91/constructors/textItalic.md new file mode 100644 index 00000000..beb7e9ef --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textItalic.md @@ -0,0 +1,44 @@ +--- +title: textItalic +description: Text italic +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textItalic +[Back to constructors index](index.md) + + + +Text italic + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textItalic = ['_' => 'textItalic', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textItalic", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +textItalic={_='textItalic', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textMarked.md b/old_docs/API_docs_v91/constructors/textMarked.md new file mode 100644 index 00000000..d8f251fd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textMarked.md @@ -0,0 +1,44 @@ +--- +title: textMarked +description: Text marked +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textMarked +[Back to constructors index](index.md) + + + +Text marked + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textMarked = ['_' => 'textMarked', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textMarked", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +textMarked={_='textMarked', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textPhone.md b/old_docs/API_docs_v91/constructors/textPhone.md new file mode 100644 index 00000000..2ec575c8 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textPhone.md @@ -0,0 +1,45 @@ +--- +title: textPhone +description: Text phone +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textPhone +[Back to constructors index](index.md) + + + +Text phone + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| +|phone|[string](../types/string.md) | Yes|Phone| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textPhone = ['_' => 'textPhone', 'text' => RichText, 'phone' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textPhone", "text": RichText, "phone": "string"} +``` + + +Or, if you're into Lua: + +```lua +textPhone={_='textPhone', text=RichText, phone='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textPlain.md b/old_docs/API_docs_v91/constructors/textPlain.md new file mode 100644 index 00000000..4a241b23 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textPlain.md @@ -0,0 +1,44 @@ +--- +title: textPlain +description: Text plain +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textPlain +[Back to constructors index](index.md) + + + +Text plain + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[string](../types/string.md) | Yes|Text| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textPlain = ['_' => 'textPlain', 'text' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textPlain", "text": "string"} +``` + + +Or, if you're into Lua: + +```lua +textPlain={_='textPlain', text='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textStrike.md b/old_docs/API_docs_v91/constructors/textStrike.md new file mode 100644 index 00000000..a0a2257b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textStrike.md @@ -0,0 +1,44 @@ +--- +title: textStrike +description: Text strike +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textStrike +[Back to constructors index](index.md) + + + +Text strike + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textStrike = ['_' => 'textStrike', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textStrike", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +textStrike={_='textStrike', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textSubscript.md b/old_docs/API_docs_v91/constructors/textSubscript.md new file mode 100644 index 00000000..8c04175f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textSubscript.md @@ -0,0 +1,44 @@ +--- +title: textSubscript +description: Text subscript +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textSubscript +[Back to constructors index](index.md) + + + +Text subscript + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textSubscript = ['_' => 'textSubscript', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textSubscript", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +textSubscript={_='textSubscript', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textSuperscript.md b/old_docs/API_docs_v91/constructors/textSuperscript.md new file mode 100644 index 00000000..1cb26ed3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textSuperscript.md @@ -0,0 +1,44 @@ +--- +title: textSuperscript +description: Text superscript +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textSuperscript +[Back to constructors index](index.md) + + + +Text superscript + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textSuperscript = ['_' => 'textSuperscript', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textSuperscript", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +textSuperscript={_='textSuperscript', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textUnderline.md b/old_docs/API_docs_v91/constructors/textUnderline.md new file mode 100644 index 00000000..75952782 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textUnderline.md @@ -0,0 +1,44 @@ +--- +title: textUnderline +description: Text underline +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textUnderline +[Back to constructors index](index.md) + + + +Text underline + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textUnderline = ['_' => 'textUnderline', 'text' => RichText]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textUnderline", "text": RichText} +``` + + +Or, if you're into Lua: + +```lua +textUnderline={_='textUnderline', text=RichText} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/textUrl.md b/old_docs/API_docs_v91/constructors/textUrl.md new file mode 100644 index 00000000..b9aec09f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/textUrl.md @@ -0,0 +1,46 @@ +--- +title: textUrl +description: Text URL +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: textUrl +[Back to constructors index](index.md) + + + +Text URL + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|text|[RichText](../types/RichText.md) | Yes|Text| +|url|[string](../types/string.md) | Yes|URL| +|webpage\_id|[long](../types/long.md) | Yes|Webpage ID| + + + +### Type: [RichText](../types/RichText.md) + + +### Example: + +```php +$textUrl = ['_' => 'textUrl', 'text' => RichText, 'url' => 'string', 'webpage_id' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "textUrl", "text": RichText, "url": "string", "webpage_id": long} +``` + + +Or, if you're into Lua: + +```lua +textUrl={_='textUrl', text=RichText, url='string', webpage_id=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/topPeer.md b/old_docs/API_docs_v91/constructors/topPeer.md new file mode 100644 index 00000000..9eadba67 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/topPeer.md @@ -0,0 +1,45 @@ +--- +title: topPeer +description: Top peer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: topPeer +[Back to constructors index](index.md) + + + +Top peer + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Peer](../types/Peer.md) | Yes|Peer| +|rating|[double](../types/double.md) | Yes|Rating| + + + +### Type: [TopPeer](../types/TopPeer.md) + + +### Example: + +```php +$topPeer = ['_' => 'topPeer', 'peer' => Peer, 'rating' => double]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "topPeer", "peer": Peer, "rating": double} +``` + + +Or, if you're into Lua: + +```lua +topPeer={_='topPeer', peer=Peer, rating=double} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/topPeerCategoryBotsInline.md b/old_docs/API_docs_v91/constructors/topPeerCategoryBotsInline.md new file mode 100644 index 00000000..77490b73 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/topPeerCategoryBotsInline.md @@ -0,0 +1,39 @@ +--- +title: topPeerCategoryBotsInline +description: Top peer category bots inline +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: topPeerCategoryBotsInline +[Back to constructors index](index.md) + + + +Top peer category bots inline + + + + +### Type: [TopPeerCategory](../types/TopPeerCategory.md) + + +### Example: + +```php +$topPeerCategoryBotsInline = ['_' => 'topPeerCategoryBotsInline']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "topPeerCategoryBotsInline"} +``` + + +Or, if you're into Lua: + +```lua +topPeerCategoryBotsInline={_='topPeerCategoryBotsInline'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/topPeerCategoryBotsPM.md b/old_docs/API_docs_v91/constructors/topPeerCategoryBotsPM.md new file mode 100644 index 00000000..5ba0c9a8 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/topPeerCategoryBotsPM.md @@ -0,0 +1,39 @@ +--- +title: topPeerCategoryBotsPM +description: Top peer category bots pm +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: topPeerCategoryBotsPM +[Back to constructors index](index.md) + + + +Top peer category bots pm + + + + +### Type: [TopPeerCategory](../types/TopPeerCategory.md) + + +### Example: + +```php +$topPeerCategoryBotsPM = ['_' => 'topPeerCategoryBotsPM']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "topPeerCategoryBotsPM"} +``` + + +Or, if you're into Lua: + +```lua +topPeerCategoryBotsPM={_='topPeerCategoryBotsPM'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/topPeerCategoryChannels.md b/old_docs/API_docs_v91/constructors/topPeerCategoryChannels.md new file mode 100644 index 00000000..1ec5d1eb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/topPeerCategoryChannels.md @@ -0,0 +1,39 @@ +--- +title: topPeerCategoryChannels +description: Top peer category channels +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: topPeerCategoryChannels +[Back to constructors index](index.md) + + + +Top peer category channels + + + + +### Type: [TopPeerCategory](../types/TopPeerCategory.md) + + +### Example: + +```php +$topPeerCategoryChannels = ['_' => 'topPeerCategoryChannels']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "topPeerCategoryChannels"} +``` + + +Or, if you're into Lua: + +```lua +topPeerCategoryChannels={_='topPeerCategoryChannels'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/topPeerCategoryCorrespondents.md b/old_docs/API_docs_v91/constructors/topPeerCategoryCorrespondents.md new file mode 100644 index 00000000..541249ff --- /dev/null +++ b/old_docs/API_docs_v91/constructors/topPeerCategoryCorrespondents.md @@ -0,0 +1,39 @@ +--- +title: topPeerCategoryCorrespondents +description: Top peer category correspondents +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: topPeerCategoryCorrespondents +[Back to constructors index](index.md) + + + +Top peer category correspondents + + + + +### Type: [TopPeerCategory](../types/TopPeerCategory.md) + + +### Example: + +```php +$topPeerCategoryCorrespondents = ['_' => 'topPeerCategoryCorrespondents']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "topPeerCategoryCorrespondents"} +``` + + +Or, if you're into Lua: + +```lua +topPeerCategoryCorrespondents={_='topPeerCategoryCorrespondents'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/topPeerCategoryGroups.md b/old_docs/API_docs_v91/constructors/topPeerCategoryGroups.md new file mode 100644 index 00000000..a16e4e17 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/topPeerCategoryGroups.md @@ -0,0 +1,39 @@ +--- +title: topPeerCategoryGroups +description: Top peer category groups +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: topPeerCategoryGroups +[Back to constructors index](index.md) + + + +Top peer category groups + + + + +### Type: [TopPeerCategory](../types/TopPeerCategory.md) + + +### Example: + +```php +$topPeerCategoryGroups = ['_' => 'topPeerCategoryGroups']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "topPeerCategoryGroups"} +``` + + +Or, if you're into Lua: + +```lua +topPeerCategoryGroups={_='topPeerCategoryGroups'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/topPeerCategoryPeers.md b/old_docs/API_docs_v91/constructors/topPeerCategoryPeers.md new file mode 100644 index 00000000..233b7b64 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/topPeerCategoryPeers.md @@ -0,0 +1,46 @@ +--- +title: topPeerCategoryPeers +description: Top peer category peers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: topPeerCategoryPeers +[Back to constructors index](index.md) + + + +Top peer category peers + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes|Category| +|count|[int](../types/int.md) | Yes|Count| +|peers|Array of [TopPeer](../types/TopPeer.md) | Yes|Peers| + + + +### Type: [TopPeerCategoryPeers](../types/TopPeerCategoryPeers.md) + + +### Example: + +```php +$topPeerCategoryPeers = ['_' => 'topPeerCategoryPeers', 'category' => TopPeerCategory, 'count' => int, 'peers' => [TopPeer, TopPeer]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "topPeerCategoryPeers", "category": TopPeerCategory, "count": int, "peers": [TopPeer]} +``` + + +Or, if you're into Lua: + +```lua +topPeerCategoryPeers={_='topPeerCategoryPeers', category=TopPeerCategory, count=int, peers={TopPeer}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/topPeerCategoryPhoneCalls.md b/old_docs/API_docs_v91/constructors/topPeerCategoryPhoneCalls.md new file mode 100644 index 00000000..77840cfa --- /dev/null +++ b/old_docs/API_docs_v91/constructors/topPeerCategoryPhoneCalls.md @@ -0,0 +1,39 @@ +--- +title: topPeerCategoryPhoneCalls +description: Top peer category phone calls +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: topPeerCategoryPhoneCalls +[Back to constructors index](index.md) + + + +Top peer category phone calls + + + + +### Type: [TopPeerCategory](../types/TopPeerCategory.md) + + +### Example: + +```php +$topPeerCategoryPhoneCalls = ['_' => 'topPeerCategoryPhoneCalls']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "topPeerCategoryPhoneCalls"} +``` + + +Or, if you're into Lua: + +```lua +topPeerCategoryPhoneCalls={_='topPeerCategoryPhoneCalls'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/true.md b/old_docs/API_docs_v91/constructors/true.md new file mode 100644 index 00000000..818ed7f8 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/true.md @@ -0,0 +1,39 @@ +--- +title: true +description: True +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: true +[Back to constructors index](index.md) + + + +True + + + + +### Type: [True](../types/True.md) + + +### Example: + +```php +$true = ['_' => 'true']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "true"} +``` + + +Or, if you're into Lua: + +```lua +true={_='true'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateBotCallbackQuery.md b/old_docs/API_docs_v91/constructors/updateBotCallbackQuery.md new file mode 100644 index 00000000..05c4fffa --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateBotCallbackQuery.md @@ -0,0 +1,50 @@ +--- +title: updateBotCallbackQuery +description: Update bot callback query +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateBotCallbackQuery +[Back to constructors index](index.md) + + + +Update bot callback query + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query\_id|[long](../types/long.md) | Yes|Query ID| +|user\_id|[int](../types/int.md) | Yes|User ID| +|peer|[Peer](../types/Peer.md) | Yes|Peer| +|msg\_id|[int](../types/int.md) | Yes|Msg ID| +|chat\_instance|[long](../types/long.md) | Yes|Chat instance| +|data|[bytes](../types/bytes.md) | Optional|Data| +|game\_short\_name|[string](../types/string.md) | Optional|Game short name| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateBotCallbackQuery = ['_' => 'updateBotCallbackQuery', 'query_id' => long, 'user_id' => int, 'peer' => Peer, 'msg_id' => int, 'chat_instance' => long, 'data' => 'bytes', 'game_short_name' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateBotCallbackQuery", "query_id": long, "user_id": int, "peer": Peer, "msg_id": int, "chat_instance": long, "data": {"_": "bytes", "bytes":"base64 encoded bytes"}, "game_short_name": "string"} +``` + + +Or, if you're into Lua: + +```lua +updateBotCallbackQuery={_='updateBotCallbackQuery', query_id=long, user_id=int, peer=Peer, msg_id=int, chat_instance=long, data='bytes', game_short_name='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateBotInlineQuery.md b/old_docs/API_docs_v91/constructors/updateBotInlineQuery.md new file mode 100644 index 00000000..72e409cf --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateBotInlineQuery.md @@ -0,0 +1,48 @@ +--- +title: updateBotInlineQuery +description: Update bot inline query +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateBotInlineQuery +[Back to constructors index](index.md) + + + +Update bot inline query + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query\_id|[long](../types/long.md) | Yes|Query ID| +|user\_id|[int](../types/int.md) | Yes|User ID| +|query|[string](../types/string.md) | Yes|Query| +|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Geo| +|offset|[string](../types/string.md) | Yes|Offset| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateBotInlineQuery = ['_' => 'updateBotInlineQuery', 'query_id' => long, 'user_id' => int, 'query' => 'string', 'geo' => GeoPoint, 'offset' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateBotInlineQuery", "query_id": long, "user_id": int, "query": "string", "geo": GeoPoint, "offset": "string"} +``` + + +Or, if you're into Lua: + +```lua +updateBotInlineQuery={_='updateBotInlineQuery', query_id=long, user_id=int, query='string', geo=GeoPoint, offset='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateBotInlineSend.md b/old_docs/API_docs_v91/constructors/updateBotInlineSend.md new file mode 100644 index 00000000..9ea886eb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateBotInlineSend.md @@ -0,0 +1,48 @@ +--- +title: updateBotInlineSend +description: Update bot inline send +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateBotInlineSend +[Back to constructors index](index.md) + + + +Update bot inline send + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|query|[string](../types/string.md) | Yes|Query| +|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Geo| +|id|[string](../types/string.md) | Yes|ID| +|msg\_id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Optional|Msg ID| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateBotInlineSend = ['_' => 'updateBotInlineSend', 'user_id' => int, 'query' => 'string', 'geo' => GeoPoint, 'id' => 'string', 'msg_id' => InputBotInlineMessageID]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateBotInlineSend", "user_id": int, "query": "string", "geo": GeoPoint, "id": "string", "msg_id": InputBotInlineMessageID} +``` + + +Or, if you're into Lua: + +```lua +updateBotInlineSend={_='updateBotInlineSend', user_id=int, query='string', geo=GeoPoint, id='string', msg_id=InputBotInlineMessageID} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateBotPrecheckoutQuery.md b/old_docs/API_docs_v91/constructors/updateBotPrecheckoutQuery.md new file mode 100644 index 00000000..406cbc28 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateBotPrecheckoutQuery.md @@ -0,0 +1,50 @@ +--- +title: updateBotPrecheckoutQuery +description: Update bot precheckout query +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateBotPrecheckoutQuery +[Back to constructors index](index.md) + + + +Update bot precheckout query + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query\_id|[long](../types/long.md) | Yes|Query ID| +|user\_id|[int](../types/int.md) | Yes|User ID| +|payload|[bytes](../types/bytes.md) | Yes|Payload| +|info|[PaymentRequestedInfo](../types/PaymentRequestedInfo.md) | Optional|Info| +|shipping\_option\_id|[string](../types/string.md) | Optional|Shipping option ID| +|currency|[string](../types/string.md) | Yes|Currency| +|total\_amount|[long](../types/long.md) | Yes|Total amount| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateBotPrecheckoutQuery = ['_' => 'updateBotPrecheckoutQuery', 'query_id' => long, 'user_id' => int, 'payload' => 'bytes', 'info' => PaymentRequestedInfo, 'shipping_option_id' => 'string', 'currency' => 'string', 'total_amount' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateBotPrecheckoutQuery", "query_id": long, "user_id": int, "payload": {"_": "bytes", "bytes":"base64 encoded bytes"}, "info": PaymentRequestedInfo, "shipping_option_id": "string", "currency": "string", "total_amount": long} +``` + + +Or, if you're into Lua: + +```lua +updateBotPrecheckoutQuery={_='updateBotPrecheckoutQuery', query_id=long, user_id=int, payload='bytes', info=PaymentRequestedInfo, shipping_option_id='string', currency='string', total_amount=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateBotShippingQuery.md b/old_docs/API_docs_v91/constructors/updateBotShippingQuery.md new file mode 100644 index 00000000..e8de1ff0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateBotShippingQuery.md @@ -0,0 +1,47 @@ +--- +title: updateBotShippingQuery +description: Update bot shipping query +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateBotShippingQuery +[Back to constructors index](index.md) + + + +Update bot shipping query + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query\_id|[long](../types/long.md) | Yes|Query ID| +|user\_id|[int](../types/int.md) | Yes|User ID| +|payload|[bytes](../types/bytes.md) | Yes|Payload| +|shipping\_address|[PostAddress](../types/PostAddress.md) | Yes|Shipping address| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateBotShippingQuery = ['_' => 'updateBotShippingQuery', 'query_id' => long, 'user_id' => int, 'payload' => 'bytes', 'shipping_address' => PostAddress]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateBotShippingQuery", "query_id": long, "user_id": int, "payload": {"_": "bytes", "bytes":"base64 encoded bytes"}, "shipping_address": PostAddress} +``` + + +Or, if you're into Lua: + +```lua +updateBotShippingQuery={_='updateBotShippingQuery', query_id=long, user_id=int, payload='bytes', shipping_address=PostAddress} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateBotWebhookJSON.md b/old_docs/API_docs_v91/constructors/updateBotWebhookJSON.md new file mode 100644 index 00000000..c86bff96 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateBotWebhookJSON.md @@ -0,0 +1,44 @@ +--- +title: updateBotWebhookJSON +description: Update bot webhook json +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateBotWebhookJSON +[Back to constructors index](index.md) + + + +Update bot webhook json + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|data|[DataJSON](../types/DataJSON.md) | Yes|Data| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateBotWebhookJSON = ['_' => 'updateBotWebhookJSON', 'data' => DataJSON]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateBotWebhookJSON", "data": DataJSON} +``` + + +Or, if you're into Lua: + +```lua +updateBotWebhookJSON={_='updateBotWebhookJSON', data=DataJSON} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateBotWebhookJSONQuery.md b/old_docs/API_docs_v91/constructors/updateBotWebhookJSONQuery.md new file mode 100644 index 00000000..44d6cc30 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateBotWebhookJSONQuery.md @@ -0,0 +1,46 @@ +--- +title: updateBotWebhookJSONQuery +description: Update bot webhook json query +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateBotWebhookJSONQuery +[Back to constructors index](index.md) + + + +Update bot webhook json query + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query\_id|[long](../types/long.md) | Yes|Query ID| +|data|[DataJSON](../types/DataJSON.md) | Yes|Data| +|timeout|[int](../types/int.md) | Yes|Timeout| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateBotWebhookJSONQuery = ['_' => 'updateBotWebhookJSONQuery', 'query_id' => long, 'data' => DataJSON, 'timeout' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateBotWebhookJSONQuery", "query_id": long, "data": DataJSON, "timeout": int} +``` + + +Or, if you're into Lua: + +```lua +updateBotWebhookJSONQuery={_='updateBotWebhookJSONQuery', query_id=long, data=DataJSON, timeout=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChannel.md b/old_docs/API_docs_v91/constructors/updateChannel.md new file mode 100644 index 00000000..451a8ad5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChannel.md @@ -0,0 +1,44 @@ +--- +title: updateChannel +description: Update channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChannel +[Back to constructors index](index.md) + + + +Update channel + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChannel = ['_' => 'updateChannel', 'channel_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChannel", "channel_id": int} +``` + + +Or, if you're into Lua: + +```lua +updateChannel={_='updateChannel', channel_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChannelAvailableMessages.md b/old_docs/API_docs_v91/constructors/updateChannelAvailableMessages.md new file mode 100644 index 00000000..8bde5be9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChannelAvailableMessages.md @@ -0,0 +1,45 @@ +--- +title: updateChannelAvailableMessages +description: Update channel available messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChannelAvailableMessages +[Back to constructors index](index.md) + + + +Update channel available messages + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| +|available\_min\_id|[int](../types/int.md) | Yes|Available min ID| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChannelAvailableMessages = ['_' => 'updateChannelAvailableMessages', 'channel_id' => int, 'available_min_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChannelAvailableMessages", "channel_id": int, "available_min_id": int} +``` + + +Or, if you're into Lua: + +```lua +updateChannelAvailableMessages={_='updateChannelAvailableMessages', channel_id=int, available_min_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChannelMessageViews.md b/old_docs/API_docs_v91/constructors/updateChannelMessageViews.md new file mode 100644 index 00000000..2e4886f4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChannelMessageViews.md @@ -0,0 +1,46 @@ +--- +title: updateChannelMessageViews +description: Update channel message views +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChannelMessageViews +[Back to constructors index](index.md) + + + +Update channel message views + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| +|id|[int](../types/int.md) | Yes|ID| +|views|[int](../types/int.md) | Yes|Views| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChannelMessageViews = ['_' => 'updateChannelMessageViews', 'channel_id' => int, 'id' => int, 'views' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChannelMessageViews", "channel_id": int, "id": int, "views": int} +``` + + +Or, if you're into Lua: + +```lua +updateChannelMessageViews={_='updateChannelMessageViews', channel_id=int, id=int, views=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChannelPinnedMessage.md b/old_docs/API_docs_v91/constructors/updateChannelPinnedMessage.md new file mode 100644 index 00000000..61f49eb1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChannelPinnedMessage.md @@ -0,0 +1,45 @@ +--- +title: updateChannelPinnedMessage +description: Update channel pinned message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChannelPinnedMessage +[Back to constructors index](index.md) + + + +Update channel pinned message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChannelPinnedMessage = ['_' => 'updateChannelPinnedMessage', 'channel_id' => int, 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChannelPinnedMessage", "channel_id": int, "id": int} +``` + + +Or, if you're into Lua: + +```lua +updateChannelPinnedMessage={_='updateChannelPinnedMessage', channel_id=int, id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChannelReadMessagesContents.md b/old_docs/API_docs_v91/constructors/updateChannelReadMessagesContents.md new file mode 100644 index 00000000..e9b5221e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChannelReadMessagesContents.md @@ -0,0 +1,45 @@ +--- +title: updateChannelReadMessagesContents +description: Update channel read messages contents +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChannelReadMessagesContents +[Back to constructors index](index.md) + + + +Update channel read messages contents + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| +|messages|Array of [int](../types/int.md) | Yes|Messages| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChannelReadMessagesContents = ['_' => 'updateChannelReadMessagesContents', 'channel_id' => int, 'messages' => [int, int]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChannelReadMessagesContents", "channel_id": int, "messages": [int]} +``` + + +Or, if you're into Lua: + +```lua +updateChannelReadMessagesContents={_='updateChannelReadMessagesContents', channel_id=int, messages={int}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChannelTooLong.md b/old_docs/API_docs_v91/constructors/updateChannelTooLong.md new file mode 100644 index 00000000..0b44ab49 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChannelTooLong.md @@ -0,0 +1,45 @@ +--- +title: updateChannelTooLong +description: Update channel too long +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChannelTooLong +[Back to constructors index](index.md) + + + +Update channel too long + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| +|pts|[int](../types/int.md) | Optional|Pts| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChannelTooLong = ['_' => 'updateChannelTooLong', 'channel_id' => int, 'pts' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChannelTooLong", "channel_id": int, "pts": int} +``` + + +Or, if you're into Lua: + +```lua +updateChannelTooLong={_='updateChannelTooLong', channel_id=int, pts=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChannelWebPage.md b/old_docs/API_docs_v91/constructors/updateChannelWebPage.md new file mode 100644 index 00000000..1dbaf84f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChannelWebPage.md @@ -0,0 +1,47 @@ +--- +title: updateChannelWebPage +description: Update channel web page +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChannelWebPage +[Back to constructors index](index.md) + + + +Update channel web page + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| +|webpage|[WebPage](../types/WebPage.md) | Optional|Webpage| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChannelWebPage = ['_' => 'updateChannelWebPage', 'channel_id' => int, 'webpage' => WebPage, 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChannelWebPage", "channel_id": int, "webpage": WebPage, "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +updateChannelWebPage={_='updateChannelWebPage', channel_id=int, webpage=WebPage, pts=int, pts_count=int} + +``` + + diff --git a/docs/API_docs/constructors/updateChatAdmins.md b/old_docs/API_docs_v91/constructors/updateChatAdmins.md similarity index 100% rename from docs/API_docs/constructors/updateChatAdmins.md rename to old_docs/API_docs_v91/constructors/updateChatAdmins.md diff --git a/old_docs/API_docs_v91/constructors/updateChatParticipantAdd.md b/old_docs/API_docs_v91/constructors/updateChatParticipantAdd.md new file mode 100644 index 00000000..61e6b0ca --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChatParticipantAdd.md @@ -0,0 +1,48 @@ +--- +title: updateChatParticipantAdd +description: Update chat participant add +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChatParticipantAdd +[Back to constructors index](index.md) + + + +Update chat participant add + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|user\_id|[int](../types/int.md) | Yes|User ID| +|inviter\_id|[int](../types/int.md) | Yes|Inviter ID| +|date|[int](../types/int.md) | Yes|Date| +|version|[int](../types/int.md) | Yes|Version| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChatParticipantAdd = ['_' => 'updateChatParticipantAdd', 'chat_id' => int, 'user_id' => int, 'inviter_id' => int, 'date' => int, 'version' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChatParticipantAdd", "chat_id": int, "user_id": int, "inviter_id": int, "date": int, "version": int} +``` + + +Or, if you're into Lua: + +```lua +updateChatParticipantAdd={_='updateChatParticipantAdd', chat_id=int, user_id=int, inviter_id=int, date=int, version=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChatParticipantAdmin.md b/old_docs/API_docs_v91/constructors/updateChatParticipantAdmin.md new file mode 100644 index 00000000..6c0cb8b4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChatParticipantAdmin.md @@ -0,0 +1,47 @@ +--- +title: updateChatParticipantAdmin +description: Update chat participant admin +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChatParticipantAdmin +[Back to constructors index](index.md) + + + +Update chat participant admin + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|user\_id|[int](../types/int.md) | Yes|User ID| +|is\_admin|[Bool](../types/Bool.md) | Yes|Is admin?| +|version|[int](../types/int.md) | Yes|Version| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChatParticipantAdmin = ['_' => 'updateChatParticipantAdmin', 'chat_id' => int, 'user_id' => int, 'is_admin' => Bool, 'version' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChatParticipantAdmin", "chat_id": int, "user_id": int, "is_admin": Bool, "version": int} +``` + + +Or, if you're into Lua: + +```lua +updateChatParticipantAdmin={_='updateChatParticipantAdmin', chat_id=int, user_id=int, is_admin=Bool, version=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChatParticipantDelete.md b/old_docs/API_docs_v91/constructors/updateChatParticipantDelete.md new file mode 100644 index 00000000..6866bcaf --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChatParticipantDelete.md @@ -0,0 +1,46 @@ +--- +title: updateChatParticipantDelete +description: Update chat participant delete +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChatParticipantDelete +[Back to constructors index](index.md) + + + +Update chat participant delete + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|user\_id|[int](../types/int.md) | Yes|User ID| +|version|[int](../types/int.md) | Yes|Version| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChatParticipantDelete = ['_' => 'updateChatParticipantDelete', 'chat_id' => int, 'user_id' => int, 'version' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChatParticipantDelete", "chat_id": int, "user_id": int, "version": int} +``` + + +Or, if you're into Lua: + +```lua +updateChatParticipantDelete={_='updateChatParticipantDelete', chat_id=int, user_id=int, version=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChatParticipants.md b/old_docs/API_docs_v91/constructors/updateChatParticipants.md new file mode 100644 index 00000000..330e9a65 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChatParticipants.md @@ -0,0 +1,44 @@ +--- +title: updateChatParticipants +description: Update chat participants +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChatParticipants +[Back to constructors index](index.md) + + + +Update chat participants + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|participants|[ChatParticipants](../types/ChatParticipants.md) | Yes|Participants| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChatParticipants = ['_' => 'updateChatParticipants', 'participants' => ChatParticipants]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChatParticipants", "participants": ChatParticipants} +``` + + +Or, if you're into Lua: + +```lua +updateChatParticipants={_='updateChatParticipants', participants=ChatParticipants} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChatPinnedMessage.md b/old_docs/API_docs_v91/constructors/updateChatPinnedMessage.md new file mode 100644 index 00000000..8ba85345 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChatPinnedMessage.md @@ -0,0 +1,45 @@ +--- +title: updateChatPinnedMessage +description: Update chat pinned message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChatPinnedMessage +[Back to constructors index](index.md) + + + +Update chat pinned message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChatPinnedMessage = ['_' => 'updateChatPinnedMessage', 'chat_id' => int, 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChatPinnedMessage", "chat_id": int, "id": int} +``` + + +Or, if you're into Lua: + +```lua +updateChatPinnedMessage={_='updateChatPinnedMessage', chat_id=int, id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateChatUserTyping.md b/old_docs/API_docs_v91/constructors/updateChatUserTyping.md new file mode 100644 index 00000000..f7d57393 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateChatUserTyping.md @@ -0,0 +1,46 @@ +--- +title: updateChatUserTyping +description: Update chat user typing +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateChatUserTyping +[Back to constructors index](index.md) + + + +Update chat user typing + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|user\_id|[int](../types/int.md) | Yes|User ID| +|action|[SendMessageAction](../types/SendMessageAction.md) | Yes|Action| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateChatUserTyping = ['_' => 'updateChatUserTyping', 'chat_id' => int, 'user_id' => int, 'action' => SendMessageAction]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateChatUserTyping", "chat_id": int, "user_id": int, "action": SendMessageAction} +``` + + +Or, if you're into Lua: + +```lua +updateChatUserTyping={_='updateChatUserTyping', chat_id=int, user_id=int, action=SendMessageAction} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateConfig.md b/old_docs/API_docs_v91/constructors/updateConfig.md new file mode 100644 index 00000000..7bab0520 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateConfig.md @@ -0,0 +1,39 @@ +--- +title: updateConfig +description: Update config +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateConfig +[Back to constructors index](index.md) + + + +Update config + + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateConfig = ['_' => 'updateConfig']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateConfig"} +``` + + +Or, if you're into Lua: + +```lua +updateConfig={_='updateConfig'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateContactLink.md b/old_docs/API_docs_v91/constructors/updateContactLink.md new file mode 100644 index 00000000..18f3ccfb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateContactLink.md @@ -0,0 +1,46 @@ +--- +title: updateContactLink +description: Update contact link +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateContactLink +[Back to constructors index](index.md) + + + +Update contact link + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|my\_link|[ContactLink](../types/ContactLink.md) | Yes|My link| +|foreign\_link|[ContactLink](../types/ContactLink.md) | Yes|Foreign link| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateContactLink = ['_' => 'updateContactLink', 'user_id' => int, 'my_link' => ContactLink, 'foreign_link' => ContactLink]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateContactLink", "user_id": int, "my_link": ContactLink, "foreign_link": ContactLink} +``` + + +Or, if you're into Lua: + +```lua +updateContactLink={_='updateContactLink', user_id=int, my_link=ContactLink, foreign_link=ContactLink} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateContactsReset.md b/old_docs/API_docs_v91/constructors/updateContactsReset.md new file mode 100644 index 00000000..0d92d992 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateContactsReset.md @@ -0,0 +1,39 @@ +--- +title: updateContactsReset +description: Update contacts reset +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateContactsReset +[Back to constructors index](index.md) + + + +Update contacts reset + + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateContactsReset = ['_' => 'updateContactsReset']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateContactsReset"} +``` + + +Or, if you're into Lua: + +```lua +updateContactsReset={_='updateContactsReset'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateDcOptions.md b/old_docs/API_docs_v91/constructors/updateDcOptions.md new file mode 100644 index 00000000..acbfc1eb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateDcOptions.md @@ -0,0 +1,44 @@ +--- +title: updateDcOptions +description: Update DC options +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateDcOptions +[Back to constructors index](index.md) + + + +Update DC options + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|dc\_options|Array of [DcOption](../types/DcOption.md) | Yes|DC options| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateDcOptions = ['_' => 'updateDcOptions', 'dc_options' => [DcOption, DcOption]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateDcOptions", "dc_options": [DcOption]} +``` + + +Or, if you're into Lua: + +```lua +updateDcOptions={_='updateDcOptions', dc_options={DcOption}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateDeleteChannelMessages.md b/old_docs/API_docs_v91/constructors/updateDeleteChannelMessages.md new file mode 100644 index 00000000..ae2f463d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateDeleteChannelMessages.md @@ -0,0 +1,47 @@ +--- +title: updateDeleteChannelMessages +description: Update delete channel messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateDeleteChannelMessages +[Back to constructors index](index.md) + + + +Update delete channel messages + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| +|messages|Array of [int](../types/int.md) | Yes|Messages| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateDeleteChannelMessages = ['_' => 'updateDeleteChannelMessages', 'channel_id' => int, 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateDeleteChannelMessages", "channel_id": int, "messages": [int], "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +updateDeleteChannelMessages={_='updateDeleteChannelMessages', channel_id=int, messages={int}, pts=int, pts_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateDeleteMessages.md b/old_docs/API_docs_v91/constructors/updateDeleteMessages.md new file mode 100644 index 00000000..fc16d275 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateDeleteMessages.md @@ -0,0 +1,46 @@ +--- +title: updateDeleteMessages +description: Update delete messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateDeleteMessages +[Back to constructors index](index.md) + + + +Update delete messages + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|messages|Array of [int](../types/int.md) | Yes|Messages| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateDeleteMessages = ['_' => 'updateDeleteMessages', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateDeleteMessages", "messages": [int], "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +updateDeleteMessages={_='updateDeleteMessages', messages={int}, pts=int, pts_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateDialogPinned.md b/old_docs/API_docs_v91/constructors/updateDialogPinned.md new file mode 100644 index 00000000..ed0fb942 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateDialogPinned.md @@ -0,0 +1,45 @@ +--- +title: updateDialogPinned +description: Update dialog pinned +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateDialogPinned +[Back to constructors index](index.md) + + + +Update dialog pinned + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|pinned|[Bool](../types/Bool.md) | Optional|Pinned?| +|peer|[DialogPeer](../types/DialogPeer.md) | Yes|Peer| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateDialogPinned = ['_' => 'updateDialogPinned', 'pinned' => Bool, 'peer' => DialogPeer]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateDialogPinned", "pinned": Bool, "peer": DialogPeer} +``` + + +Or, if you're into Lua: + +```lua +updateDialogPinned={_='updateDialogPinned', pinned=Bool, peer=DialogPeer} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateDialogUnreadMark.md b/old_docs/API_docs_v91/constructors/updateDialogUnreadMark.md new file mode 100644 index 00000000..385b2b4a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateDialogUnreadMark.md @@ -0,0 +1,45 @@ +--- +title: updateDialogUnreadMark +description: Update dialog unread mark +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateDialogUnreadMark +[Back to constructors index](index.md) + + + +Update dialog unread mark + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|unread|[Bool](../types/Bool.md) | Optional|Unread?| +|peer|[DialogPeer](../types/DialogPeer.md) | Yes|Peer| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateDialogUnreadMark = ['_' => 'updateDialogUnreadMark', 'unread' => Bool, 'peer' => DialogPeer]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateDialogUnreadMark", "unread": Bool, "peer": DialogPeer} +``` + + +Or, if you're into Lua: + +```lua +updateDialogUnreadMark={_='updateDialogUnreadMark', unread=Bool, peer=DialogPeer} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateDraftMessage.md b/old_docs/API_docs_v91/constructors/updateDraftMessage.md new file mode 100644 index 00000000..90de0de4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateDraftMessage.md @@ -0,0 +1,45 @@ +--- +title: updateDraftMessage +description: Update draft message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateDraftMessage +[Back to constructors index](index.md) + + + +Update draft message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Peer](../types/Peer.md) | Yes|Peer| +|draft|[DraftMessage](../types/DraftMessage.md) | Optional|Draft| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateDraftMessage = ['_' => 'updateDraftMessage', 'peer' => Peer, 'draft' => DraftMessage]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateDraftMessage", "peer": Peer, "draft": DraftMessage} +``` + + +Or, if you're into Lua: + +```lua +updateDraftMessage={_='updateDraftMessage', peer=Peer, draft=DraftMessage} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateEditChannelMessage.md b/old_docs/API_docs_v91/constructors/updateEditChannelMessage.md new file mode 100644 index 00000000..649aa313 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateEditChannelMessage.md @@ -0,0 +1,46 @@ +--- +title: updateEditChannelMessage +description: Update edit channel message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateEditChannelMessage +[Back to constructors index](index.md) + + + +Update edit channel message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[Message](../types/Message.md) | Optional|Message| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateEditChannelMessage = ['_' => 'updateEditChannelMessage', 'message' => Message, 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateEditChannelMessage", "message": Message, "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +updateEditChannelMessage={_='updateEditChannelMessage', message=Message, pts=int, pts_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateEditMessage.md b/old_docs/API_docs_v91/constructors/updateEditMessage.md new file mode 100644 index 00000000..27246afb --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateEditMessage.md @@ -0,0 +1,46 @@ +--- +title: updateEditMessage +description: Update edit message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateEditMessage +[Back to constructors index](index.md) + + + +Update edit message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[Message](../types/Message.md) | Optional|Message| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateEditMessage = ['_' => 'updateEditMessage', 'message' => Message, 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateEditMessage", "message": Message, "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +updateEditMessage={_='updateEditMessage', message=Message, pts=int, pts_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateEncryptedChatTyping.md b/old_docs/API_docs_v91/constructors/updateEncryptedChatTyping.md new file mode 100644 index 00000000..d61537ad --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateEncryptedChatTyping.md @@ -0,0 +1,44 @@ +--- +title: updateEncryptedChatTyping +description: Update encrypted chat typing +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateEncryptedChatTyping +[Back to constructors index](index.md) + + + +Update encrypted chat typing + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateEncryptedChatTyping = ['_' => 'updateEncryptedChatTyping', 'chat_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateEncryptedChatTyping", "chat_id": int} +``` + + +Or, if you're into Lua: + +```lua +updateEncryptedChatTyping={_='updateEncryptedChatTyping', chat_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateEncryptedMessagesRead.md b/old_docs/API_docs_v91/constructors/updateEncryptedMessagesRead.md new file mode 100644 index 00000000..e66c59c3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateEncryptedMessagesRead.md @@ -0,0 +1,46 @@ +--- +title: updateEncryptedMessagesRead +description: Update encrypted messages read +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateEncryptedMessagesRead +[Back to constructors index](index.md) + + + +Update encrypted messages read + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|max\_date|[int](../types/int.md) | Yes|Max date| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateEncryptedMessagesRead = ['_' => 'updateEncryptedMessagesRead', 'chat_id' => int, 'max_date' => int, 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateEncryptedMessagesRead", "chat_id": int, "max_date": int, "date": int} +``` + + +Or, if you're into Lua: + +```lua +updateEncryptedMessagesRead={_='updateEncryptedMessagesRead', chat_id=int, max_date=int, date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateEncryption.md b/old_docs/API_docs_v91/constructors/updateEncryption.md new file mode 100644 index 00000000..5fc70bd8 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateEncryption.md @@ -0,0 +1,45 @@ +--- +title: updateEncryption +description: Update encryption +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateEncryption +[Back to constructors index](index.md) + + + +Update encryption + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|chat|[EncryptedChat](../types/EncryptedChat.md) | Optional|Chat| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateEncryption = ['_' => 'updateEncryption', 'chat' => EncryptedChat, 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateEncryption", "chat": EncryptedChat, "date": int} +``` + + +Or, if you're into Lua: + +```lua +updateEncryption={_='updateEncryption', chat=EncryptedChat, date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateFavedStickers.md b/old_docs/API_docs_v91/constructors/updateFavedStickers.md new file mode 100644 index 00000000..fa3b391c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateFavedStickers.md @@ -0,0 +1,39 @@ +--- +title: updateFavedStickers +description: Update faved stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateFavedStickers +[Back to constructors index](index.md) + + + +Update faved stickers + + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateFavedStickers = ['_' => 'updateFavedStickers']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateFavedStickers"} +``` + + +Or, if you're into Lua: + +```lua +updateFavedStickers={_='updateFavedStickers'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateInlineBotCallbackQuery.md b/old_docs/API_docs_v91/constructors/updateInlineBotCallbackQuery.md new file mode 100644 index 00000000..c86ab481 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateInlineBotCallbackQuery.md @@ -0,0 +1,49 @@ +--- +title: updateInlineBotCallbackQuery +description: Update inline bot callback query +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateInlineBotCallbackQuery +[Back to constructors index](index.md) + + + +Update inline bot callback query + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|query\_id|[long](../types/long.md) | Yes|Query ID| +|user\_id|[int](../types/int.md) | Yes|User ID| +|msg\_id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | Yes|Msg ID| +|chat\_instance|[long](../types/long.md) | Yes|Chat instance| +|data|[bytes](../types/bytes.md) | Optional|Data| +|game\_short\_name|[string](../types/string.md) | Optional|Game short name| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateInlineBotCallbackQuery = ['_' => 'updateInlineBotCallbackQuery', 'query_id' => long, 'user_id' => int, 'msg_id' => InputBotInlineMessageID, 'chat_instance' => long, 'data' => 'bytes', 'game_short_name' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateInlineBotCallbackQuery", "query_id": long, "user_id": int, "msg_id": InputBotInlineMessageID, "chat_instance": long, "data": {"_": "bytes", "bytes":"base64 encoded bytes"}, "game_short_name": "string"} +``` + + +Or, if you're into Lua: + +```lua +updateInlineBotCallbackQuery={_='updateInlineBotCallbackQuery', query_id=long, user_id=int, msg_id=InputBotInlineMessageID, chat_instance=long, data='bytes', game_short_name='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateLangPack.md b/old_docs/API_docs_v91/constructors/updateLangPack.md new file mode 100644 index 00000000..ba275cd0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateLangPack.md @@ -0,0 +1,44 @@ +--- +title: updateLangPack +description: Update lang pack +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateLangPack +[Back to constructors index](index.md) + + + +Update lang pack + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|difference|[LangPackDifference](../types/LangPackDifference.md) | Yes|Difference| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateLangPack = ['_' => 'updateLangPack', 'difference' => LangPackDifference]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateLangPack", "difference": LangPackDifference} +``` + + +Or, if you're into Lua: + +```lua +updateLangPack={_='updateLangPack', difference=LangPackDifference} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateLangPackTooLong.md b/old_docs/API_docs_v91/constructors/updateLangPackTooLong.md new file mode 100644 index 00000000..ee144712 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateLangPackTooLong.md @@ -0,0 +1,44 @@ +--- +title: updateLangPackTooLong +description: Update lang pack too long +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateLangPackTooLong +[Back to constructors index](index.md) + + + +Update lang pack too long + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|lang\_code|[string](../types/string.md) | Yes|Lang code| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateLangPackTooLong = ['_' => 'updateLangPackTooLong', 'lang_code' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateLangPackTooLong", "lang_code": "string"} +``` + + +Or, if you're into Lua: + +```lua +updateLangPackTooLong={_='updateLangPackTooLong', lang_code='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateMessageID.md b/old_docs/API_docs_v91/constructors/updateMessageID.md new file mode 100644 index 00000000..7504e657 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateMessageID.md @@ -0,0 +1,44 @@ +--- +title: updateMessageID +description: Update message ID +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateMessageID +[Back to constructors index](index.md) + + + +Update message ID + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateMessageID = ['_' => 'updateMessageID', 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateMessageID", "id": int} +``` + + +Or, if you're into Lua: + +```lua +updateMessageID={_='updateMessageID', id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateMessagePoll.md b/old_docs/API_docs_v91/constructors/updateMessagePoll.md new file mode 100644 index 00000000..826f957a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateMessagePoll.md @@ -0,0 +1,46 @@ +--- +title: updateMessagePoll +description: Update message poll +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateMessagePoll +[Back to constructors index](index.md) + + + +Update message poll + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|poll\_id|[long](../types/long.md) | Yes|Poll ID| +|poll|[Poll](../types/Poll.md) | Optional|Poll| +|results|[PollResults](../types/PollResults.md) | Yes|Results| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateMessagePoll = ['_' => 'updateMessagePoll', 'poll_id' => long, 'poll' => Poll, 'results' => PollResults]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateMessagePoll", "poll_id": long, "poll": Poll, "results": PollResults} +``` + + +Or, if you're into Lua: + +```lua +updateMessagePoll={_='updateMessagePoll', poll_id=long, poll=Poll, results=PollResults} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateNewChannelMessage.md b/old_docs/API_docs_v91/constructors/updateNewChannelMessage.md new file mode 100644 index 00000000..0ee732ee --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateNewChannelMessage.md @@ -0,0 +1,46 @@ +--- +title: updateNewChannelMessage +description: Update new channel message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateNewChannelMessage +[Back to constructors index](index.md) + + + +Update new channel message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[Message](../types/Message.md) | Optional|Message| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateNewChannelMessage = ['_' => 'updateNewChannelMessage', 'message' => Message, 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateNewChannelMessage", "message": Message, "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +updateNewChannelMessage={_='updateNewChannelMessage', message=Message, pts=int, pts_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateNewEncryptedMessage.md b/old_docs/API_docs_v91/constructors/updateNewEncryptedMessage.md new file mode 100644 index 00000000..8dea04fc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateNewEncryptedMessage.md @@ -0,0 +1,45 @@ +--- +title: updateNewEncryptedMessage +description: Update new encrypted message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateNewEncryptedMessage +[Back to constructors index](index.md) + + + +Update new encrypted message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[EncryptedMessage](../types/EncryptedMessage.md) | Yes|Message| +|qts|[int](../types/int.md) | Yes|Qts| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateNewEncryptedMessage = ['_' => 'updateNewEncryptedMessage', 'message' => EncryptedMessage, 'qts' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateNewEncryptedMessage", "message": EncryptedMessage, "qts": int} +``` + + +Or, if you're into Lua: + +```lua +updateNewEncryptedMessage={_='updateNewEncryptedMessage', message=EncryptedMessage, qts=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateNewMessage.md b/old_docs/API_docs_v91/constructors/updateNewMessage.md new file mode 100644 index 00000000..ceb3fbc5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateNewMessage.md @@ -0,0 +1,46 @@ +--- +title: updateNewMessage +description: Update new message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateNewMessage +[Back to constructors index](index.md) + + + +Update new message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[Message](../types/Message.md) | Optional|Message| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateNewMessage = ['_' => 'updateNewMessage', 'message' => Message, 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateNewMessage", "message": Message, "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +updateNewMessage={_='updateNewMessage', message=Message, pts=int, pts_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateNewStickerSet.md b/old_docs/API_docs_v91/constructors/updateNewStickerSet.md new file mode 100644 index 00000000..f2982e62 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateNewStickerSet.md @@ -0,0 +1,44 @@ +--- +title: updateNewStickerSet +description: Update new sticker set +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateNewStickerSet +[Back to constructors index](index.md) + + + +Update new sticker set + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|stickerset|[messages\_StickerSet](../types/messages_StickerSet.md) | Yes|Stickerset| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateNewStickerSet = ['_' => 'updateNewStickerSet', 'stickerset' => messages_StickerSet]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateNewStickerSet", "stickerset": messages_StickerSet} +``` + + +Or, if you're into Lua: + +```lua +updateNewStickerSet={_='updateNewStickerSet', stickerset=messages_StickerSet} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateNotifySettings.md b/old_docs/API_docs_v91/constructors/updateNotifySettings.md new file mode 100644 index 00000000..dd6cad4b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateNotifySettings.md @@ -0,0 +1,45 @@ +--- +title: updateNotifySettings +description: Update notify settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateNotifySettings +[Back to constructors index](index.md) + + + +Update notify settings + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[NotifyPeer](../types/NotifyPeer.md) | Yes|Peer| +|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Yes|Notify settings| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateNotifySettings = ['_' => 'updateNotifySettings', 'peer' => NotifyPeer, 'notify_settings' => PeerNotifySettings]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateNotifySettings", "peer": NotifyPeer, "notify_settings": PeerNotifySettings} +``` + + +Or, if you're into Lua: + +```lua +updateNotifySettings={_='updateNotifySettings', peer=NotifyPeer, notify_settings=PeerNotifySettings} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updatePhoneCall.md b/old_docs/API_docs_v91/constructors/updatePhoneCall.md new file mode 100644 index 00000000..ddd7b010 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updatePhoneCall.md @@ -0,0 +1,44 @@ +--- +title: updatePhoneCall +description: Update phone call +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updatePhoneCall +[Back to constructors index](index.md) + + + +Update phone call + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|phone\_call|[PhoneCall](../types/PhoneCall.md) | Optional|Phone call| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updatePhoneCall = ['_' => 'updatePhoneCall', 'phone_call' => PhoneCall]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updatePhoneCall", "phone_call": PhoneCall} +``` + + +Or, if you're into Lua: + +```lua +updatePhoneCall={_='updatePhoneCall', phone_call=PhoneCall} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updatePinnedDialogs.md b/old_docs/API_docs_v91/constructors/updatePinnedDialogs.md new file mode 100644 index 00000000..7b290ee9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updatePinnedDialogs.md @@ -0,0 +1,44 @@ +--- +title: updatePinnedDialogs +description: Update pinned dialogs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updatePinnedDialogs +[Back to constructors index](index.md) + + + +Update pinned dialogs + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|order|Array of [DialogPeer](../types/DialogPeer.md) | Optional|Order| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updatePinnedDialogs = ['_' => 'updatePinnedDialogs', 'order' => [DialogPeer, DialogPeer]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updatePinnedDialogs", "order": [DialogPeer]} +``` + + +Or, if you're into Lua: + +```lua +updatePinnedDialogs={_='updatePinnedDialogs', order={DialogPeer}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updatePrivacy.md b/old_docs/API_docs_v91/constructors/updatePrivacy.md new file mode 100644 index 00000000..b5b9578a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updatePrivacy.md @@ -0,0 +1,45 @@ +--- +title: updatePrivacy +description: Update privacy +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updatePrivacy +[Back to constructors index](index.md) + + + +Update privacy + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|key|[PrivacyKey](../types/PrivacyKey.md) | Yes|Key| +|rules|Array of [PrivacyRule](../types/PrivacyRule.md) | Yes|Rules| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updatePrivacy", "key": PrivacyKey, "rules": [PrivacyRule]} +``` + + +Or, if you're into Lua: + +```lua +updatePrivacy={_='updatePrivacy', key=PrivacyKey, rules={PrivacyRule}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updatePtsChanged.md b/old_docs/API_docs_v91/constructors/updatePtsChanged.md new file mode 100644 index 00000000..f033ceb5 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updatePtsChanged.md @@ -0,0 +1,39 @@ +--- +title: updatePtsChanged +description: Update pts changed +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updatePtsChanged +[Back to constructors index](index.md) + + + +Update pts changed + + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updatePtsChanged = ['_' => 'updatePtsChanged']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updatePtsChanged"} +``` + + +Or, if you're into Lua: + +```lua +updatePtsChanged={_='updatePtsChanged'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateReadChannelInbox.md b/old_docs/API_docs_v91/constructors/updateReadChannelInbox.md new file mode 100644 index 00000000..39596e5d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateReadChannelInbox.md @@ -0,0 +1,45 @@ +--- +title: updateReadChannelInbox +description: Update read channel inbox +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateReadChannelInbox +[Back to constructors index](index.md) + + + +Update read channel inbox + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| +|max\_id|[int](../types/int.md) | Yes|Max ID| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateReadChannelInbox = ['_' => 'updateReadChannelInbox', 'channel_id' => int, 'max_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateReadChannelInbox", "channel_id": int, "max_id": int} +``` + + +Or, if you're into Lua: + +```lua +updateReadChannelInbox={_='updateReadChannelInbox', channel_id=int, max_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateReadChannelOutbox.md b/old_docs/API_docs_v91/constructors/updateReadChannelOutbox.md new file mode 100644 index 00000000..5e7b60ae --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateReadChannelOutbox.md @@ -0,0 +1,45 @@ +--- +title: updateReadChannelOutbox +description: Update read channel outbox +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateReadChannelOutbox +[Back to constructors index](index.md) + + + +Update read channel outbox + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|channel\_id|[int](../types/int.md) | Yes|Channel ID| +|max\_id|[int](../types/int.md) | Yes|Max ID| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateReadChannelOutbox = ['_' => 'updateReadChannelOutbox', 'channel_id' => int, 'max_id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateReadChannelOutbox", "channel_id": int, "max_id": int} +``` + + +Or, if you're into Lua: + +```lua +updateReadChannelOutbox={_='updateReadChannelOutbox', channel_id=int, max_id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateReadFeaturedStickers.md b/old_docs/API_docs_v91/constructors/updateReadFeaturedStickers.md new file mode 100644 index 00000000..1f296932 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateReadFeaturedStickers.md @@ -0,0 +1,39 @@ +--- +title: updateReadFeaturedStickers +description: Update read featured stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateReadFeaturedStickers +[Back to constructors index](index.md) + + + +Update read featured stickers + + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateReadFeaturedStickers = ['_' => 'updateReadFeaturedStickers']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateReadFeaturedStickers"} +``` + + +Or, if you're into Lua: + +```lua +updateReadFeaturedStickers={_='updateReadFeaturedStickers'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateReadHistoryInbox.md b/old_docs/API_docs_v91/constructors/updateReadHistoryInbox.md new file mode 100644 index 00000000..7ec85219 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateReadHistoryInbox.md @@ -0,0 +1,47 @@ +--- +title: updateReadHistoryInbox +description: Update read history inbox +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateReadHistoryInbox +[Back to constructors index](index.md) + + + +Update read history inbox + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Peer](../types/Peer.md) | Yes|Peer| +|max\_id|[int](../types/int.md) | Yes|Max ID| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateReadHistoryInbox = ['_' => 'updateReadHistoryInbox', 'peer' => Peer, 'max_id' => int, 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateReadHistoryInbox", "peer": Peer, "max_id": int, "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +updateReadHistoryInbox={_='updateReadHistoryInbox', peer=Peer, max_id=int, pts=int, pts_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateReadHistoryOutbox.md b/old_docs/API_docs_v91/constructors/updateReadHistoryOutbox.md new file mode 100644 index 00000000..30d21631 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateReadHistoryOutbox.md @@ -0,0 +1,47 @@ +--- +title: updateReadHistoryOutbox +description: Update read history outbox +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateReadHistoryOutbox +[Back to constructors index](index.md) + + + +Update read history outbox + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Peer](../types/Peer.md) | Yes|Peer| +|max\_id|[int](../types/int.md) | Yes|Max ID| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateReadHistoryOutbox = ['_' => 'updateReadHistoryOutbox', 'peer' => Peer, 'max_id' => int, 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateReadHistoryOutbox", "peer": Peer, "max_id": int, "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +updateReadHistoryOutbox={_='updateReadHistoryOutbox', peer=Peer, max_id=int, pts=int, pts_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateReadMessagesContents.md b/old_docs/API_docs_v91/constructors/updateReadMessagesContents.md new file mode 100644 index 00000000..c3c4822c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateReadMessagesContents.md @@ -0,0 +1,46 @@ +--- +title: updateReadMessagesContents +description: Update read messages contents +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateReadMessagesContents +[Back to constructors index](index.md) + + + +Update read messages contents + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|messages|Array of [int](../types/int.md) | Yes|Messages| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateReadMessagesContents = ['_' => 'updateReadMessagesContents', 'messages' => [int, int], 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateReadMessagesContents", "messages": [int], "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +updateReadMessagesContents={_='updateReadMessagesContents', messages={int}, pts=int, pts_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateRecentStickers.md b/old_docs/API_docs_v91/constructors/updateRecentStickers.md new file mode 100644 index 00000000..f85b2b78 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateRecentStickers.md @@ -0,0 +1,39 @@ +--- +title: updateRecentStickers +description: Update recent stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateRecentStickers +[Back to constructors index](index.md) + + + +Update recent stickers + + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateRecentStickers = ['_' => 'updateRecentStickers']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateRecentStickers"} +``` + + +Or, if you're into Lua: + +```lua +updateRecentStickers={_='updateRecentStickers'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateSavedGifs.md b/old_docs/API_docs_v91/constructors/updateSavedGifs.md new file mode 100644 index 00000000..a284145a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateSavedGifs.md @@ -0,0 +1,39 @@ +--- +title: updateSavedGifs +description: Update saved gifs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateSavedGifs +[Back to constructors index](index.md) + + + +Update saved gifs + + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateSavedGifs = ['_' => 'updateSavedGifs']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateSavedGifs"} +``` + + +Or, if you're into Lua: + +```lua +updateSavedGifs={_='updateSavedGifs'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateServiceNotification.md b/old_docs/API_docs_v91/constructors/updateServiceNotification.md new file mode 100644 index 00000000..844b54a8 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateServiceNotification.md @@ -0,0 +1,49 @@ +--- +title: updateServiceNotification +description: Update service notification +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateServiceNotification +[Back to constructors index](index.md) + + + +Update service notification + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|popup|[Bool](../types/Bool.md) | Optional|Popup?| +|inbox\_date|[int](../types/int.md) | Optional|Inbox date| +|type|[string](../types/string.md) | Yes|Type| +|message|[string](../types/string.md) | Yes|Message| +|media|[MessageMedia](../types/MessageMedia.md) | Optional|Media| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Yes|Entities| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateServiceNotification = ['_' => 'updateServiceNotification', 'popup' => Bool, 'inbox_date' => int, 'type' => 'string', 'message' => 'string', 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateServiceNotification", "popup": Bool, "inbox_date": int, "type": "string", "message": "string", "media": MessageMedia, "entities": [MessageEntity]} +``` + + +Or, if you're into Lua: + +```lua +updateServiceNotification={_='updateServiceNotification', popup=Bool, inbox_date=int, type='string', message='string', media=MessageMedia, entities={MessageEntity}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateShort.md b/old_docs/API_docs_v91/constructors/updateShort.md new file mode 100644 index 00000000..841ff6da --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateShort.md @@ -0,0 +1,45 @@ +--- +title: updateShort +description: Update short +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateShort +[Back to constructors index](index.md) + + + +Update short + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|update|[Update](../types/Update.md) | Yes|Update| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [Updates](../types/Updates.md) + + +### Example: + +```php +$updateShort = ['_' => 'updateShort', 'update' => Update, 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateShort", "update": Update, "date": int} +``` + + +Or, if you're into Lua: + +```lua +updateShort={_='updateShort', update=Update, date=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateShortChatMessage.md b/old_docs/API_docs_v91/constructors/updateShortChatMessage.md new file mode 100644 index 00000000..dd1f5f39 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateShortChatMessage.md @@ -0,0 +1,58 @@ +--- +title: updateShortChatMessage +description: Update short chat message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateShortChatMessage +[Back to constructors index](index.md) + + + +Update short chat message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|out|[Bool](../types/Bool.md) | Optional|Out?| +|mentioned|[Bool](../types/Bool.md) | Optional|Mentioned?| +|media\_unread|[Bool](../types/Bool.md) | Optional|Media unread?| +|silent|[Bool](../types/Bool.md) | Optional|Silent?| +|id|[int](../types/int.md) | Yes|ID| +|from\_id|[int](../types/int.md) | Yes|From ID| +|chat\_id|[int](../types/int.md) | Yes|Chat ID| +|message|[string](../types/string.md) | Yes|Message| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| +|date|[int](../types/int.md) | Yes|Date| +|fwd\_from|[MessageFwdHeader](../types/MessageFwdHeader.md) | Optional|Fwd from| +|via\_bot\_id|[int](../types/int.md) | Optional|Via bot ID| +|reply\_to\_msg\_id|[int](../types/int.md) | Optional|Reply to msg ID| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities| + + + +### Type: [Updates](../types/Updates.md) + + +### Example: + +```php +$updateShortChatMessage = ['_' => 'updateShortChatMessage', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'id' => int, 'from_id' => int, 'chat_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateShortChatMessage", "out": Bool, "mentioned": Bool, "media_unread": Bool, "silent": Bool, "id": int, "from_id": int, "chat_id": int, "message": "string", "pts": int, "pts_count": int, "date": int, "fwd_from": MessageFwdHeader, "via_bot_id": int, "reply_to_msg_id": int, "entities": [MessageEntity]} +``` + + +Or, if you're into Lua: + +```lua +updateShortChatMessage={_='updateShortChatMessage', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, id=int, from_id=int, chat_id=int, message='string', pts=int, pts_count=int, date=int, fwd_from=MessageFwdHeader, via_bot_id=int, reply_to_msg_id=int, entities={MessageEntity}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateShortMessage.md b/old_docs/API_docs_v91/constructors/updateShortMessage.md new file mode 100644 index 00000000..bece4247 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateShortMessage.md @@ -0,0 +1,57 @@ +--- +title: updateShortMessage +description: Update short message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateShortMessage +[Back to constructors index](index.md) + + + +Update short message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|out|[Bool](../types/Bool.md) | Optional|Out?| +|mentioned|[Bool](../types/Bool.md) | Optional|Mentioned?| +|media\_unread|[Bool](../types/Bool.md) | Optional|Media unread?| +|silent|[Bool](../types/Bool.md) | Optional|Silent?| +|id|[int](../types/int.md) | Yes|ID| +|user\_id|[int](../types/int.md) | Yes|User ID| +|message|[string](../types/string.md) | Yes|Message| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| +|date|[int](../types/int.md) | Yes|Date| +|fwd\_from|[MessageFwdHeader](../types/MessageFwdHeader.md) | Optional|Fwd from| +|via\_bot\_id|[int](../types/int.md) | Optional|Via bot ID| +|reply\_to\_msg\_id|[int](../types/int.md) | Optional|Reply to msg ID| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities| + + + +### Type: [Updates](../types/Updates.md) + + +### Example: + +```php +$updateShortMessage = ['_' => 'updateShortMessage', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'id' => int, 'user_id' => int, 'message' => 'string', 'pts' => int, 'pts_count' => int, 'date' => int, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'entities' => [MessageEntity, MessageEntity]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateShortMessage", "out": Bool, "mentioned": Bool, "media_unread": Bool, "silent": Bool, "id": int, "user_id": int, "message": "string", "pts": int, "pts_count": int, "date": int, "fwd_from": MessageFwdHeader, "via_bot_id": int, "reply_to_msg_id": int, "entities": [MessageEntity]} +``` + + +Or, if you're into Lua: + +```lua +updateShortMessage={_='updateShortMessage', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, id=int, user_id=int, message='string', pts=int, pts_count=int, date=int, fwd_from=MessageFwdHeader, via_bot_id=int, reply_to_msg_id=int, entities={MessageEntity}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateShortSentMessage.md b/old_docs/API_docs_v91/constructors/updateShortSentMessage.md new file mode 100644 index 00000000..4d415199 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateShortSentMessage.md @@ -0,0 +1,50 @@ +--- +title: updateShortSentMessage +description: Update short sent message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateShortSentMessage +[Back to constructors index](index.md) + + + +Update short sent message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|out|[Bool](../types/Bool.md) | Optional|Out?| +|id|[int](../types/int.md) | Yes|ID| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| +|date|[int](../types/int.md) | Yes|Date| +|media|[MessageMedia](../types/MessageMedia.md) | Optional|Media| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities| + + + +### Type: [Updates](../types/Updates.md) + + +### Example: + +```php +$updateShortSentMessage = ['_' => 'updateShortSentMessage', 'out' => Bool, 'id' => int, 'pts' => int, 'pts_count' => int, 'date' => int, 'media' => MessageMedia, 'entities' => [MessageEntity, MessageEntity]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateShortSentMessage", "out": Bool, "id": int, "pts": int, "pts_count": int, "date": int, "media": MessageMedia, "entities": [MessageEntity]} +``` + + +Or, if you're into Lua: + +```lua +updateShortSentMessage={_='updateShortSentMessage', out=Bool, id=int, pts=int, pts_count=int, date=int, media=MessageMedia, entities={MessageEntity}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateStickerSets.md b/old_docs/API_docs_v91/constructors/updateStickerSets.md new file mode 100644 index 00000000..cdf45095 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateStickerSets.md @@ -0,0 +1,39 @@ +--- +title: updateStickerSets +description: Update sticker sets +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateStickerSets +[Back to constructors index](index.md) + + + +Update sticker sets + + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateStickerSets = ['_' => 'updateStickerSets']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateStickerSets"} +``` + + +Or, if you're into Lua: + +```lua +updateStickerSets={_='updateStickerSets'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateStickerSetsOrder.md b/old_docs/API_docs_v91/constructors/updateStickerSetsOrder.md new file mode 100644 index 00000000..4e6dd9b0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateStickerSetsOrder.md @@ -0,0 +1,45 @@ +--- +title: updateStickerSetsOrder +description: Update sticker sets order +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateStickerSetsOrder +[Back to constructors index](index.md) + + + +Update sticker sets order + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|masks|[Bool](../types/Bool.md) | Optional|Masks?| +|order|Array of [long](../types/long.md) | Yes|Order| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateStickerSetsOrder = ['_' => 'updateStickerSetsOrder', 'masks' => Bool, 'order' => [long, long]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateStickerSetsOrder", "masks": Bool, "order": [long]} +``` + + +Or, if you're into Lua: + +```lua +updateStickerSetsOrder={_='updateStickerSetsOrder', masks=Bool, order={long}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateUserBlocked.md b/old_docs/API_docs_v91/constructors/updateUserBlocked.md new file mode 100644 index 00000000..07447cbc --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateUserBlocked.md @@ -0,0 +1,45 @@ +--- +title: updateUserBlocked +description: Update user blocked +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateUserBlocked +[Back to constructors index](index.md) + + + +Update user blocked + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|blocked|[Bool](../types/Bool.md) | Yes|Blocked?| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateUserBlocked = ['_' => 'updateUserBlocked', 'user_id' => int, 'blocked' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateUserBlocked", "user_id": int, "blocked": Bool} +``` + + +Or, if you're into Lua: + +```lua +updateUserBlocked={_='updateUserBlocked', user_id=int, blocked=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateUserName.md b/old_docs/API_docs_v91/constructors/updateUserName.md new file mode 100644 index 00000000..094594f3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateUserName.md @@ -0,0 +1,47 @@ +--- +title: updateUserName +description: Update user name +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateUserName +[Back to constructors index](index.md) + + + +Update user name + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|first\_name|[string](../types/string.md) | Yes|First name| +|last\_name|[string](../types/string.md) | Yes|Last name| +|username|[string](../types/string.md) | Yes|Username| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateUserName = ['_' => 'updateUserName', 'user_id' => int, 'first_name' => 'string', 'last_name' => 'string', 'username' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateUserName", "user_id": int, "first_name": "string", "last_name": "string", "username": "string"} +``` + + +Or, if you're into Lua: + +```lua +updateUserName={_='updateUserName', user_id=int, first_name='string', last_name='string', username='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateUserPhone.md b/old_docs/API_docs_v91/constructors/updateUserPhone.md new file mode 100644 index 00000000..bd60e47b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateUserPhone.md @@ -0,0 +1,45 @@ +--- +title: updateUserPhone +description: Update user phone +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateUserPhone +[Back to constructors index](index.md) + + + +Update user phone + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|phone|[string](../types/string.md) | Yes|Phone| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateUserPhone = ['_' => 'updateUserPhone', 'user_id' => int, 'phone' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateUserPhone", "user_id": int, "phone": "string"} +``` + + +Or, if you're into Lua: + +```lua +updateUserPhone={_='updateUserPhone', user_id=int, phone='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateUserPhoto.md b/old_docs/API_docs_v91/constructors/updateUserPhoto.md new file mode 100644 index 00000000..f1e552f9 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateUserPhoto.md @@ -0,0 +1,47 @@ +--- +title: updateUserPhoto +description: Update user photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateUserPhoto +[Back to constructors index](index.md) + + + +Update user photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|date|[int](../types/int.md) | Yes|Date| +|photo|[UserProfilePhoto](../types/UserProfilePhoto.md) | Optional|Photo| +|previous|[Bool](../types/Bool.md) | Yes|Previous?| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateUserPhoto = ['_' => 'updateUserPhoto', 'user_id' => int, 'date' => int, 'photo' => UserProfilePhoto, 'previous' => Bool]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateUserPhoto", "user_id": int, "date": int, "photo": UserProfilePhoto, "previous": Bool} +``` + + +Or, if you're into Lua: + +```lua +updateUserPhoto={_='updateUserPhoto', user_id=int, date=int, photo=UserProfilePhoto, previous=Bool} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateUserPinnedMessage.md b/old_docs/API_docs_v91/constructors/updateUserPinnedMessage.md new file mode 100644 index 00000000..ce3e350b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateUserPinnedMessage.md @@ -0,0 +1,45 @@ +--- +title: updateUserPinnedMessage +description: Update user pinned message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateUserPinnedMessage +[Back to constructors index](index.md) + + + +Update user pinned message + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateUserPinnedMessage = ['_' => 'updateUserPinnedMessage', 'user_id' => int, 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateUserPinnedMessage", "user_id": int, "id": int} +``` + + +Or, if you're into Lua: + +```lua +updateUserPinnedMessage={_='updateUserPinnedMessage', user_id=int, id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateUserStatus.md b/old_docs/API_docs_v91/constructors/updateUserStatus.md new file mode 100644 index 00000000..d01f3cf6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateUserStatus.md @@ -0,0 +1,45 @@ +--- +title: updateUserStatus +description: Update user status +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateUserStatus +[Back to constructors index](index.md) + + + +Update user status + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|status|[UserStatus](../types/UserStatus.md) | Optional|Status| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateUserStatus = ['_' => 'updateUserStatus', 'user_id' => int, 'status' => UserStatus]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateUserStatus", "user_id": int, "status": UserStatus} +``` + + +Or, if you're into Lua: + +```lua +updateUserStatus={_='updateUserStatus', user_id=int, status=UserStatus} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateUserTyping.md b/old_docs/API_docs_v91/constructors/updateUserTyping.md new file mode 100644 index 00000000..0fbc26c4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateUserTyping.md @@ -0,0 +1,45 @@ +--- +title: updateUserTyping +description: Update user typing +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateUserTyping +[Back to constructors index](index.md) + + + +Update user typing + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|user\_id|[int](../types/int.md) | Yes|User ID| +|action|[SendMessageAction](../types/SendMessageAction.md) | Yes|Action| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateUserTyping = ['_' => 'updateUserTyping', 'user_id' => int, 'action' => SendMessageAction]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateUserTyping", "user_id": int, "action": SendMessageAction} +``` + + +Or, if you're into Lua: + +```lua +updateUserTyping={_='updateUserTyping', user_id=int, action=SendMessageAction} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updateWebPage.md b/old_docs/API_docs_v91/constructors/updateWebPage.md new file mode 100644 index 00000000..44c1a33e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updateWebPage.md @@ -0,0 +1,46 @@ +--- +title: updateWebPage +description: Update web page +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updateWebPage +[Back to constructors index](index.md) + + + +Update web page + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|webpage|[WebPage](../types/WebPage.md) | Optional|Webpage| +|pts|[int](../types/int.md) | Yes|Pts| +|pts\_count|[int](../types/int.md) | Yes|Pts count| + + + +### Type: [Update](../types/Update.md) + + +### Example: + +```php +$updateWebPage = ['_' => 'updateWebPage', 'webpage' => WebPage, 'pts' => int, 'pts_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updateWebPage", "webpage": WebPage, "pts": int, "pts_count": int} +``` + + +Or, if you're into Lua: + +```lua +updateWebPage={_='updateWebPage', webpage=WebPage, pts=int, pts_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updates.md b/old_docs/API_docs_v91/constructors/updates.md new file mode 100644 index 00000000..7716dfe6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updates.md @@ -0,0 +1,48 @@ +--- +title: updates +description: Updates +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updates +[Back to constructors index](index.md) + + + +Updates + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|updates|Array of [Update](../types/Update.md) | Yes|Updates| +|users|Array of [User](../types/User.md) | Yes|Users| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|date|[int](../types/int.md) | Yes|Date| +|seq|[int](../types/int.md) | Yes|Seq| + + + +### Type: [Updates](../types/Updates.md) + + +### Example: + +```php +$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updates", "updates": [Update], "users": [User], "chats": [Chat], "date": int, "seq": int} +``` + + +Or, if you're into Lua: + +```lua +updates={_='updates', updates={Update}, users={User}, chats={Chat}, date=int, seq=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updatesCombined.md b/old_docs/API_docs_v91/constructors/updatesCombined.md new file mode 100644 index 00000000..09818976 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updatesCombined.md @@ -0,0 +1,49 @@ +--- +title: updatesCombined +description: Updates combined +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updatesCombined +[Back to constructors index](index.md) + + + +Updates combined + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|updates|Array of [Update](../types/Update.md) | Yes|Updates| +|users|Array of [User](../types/User.md) | Yes|Users| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|date|[int](../types/int.md) | Yes|Date| +|seq\_start|[int](../types/int.md) | Yes|Seq start| +|seq|[int](../types/int.md) | Yes|Seq| + + + +### Type: [Updates](../types/Updates.md) + + +### Example: + +```php +$updatesCombined = ['_' => 'updatesCombined', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq_start' => int, 'seq' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updatesCombined", "updates": [Update], "users": [User], "chats": [Chat], "date": int, "seq_start": int, "seq": int} +``` + + +Or, if you're into Lua: + +```lua +updatesCombined={_='updatesCombined', updates={Update}, users={User}, chats={Chat}, date=int, seq_start=int, seq=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updatesTooLong.md b/old_docs/API_docs_v91/constructors/updatesTooLong.md new file mode 100644 index 00000000..2bad12ce --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updatesTooLong.md @@ -0,0 +1,39 @@ +--- +title: updatesTooLong +description: Updates too long +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updatesTooLong +[Back to constructors index](index.md) + + + +Updates too long + + + + +### Type: [Updates](../types/Updates.md) + + +### Example: + +```php +$updatesTooLong = ['_' => 'updatesTooLong']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updatesTooLong"} +``` + + +Or, if you're into Lua: + +```lua +updatesTooLong={_='updatesTooLong'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updates_channelDifference.md b/old_docs/API_docs_v91/constructors/updates_channelDifference.md new file mode 100644 index 00000000..b1bb4353 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updates_channelDifference.md @@ -0,0 +1,50 @@ +--- +title: updates.channelDifference +description: Channel difference +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updates.channelDifference +[Back to constructors index](index.md) + + + +Channel difference + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|final|[Bool](../types/Bool.md) | Optional|Final?| +|pts|[int](../types/int.md) | Yes|Pts| +|timeout|[int](../types/int.md) | Optional|Timeout| +|new\_messages|Array of [Message](../types/Message.md) | Yes|New messages| +|other\_updates|Array of [Update](../types/Update.md) | Yes|Other updates| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) + + +### Example: + +```php +$updates_channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'pts' => int, 'timeout' => int, 'new_messages' => [Message, Message], 'other_updates' => [Update, Update], 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updates.channelDifference", "final": Bool, "pts": int, "timeout": int, "new_messages": [Message], "other_updates": [Update], "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +updates_channelDifference={_='updates.channelDifference', final=Bool, pts=int, timeout=int, new_messages={Message}, other_updates={Update}, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updates_channelDifferenceEmpty.md b/old_docs/API_docs_v91/constructors/updates_channelDifferenceEmpty.md new file mode 100644 index 00000000..b5711f7a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updates_channelDifferenceEmpty.md @@ -0,0 +1,46 @@ +--- +title: updates.channelDifferenceEmpty +description: Empty channel difference +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updates.channelDifferenceEmpty +[Back to constructors index](index.md) + + + +Empty channel difference + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|final|[Bool](../types/Bool.md) | Optional|Final?| +|pts|[int](../types/int.md) | Yes|Pts| +|timeout|[int](../types/int.md) | Optional|Timeout| + + + +### Type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) + + +### Example: + +```php +$updates_channelDifferenceEmpty = ['_' => 'updates.channelDifferenceEmpty', 'final' => Bool, 'pts' => int, 'timeout' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updates.channelDifferenceEmpty", "final": Bool, "pts": int, "timeout": int} +``` + + +Or, if you're into Lua: + +```lua +updates_channelDifferenceEmpty={_='updates.channelDifferenceEmpty', final=Bool, pts=int, timeout=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updates_channelDifferenceTooLong.md b/old_docs/API_docs_v91/constructors/updates_channelDifferenceTooLong.md new file mode 100644 index 00000000..f148ecf4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updates_channelDifferenceTooLong.md @@ -0,0 +1,54 @@ +--- +title: updates.channelDifferenceTooLong +description: Channel difference too long +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updates.channelDifferenceTooLong +[Back to constructors index](index.md) + + + +Channel difference too long + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|final|[Bool](../types/Bool.md) | Optional|Final?| +|pts|[int](../types/int.md) | Yes|Pts| +|timeout|[int](../types/int.md) | Optional|Timeout| +|top\_message|[int](../types/int.md) | Yes|Top message| +|read\_inbox\_max\_id|[int](../types/int.md) | Yes|Read inbox max ID| +|read\_outbox\_max\_id|[int](../types/int.md) | Yes|Read outbox max ID| +|unread\_count|[int](../types/int.md) | Yes|Unread count| +|unread\_mentions\_count|[int](../types/int.md) | Yes|Unread mentions count| +|messages|Array of [Message](../types/Message.md) | Yes|Messages| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| + + + +### Type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) + + +### Example: + +```php +$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'unread_mentions_count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updates.channelDifferenceTooLong", "final": Bool, "pts": int, "timeout": int, "top_message": int, "read_inbox_max_id": int, "read_outbox_max_id": int, "unread_count": int, "unread_mentions_count": int, "messages": [Message], "chats": [Chat], "users": [User]} +``` + + +Or, if you're into Lua: + +```lua +updates_channelDifferenceTooLong={_='updates.channelDifferenceTooLong', final=Bool, pts=int, timeout=int, top_message=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, unread_mentions_count=int, messages={Message}, chats={Chat}, users={User}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updates_difference.md b/old_docs/API_docs_v91/constructors/updates_difference.md new file mode 100644 index 00000000..aea7b705 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updates_difference.md @@ -0,0 +1,49 @@ +--- +title: updates.difference +description: Difference +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updates.difference +[Back to constructors index](index.md) + + + +Difference + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|new\_messages|Array of [Message](../types/Message.md) | Yes|New messages| +|new\_encrypted\_messages|Array of [EncryptedMessage](../types/EncryptedMessage.md) | Yes|New encrypted messages| +|other\_updates|Array of [Update](../types/Update.md) | Yes|Other updates| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| +|state|[updates\_State](../types/updates_State.md) | Yes|State| + + + +### Type: [updates\_Difference](../types/updates_Difference.md) + + +### Example: + +```php +$updates_difference = ['_' => 'updates.difference', 'new_messages' => [Message, Message], 'new_encrypted_messages' => [EncryptedMessage, EncryptedMessage], 'other_updates' => [Update, Update], 'chats' => [Chat, Chat], 'users' => [User, User], 'state' => updates_State]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updates.difference", "new_messages": [Message], "new_encrypted_messages": [EncryptedMessage], "other_updates": [Update], "chats": [Chat], "users": [User], "state": updates_State} +``` + + +Or, if you're into Lua: + +```lua +updates_difference={_='updates.difference', new_messages={Message}, new_encrypted_messages={EncryptedMessage}, other_updates={Update}, chats={Chat}, users={User}, state=updates_State} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updates_differenceEmpty.md b/old_docs/API_docs_v91/constructors/updates_differenceEmpty.md new file mode 100644 index 00000000..54e5553e --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updates_differenceEmpty.md @@ -0,0 +1,45 @@ +--- +title: updates.differenceEmpty +description: Empty difference +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updates.differenceEmpty +[Back to constructors index](index.md) + + + +Empty difference + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|date|[int](../types/int.md) | Yes|Date| +|seq|[int](../types/int.md) | Yes|Seq| + + + +### Type: [updates\_Difference](../types/updates_Difference.md) + + +### Example: + +```php +$updates_differenceEmpty = ['_' => 'updates.differenceEmpty', 'date' => int, 'seq' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updates.differenceEmpty", "date": int, "seq": int} +``` + + +Or, if you're into Lua: + +```lua +updates_differenceEmpty={_='updates.differenceEmpty', date=int, seq=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updates_differenceSlice.md b/old_docs/API_docs_v91/constructors/updates_differenceSlice.md new file mode 100644 index 00000000..39dbd069 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updates_differenceSlice.md @@ -0,0 +1,49 @@ +--- +title: updates.differenceSlice +description: Difference slice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updates.differenceSlice +[Back to constructors index](index.md) + + + +Difference slice + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|new\_messages|Array of [Message](../types/Message.md) | Yes|New messages| +|new\_encrypted\_messages|Array of [EncryptedMessage](../types/EncryptedMessage.md) | Yes|New encrypted messages| +|other\_updates|Array of [Update](../types/Update.md) | Yes|Other updates| +|chats|Array of [Chat](../types/Chat.md) | Yes|Chats| +|users|Array of [User](../types/User.md) | Yes|Users| +|intermediate\_state|[updates\_State](../types/updates_State.md) | Yes|Intermediate state| + + + +### Type: [updates\_Difference](../types/updates_Difference.md) + + +### Example: + +```php +$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message, Message], 'new_encrypted_messages' => [EncryptedMessage, EncryptedMessage], 'other_updates' => [Update, Update], 'chats' => [Chat, Chat], 'users' => [User, User], 'intermediate_state' => updates_State]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updates.differenceSlice", "new_messages": [Message], "new_encrypted_messages": [EncryptedMessage], "other_updates": [Update], "chats": [Chat], "users": [User], "intermediate_state": updates_State} +``` + + +Or, if you're into Lua: + +```lua +updates_differenceSlice={_='updates.differenceSlice', new_messages={Message}, new_encrypted_messages={EncryptedMessage}, other_updates={Update}, chats={Chat}, users={User}, intermediate_state=updates_State} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updates_differenceTooLong.md b/old_docs/API_docs_v91/constructors/updates_differenceTooLong.md new file mode 100644 index 00000000..3c371ec6 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updates_differenceTooLong.md @@ -0,0 +1,44 @@ +--- +title: updates.differenceTooLong +description: Difference too long +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updates.differenceTooLong +[Back to constructors index](index.md) + + + +Difference too long + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|pts|[int](../types/int.md) | Yes|Pts| + + + +### Type: [updates\_Difference](../types/updates_Difference.md) + + +### Example: + +```php +$updates_differenceTooLong = ['_' => 'updates.differenceTooLong', 'pts' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updates.differenceTooLong", "pts": int} +``` + + +Or, if you're into Lua: + +```lua +updates_differenceTooLong={_='updates.differenceTooLong', pts=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/updates_state.md b/old_docs/API_docs_v91/constructors/updates_state.md new file mode 100644 index 00000000..ef4f239c --- /dev/null +++ b/old_docs/API_docs_v91/constructors/updates_state.md @@ -0,0 +1,48 @@ +--- +title: updates.state +description: State +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: updates.state +[Back to constructors index](index.md) + + + +State + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|pts|[int](../types/int.md) | Yes|Pts| +|qts|[int](../types/int.md) | Yes|Qts| +|date|[int](../types/int.md) | Yes|Date| +|seq|[int](../types/int.md) | Yes|Seq| +|unread\_count|[int](../types/int.md) | Yes|Unread count| + + + +### Type: [updates\_State](../types/updates_State.md) + + +### Example: + +```php +$updates_state = ['_' => 'updates.state', 'pts' => int, 'qts' => int, 'date' => int, 'seq' => int, 'unread_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "updates.state", "pts": int, "qts": int, "date": int, "seq": int, "unread_count": int} +``` + + +Or, if you're into Lua: + +```lua +updates_state={_='updates.state', pts=int, qts=int, date=int, seq=int, unread_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/upload_cdnFile.md b/old_docs/API_docs_v91/constructors/upload_cdnFile.md new file mode 100644 index 00000000..be83aaa3 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/upload_cdnFile.md @@ -0,0 +1,44 @@ +--- +title: upload.cdnFile +description: Cdn file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: upload.cdnFile +[Back to constructors index](index.md) + + + +Cdn file + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|bytes|[bytes](../types/bytes.md) | Yes|Bytes| + + + +### Type: [upload\_CdnFile](../types/upload_CdnFile.md) + + +### Example: + +```php +$upload_cdnFile = ['_' => 'upload.cdnFile', 'bytes' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "upload.cdnFile", "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +upload_cdnFile={_='upload.cdnFile', bytes='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/upload_cdnFileReuploadNeeded.md b/old_docs/API_docs_v91/constructors/upload_cdnFileReuploadNeeded.md new file mode 100644 index 00000000..d3018c32 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/upload_cdnFileReuploadNeeded.md @@ -0,0 +1,44 @@ +--- +title: upload.cdnFileReuploadNeeded +description: Cdn file reupload needed +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: upload.cdnFileReuploadNeeded +[Back to constructors index](index.md) + + + +Cdn file reupload needed + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|request\_token|[bytes](../types/bytes.md) | Yes|Request token| + + + +### Type: [upload\_CdnFile](../types/upload_CdnFile.md) + + +### Example: + +```php +$upload_cdnFileReuploadNeeded = ['_' => 'upload.cdnFileReuploadNeeded', 'request_token' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "upload.cdnFileReuploadNeeded", "request_token": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +upload_cdnFileReuploadNeeded={_='upload.cdnFileReuploadNeeded', request_token='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/upload_file.md b/old_docs/API_docs_v91/constructors/upload_file.md new file mode 100644 index 00000000..5a533ed1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/upload_file.md @@ -0,0 +1,46 @@ +--- +title: upload.file +description: File +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: upload.file +[Back to constructors index](index.md) + + + +File + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[storage\_FileType](../types/storage_FileType.md) | Yes|Type| +|mtime|[int](../types/int.md) | Yes|Mtime| +|bytes|[bytes](../types/bytes.md) | Yes|Bytes| + + + +### Type: [upload\_File](../types/upload_File.md) + + +### Example: + +```php +$upload_file = ['_' => 'upload.file', 'type' => storage_FileType, 'mtime' => int, 'bytes' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +upload_file={_='upload.file', type=storage_FileType, mtime=int, bytes='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/upload_fileCdnRedirect.md b/old_docs/API_docs_v91/constructors/upload_fileCdnRedirect.md new file mode 100644 index 00000000..4a3e2a49 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/upload_fileCdnRedirect.md @@ -0,0 +1,48 @@ +--- +title: upload.fileCdnRedirect +description: File cdn redirect +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: upload.fileCdnRedirect +[Back to constructors index](index.md) + + + +File cdn redirect + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|dc\_id|[int](../types/int.md) | Yes|DC ID| +|file\_token|[bytes](../types/bytes.md) | Yes|File token| +|encryption\_key|[bytes](../types/bytes.md) | Yes|Encryption key| +|encryption\_iv|[bytes](../types/bytes.md) | Yes|Encryption iv| +|file\_hashes|Array of [FileHash](../types/FileHash.md) | Yes|File hashes| + + + +### Type: [upload\_File](../types/upload_File.md) + + +### Example: + +```php +$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'file_hashes' => [FileHash, FileHash]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "upload.fileCdnRedirect", "dc_id": int, "file_token": {"_": "bytes", "bytes":"base64 encoded bytes"}, "encryption_key": {"_": "bytes", "bytes":"base64 encoded bytes"}, "encryption_iv": {"_": "bytes", "bytes":"base64 encoded bytes"}, "file_hashes": [FileHash]} +``` + + +Or, if you're into Lua: + +```lua +upload_fileCdnRedirect={_='upload.fileCdnRedirect', dc_id=int, file_token='bytes', encryption_key='bytes', encryption_iv='bytes', file_hashes={FileHash}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/upload_webFile.md b/old_docs/API_docs_v91/constructors/upload_webFile.md new file mode 100644 index 00000000..c8ce5a45 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/upload_webFile.md @@ -0,0 +1,48 @@ +--- +title: upload.webFile +description: Web file +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: upload.webFile +[Back to constructors index](index.md) + + + +Web file + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|size|[int](../types/int.md) | Yes|Size| +|mime\_type|[string](../types/string.md) | Yes|Mime type| +|file\_type|[storage\_FileType](../types/storage_FileType.md) | Yes|File type| +|mtime|[int](../types/int.md) | Yes|Mtime| +|bytes|[bytes](../types/bytes.md) | Yes|Bytes| + + + +### Type: [upload\_WebFile](../types/upload_WebFile.md) + + +### Example: + +```php +$upload_webFile = ['_' => 'upload.webFile', 'size' => int, 'mime_type' => 'string', 'file_type' => storage_FileType, 'mtime' => int, 'bytes' => 'bytes']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "upload.webFile", "size": int, "mime_type": "string", "file_type": storage_FileType, "mtime": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}} +``` + + +Or, if you're into Lua: + +```lua +upload_webFile={_='upload.webFile', size=int, mime_type='string', file_type=storage_FileType, mtime=int, bytes='bytes'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/user.md b/old_docs/API_docs_v91/constructors/user.md new file mode 100644 index 00000000..53b8778a --- /dev/null +++ b/old_docs/API_docs_v91/constructors/user.md @@ -0,0 +1,66 @@ +--- +title: user +description: User +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: user +[Back to constructors index](index.md) + + + +User + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|self|[Bool](../types/Bool.md) | Optional|Self?| +|contact|[Bool](../types/Bool.md) | Optional|Contact?| +|mutual\_contact|[Bool](../types/Bool.md) | Optional|Mutual contact?| +|deleted|[Bool](../types/Bool.md) | Optional|Deleted?| +|bot|[Bool](../types/Bool.md) | Optional|Bot?| +|bot\_chat\_history|[Bool](../types/Bool.md) | Optional|Bot chat history?| +|bot\_nochats|[Bool](../types/Bool.md) | Optional|Bot nochats?| +|verified|[Bool](../types/Bool.md) | Optional|Verified?| +|restricted|[Bool](../types/Bool.md) | Optional|Restricted?| +|min|[Bool](../types/Bool.md) | Optional|Min?| +|bot\_inline\_geo|[Bool](../types/Bool.md) | Optional|Bot inline geo?| +|id|[int](../types/int.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Optional|Access hash| +|first\_name|[string](../types/string.md) | Optional|First name| +|last\_name|[string](../types/string.md) | Optional|Last name| +|username|[string](../types/string.md) | Optional|Username| +|phone|[string](../types/string.md) | Optional|Phone| +|photo|[UserProfilePhoto](../types/UserProfilePhoto.md) | Optional|Photo| +|status|[UserStatus](../types/UserStatus.md) | Optional|Status| +|bot\_info\_version|[int](../types/int.md) | Optional|Bot info version| +|restriction\_reason|[string](../types/string.md) | Optional|Restriction reason| +|bot\_inline\_placeholder|[string](../types/string.md) | Optional|Bot inline placeholder| +|lang\_code|[string](../types/string.md) | Optional|Lang code| + + + +### Type: [User](../types/User.md) + + +### Example: + +```php +$user = ['_' => 'user', 'self' => Bool, 'contact' => Bool, 'mutual_contact' => Bool, 'deleted' => Bool, 'bot' => Bool, 'bot_chat_history' => Bool, 'bot_nochats' => Bool, 'verified' => Bool, 'restricted' => Bool, 'min' => Bool, 'bot_inline_geo' => Bool, 'id' => int, 'access_hash' => long, 'first_name' => 'string', 'last_name' => 'string', 'username' => 'string', 'phone' => 'string', 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restriction_reason' => 'string', 'bot_inline_placeholder' => 'string', 'lang_code' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "user", "self": Bool, "contact": Bool, "mutual_contact": Bool, "deleted": Bool, "bot": Bool, "bot_chat_history": Bool, "bot_nochats": Bool, "verified": Bool, "restricted": Bool, "min": Bool, "bot_inline_geo": Bool, "id": int, "access_hash": long, "first_name": "string", "last_name": "string", "username": "string", "phone": "string", "photo": UserProfilePhoto, "status": UserStatus, "bot_info_version": int, "restriction_reason": "string", "bot_inline_placeholder": "string", "lang_code": "string"} +``` + + +Or, if you're into Lua: + +```lua +user={_='user', self=Bool, contact=Bool, mutual_contact=Bool, deleted=Bool, bot=Bool, bot_chat_history=Bool, bot_nochats=Bool, verified=Bool, restricted=Bool, min=Bool, bot_inline_geo=Bool, id=int, access_hash=long, first_name='string', last_name='string', username='string', phone='string', photo=UserProfilePhoto, status=UserStatus, bot_info_version=int, restriction_reason='string', bot_inline_placeholder='string', lang_code='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/userEmpty.md b/old_docs/API_docs_v91/constructors/userEmpty.md new file mode 100644 index 00000000..5cfe5d75 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/userEmpty.md @@ -0,0 +1,44 @@ +--- +title: userEmpty +description: Empty user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: userEmpty +[Back to constructors index](index.md) + + + +Empty user + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| + + + +### Type: [User](../types/User.md) + + +### Example: + +```php +$userEmpty = ['_' => 'userEmpty', 'id' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "userEmpty", "id": int} +``` + + +Or, if you're into Lua: + +```lua +userEmpty={_='userEmpty', id=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/userFull.md b/old_docs/API_docs_v91/constructors/userFull.md new file mode 100644 index 00000000..bed2b132 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/userFull.md @@ -0,0 +1,55 @@ +--- +title: userFull +description: User full +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: userFull +[Back to constructors index](index.md) + + + +User full + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|blocked|[Bool](../types/Bool.md) | Optional|Blocked?| +|phone\_calls\_available|[Bool](../types/Bool.md) | Optional|Phone calls available?| +|phone\_calls\_private|[Bool](../types/Bool.md) | Optional|Phone calls private?| +|can\_pin\_message|[Bool](../types/Bool.md) | Optional|Can pin message?| +|user|[User](../types/User.md) | Optional|User| +|about|[string](../types/string.md) | Optional|About| +|link|[contacts\_Link](../types/contacts_Link.md) | Yes|Link| +|profile\_photo|[Photo](../types/Photo.md) | Optional|Profile photo| +|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Yes|Notify settings| +|bot\_info|[BotInfo](../types/BotInfo.md) | Optional|Bot info| +|pinned\_msg\_id|[int](../types/int.md) | Optional|Pinned msg ID| +|common\_chats\_count|[int](../types/int.md) | Yes|Common chats count| + + + +### Type: [UserFull](../types/UserFull.md) + + +### Example: + +```php +$userFull = ['_' => 'userFull', 'blocked' => Bool, 'phone_calls_available' => Bool, 'phone_calls_private' => Bool, 'can_pin_message' => Bool, 'user' => User, 'about' => 'string', 'link' => contacts_Link, 'profile_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'bot_info' => BotInfo, 'pinned_msg_id' => int, 'common_chats_count' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "userFull", "blocked": Bool, "phone_calls_available": Bool, "phone_calls_private": Bool, "can_pin_message": Bool, "user": User, "about": "string", "link": contacts_Link, "profile_photo": Photo, "notify_settings": PeerNotifySettings, "bot_info": BotInfo, "pinned_msg_id": int, "common_chats_count": int} +``` + + +Or, if you're into Lua: + +```lua +userFull={_='userFull', blocked=Bool, phone_calls_available=Bool, phone_calls_private=Bool, can_pin_message=Bool, user=User, about='string', link=contacts_Link, profile_photo=Photo, notify_settings=PeerNotifySettings, bot_info=BotInfo, pinned_msg_id=int, common_chats_count=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/userProfilePhoto.md b/old_docs/API_docs_v91/constructors/userProfilePhoto.md new file mode 100644 index 00000000..20322b98 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/userProfilePhoto.md @@ -0,0 +1,46 @@ +--- +title: userProfilePhoto +description: User profile photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: userProfilePhoto +[Back to constructors index](index.md) + + + +User profile photo + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|photo\_id|[long](../types/long.md) | Yes|Photo ID| +|photo\_small|[FileLocation](../types/FileLocation.md) | Yes|Photo small| +|photo\_big|[FileLocation](../types/FileLocation.md) | Yes|Photo big| + + + +### Type: [UserProfilePhoto](../types/UserProfilePhoto.md) + + +### Example: + +```php +$userProfilePhoto = ['_' => 'userProfilePhoto', 'photo_id' => long, 'photo_small' => FileLocation, 'photo_big' => FileLocation]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "userProfilePhoto", "photo_id": long, "photo_small": FileLocation, "photo_big": FileLocation} +``` + + +Or, if you're into Lua: + +```lua +userProfilePhoto={_='userProfilePhoto', photo_id=long, photo_small=FileLocation, photo_big=FileLocation} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/userProfilePhotoEmpty.md b/old_docs/API_docs_v91/constructors/userProfilePhotoEmpty.md new file mode 100644 index 00000000..44f1f2b4 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/userProfilePhotoEmpty.md @@ -0,0 +1,39 @@ +--- +title: userProfilePhotoEmpty +description: Empty user profile photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: userProfilePhotoEmpty +[Back to constructors index](index.md) + + + +Empty user profile photo + + + + +### Type: [UserProfilePhoto](../types/UserProfilePhoto.md) + + +### Example: + +```php +$userProfilePhotoEmpty = ['_' => 'userProfilePhotoEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "userProfilePhotoEmpty"} +``` + + +Or, if you're into Lua: + +```lua +userProfilePhotoEmpty={_='userProfilePhotoEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/userStatusEmpty.md b/old_docs/API_docs_v91/constructors/userStatusEmpty.md new file mode 100644 index 00000000..2a633a8b --- /dev/null +++ b/old_docs/API_docs_v91/constructors/userStatusEmpty.md @@ -0,0 +1,39 @@ +--- +title: userStatusEmpty +description: Empty user status +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: userStatusEmpty +[Back to constructors index](index.md) + + + +Empty user status + + + + +### Type: [UserStatus](../types/UserStatus.md) + + +### Example: + +```php +$userStatusEmpty = ['_' => 'userStatusEmpty']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "userStatusEmpty"} +``` + + +Or, if you're into Lua: + +```lua +userStatusEmpty={_='userStatusEmpty'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/userStatusLastMonth.md b/old_docs/API_docs_v91/constructors/userStatusLastMonth.md new file mode 100644 index 00000000..a90049bf --- /dev/null +++ b/old_docs/API_docs_v91/constructors/userStatusLastMonth.md @@ -0,0 +1,39 @@ +--- +title: userStatusLastMonth +description: User status last month +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: userStatusLastMonth +[Back to constructors index](index.md) + + + +User status last month + + + + +### Type: [UserStatus](../types/UserStatus.md) + + +### Example: + +```php +$userStatusLastMonth = ['_' => 'userStatusLastMonth']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "userStatusLastMonth"} +``` + + +Or, if you're into Lua: + +```lua +userStatusLastMonth={_='userStatusLastMonth'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/userStatusLastWeek.md b/old_docs/API_docs_v91/constructors/userStatusLastWeek.md new file mode 100644 index 00000000..233c6946 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/userStatusLastWeek.md @@ -0,0 +1,39 @@ +--- +title: userStatusLastWeek +description: User status last week +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: userStatusLastWeek +[Back to constructors index](index.md) + + + +User status last week + + + + +### Type: [UserStatus](../types/UserStatus.md) + + +### Example: + +```php +$userStatusLastWeek = ['_' => 'userStatusLastWeek']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "userStatusLastWeek"} +``` + + +Or, if you're into Lua: + +```lua +userStatusLastWeek={_='userStatusLastWeek'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/userStatusOffline.md b/old_docs/API_docs_v91/constructors/userStatusOffline.md new file mode 100644 index 00000000..4dac7726 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/userStatusOffline.md @@ -0,0 +1,44 @@ +--- +title: userStatusOffline +description: User status offline +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: userStatusOffline +[Back to constructors index](index.md) + + + +User status offline + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|was\_online|[int](../types/int.md) | Yes|Was online| + + + +### Type: [UserStatus](../types/UserStatus.md) + + +### Example: + +```php +$userStatusOffline = ['_' => 'userStatusOffline', 'was_online' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "userStatusOffline", "was_online": int} +``` + + +Or, if you're into Lua: + +```lua +userStatusOffline={_='userStatusOffline', was_online=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/userStatusOnline.md b/old_docs/API_docs_v91/constructors/userStatusOnline.md new file mode 100644 index 00000000..81ecba9f --- /dev/null +++ b/old_docs/API_docs_v91/constructors/userStatusOnline.md @@ -0,0 +1,44 @@ +--- +title: userStatusOnline +description: User status online +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: userStatusOnline +[Back to constructors index](index.md) + + + +User status online + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|expires|[int](../types/int.md) | Yes|Expires| + + + +### Type: [UserStatus](../types/UserStatus.md) + + +### Example: + +```php +$userStatusOnline = ['_' => 'userStatusOnline', 'expires' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "userStatusOnline", "expires": int} +``` + + +Or, if you're into Lua: + +```lua +userStatusOnline={_='userStatusOnline', expires=int} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/userStatusRecently.md b/old_docs/API_docs_v91/constructors/userStatusRecently.md new file mode 100644 index 00000000..18132b34 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/userStatusRecently.md @@ -0,0 +1,39 @@ +--- +title: userStatusRecently +description: User status recently +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: userStatusRecently +[Back to constructors index](index.md) + + + +User status recently + + + + +### Type: [UserStatus](../types/UserStatus.md) + + +### Example: + +```php +$userStatusRecently = ['_' => 'userStatusRecently']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "userStatusRecently"} +``` + + +Or, if you're into Lua: + +```lua +userStatusRecently={_='userStatusRecently'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/wallPaper.md b/old_docs/API_docs_v91/constructors/wallPaper.md new file mode 100644 index 00000000..b1dd46b0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/wallPaper.md @@ -0,0 +1,47 @@ +--- +title: wallPaper +description: Wall paper +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: wallPaper +[Back to constructors index](index.md) + + + +Wall paper + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[int](../types/int.md) | Yes|ID| +|title|[string](../types/string.md) | Yes|Title| +|sizes|Array of [PhotoSize](../types/PhotoSize.md) | Yes|Sizes| +|color|[int](../types/int.md) | Yes|Color| + + + +### Type: [WallPaper](../types/WallPaper.md) + + +### Example: + +```php +$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "wallPaper", "id": int, "title": "string", "sizes": [PhotoSize], "color": int} +``` + + +Or, if you're into Lua: + +```lua +wallPaper={_='wallPaper', id=int, title='string', sizes={PhotoSize}, color=int} + +``` + + diff --git a/docs/API_docs/constructors/wallPaperSolid.md b/old_docs/API_docs_v91/constructors/wallPaperSolid.md similarity index 100% rename from docs/API_docs/constructors/wallPaperSolid.md rename to old_docs/API_docs_v91/constructors/wallPaperSolid.md diff --git a/old_docs/API_docs_v91/constructors/webAuthorization.md b/old_docs/API_docs_v91/constructors/webAuthorization.md new file mode 100644 index 00000000..9ce4ebc1 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/webAuthorization.md @@ -0,0 +1,52 @@ +--- +title: webAuthorization +description: Web authorization +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: webAuthorization +[Back to constructors index](index.md) + + + +Web authorization + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[long](../types/long.md) | Yes|Hash| +|bot\_id|[int](../types/int.md) | Yes|Bot ID| +|domain|[string](../types/string.md) | Yes|Domain| +|browser|[string](../types/string.md) | Yes|Browser| +|platform|[string](../types/string.md) | Yes|Platform| +|date\_created|[int](../types/int.md) | Yes|Date created| +|date\_active|[int](../types/int.md) | Yes|Date active| +|ip|[string](../types/string.md) | Yes|Ip| +|region|[string](../types/string.md) | Yes|Region| + + + +### Type: [WebAuthorization](../types/WebAuthorization.md) + + +### Example: + +```php +$webAuthorization = ['_' => 'webAuthorization', 'hash' => long, 'bot_id' => int, 'domain' => 'string', 'browser' => 'string', 'platform' => 'string', 'date_created' => int, 'date_active' => int, 'ip' => 'string', 'region' => 'string']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "webAuthorization", "hash": long, "bot_id": int, "domain": "string", "browser": "string", "platform": "string", "date_created": int, "date_active": int, "ip": "string", "region": "string"} +``` + + +Or, if you're into Lua: + +```lua +webAuthorization={_='webAuthorization', hash=long, bot_id=int, domain='string', browser='string', platform='string', date_created=int, date_active=int, ip='string', region='string'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/webDocument.md b/old_docs/API_docs_v91/constructors/webDocument.md new file mode 100644 index 00000000..124a3569 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/webDocument.md @@ -0,0 +1,48 @@ +--- +title: webDocument +description: Web document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: webDocument +[Back to constructors index](index.md) + + + +Web document + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|access\_hash|[long](../types/long.md) | Yes|Access hash| +|size|[int](../types/int.md) | Yes|Size| +|mime\_type|[string](../types/string.md) | Yes|Mime type| +|attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes|Attributes| + + + +### Type: [WebDocument](../types/WebDocument.md) + + +### Example: + +```php +$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "webDocument", "url": "string", "access_hash": long, "size": int, "mime_type": "string", "attributes": [DocumentAttribute]} +``` + + +Or, if you're into Lua: + +```lua +webDocument={_='webDocument', url='string', access_hash=long, size=int, mime_type='string', attributes={DocumentAttribute}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/webDocumentNoProxy.md b/old_docs/API_docs_v91/constructors/webDocumentNoProxy.md new file mode 100644 index 00000000..d7a78649 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/webDocumentNoProxy.md @@ -0,0 +1,47 @@ +--- +title: webDocumentNoProxy +description: Web document no proxy +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: webDocumentNoProxy +[Back to constructors index](index.md) + + + +Web document no proxy + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|URL| +|size|[int](../types/int.md) | Yes|Size| +|mime\_type|[string](../types/string.md) | Yes|Mime type| +|attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes|Attributes| + + + +### Type: [WebDocument](../types/WebDocument.md) + + +### Example: + +```php +$webDocumentNoProxy = ['_' => 'webDocumentNoProxy', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "webDocumentNoProxy", "url": "string", "size": int, "mime_type": "string", "attributes": [DocumentAttribute]} +``` + + +Or, if you're into Lua: + +```lua +webDocumentNoProxy={_='webDocumentNoProxy', url='string', size=int, mime_type='string', attributes={DocumentAttribute}} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/webPage.md b/old_docs/API_docs_v91/constructors/webPage.md new file mode 100644 index 00000000..aaa7c3ed --- /dev/null +++ b/old_docs/API_docs_v91/constructors/webPage.md @@ -0,0 +1,60 @@ +--- +title: webPage +description: Web page +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: webPage +[Back to constructors index](index.md) + + + +Web page + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|url|[string](../types/string.md) | Yes|URL| +|display\_url|[string](../types/string.md) | Yes|Display URL| +|hash|[int](../types/int.md) | Yes|Hash| +|type|[string](../types/string.md) | Optional|Type| +|site\_name|[string](../types/string.md) | Optional|Site name| +|title|[string](../types/string.md) | Optional|Title| +|description|[string](../types/string.md) | Optional|Description| +|photo|[Photo](../types/Photo.md) | Optional|Photo| +|embed\_url|[string](../types/string.md) | Optional|Embed URL| +|embed\_type|[string](../types/string.md) | Optional|Embed type| +|embed\_width|[int](../types/int.md) | Optional|Embed width| +|embed\_height|[int](../types/int.md) | Optional|Embed height| +|duration|[int](../types/int.md) | Optional|Duration| +|author|[string](../types/string.md) | Optional|Author| +|document|[Document](../types/Document.md) | Optional|Document| +|cached\_page|[Page](../types/Page.md) | Optional|Cached page| + + + +### Type: [WebPage](../types/WebPage.md) + + +### Example: + +```php +$webPage = ['_' => 'webPage', 'id' => long, 'url' => 'string', 'display_url' => 'string', 'hash' => int, 'type' => 'string', 'site_name' => 'string', 'title' => 'string', 'description' => 'string', 'photo' => Photo, 'embed_url' => 'string', 'embed_type' => 'string', 'embed_width' => int, 'embed_height' => int, 'duration' => int, 'author' => 'string', 'document' => Document, 'cached_page' => Page]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "webPage", "id": long, "url": "string", "display_url": "string", "hash": int, "type": "string", "site_name": "string", "title": "string", "description": "string", "photo": Photo, "embed_url": "string", "embed_type": "string", "embed_width": int, "embed_height": int, "duration": int, "author": "string", "document": Document, "cached_page": Page} +``` + + +Or, if you're into Lua: + +```lua +webPage={_='webPage', id=long, url='string', display_url='string', hash=int, type='string', site_name='string', title='string', description='string', photo=Photo, embed_url='string', embed_type='string', embed_width=int, embed_height=int, duration=int, author='string', document=Document, cached_page=Page} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/webPageEmpty.md b/old_docs/API_docs_v91/constructors/webPageEmpty.md new file mode 100644 index 00000000..6091d4fd --- /dev/null +++ b/old_docs/API_docs_v91/constructors/webPageEmpty.md @@ -0,0 +1,44 @@ +--- +title: webPageEmpty +description: Empty web page +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: webPageEmpty +[Back to constructors index](index.md) + + + +Empty web page + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| + + + +### Type: [WebPage](../types/WebPage.md) + + +### Example: + +```php +$webPageEmpty = ['_' => 'webPageEmpty', 'id' => long]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "webPageEmpty", "id": long} +``` + + +Or, if you're into Lua: + +```lua +webPageEmpty={_='webPageEmpty', id=long} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/webPageNotModified.md b/old_docs/API_docs_v91/constructors/webPageNotModified.md new file mode 100644 index 00000000..6dba416d --- /dev/null +++ b/old_docs/API_docs_v91/constructors/webPageNotModified.md @@ -0,0 +1,39 @@ +--- +title: webPageNotModified +description: Web page not modified +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: webPageNotModified +[Back to constructors index](index.md) + + + +Web page not modified + + + + +### Type: [WebPage](../types/WebPage.md) + + +### Example: + +```php +$webPageNotModified = ['_' => 'webPageNotModified']; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "webPageNotModified"} +``` + + +Or, if you're into Lua: + +```lua +webPageNotModified={_='webPageNotModified'} + +``` + + diff --git a/old_docs/API_docs_v91/constructors/webPagePending.md b/old_docs/API_docs_v91/constructors/webPagePending.md new file mode 100644 index 00000000..01f770e0 --- /dev/null +++ b/old_docs/API_docs_v91/constructors/webPagePending.md @@ -0,0 +1,45 @@ +--- +title: webPagePending +description: Web page pending +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Constructor: webPagePending +[Back to constructors index](index.md) + + + +Web page pending + +### Attributes: + +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|date|[int](../types/int.md) | Yes|Date| + + + +### Type: [WebPage](../types/WebPage.md) + + +### Example: + +```php +$webPagePending = ['_' => 'webPagePending', 'id' => long, 'date' => int]; +``` + +[PWRTelegram](https://pwrtelegram.xyz) json-encoded version: + +``` +{"_": "webPagePending", "id": long, "date": int} +``` + + +Or, if you're into Lua: + +```lua +webPagePending={_='webPagePending', id=long, date=int} + +``` + + diff --git a/old_docs/API_docs_v91/methods/README.md b/old_docs/API_docs_v91/methods/README.md new file mode 100644 index 00000000..a6de52ea --- /dev/null +++ b/old_docs/API_docs_v91/methods/README.md @@ -0,0 +1,534 @@ +--- +title: Methods +description: What do you want to do? +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# What do you want to do? +[Go back to API documentation index](..) + +[Go to the old code-version method index](api_README.md) + +* [Logout](https://docs.madelineproto.xyz/logout.html) + +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) + +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) + +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) + +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) + +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) + +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) + +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) + +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) + +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) + +* Accept telegram passport authorization: account.acceptAuthorization + +* Accept telegram's TOS: help.acceptTermsOfService + +* Add a sticker set: messages.installStickerSet + +* Add a sticker to favorites: messages.faveSticker + +* Add a sticker to recent stickers: messages.saveRecentSticker + +* Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + +* Add phone number as contact: contacts.importContacts + +* Add sticker to stickerset: stickers.addStickerToSet + +* Add users to channel/supergroup: channels.inviteToChannel + +* Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + +* Block a user: contacts.block + +* Bots only: get telegram passport authorization form: account.getAuthorizationForm + +* Bots only: send payment form: payments.sendPaymentForm + +* Bots only: set precheckout results: messages.setBotPrecheckoutResults + +* Bots only: set shipping results: messages.setBotShippingResults + +* Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + +* Bots only: set the results of an inline query: messages.setInlineBotResults + +* Call inline bot: messages.getInlineBotResults + +* Cancel password recovery email: account.cancelPasswordEmail + +* Change notification settings: account.updateNotifySettings + +* Change sticker position in photo: stickers.changeStickerPosition + +* Change the phone number associated to this account: account.changePhone + +* Change the phone number: account.sendChangePhoneCode + +* Change the profile photo: photos.updateProfilePhoto + +* Change typing status: messages.setTyping + +* Check if about to edit a message or a media caption: messages.getMessageEditData + +* Check if an invitation link is valid: messages.checkChatInvite + +* Check if this username is available: account.checkUsername + +* Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + +* Clear all drafts: messages.clearAllDrafts + +* Clear all recent stickers: messages.clearRecentStickers + +* Clear saved payments info: payments.clearSavedInfo + +* Confirm password recovery using email: account.confirmPasswordEmail + +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + +* Contact signup notification setting value: account.getContactSignUpNotification + +* Convert chat to supergroup: messages.migrateChat + +* Create a chat (not supergroup): messages.createChat + +* Create channel/supergroup: channels.createChannel + +* Create stickerset: stickers.createStickerSet + +* Delete a certain session: account.resetAuthorization + +* Delete a certain telegram web login authorization: account.resetWebAuthorization + +* Delete a channel/supergroup: channels.deleteChannel + +* Delete a contact: contacts.deleteContact + +* Delete a user from a chat (not supergroup): messages.deleteChatUser + +* Delete all logged-in sessions.: auth.resetAuthorizations + +* Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + +* Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + +* Delete channel/supergroup messages: channels.deleteMessages + +* Delete chat history: messages.deleteHistory + +* Delete contacts by phones: contacts.deleteByPhones + +* Delete messages: messages.deleteMessages + +* Delete multiple contacts: contacts.deleteContacts + +* Delete profile photos: photos.deletePhotos + +* Delete secure telegram passport value: account.deleteSecureValue + +* Delete the history of a supergroup/channel: channels.deleteHistory + +* Delete this account: account.deleteAccount + +* Disable all notifications for a certain period: account.updateDeviceLocked + +* Download a file through telegram: upload.getWebFile + +* Edit a message: messages.editMessage + +* Edit a sent inline message: messages.editInlineBotMessage + +* Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + +* Edit admin permissions: messages.editChatAdmin + +* Edit the about text of a channel/supergroup: channels.editAbout + +* Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + +* Edit the photo of a supergroup/channel: channels.editPhoto + +* Edit the title of a normal chat (not supergroup): messages.editChatTitle + +* Edit the title of a supergroup/channel: channels.editTitle + +* Edit user info: help.editUserInfo + +* Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + +* Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + +* Export chat invite : messages.exportChatInvite + +* Export the invite link of a channel: channels.exportInvite + +* Find a sticker set: messages.searchStickerSets + +* Finish account exporting session: account.finishTakeoutSession + +* Forward messages: messages.forwardMessages + +* Get CDN configuration: help.getCdnConfig + +* Get a stickerset: messages.getStickerSet + +* Get account TTL: account.getAccountTTL + +* Get admin log of a channel/supergroup: channels.getAdminLog + +* Get all archived stickers: messages.getArchivedStickers + +* Get all channels you left: channels.getLeftChannels + +* Get all chats (not supergroups or channels): messages.getAllChats + +* Get all contacts: contacts.getContacts + +* Get all logged-in authorizations: account.getAuthorizations + +* Get all message drafts: messages.getAllDrafts + +* Get all secure telegram passport values: account.getAllSecureValues + +* Get all stickerpacks: messages.getAllStickers + +* Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + +* Get and increase message views: messages.getMessagesViews + +* Get app config: help.getAppConfig + +* Get available languages: langpack.getLanguages + +* Get blocked users: contacts.getBlocked + +* Get call configuration: phone.getCallConfig + +* Get channel/supergroup messages: channels.getMessages + +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + +* Get chats in common with a user: messages.getCommonChats + +* Get contacts by IDs: contacts.getContactIDs + +* Get deep link info: help.getDeepLinkInfo + +* Get dialog info of peers: messages.getPeerDialogs + +* Get dialogs marked as unread manually: messages.getDialogUnreadMarks + +* Get document by SHA256 hash: messages.getDocumentByHash + +* Get favorite stickers: messages.getFavedStickers + +* Get featured stickers: messages.getFeaturedStickers + +* Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + +* Get high scores of a game: messages.getGameHighScores + +* Get info about a certain channel/supergroup participant: channels.getParticipant + +* Get info about app updates: help.getAppUpdate + +* Get info about chats: messages.getChats + +* Get info about multiple channels/supergroups: channels.getChannels + +* Get info about users: users.getUsers + +* Get info of support user: help.getSupport + +* Get information about the current proxy: help.getProxyData + +* Get invitation text: help.getInviteText + +* Get language pack strings: langpack.getStrings + +* Get language pack updates: langpack.getDifference + +* Get language pack: langpack.getLangPack + +* Get language: langpack.getLanguage + +* Get masks: messages.getMaskStickers + +* Get message ranges to fetch: messages.getSplitRanges + +* Get messages: messages.getMessages + +* Get most used chats: contacts.getTopPeers + +* Get nearest datacenter: help.getNearestDc + +* Get notification exceptions: account.getNotifyExceptions + +* Get notification settings: account.getNotifySettings + +* Get online status of all users: contacts.getStatuses + +* Get online users: messages.getOnlines + +* Get passport config: help.getPassportConfig + +* Get payment form: payments.getPaymentForm + +* Get payment receipt: payments.getPaymentReceipt + +* Get pinned dialogs: messages.getPinnedDialogs + +* Get poll results: messages.getPollResults + +* Get previous messages of a group: messages.getHistory + +* Get privacy settings: account.getPrivacy + +* Get recent locations: messages.getRecentLocations + +* Get recent stickers: messages.getRecentStickers + +* Get recent t.me URLs: help.getRecentMeUrls + +* Get saved contacts: contacts.getSaved + +* Get saved gifs: messages.getSavedGifs + +* Get saved payments info: payments.getSavedInfo + +* Get secure value for telegram passport: account.getSecureValue + +* Get server configuration: help.getConfig + +* Get stats URL: messages.getStatsURL + +* Get stickers attachable to images: messages.getAttachedStickers + +* Get stickers: messages.getStickers + +* Get support name: help.getSupportName + +* Get telegram web login authorizations: account.getWebAuthorizations + +* Get temporary password for buying products through bots: account.getTmpPassword + +* Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + +* Get the changelog of this app: help.getAppChangelog + +* Get the current password: account.getPassword + +* Get the link of a message in a channel: channels.exportMessageLink + +* Get the profile photos of a user: photos.getUserPhotos + +* Get the settings of apeer: messages.getPeerSettings + +* Get unread mentions: messages.getUnreadMentions + +* Get updated TOS: help.getTermsOfServiceUpdate + +* Get user info: help.getUserInfo + +* Get webpage preview: messages.getWebPage + +* Get webpage preview: messages.getWebPagePreview + +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + +* Global message search: messages.searchGlobal + +* Hide report spam popup: messages.hideReportSpam + +* Import chat invite: messages.importChatInvite + +* Initializes connection and save information on the user's device and application.: initConnection + +* Invalidate sent phone code: auth.cancelCode + +* Invoke method from takeout session: invokeWithTakeout + +* Invoke this method with layer X: invokeWithLayer + +* Invoke with messages range: invokeWithMessagesRange + +* Invoke with method without returning updates in the socket: invokeWithoutUpdates + +* Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + +* Join a channel/supergroup: channels.joinChannel + +* Kick or ban a user from a channel/supergroup: channels.editBanned + +* Leave a channel/supergroup: channels.leaveChannel + +* Log data for developer of this app: help.saveAppLog + +* Mark channel/supergroup history as read: channels.readHistory + +* Mark channel/supergroup messages as read: channels.readMessageContents + +* Mark dialog as unread : messages.markDialogUnread + +* Mark mentions as read: messages.readMentions + +* Mark message as read: messages.readMessageContents + +* Mark messages as read in secret chats: messages.readEncryptedHistory + +* Mark messages as read: messages.readHistory + +* Mark messages as read: messages.receivedMessages + +* Mark new featured stickers as read: messages.readFeaturedStickers + +* Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + +* Pin or unpin dialog: messages.toggleDialogPin + +* Register device for push notifications: account.registerDevice + +* Remove a sticker set: messages.uninstallStickerSet + +* Remove sticker from stickerset: stickers.removeStickerFromSet + +* Reorder pinned dialogs: messages.reorderPinnedDialogs + +* Reorder sticker sets: messages.reorderStickerSets + +* Report a message in a supergroup/channel for spam: channels.reportSpam + +* Report a message: messages.report + +* Report a peer for spam: messages.reportSpam + +* Report for spam a secret chat: messages.reportEncryptedSpam + +* Report for spam: account.reportPeer + +* Resend password recovery email: account.resendPasswordEmail + +* Resend the SMS verification code: auth.resendCode + +* Reset all notification settings: account.resetNotifySettings + +* Reset all telegram web login authorizations: account.resetWebAuthorizations + +* Reset saved contacts: contacts.resetSaved + +* Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + +* Result type returned by a current query.: invokeAfterMsgs + +* Returns a list of available wallpapers.: account.getWallPapers + +* Save a GIF: messages.saveGif + +* Save a message draft: messages.saveDraft + +* Save call debugging info: phone.saveCallDebug + +* Save telegram passport secure value: account.saveSecureValue + +* Search contacts: contacts.search + +* Search gifs: messages.searchGifs + +* Search peers or messages: messages.search + +* Send a custom request to the bot API: bots.sendCustomRequest + +* Send a file to a secret chat: messages.sendEncryptedFile + +* Send a media: messages.sendMedia + +* Send a message: messages.sendMessage + +* Send a service message to a secret chat: messages.sendEncryptedService + +* Send an album: messages.sendMultiMedia + +* Send an email to recover the 2FA password: auth.requestPasswordRecovery + +* Send confirmation phone code: account.sendConfirmPhoneCode + +* Send email verification code: account.sendVerifyEmailCode + +* Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + +* Send message to secret chat: messages.sendEncrypted + +* Send phone verification code: account.sendVerifyPhoneCode + +* Send screenshot notification: messages.sendScreenshotNotification + +* Send typing notification to secret chat: messages.setEncryptedTyping + +* Send vote: messages.sendVote + +* Send webhook request via bot API: bots.answerWebhookJSONQuery + +* Set account TTL: account.setAccountTTL + +* Set contact sign up notification: account.setContactSignUpNotification + +* Set phone call rating: phone.setCallRating + +* Set privacy settings: account.setPrivacy + +* Set secure value error for telegram passport: users.setSecureValueErrors + +* Set the game score of an inline message: messages.setInlineGameScore + +* Set the game score: messages.setGameScore + +* Set the supergroup/channel stickerpack: channels.setStickers + +* Set the update status of webhook: help.setBotUpdatesStatus + +* Start a bot: messages.startBot + +* Start account exporting session: account.initTakeoutSession + +* Stop sending PUSH notifications to app: account.unregisterDevice + +* Toggle channel signatures: channels.toggleSignatures + +* Toggle top peers: contacts.toggleTopPeers + +* Unblock a user: contacts.unblock + +* Update online status: account.updateStatus + +* Update pinned message (private chat only): messages.updatePinnedMessage + +* Update profile info: account.updateProfile + +* Update the username of a supergroup/channel: channels.updateUsername + +* Update this user's username: account.updateUsername + +* Upload a file without sending it to anyone: messages.uploadMedia + +* Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + +* Upload profile photo: photos.uploadProfilePhoto + +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + +* Validate requested payment info: payments.validateRequestedInfo + +* Verify email address: account.verifyEmail + +* Verify phone number: account.verifyPhone + diff --git a/old_docs/API_docs_v91/methods/account_acceptAuthorization.md b/old_docs/API_docs_v91/methods/account_acceptAuthorization.md new file mode 100644 index 00000000..3db73de5 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_acceptAuthorization.md @@ -0,0 +1,80 @@ +--- +title: account.acceptAuthorization +description: Accept telegram passport authorization +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.acceptAuthorization +[Back to methods index](index.md) + + +Accept telegram passport authorization + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|bot\_id|[int](../types/int.md) | Bot ID | Yes| +|scope|[string](../types/string.md) | Scope | Yes| +|public\_key|[string](../types/string.md) | The bot's RSA public key | Yes| +|value\_hashes|Array of [SecureValueHash](../types/SecureValueHash.md) | Hashes of the encrypted credentials | Yes| +|credentials|[SecureCredentialsEncrypted](../types/SecureCredentialsEncrypted.md) | Encrypted secure credentials | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->acceptAuthorization(['bot_id' => int, 'scope' => 'string', 'public_key' => 'string', 'value_hashes' => [SecureValueHash, SecureValueHash], 'credentials' => SecureCredentialsEncrypted, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.acceptAuthorization +* params - `{"bot_id": int, "scope": "string", "public_key": "string", "value_hashes": [SecureValueHash], "credentials": SecureCredentialsEncrypted, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.acceptAuthorization` + +Parameters: + +bot_id - Json encoded int + +scope - Json encoded string + +public_key - Json encoded string + +value_hashes - Json encoded array of SecureValueHash + +credentials - Json encoded SecureCredentialsEncrypted + + + + +Or, if you're into Lua: + +```lua +Bool = account.acceptAuthorization({bot_id=int, scope='string', public_key='string', value_hashes={SecureValueHash}, credentials=SecureCredentialsEncrypted, }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_cancelPasswordEmail.md b/old_docs/API_docs_v91/methods/account_cancelPasswordEmail.md new file mode 100644 index 00000000..00120310 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_cancelPasswordEmail.md @@ -0,0 +1,61 @@ +--- +title: account.cancelPasswordEmail +description: Cancel password recovery email +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.cancelPasswordEmail +[Back to methods index](index.md) + + +Cancel password recovery email + + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->cancelPasswordEmail(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.cancelPasswordEmail +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.cancelPasswordEmail` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Bool = account.cancelPasswordEmail({}) +``` + diff --git a/old_docs/API_docs_v91/methods/account_changePhone.md b/old_docs/API_docs_v91/methods/account_changePhone.md new file mode 100644 index 00000000..0625e903 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_changePhone.md @@ -0,0 +1,72 @@ +--- +title: account.changePhone +description: Change the phone number associated to this account +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.changePhone +[Back to methods index](index.md) + + +Change the phone number associated to this account + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|phone\_number|[string](../types/string.md) | Phone number | Yes| +|phone\_code\_hash|[string](../types/string.md) | Phone code hash returned by account.sendChangePhoneCode | Yes| +|phone\_code|[string](../types/string.md) | The phone code sent by account.sendChangePhoneCode | Yes| + + +### Return type: [User](../types/User.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.changePhone` + +Parameters: + +phone_number - Json encoded string + +phone_code_hash - Json encoded string + +phone_code - Json encoded string + + + + +Or, if you're into Lua: + +```lua +User = account.changePhone({phone_number='string', phone_code_hash='string', phone_code='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PHONE_NUMBER_INVALID|The phone number is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_checkUsername.md b/old_docs/API_docs_v91/methods/account_checkUsername.md new file mode 100644 index 00000000..41efbdfb --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_checkUsername.md @@ -0,0 +1,66 @@ +--- +title: account.checkUsername +description: Check if this username is available +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.checkUsername +[Back to methods index](index.md) + + +Check if this username is available + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|username|[string](../types/string.md) | The username to check | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.checkUsername` + +Parameters: + +username - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = account.checkUsername({username='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|USERNAME_INVALID|The provided username is not valid| + + diff --git a/old_docs/API_docs_v91/methods/account_confirmPasswordEmail.md b/old_docs/API_docs_v91/methods/account_confirmPasswordEmail.md new file mode 100644 index 00000000..7eaca911 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_confirmPasswordEmail.md @@ -0,0 +1,68 @@ +--- +title: account.confirmPasswordEmail +description: Confirm password recovery using email +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.confirmPasswordEmail +[Back to methods index](index.md) + + +Confirm password recovery using email + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|code|[string](../types/string.md) | Code | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->confirmPasswordEmail(['code' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.confirmPasswordEmail +* params - `{"code": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.confirmPasswordEmail` + +Parameters: + +code - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = account.confirmPasswordEmail({code='string', }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_confirmPhone.md b/old_docs/API_docs_v91/methods/account_confirmPhone.md new file mode 100644 index 00000000..aa015954 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_confirmPhone.md @@ -0,0 +1,70 @@ +--- +title: account.confirmPhone +description: Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.confirmPhone +[Back to methods index](index.md) + + +Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|phone\_code\_hash|[string](../types/string.md) | Obtain phone_code_hash from sendConfirmPhoneCode | Yes| +|phone\_code|[string](../types/string.md) | The code sent by sendConfirmPhoneCode | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.confirmPhone` + +Parameters: + +phone_code_hash - Json encoded string + +phone_code - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = account.confirmPhone({phone_code_hash='string', phone_code='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CODE_HASH_INVALID|Code hash invalid| +|PHONE_CODE_EMPTY|phone_code is missing| + + diff --git a/old_docs/API_docs_v91/methods/account_deleteAccount.md b/old_docs/API_docs_v91/methods/account_deleteAccount.md new file mode 100644 index 00000000..61e8e9f5 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_deleteAccount.md @@ -0,0 +1,59 @@ +--- +title: account.deleteAccount +description: Delete this account +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.deleteAccount +[Back to methods index](index.md) + + +Delete this account + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|reason|[string](../types/string.md) | Why are you going away? :( | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.deleteAccount` + +Parameters: + +reason - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = account.deleteAccount({reason='string', }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_deleteSecureValue.md b/old_docs/API_docs_v91/methods/account_deleteSecureValue.md new file mode 100644 index 00000000..ac6b7ec8 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_deleteSecureValue.md @@ -0,0 +1,68 @@ +--- +title: account.deleteSecureValue +description: Delete secure telegram passport value +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.deleteSecureValue +[Back to methods index](index.md) + + +Delete secure telegram passport value + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|types|Array of [SecureValueType](../types/SecureValueType.md) | The values to delete | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->deleteSecureValue(['types' => [SecureValueType, SecureValueType], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.deleteSecureValue +* params - `{"types": [SecureValueType], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.deleteSecureValue` + +Parameters: + +types - Json encoded array of SecureValueType + + + + +Or, if you're into Lua: + +```lua +Bool = account.deleteSecureValue({types={SecureValueType}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_finishTakeoutSession.md b/old_docs/API_docs_v91/methods/account_finishTakeoutSession.md new file mode 100644 index 00000000..8326800d --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_finishTakeoutSession.md @@ -0,0 +1,68 @@ +--- +title: account.finishTakeoutSession +description: Finish account exporting session +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.finishTakeoutSession +[Back to methods index](index.md) + + +Finish account exporting session + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|success|[Bool](../types/Bool.md) | Did the data export succeed? | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->finishTakeoutSession(['success' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.finishTakeoutSession +* params - `{"success": Bool, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.finishTakeoutSession` + +Parameters: + +success - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Bool = account.finishTakeoutSession({success=Bool, }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_getAccountTTL.md b/old_docs/API_docs_v91/methods/account_getAccountTTL.md new file mode 100644 index 00000000..cbb2585a --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getAccountTTL.md @@ -0,0 +1,52 @@ +--- +title: account.getAccountTTL +description: Get account TTL +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getAccountTTL +[Back to methods index](index.md) + + +Get account TTL + + + +### Return type: [AccountDaysTTL](../types/AccountDaysTTL.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$AccountDaysTTL = $MadelineProto->account->getAccountTTL(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getAccountTTL` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +AccountDaysTTL = account.getAccountTTL({}) +``` + diff --git a/old_docs/API_docs_v91/methods/account_getAllSecureValues.md b/old_docs/API_docs_v91/methods/account_getAllSecureValues.md new file mode 100644 index 00000000..408c805c --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getAllSecureValues.md @@ -0,0 +1,61 @@ +--- +title: account.getAllSecureValues +description: Get all secure telegram passport values +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getAllSecureValues +[Back to methods index](index.md) + + +Get all secure telegram passport values + + + +### Return type: [Vector\_of\_SecureValue](../types/SecureValue.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_SecureValue = $MadelineProto->account->getAllSecureValues(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.getAllSecureValues +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getAllSecureValues` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Vector_of_SecureValue = account.getAllSecureValues({}) +``` + diff --git a/old_docs/API_docs_v91/methods/account_getAuthorizationForm.md b/old_docs/API_docs_v91/methods/account_getAuthorizationForm.md new file mode 100644 index 00000000..c839f4ed --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getAuthorizationForm.md @@ -0,0 +1,74 @@ +--- +title: account.getAuthorizationForm +description: Bots only: get telegram passport authorization form +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getAuthorizationForm +[Back to methods index](index.md) + + +Bots only: get telegram passport authorization form + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|bot\_id|[int](../types/int.md) | Bot ID | Yes| +|scope|[string](../types/string.md) | Scope | Yes| +|public\_key|[string](../types/string.md) | Bot's public key | Yes| + + +### Return type: [account\_AuthorizationForm](../types/account_AuthorizationForm.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$account_AuthorizationForm = $MadelineProto->account->getAuthorizationForm(['bot_id' => int, 'scope' => 'string', 'public_key' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.getAuthorizationForm +* params - `{"bot_id": int, "scope": "string", "public_key": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getAuthorizationForm` + +Parameters: + +bot_id - Json encoded int + +scope - Json encoded string + +public_key - Json encoded string + + + + +Or, if you're into Lua: + +```lua +account_AuthorizationForm = account.getAuthorizationForm({bot_id=int, scope='string', public_key='string', }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_getAuthorizations.md b/old_docs/API_docs_v91/methods/account_getAuthorizations.md new file mode 100644 index 00000000..89b76985 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getAuthorizations.md @@ -0,0 +1,52 @@ +--- +title: account.getAuthorizations +description: Get all logged-in authorizations +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getAuthorizations +[Back to methods index](index.md) + + +Get all logged-in authorizations + + + +### Return type: [account\_Authorizations](../types/account_Authorizations.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$account_Authorizations = $MadelineProto->account->getAuthorizations(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getAuthorizations` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +account_Authorizations = account.getAuthorizations({}) +``` + diff --git a/old_docs/API_docs_v91/methods/account_getContactSignUpNotification.md b/old_docs/API_docs_v91/methods/account_getContactSignUpNotification.md new file mode 100644 index 00000000..b5102758 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getContactSignUpNotification.md @@ -0,0 +1,61 @@ +--- +title: account.getContactSignUpNotification +description: Contact signup notification setting value +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getContactSignUpNotification +[Back to methods index](index.md) + + +Contact signup notification setting value + + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->getContactSignUpNotification(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.getContactSignUpNotification +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getContactSignUpNotification` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Bool = account.getContactSignUpNotification({}) +``` + diff --git a/old_docs/API_docs_v91/methods/account_getNotifyExceptions.md b/old_docs/API_docs_v91/methods/account_getNotifyExceptions.md new file mode 100644 index 00000000..a8e98ce3 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getNotifyExceptions.md @@ -0,0 +1,71 @@ +--- +title: account.getNotifyExceptions +description: Get notification exceptions +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getNotifyExceptions +[Back to methods index](index.md) + + +Get notification exceptions + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|compare\_sound|[Bool](../types/Bool.md) | Compare sound? | Optional| +|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Peer | Optional| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->account->getNotifyExceptions(['compare_sound' => Bool, 'peer' => InputNotifyPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.getNotifyExceptions +* params - `{"compare_sound": Bool, "peer": InputNotifyPeer, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getNotifyExceptions` + +Parameters: + +compare_sound - Json encoded Bool + +peer - Json encoded InputNotifyPeer + + + + +Or, if you're into Lua: + +```lua +Updates = account.getNotifyExceptions({compare_sound=Bool, peer=InputNotifyPeer, }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_getNotifySettings.md b/old_docs/API_docs_v91/methods/account_getNotifySettings.md new file mode 100644 index 00000000..9f79374c --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getNotifySettings.md @@ -0,0 +1,66 @@ +--- +title: account.getNotifySettings +description: Get notification settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getNotifySettings +[Back to methods index](index.md) + + +Get notification settings + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes| + + +### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getNotifySettings` + +Parameters: + +peer - Json encoded InputNotifyPeer + + + + +Or, if you're into Lua: + +```lua +PeerNotifySettings = account.getNotifySettings({peer=InputNotifyPeer, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_getPassword.md b/old_docs/API_docs_v91/methods/account_getPassword.md new file mode 100644 index 00000000..7a9b6f77 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getPassword.md @@ -0,0 +1,52 @@ +--- +title: account.getPassword +description: Get the current password +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getPassword +[Back to methods index](index.md) + + +Get the current password + + + +### Return type: [account\_Password](../types/account_Password.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$account_Password = $MadelineProto->account->getPassword(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getPassword` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +account_Password = account.getPassword({}) +``` + diff --git a/old_docs/API_docs_v91/methods/account_getPasswordSettings.md b/old_docs/API_docs_v91/methods/account_getPasswordSettings.md new file mode 100644 index 00000000..8ebb78ee --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getPasswordSettings.md @@ -0,0 +1,14 @@ +--- +title: account.getPasswordSettings +description: Get the current 2FA settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getPasswordSettings +[Back to methods index](index.md) + + +**You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/account_getPrivacy.md b/old_docs/API_docs_v91/methods/account_getPrivacy.md new file mode 100644 index 00000000..04184002 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getPrivacy.md @@ -0,0 +1,66 @@ +--- +title: account.getPrivacy +description: Get privacy settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getPrivacy +[Back to methods index](index.md) + + +Get privacy settings + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Privacy setting key | Yes| + + +### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getPrivacy` + +Parameters: + +key - Json encoded InputPrivacyKey + + + + +Or, if you're into Lua: + +```lua +account_PrivacyRules = account.getPrivacy({key=InputPrivacyKey, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PRIVACY_KEY_INVALID|The privacy key is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_getSecureValue.md b/old_docs/API_docs_v91/methods/account_getSecureValue.md new file mode 100644 index 00000000..a76b5ad5 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getSecureValue.md @@ -0,0 +1,68 @@ +--- +title: account.getSecureValue +description: Get secure value for telegram passport +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getSecureValue +[Back to methods index](index.md) + + +Get secure value for telegram passport + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|types|Array of [SecureValueType](../types/SecureValueType.md) | Get telegram passport secure parameters | Yes| + + +### Return type: [Vector\_of\_SecureValue](../types/SecureValue.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_SecureValue = $MadelineProto->account->getSecureValue(['types' => [SecureValueType, SecureValueType], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.getSecureValue +* params - `{"types": [SecureValueType], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getSecureValue` + +Parameters: + +types - Json encoded array of SecureValueType + + + + +Or, if you're into Lua: + +```lua +Vector_of_SecureValue = account.getSecureValue({types={SecureValueType}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_getTmpPassword.md b/old_docs/API_docs_v91/methods/account_getTmpPassword.md new file mode 100644 index 00000000..15639c35 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getTmpPassword.md @@ -0,0 +1,70 @@ +--- +title: account.getTmpPassword +description: Get temporary password for buying products through bots +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getTmpPassword +[Back to methods index](index.md) + + +Get temporary password for buying products through bots + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | Password | Yes| +|period|[int](../types/int.md) | The validity period | Yes| + + +### Return type: [account\_TmpPassword](../types/account_TmpPassword.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$account_TmpPassword = $MadelineProto->account->getTmpPassword(['password' => InputCheckPasswordSRP, 'period' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getTmpPassword` + +Parameters: + +password - Json encoded InputCheckPasswordSRP + +period - Json encoded int + + + + +Or, if you're into Lua: + +```lua +account_TmpPassword = account.getTmpPassword({password=InputCheckPasswordSRP, period=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_HASH_INVALID|The provided password hash is invalid| +|TMP_PASSWORD_DISABLED|The temporary password is disabled| + + diff --git a/old_docs/API_docs_v91/methods/account_getWallPapers.md b/old_docs/API_docs_v91/methods/account_getWallPapers.md new file mode 100644 index 00000000..8198996c --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getWallPapers.md @@ -0,0 +1,52 @@ +--- +title: account.getWallPapers +description: Returns a list of available wallpapers. +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getWallPapers +[Back to methods index](index.md) + + +Returns a list of available wallpapers. + + + +### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getWallPapers` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Vector_of_WallPaper = account.getWallPapers({}) +``` + diff --git a/old_docs/API_docs_v91/methods/account_getWebAuthorizations.md b/old_docs/API_docs_v91/methods/account_getWebAuthorizations.md new file mode 100644 index 00000000..292a6bfc --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_getWebAuthorizations.md @@ -0,0 +1,61 @@ +--- +title: account.getWebAuthorizations +description: Get telegram web login authorizations +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.getWebAuthorizations +[Back to methods index](index.md) + + +Get telegram web login authorizations + + + +### Return type: [account\_WebAuthorizations](../types/account_WebAuthorizations.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$account_WebAuthorizations = $MadelineProto->account->getWebAuthorizations(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.getWebAuthorizations +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getWebAuthorizations` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +account_WebAuthorizations = account.getWebAuthorizations({}) +``` + diff --git a/old_docs/API_docs_v91/methods/account_initTakeoutSession.md b/old_docs/API_docs_v91/methods/account_initTakeoutSession.md new file mode 100644 index 00000000..bb289ec4 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_initTakeoutSession.md @@ -0,0 +1,86 @@ +--- +title: account.initTakeoutSession +description: Start account exporting session +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.initTakeoutSession +[Back to methods index](index.md) + + +Start account exporting session + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|contacts|[Bool](../types/Bool.md) | Export contacts? | Optional| +|message\_users|[Bool](../types/Bool.md) | Export users? | Optional| +|message\_chats|[Bool](../types/Bool.md) | Export chats? | Optional| +|message\_megagroups|[Bool](../types/Bool.md) | Export supergroups? | Optional| +|message\_channels|[Bool](../types/Bool.md) | Export channel messages? | Optional| +|files|[Bool](../types/Bool.md) | Export files? | Optional| +|file\_max\_size|[int](../types/int.md) | Export only files smaller than this size | Optional| + + +### Return type: [account\_Takeout](../types/account_Takeout.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$account_Takeout = $MadelineProto->account->initTakeoutSession(['contacts' => Bool, 'message_users' => Bool, 'message_chats' => Bool, 'message_megagroups' => Bool, 'message_channels' => Bool, 'files' => Bool, 'file_max_size' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.initTakeoutSession +* params - `{"contacts": Bool, "message_users": Bool, "message_chats": Bool, "message_megagroups": Bool, "message_channels": Bool, "files": Bool, "file_max_size": int, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.initTakeoutSession` + +Parameters: + +contacts - Json encoded Bool + +message_users - Json encoded Bool + +message_chats - Json encoded Bool + +message_megagroups - Json encoded Bool + +message_channels - Json encoded Bool + +files - Json encoded Bool + +file_max_size - Json encoded int + + + + +Or, if you're into Lua: + +```lua +account_Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_registerDevice.md b/old_docs/API_docs_v91/methods/account_registerDevice.md new file mode 100644 index 00000000..3d1cb1c5 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_registerDevice.md @@ -0,0 +1,78 @@ +--- +title: account.registerDevice +description: Register device for push notifications +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.registerDevice +[Back to methods index](index.md) + + +Register device for push notifications + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|token\_type|[int](../types/int.md) | Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone, 6 - Blackberry, and other, see source code of official apps for more info | Yes| +|token|[string](../types/string.md) | Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info | Yes| +|app\_sandbox|[Bool](../types/Bool.md) | Should the app run in a sandbox? | Yes| +|secret|[bytes](../types/bytes.md) | Secret | Yes| +|other\_uids|Array of [int](../types/int.md) | Other UIDs | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'app_sandbox' => Bool, 'secret' => 'bytes', 'other_uids' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.registerDevice` + +Parameters: + +token_type - Json encoded int + +token - Json encoded string + +app_sandbox - Json encoded Bool + +secret - Json encoded bytes + +other_uids - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +Bool = account.registerDevice({token_type=int, token='string', app_sandbox=Bool, secret='bytes', other_uids={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|TOKEN_INVALID|The provided token is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_reportPeer.md b/old_docs/API_docs_v91/methods/account_reportPeer.md new file mode 100644 index 00000000..673b48bf --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_reportPeer.md @@ -0,0 +1,69 @@ +--- +title: account.reportPeer +description: Report for spam +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.reportPeer +[Back to methods index](index.md) + + +Report for spam + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The peer to report | Optional| +|reason|[ReportReason](../types/ReportReason.md) | Why are you reporting this peer | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.reportPeer` + +Parameters: + +peer - Json encoded InputPeer + +reason - Json encoded ReportReason + + + + +Or, if you're into Lua: + +```lua +Bool = account.reportPeer({peer=InputPeer, reason=ReportReason, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_resendPasswordEmail.md b/old_docs/API_docs_v91/methods/account_resendPasswordEmail.md new file mode 100644 index 00000000..8f6d20fc --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_resendPasswordEmail.md @@ -0,0 +1,61 @@ +--- +title: account.resendPasswordEmail +description: Resend password recovery email +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.resendPasswordEmail +[Back to methods index](index.md) + + +Resend password recovery email + + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->resendPasswordEmail(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.resendPasswordEmail +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.resendPasswordEmail` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Bool = account.resendPasswordEmail({}) +``` + diff --git a/old_docs/API_docs_v91/methods/account_resetAuthorization.md b/old_docs/API_docs_v91/methods/account_resetAuthorization.md new file mode 100644 index 00000000..74b8a086 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_resetAuthorization.md @@ -0,0 +1,66 @@ +--- +title: account.resetAuthorization +description: Delete a certain session +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.resetAuthorization +[Back to methods index](index.md) + + +Delete a certain session + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|[long](../types/long.md) | The session hash, obtained from $MadelineProto->account->getAuthorizations | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.resetAuthorization` + +Parameters: + +hash - Json encoded long + + + + +Or, if you're into Lua: + +```lua +Bool = account.resetAuthorization({hash=long, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|HASH_INVALID|The provided hash is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_resetNotifySettings.md b/old_docs/API_docs_v91/methods/account_resetNotifySettings.md new file mode 100644 index 00000000..1ec07077 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_resetNotifySettings.md @@ -0,0 +1,52 @@ +--- +title: account.resetNotifySettings +description: Reset all notification settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.resetNotifySettings +[Back to methods index](index.md) + + +Reset all notification settings + + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->resetNotifySettings(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.resetNotifySettings` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Bool = account.resetNotifySettings({}) +``` + diff --git a/old_docs/API_docs_v91/methods/account_resetWebAuthorization.md b/old_docs/API_docs_v91/methods/account_resetWebAuthorization.md new file mode 100644 index 00000000..a12b2b22 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_resetWebAuthorization.md @@ -0,0 +1,68 @@ +--- +title: account.resetWebAuthorization +description: Delete a certain telegram web login authorization +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.resetWebAuthorization +[Back to methods index](index.md) + + +Delete a certain telegram web login authorization + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|[long](../types/long.md) | The authorization's hash | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->resetWebAuthorization(['hash' => long, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.resetWebAuthorization +* params - `{"hash": long, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.resetWebAuthorization` + +Parameters: + +hash - Json encoded long + + + + +Or, if you're into Lua: + +```lua +Bool = account.resetWebAuthorization({hash=long, }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_resetWebAuthorizations.md b/old_docs/API_docs_v91/methods/account_resetWebAuthorizations.md new file mode 100644 index 00000000..594afa11 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_resetWebAuthorizations.md @@ -0,0 +1,61 @@ +--- +title: account.resetWebAuthorizations +description: Reset all telegram web login authorizations +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.resetWebAuthorizations +[Back to methods index](index.md) + + +Reset all telegram web login authorizations + + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->resetWebAuthorizations(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.resetWebAuthorizations +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.resetWebAuthorizations` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Bool = account.resetWebAuthorizations({}) +``` + diff --git a/old_docs/API_docs_v91/methods/account_saveSecureValue.md b/old_docs/API_docs_v91/methods/account_saveSecureValue.md new file mode 100644 index 00000000..09c39fad --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_saveSecureValue.md @@ -0,0 +1,71 @@ +--- +title: account.saveSecureValue +description: Save telegram passport secure value +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.saveSecureValue +[Back to methods index](index.md) + + +Save telegram passport secure value + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|value|[InputSecureValue](../types/InputSecureValue.md) | Encrypted value | Yes| +|secure\_secret\_id|[long](../types/long.md) | Secret | Yes| + + +### Return type: [SecureValue](../types/SecureValue.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$SecureValue = $MadelineProto->account->saveSecureValue(['value' => InputSecureValue, 'secure_secret_id' => long, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.saveSecureValue +* params - `{"value": InputSecureValue, "secure_secret_id": long, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.saveSecureValue` + +Parameters: + +value - Json encoded InputSecureValue + +secure_secret_id - Json encoded long + + + + +Or, if you're into Lua: + +```lua +SecureValue = account.saveSecureValue({value=InputSecureValue, secure_secret_id=long, }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v91/methods/account_sendChangePhoneCode.md new file mode 100644 index 00000000..123a5880 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_sendChangePhoneCode.md @@ -0,0 +1,72 @@ +--- +title: account.sendChangePhoneCode +description: Change the phone number +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.sendChangePhoneCode +[Back to methods index](index.md) + + +Change the phone number + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|allow\_flashcall|[Bool](../types/Bool.md) | Can the code be sent using a flash call instead of an SMS? | Optional| +|phone\_number|[string](../types/string.md) | New phone number | Yes| +|current\_number|[Bool](../types/Bool.md) | Current phone number | Optional| + + +### Return type: [auth\_SentCode](../types/auth_SentCode.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.sendChangePhoneCode` + +Parameters: + +allow_flashcall - Json encoded Bool + +phone_number - Json encoded string + +current_number - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +auth_SentCode = account.sendChangePhoneCode({allow_flashcall=Bool, phone_number='string', current_number=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PHONE_NUMBER_INVALID|The phone number is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v91/methods/account_sendConfirmPhoneCode.md new file mode 100644 index 00000000..5c2612c2 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_sendConfirmPhoneCode.md @@ -0,0 +1,72 @@ +--- +title: account.sendConfirmPhoneCode +description: Send confirmation phone code +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.sendConfirmPhoneCode +[Back to methods index](index.md) + + +Send confirmation phone code + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|allow\_flashcall|[Bool](../types/Bool.md) | Can telegram call you instead of sending an SMS? | Optional| +|hash|[string](../types/string.md) | The hash | Yes| +|current\_number|[Bool](../types/Bool.md) | The current phone number | Optional| + + +### Return type: [auth\_SentCode](../types/auth_SentCode.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.sendConfirmPhoneCode` + +Parameters: + +allow_flashcall - Json encoded Bool + +hash - Json encoded string + +current_number - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +auth_SentCode = account.sendConfirmPhoneCode({allow_flashcall=Bool, hash='string', current_number=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|HASH_INVALID|The provided hash is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_sendVerifyEmailCode.md b/old_docs/API_docs_v91/methods/account_sendVerifyEmailCode.md new file mode 100644 index 00000000..bf1020ca --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_sendVerifyEmailCode.md @@ -0,0 +1,68 @@ +--- +title: account.sendVerifyEmailCode +description: Send email verification code +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.sendVerifyEmailCode +[Back to methods index](index.md) + + +Send email verification code + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|email|[string](../types/string.md) | Email | Yes| + + +### Return type: [account\_SentEmailCode](../types/account_SentEmailCode.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$account_SentEmailCode = $MadelineProto->account->sendVerifyEmailCode(['email' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.sendVerifyEmailCode +* params - `{"email": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.sendVerifyEmailCode` + +Parameters: + +email - Json encoded string + + + + +Or, if you're into Lua: + +```lua +account_SentEmailCode = account.sendVerifyEmailCode({email='string', }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_sendVerifyPhoneCode.md b/old_docs/API_docs_v91/methods/account_sendVerifyPhoneCode.md new file mode 100644 index 00000000..45902b30 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_sendVerifyPhoneCode.md @@ -0,0 +1,74 @@ +--- +title: account.sendVerifyPhoneCode +description: Send phone verification code +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.sendVerifyPhoneCode +[Back to methods index](index.md) + + +Send phone verification code + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|allow\_flashcall|[Bool](../types/Bool.md) | Allow phone calls? | Optional| +|phone\_number|[string](../types/string.md) | The phone number | Yes| +|current\_number|[Bool](../types/Bool.md) | Is this the current number? | Optional| + + +### Return type: [auth\_SentCode](../types/auth_SentCode.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$auth_SentCode = $MadelineProto->account->sendVerifyPhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.sendVerifyPhoneCode +* params - `{"allow_flashcall": Bool, "phone_number": "string", "current_number": Bool, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.sendVerifyPhoneCode` + +Parameters: + +allow_flashcall - Json encoded Bool + +phone_number - Json encoded string + +current_number - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +auth_SentCode = account.sendVerifyPhoneCode({allow_flashcall=Bool, phone_number='string', current_number=Bool, }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_setAccountTTL.md b/old_docs/API_docs_v91/methods/account_setAccountTTL.md new file mode 100644 index 00000000..2cdc09d8 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_setAccountTTL.md @@ -0,0 +1,66 @@ +--- +title: account.setAccountTTL +description: Set account TTL +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.setAccountTTL +[Back to methods index](index.md) + + +Set account TTL + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Time To Live of account | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.setAccountTTL` + +Parameters: + +ttl - Json encoded AccountDaysTTL + + + + +Or, if you're into Lua: + +```lua +Bool = account.setAccountTTL({ttl=AccountDaysTTL, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|TTL_DAYS_INVALID|The provided TTL is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_setContactSignUpNotification.md b/old_docs/API_docs_v91/methods/account_setContactSignUpNotification.md new file mode 100644 index 00000000..e4e776e3 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_setContactSignUpNotification.md @@ -0,0 +1,68 @@ +--- +title: account.setContactSignUpNotification +description: Set contact sign up notification +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.setContactSignUpNotification +[Back to methods index](index.md) + + +Set contact sign up notification + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|silent|[Bool](../types/Bool.md) | Silent? | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->setContactSignUpNotification(['silent' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.setContactSignUpNotification +* params - `{"silent": Bool, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.setContactSignUpNotification` + +Parameters: + +silent - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Bool = account.setContactSignUpNotification({silent=Bool, }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_setPrivacy.md b/old_docs/API_docs_v91/methods/account_setPrivacy.md new file mode 100644 index 00000000..0cd97844 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_setPrivacy.md @@ -0,0 +1,69 @@ +--- +title: account.setPrivacy +description: Set privacy settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.setPrivacy +[Back to methods index](index.md) + + +Set privacy settings + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Privacy setting | Yes| +|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Privacy settings | Yes| + + +### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.setPrivacy` + +Parameters: + +key - Json encoded InputPrivacyKey + +rules - Json encoded array of InputPrivacyRule + + + + +Or, if you're into Lua: + +```lua +account_PrivacyRules = account.setPrivacy({key=InputPrivacyKey, rules={InputPrivacyRule}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PRIVACY_KEY_INVALID|The privacy key is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_unregisterDevice.md b/old_docs/API_docs_v91/methods/account_unregisterDevice.md new file mode 100644 index 00000000..e7e6a437 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_unregisterDevice.md @@ -0,0 +1,72 @@ +--- +title: account.unregisterDevice +description: Stop sending PUSH notifications to app +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.unregisterDevice +[Back to methods index](index.md) + + +Stop sending PUSH notifications to app + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|token\_type|[int](../types/int.md) | Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info | Yes| +|token|[string](../types/string.md) | Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info | Yes| +|other\_uids|Array of [int](../types/int.md) | Other UIDs | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', 'other_uids' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.unregisterDevice` + +Parameters: + +token_type - Json encoded int + +token - Json encoded string + +other_uids - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +Bool = account.unregisterDevice({token_type=int, token='string', other_uids={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|TOKEN_INVALID|The provided token is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v91/methods/account_updateDeviceLocked.md new file mode 100644 index 00000000..14faecef --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_updateDeviceLocked.md @@ -0,0 +1,59 @@ +--- +title: account.updateDeviceLocked +description: Disable all notifications for a certain period +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.updateDeviceLocked +[Back to methods index](index.md) + + +Disable all notifications for a certain period + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|period|[int](../types/int.md) | For how long should notifications be disabled | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.updateDeviceLocked` + +Parameters: + +period - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Bool = account.updateDeviceLocked({period=int, }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_updateNotifySettings.md b/old_docs/API_docs_v91/methods/account_updateNotifySettings.md new file mode 100644 index 00000000..d354d215 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_updateNotifySettings.md @@ -0,0 +1,69 @@ +--- +title: account.updateNotifySettings +description: Change notification settings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.updateNotifySettings +[Back to methods index](index.md) + + +Change notification settings + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes| +|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.updateNotifySettings` + +Parameters: + +peer - Json encoded InputNotifyPeer + +settings - Json encoded InputPeerNotifySettings + + + + +Or, if you're into Lua: + +```lua +Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNotifySettings, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v91/methods/account_updatePasswordSettings.md new file mode 100644 index 00000000..80f27228 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_updatePasswordSettings.md @@ -0,0 +1,14 @@ +--- +title: account.updatePasswordSettings +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.updatePasswordSettings +[Back to methods index](index.md) + + +**You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/account_updateProfile.md b/old_docs/API_docs_v91/methods/account_updateProfile.md new file mode 100644 index 00000000..f54515e5 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_updateProfile.md @@ -0,0 +1,73 @@ +--- +title: account.updateProfile +description: Update profile info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.updateProfile +[Back to methods index](index.md) + + +Update profile info + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|first\_name|[string](../types/string.md) | The first name | Optional| +|last\_name|[string](../types/string.md) | The last name | Optional| +|about|[string](../types/string.md) | The bio/about field | Optional| + + +### Return type: [User](../types/User.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.updateProfile` + +Parameters: + +first_name - Json encoded string + +last_name - Json encoded string + +about - Json encoded string + + + + +Or, if you're into Lua: + +```lua +User = account.updateProfile({first_name='string', last_name='string', about='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + + diff --git a/old_docs/API_docs_v91/methods/account_updateStatus.md b/old_docs/API_docs_v91/methods/account_updateStatus.md new file mode 100644 index 00000000..4a5ba063 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_updateStatus.md @@ -0,0 +1,66 @@ +--- +title: account.updateStatus +description: Update online status +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.updateStatus +[Back to methods index](index.md) + + +Update online status + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|offline|[Bool](../types/Bool.md) | True to set the status to offline | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.updateStatus` + +Parameters: + +offline - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Bool = account.updateStatus({offline=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v91/methods/account_updateUsername.md b/old_docs/API_docs_v91/methods/account_updateUsername.md new file mode 100644 index 00000000..8cea50d4 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_updateUsername.md @@ -0,0 +1,69 @@ +--- +title: account.updateUsername +description: Update this user's username +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.updateUsername +[Back to methods index](index.md) + + +Update this user's username + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|username|[string](../types/string.md) | The new username | Yes| + + +### Return type: [User](../types/User.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$User = $MadelineProto->account->updateUsername(['username' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.updateUsername` + +Parameters: + +username - Json encoded string + + + + +Or, if you're into Lua: + +```lua +User = account.updateUsername({username='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v91/methods/account_verifyEmail.md b/old_docs/API_docs_v91/methods/account_verifyEmail.md new file mode 100644 index 00000000..02b29db0 --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_verifyEmail.md @@ -0,0 +1,71 @@ +--- +title: account.verifyEmail +description: Verify email address +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.verifyEmail +[Back to methods index](index.md) + + +Verify email address + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|email|[string](../types/string.md) | The email address | Yes| +|code|[string](../types/string.md) | The received code | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->verifyEmail(['email' => 'string', 'code' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.verifyEmail +* params - `{"email": "string", "code": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.verifyEmail` + +Parameters: + +email - Json encoded string + +code - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = account.verifyEmail({email='string', code='string', }) +``` + diff --git a/old_docs/API_docs_v91/methods/account_verifyPhone.md b/old_docs/API_docs_v91/methods/account_verifyPhone.md new file mode 100644 index 00000000..9c4326fa --- /dev/null +++ b/old_docs/API_docs_v91/methods/account_verifyPhone.md @@ -0,0 +1,74 @@ +--- +title: account.verifyPhone +description: Verify phone number +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: account.verifyPhone +[Back to methods index](index.md) + + +Verify phone number + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|phone\_number|[string](../types/string.md) | The phone number | Yes| +|phone\_code\_hash|[string](../types/string.md) | The phone code hash returned by account.sendVerifyPhoneCode | Yes| +|phone\_code|[string](../types/string.md) | The phone code type returned by account.sendVerifyPhoneCode | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->account->verifyPhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - account.verifyPhone +* params - `{"phone_number": "string", "phone_code_hash": "string", "phone_code": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.verifyPhone` + +Parameters: + +phone_number - Json encoded string + +phone_code_hash - Json encoded string + +phone_code - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = account.verifyPhone({phone_number='string', phone_code_hash='string', phone_code='string', }) +``` + diff --git a/old_docs/API_docs_v91/methods/api_README.md b/old_docs/API_docs_v91/methods/api_README.md new file mode 100644 index 00000000..5cd5083c --- /dev/null +++ b/old_docs/API_docs_v91/methods/api_README.md @@ -0,0 +1,652 @@ +--- +title: Methods +description: List of methods +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](README.md) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

+$MadelineProto->[account->acceptAuthorization](account_acceptAuthorization.md)(\['bot_id' => [int](../types/int.md), 'scope' => [string](../types/string.md), 'public_key' => [string](../types/string.md), 'value_hashes' => \[[SecureValueHash](../types/SecureValueHash.md)\], 'credentials' => [SecureCredentialsEncrypted](../types/SecureCredentialsEncrypted.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->cancelPasswordEmail](account_cancelPasswordEmail.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->changePhone](account_changePhone.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPasswordEmail](account_confirmPasswordEmail.md)(\['code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteSecureValue](account_deleteSecureValue.md)(\['types' => \[[SecureValueType](../types/SecureValueType.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->finishTakeoutSession](account_finishTakeoutSession.md)(\['success' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAllSecureValues](account_getAllSecureValues.md)(\[\]) === [$Vector\_of\_SecureValue](../types/SecureValue.md) + +$MadelineProto->[account->getAuthorizationForm](account_getAuthorizationForm.md)(\['bot_id' => [int](../types/int.md), 'scope' => [string](../types/string.md), 'public_key' => [string](../types/string.md), \]) === [$account\_AuthorizationForm](../types/account_AuthorizationForm.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getContactSignUpNotification](account_getContactSignUpNotification.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getNotifyExceptions](account_getNotifyExceptions.md)(\['compare_sound' => [Bool](../types/Bool.md), 'peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['password' => [InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getSecureValue](account_getSecureValue.md)(\['types' => \[[SecureValueType](../types/SecureValueType.md)\], \]) === [$Vector\_of\_SecureValue](../types/SecureValue.md) + +$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password' => [InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->getWebAuthorizations](account_getWebAuthorizations.md)(\[\]) === [$account\_WebAuthorizations](../types/account_WebAuthorizations.md) + +$MadelineProto->[account->initTakeoutSession](account_initTakeoutSession.md)(\['contacts' => [Bool](../types/Bool.md), 'message_users' => [Bool](../types/Bool.md), 'message_chats' => [Bool](../types/Bool.md), 'message_megagroups' => [Bool](../types/Bool.md), 'message_channels' => [Bool](../types/Bool.md), 'files' => [Bool](../types/Bool.md), 'file_max_size' => [int](../types/int.md), \]) === [$account\_Takeout](../types/account_Takeout.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), 'app_sandbox' => [Bool](../types/Bool.md), 'secret' => [bytes](../types/bytes.md), 'other_uids' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resendPasswordEmail](account_resendPasswordEmail.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetWebAuthorization](account_resetWebAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetWebAuthorizations](account_resetWebAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->saveSecureValue](account_saveSecureValue.md)(\['value' => [InputSecureValue](../types/InputSecureValue.md), 'secure_secret_id' => [long](../types/long.md), \]) === [$SecureValue](../types/SecureValue.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->sendVerifyEmailCode](account_sendVerifyEmailCode.md)(\['email' => [string](../types/string.md), \]) === [$account\_SentEmailCode](../types/account_SentEmailCode.md) + +$MadelineProto->[account->sendVerifyPhoneCode](account_sendVerifyPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setContactSignUpNotification](account_setContactSignUpNotification.md)(\['silent' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), 'other_uids' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updatePasswordSettings](account_updatePasswordSettings.md)(\['password' => [InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md), 'new_settings' => [account\_PasswordInputSettings](../types/account_PasswordInputSettings.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'about' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->verifyEmail](account_verifyEmail.md)(\['email' => [string](../types/string.md), 'code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->verifyPhone](account_verifyPhone.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

+$MadelineProto->[auth->bindTempAuthKey](auth_bindTempAuthKey.md)(\['perm_auth_key_id' => [long](../types/long.md), 'nonce' => [long](../types/long.md), 'expires_at' => [int](../types/int.md), 'encrypted_message' => [bytes](../types/bytes.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password' => [InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->importBotAuthorization](auth_importBotAuthorization.md)(\['api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), 'bot_auth_token' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$MadelineProto->[auth->resendCode](auth_resendCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->signIn](auth_signIn.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->signUp](auth_signUp.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +*** +

+$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) + +*** +

+$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->createChannel](channels_createChannel.md)(\['broadcast' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'title' => [string](../types/string.md), 'about' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteHistory](channels_deleteHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), 'grouped' => [Bool](../types/Bool.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) + +$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getLeftChannels](channels_getLeftChannels.md)(\['offset' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[InputMessage](../types/InputMessage.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$MadelineProto->[channels->getParticipants](channels_getParticipants.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'filter' => [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$channels\_ChannelParticipants](../types/channels_ChannelParticipants.md) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->readMessageContents](channels_readMessageContents.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->reportSpam](channels_reportSpam.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->setStickers](channels_setStickers.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->togglePreHistoryHidden](channels_togglePreHistoryHidden.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

+$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteByPhones](contacts_deleteByPhones.md)(\['phones' => \[[string](../types/string.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContactIDs](contacts_getContactIDs.md)(\['hash' => [int](../types/int.md), \]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [int](../types/int.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getSaved](contacts_getSaved.md)(\[\]) === [$Vector\_of\_SavedContact](../types/SavedContact.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetSaved](contacts_resetSaved.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->toggleTopPeers](contacts_toggleTopPeers.md)(\['enabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

+$MadelineProto->[help->acceptTermsOfService](help_acceptTermsOfService.md)(\['id' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[help->editUserInfo](help_editUserInfo.md)(\['user_id' => [InputUser](../types/InputUser.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$help\_UserInfo](../types/help_UserInfo.md) + +$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[help->getAppConfig](help_getAppConfig.md)(\[\]) === [$JSONValue](../types/JSONValue.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\['source' => [string](../types/string.md), \]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getDeepLinkInfo](help_getDeepLinkInfo.md)(\['path' => [string](../types/string.md), \]) === [$help\_DeepLinkInfo](../types/help_DeepLinkInfo.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getPassportConfig](help_getPassportConfig.md)(\['hash' => [int](../types/int.md), \]) === [$help\_PassportConfig](../types/help_PassportConfig.md) + +$MadelineProto->[help->getProxyData](help_getProxyData.md)(\[\]) === [$help\_ProxyData](../types/help_ProxyData.md) + +$MadelineProto->[help->getRecentMeUrls](help_getRecentMeUrls.md)(\['referer' => [string](../types/string.md), \]) === [$help\_RecentMeUrls](../types/help_RecentMeUrls.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getSupportName](help_getSupportName.md)(\[\]) === [$help\_SupportName](../types/help_SupportName.md) + +$MadelineProto->[help->getTermsOfServiceUpdate](help_getTermsOfServiceUpdate.md)(\[\]) === [$help\_TermsOfServiceUpdate](../types/help_TermsOfServiceUpdate.md) + +$MadelineProto->[help->getUserInfo](help_getUserInfo.md)(\['user_id' => [InputUser](../types/InputUser.md), \]) === [$help\_UserInfo](../types/help_UserInfo.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

+$MadelineProto->[initConnection](initConnection.md)(\['api_id' => [int](../types/int.md), 'device_model' => [string](../types/string.md), 'system_version' => [string](../types/string.md), 'app_version' => [string](../types/string.md), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'proxy' => [InputClientProxy](../types/InputClientProxy.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

+$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

+$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

+$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

+$MadelineProto->[invokeWithMessagesRange](invokeWithMessagesRange.md)(\['range' => [MessageRange](../types/MessageRange.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

+$MadelineProto->[invokeWithTakeout](invokeWithTakeout.md)(\['takeout_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

+$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

+$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['lang_code' => [string](../types/string.md), 'from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLanguage](langpack_getLanguage.md)(\['lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), \]) === [$LangPackLanguage](../types/LangPackLanguage.md) + +$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\['lang_pack' => [string](../types/string.md), \]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) + +$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) + +*** +

+$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearAllDrafts](messages_clearAllDrafts.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'grouped' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogUnreadMarks](messages_getDialogUnreadMarks.md)(\[\]) === [$Vector\_of\_DialogPeer](../types/DialogPeer.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.md), 'offset_date' => [int](../types/int.md), 'offset_id' => [int](../types/int.md), 'offset_peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['sha256' => [bytes](../types/bytes.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), \]) === [$Document](../types/Document.md) + +$MadelineProto->[messages->getFavedStickers](messages_getFavedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FavedStickers](../types/messages_FavedStickers.md) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'offset_date' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getInlineBotResults](messages_getInlineBotResults.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$messages\_BotResults](../types/messages_BotResults.md) + +$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[InputMessage](../types/InputMessage.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getMessagesViews](messages_getMessagesViews.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'increment' => [Bool](../types/Bool.md), \]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[messages->getOnlines](messages_getOnlines.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$ChatOnlines](../types/ChatOnlines.md) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputDialogPeer](../types/InputDialogPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPollResults](messages_getPollResults.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getRecentLocations](messages_getRecentLocations.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getSplitRanges](messages_getSplitRanges.md)(\[\]) === [$Vector\_of\_MessageRange](../types/MessageRange.md) + +$MadelineProto->[messages->getStatsURL](messages_getStatsURL.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$StatsURL](../types/StatsURL.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getUnreadMentions](messages_getUnreadMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->markDialogUnread](messages_markDialogUnread.md)(\['unread' => [Bool](../types/Bool.md), 'peer' => [InputDialogPeer](../types/InputDialogPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMentions](messages_readMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputDialogPeer](../types/InputDialogPeer.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->report](messages_report.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset_id' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$MadelineProto->[messages->searchGlobal](messages_searchGlobal.md)(\['q' => [string](../types/string.md), 'offset_date' => [int](../types/int.md), 'offset_peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->searchStickerSets](messages_searchStickerSets.md)(\['exclude_featured' => [Bool](../types/Bool.md), 'q' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$messages\_FoundStickerSets](../types/messages_FoundStickerSets.md) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendEncryptedFile](messages_sendEncryptedFile.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), 'file' => [InputEncryptedFile](../types/InputEncryptedFile.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'hide_via' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMultiMedia](messages_sendMultiMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'multi_media' => \[[InputSingleMedia](../types/InputSingleMedia.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendVote](messages_sendVote.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'options' => \[[bytes](../types/bytes.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setInlineBotResults](messages_setInlineBotResults.md)(\['gallery' => [Bool](../types/Bool.md), 'private' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'results' => \[[InputBotInlineResult](../types/InputBotInlineResult.md)\], 'cache_time' => [int](../types/int.md), 'next_offset' => [string](../types/string.md), 'switch_pm' => [InlineBotSwitchPM](../types/InlineBotSwitchPM.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputDialogPeer](../types/InputDialogPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->updatePinnedMessage](messages_updatePinnedMessage.md)(\['silent' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->uploadEncryptedFile](messages_uploadEncryptedFile.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'file' => [InputEncryptedFile](../types/InputEncryptedFile.md), \]) === [$EncryptedFile](../types/EncryptedFile.md) + +$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +*** +

+$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) + +$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) + +$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) + +$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) + +$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) + +*** +

+$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) + +$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +*** +

+$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[photos->getUserPhotos](photos_getUserPhotos.md)(\['user_id' => [InputUser](../types/InputUser.md), 'offset' => [int](../types/int.md), 'max_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$photos\_Photos](../types/photos_Photos.md) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) + +*** +

+$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +*** +

+$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.md), 'channel' => [InputChannel](../types/InputChannel.md), 'filter' => [ChannelMessagesFilter](../types/ChannelMessagesFilter.md), 'pts' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$updates\_ChannelDifference](../types/updates_ChannelDifference.md) + +$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

+$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) + +$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_FileHash](../types/FileHash.md) + +$MadelineProto->[upload->getFile](upload_getFile.md)(\['location' => [InputFileLocation](../types/InputFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_File](../types/upload_File.md) + +$MadelineProto->[upload->getFileHashes](upload_getFileHashes.md)(\['location' => [InputFileLocation](../types/InputFileLocation.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_FileHash](../types/FileHash.md) + +$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) + +$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Vector\_of\_FileHash](../types/FileHash.md) + +$MadelineProto->[upload->saveBigFilePart](upload_saveBigFilePart.md)(\['file_id' => [long](../types/long.md), 'file_part' => [int](../types/int.md), 'file_total_parts' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[upload->saveFilePart](upload_saveFilePart.md)(\['file_id' => [long](../types/long.md), 'file_part' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$Bool](../types/Bool.md) + +*** +

+$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + +$MadelineProto->[users->setSecureValueErrors](users_setSecureValueErrors.md)(\['id' => [InputUser](../types/InputUser.md), 'errors' => \[[SecureValueError](../types/SecureValueError.md)\], \]) === [$Bool](../types/Bool.md) + diff --git a/old_docs/API_docs_v91/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v91/methods/auth_bindTempAuthKey.md new file mode 100644 index 00000000..4fd80e0f --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_bindTempAuthKey.md @@ -0,0 +1,14 @@ +--- +title: auth.bindTempAuthKey +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.bindTempAuthKey +[Back to methods index](index.md) + + +**You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info** + + + + diff --git a/old_docs/API_docs_v91/methods/auth_cancelCode.md b/old_docs/API_docs_v91/methods/auth_cancelCode.md new file mode 100644 index 00000000..352c88e9 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_cancelCode.md @@ -0,0 +1,69 @@ +--- +title: auth.cancelCode +description: Invalidate sent phone code +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.cancelCode +[Back to methods index](index.md) + + +Invalidate sent phone code + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|phone\_number|[string](../types/string.md) | Phone number | Yes| +|phone\_code\_hash|[string](../types/string.md) | Phone code hash | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.cancelCode` + +Parameters: + +phone_number - Json encoded string + +phone_code_hash - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PHONE_NUMBER_INVALID|The phone number is invalid| + + diff --git a/old_docs/API_docs_v91/methods/auth_checkPassword.md b/old_docs/API_docs_v91/methods/auth_checkPassword.md new file mode 100644 index 00000000..8d76c483 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_checkPassword.md @@ -0,0 +1,14 @@ +--- +title: auth.checkPassword +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.checkPassword +[Back to methods index](index.md) + + +**You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v91/methods/auth_dropTempAuthKeys.md new file mode 100644 index 00000000..64ce7528 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_dropTempAuthKeys.md @@ -0,0 +1,68 @@ +--- +title: auth.dropTempAuthKeys +description: Delete all temporary authorization keys except the ones provided +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.dropTempAuthKeys +[Back to methods index](index.md) + + +Delete all temporary authorization keys except the ones provided + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|except\_auth\_keys|Array of [long](../types/long.md) | The temporary authorization keys to keep | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - auth.dropTempAuthKeys +* params - `{"except_auth_keys": [long], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.dropTempAuthKeys` + +Parameters: + +except_auth_keys - Json encoded array of long + + + + +Or, if you're into Lua: + +```lua +Bool = auth.dropTempAuthKeys({except_auth_keys={long}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/auth_exportAuthorization.md b/old_docs/API_docs_v91/methods/auth_exportAuthorization.md new file mode 100644 index 00000000..a83216ad --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_exportAuthorization.md @@ -0,0 +1,14 @@ +--- +title: auth.exportAuthorization +description: You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.exportAuthorization +[Back to methods index](index.md) + + +**You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** + + + + diff --git a/old_docs/API_docs_v91/methods/auth_importAuthorization.md b/old_docs/API_docs_v91/methods/auth_importAuthorization.md new file mode 100644 index 00000000..ebd53001 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_importAuthorization.md @@ -0,0 +1,14 @@ +--- +title: auth.importAuthorization +description: You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.importAuthorization +[Back to methods index](index.md) + + +**You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html** + + + + diff --git a/old_docs/API_docs_v91/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v91/methods/auth_importBotAuthorization.md new file mode 100644 index 00000000..1a98c1b9 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_importBotAuthorization.md @@ -0,0 +1,14 @@ +--- +title: auth.importBotAuthorization +description: You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.importBotAuthorization +[Back to methods index](index.md) + + +**You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/auth_logOut.md b/old_docs/API_docs_v91/methods/auth_logOut.md new file mode 100644 index 00000000..a7126ea2 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_logOut.md @@ -0,0 +1,14 @@ +--- +title: auth.logOut +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.logOut +[Back to methods index](index.md) + + +**You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/auth_recoverPassword.md b/old_docs/API_docs_v91/methods/auth_recoverPassword.md new file mode 100644 index 00000000..3852f088 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_recoverPassword.md @@ -0,0 +1,66 @@ +--- +title: auth.recoverPassword +description: Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.recoverPassword +[Back to methods index](index.md) + + +Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|code|[string](../types/string.md) | The code that was emailed to you | Yes| + + +### Return type: [auth\_Authorization](../types/auth_Authorization.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.recoverPassword` + +Parameters: + +code - Json encoded string + + + + +Or, if you're into Lua: + +```lua +auth_Authorization = auth.recoverPassword({code='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CODE_EMPTY|The provided code is empty| + + diff --git a/old_docs/API_docs_v91/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v91/methods/auth_requestPasswordRecovery.md new file mode 100644 index 00000000..2c1b2389 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_requestPasswordRecovery.md @@ -0,0 +1,59 @@ +--- +title: auth.requestPasswordRecovery +description: Send an email to recover the 2FA password +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.requestPasswordRecovery +[Back to methods index](index.md) + + +Send an email to recover the 2FA password + + + +### Return type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.requestPasswordRecovery` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +auth_PasswordRecovery = auth.requestPasswordRecovery({}) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PASSWORD_EMPTY|The provided password is empty| + + diff --git a/old_docs/API_docs_v91/methods/auth_resendCode.md b/old_docs/API_docs_v91/methods/auth_resendCode.md new file mode 100644 index 00000000..4ce58975 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_resendCode.md @@ -0,0 +1,69 @@ +--- +title: auth.resendCode +description: Resend the SMS verification code +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.resendCode +[Back to methods index](index.md) + + +Resend the SMS verification code + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|phone\_number|[string](../types/string.md) | The phone number | Yes| +|phone\_code\_hash|[string](../types/string.md) | The phone code hash | Yes| + + +### Return type: [auth\_SentCode](../types/auth_SentCode.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.resendCode` + +Parameters: + +phone_number - Json encoded string + +phone_code_hash - Json encoded string + + + + +Or, if you're into Lua: + +```lua +auth_SentCode = auth.resendCode({phone_number='string', phone_code_hash='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PHONE_NUMBER_INVALID|The phone number is invalid| + + diff --git a/old_docs/API_docs_v91/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v91/methods/auth_resetAuthorizations.md new file mode 100644 index 00000000..58ba44b4 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_resetAuthorizations.md @@ -0,0 +1,59 @@ +--- +title: auth.resetAuthorizations +description: Delete all logged-in sessions. +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.resetAuthorizations +[Back to methods index](index.md) + + +Delete all logged-in sessions. + + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->auth->resetAuthorizations(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.resetAuthorizations` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Bool = auth.resetAuthorizations({}) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/auth_sendCode.md b/old_docs/API_docs_v91/methods/auth_sendCode.md new file mode 100644 index 00000000..9afebb55 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_sendCode.md @@ -0,0 +1,14 @@ +--- +title: auth.sendCode +description: Use phone_login instead +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.sendCode +[Back to methods index](index.md) + + +**You cannot use this method directly, use the phone_login method instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/auth_signIn.md b/old_docs/API_docs_v91/methods/auth_signIn.md new file mode 100644 index 00000000..156b7fb5 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_signIn.md @@ -0,0 +1,14 @@ +--- +title: auth.signIn +description: You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.signIn +[Back to methods index](index.md) + + +**You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/auth_signUp.md b/old_docs/API_docs_v91/methods/auth_signUp.md new file mode 100644 index 00000000..15960145 --- /dev/null +++ b/old_docs/API_docs_v91/methods/auth_signUp.md @@ -0,0 +1,14 @@ +--- +title: auth.signUp +description: You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: auth.signUp +[Back to methods index](index.md) + + +**You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v91/methods/bots_answerWebhookJSONQuery.md new file mode 100644 index 00000000..33b6c2a3 --- /dev/null +++ b/old_docs/API_docs_v91/methods/bots_answerWebhookJSONQuery.md @@ -0,0 +1,79 @@ +--- +title: bots.answerWebhookJSONQuery +description: Send webhook request via bot API +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: bots.answerWebhookJSONQuery +[Back to methods index](index.md) + + +Send webhook request via bot API + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|query\_id|[long](../types/long.md) | The query ID | Yes| +|data|[DataJSON](../types/DataJSON.md) | The parameters | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - bots.answerWebhookJSONQuery +* params - `{"query_id": long, "data": DataJSON, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/bots.answerWebhookJSONQuery` + +Parameters: + +query_id - Json encoded long + +data - Json encoded DataJSON + + + + +Or, if you're into Lua: + +```lua +Bool = bots.answerWebhookJSONQuery({query_id=long, data=DataJSON, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|QUERY_ID_INVALID|The query ID is invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + + diff --git a/old_docs/API_docs_v91/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v91/methods/bots_sendCustomRequest.md new file mode 100644 index 00000000..bd368df5 --- /dev/null +++ b/old_docs/API_docs_v91/methods/bots_sendCustomRequest.md @@ -0,0 +1,78 @@ +--- +title: bots.sendCustomRequest +description: Send a custom request to the bot API +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: bots.sendCustomRequest +[Back to methods index](index.md) + + +Send a custom request to the bot API + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|custom\_method|[string](../types/string.md) | The method to call | Yes| +|params|[DataJSON](../types/DataJSON.md) | Method parameters | Yes| + + +### Return type: [DataJSON](../types/DataJSON.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - bots.sendCustomRequest +* params - `{"custom_method": "string", "params": DataJSON, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/bots.sendCustomRequest` + +Parameters: + +custom_method - Json encoded string + +params - Json encoded DataJSON + + + + +Or, if you're into Lua: + +```lua +DataJSON = bots.sendCustomRequest({custom_method='string', params=DataJSON, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|USER_BOT_INVALID|This method can only be called by a bot| + + diff --git a/old_docs/API_docs_v91/methods/channels_checkUsername.md b/old_docs/API_docs_v91/methods/channels_checkUsername.md new file mode 100644 index 00000000..573bf8f0 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_checkUsername.md @@ -0,0 +1,71 @@ +--- +title: channels.checkUsername +description: Check if this username is free and can be assigned to a channel/supergroup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.checkUsername +[Back to methods index](index.md) + + +Check if this username is free and can be assigned to a channel/supergroup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|username|[string](../types/string.md) | The new username for this channel/supergroup | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.checkUsername` + +Parameters: + +channel - Json encoded InputChannel + +username - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = channels.checkUsername({channel=InputChannel, username='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USERNAME_INVALID|The provided username is not valid| + + diff --git a/old_docs/API_docs_v91/methods/channels_createChannel.md b/old_docs/API_docs_v91/methods/channels_createChannel.md new file mode 100644 index 00000000..1821c864 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_createChannel.md @@ -0,0 +1,76 @@ +--- +title: channels.createChannel +description: Create channel/supergroup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.createChannel +[Back to methods index](index.md) + + +Create channel/supergroup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|broadcast|[Bool](../types/Bool.md) | Set this to true to create a channel | Optional| +|megagroup|[Bool](../types/Bool.md) | Set this to true to create a supergroup | Optional| +|title|[string](../types/string.md) | Supergroup/channel title | Yes| +|about|[string](../types/string.md) | About text | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.createChannel` + +Parameters: + +broadcast - Json encoded Bool + +megagroup - Json encoded Bool + +title - Json encoded string + +about - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string', about='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_TITLE_EMPTY|No chat title provided| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + + diff --git a/old_docs/API_docs_v91/methods/channels_deleteChannel.md b/old_docs/API_docs_v91/methods/channels_deleteChannel.md new file mode 100644 index 00000000..a79ccb9f --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_deleteChannel.md @@ -0,0 +1,67 @@ +--- +title: channels.deleteChannel +description: Delete a channel/supergroup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.deleteChannel +[Back to methods index](index.md) + + +Delete a channel/supergroup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup to delete | Optional| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.deleteChannel` + +Parameters: + +channel - Json encoded InputChannel + + + + +Or, if you're into Lua: + +```lua +Updates = channels.deleteChannel({channel=InputChannel, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + + diff --git a/old_docs/API_docs_v91/methods/channels_deleteHistory.md b/old_docs/API_docs_v91/methods/channels_deleteHistory.md new file mode 100644 index 00000000..606eb2dc --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_deleteHistory.md @@ -0,0 +1,71 @@ +--- +title: channels.deleteHistory +description: Delete the history of a supergroup/channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.deleteHistory +[Back to methods index](index.md) + + +Delete the history of a supergroup/channel + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|max\_id|[int](../types/int.md) | Maximum message ID to delete | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->deleteHistory(['channel' => InputChannel, 'max_id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.deleteHistory +* params - `{"channel": InputChannel, "max_id": int, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.deleteHistory` + +Parameters: + +channel - Json encoded InputChannel + +max_id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Bool = channels.deleteHistory({channel=InputChannel, max_id=int, }) +``` + diff --git a/old_docs/API_docs_v91/methods/channels_deleteMessages.md b/old_docs/API_docs_v91/methods/channels_deleteMessages.md new file mode 100644 index 00000000..8cd7ebb3 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_deleteMessages.md @@ -0,0 +1,80 @@ +--- +title: channels.deleteMessages +description: Delete channel/supergroup messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.deleteMessages +[Back to methods index](index.md) + + +Delete channel/supergroup messages + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|id|Array of [int](../types/int.md) | The IDs of messages to delete | Yes| + + +### Return type: [messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.deleteMessages +* params - `{"channel": InputChannel, "id": [int], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.deleteMessages` + +Parameters: + +channel - Json encoded InputChannel + +id - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_AffectedMessages = channels.deleteMessages({channel=InputChannel, id={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + diff --git a/old_docs/API_docs_v91/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v91/methods/channels_deleteUserHistory.md new file mode 100644 index 00000000..78baa90f --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_deleteUserHistory.md @@ -0,0 +1,70 @@ +--- +title: channels.deleteUserHistory +description: Delete all messages of a user in a channel/supergroup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.deleteUserHistory +[Back to methods index](index.md) + + +Delete all messages of a user in a channel/supergroup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional| + + +### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.deleteUserHistory` + +Parameters: + +channel - Json encoded InputChannel + +user_id - Json encoded InputUser + + + + +Or, if you're into Lua: + +```lua +messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, user_id=InputUser, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + + diff --git a/docs/API_docs/methods/channels_editAbout.md b/old_docs/API_docs_v91/methods/channels_editAbout.md similarity index 100% rename from docs/API_docs/methods/channels_editAbout.md rename to old_docs/API_docs_v91/methods/channels_editAbout.md diff --git a/old_docs/API_docs_v91/methods/channels_editAdmin.md b/old_docs/API_docs_v91/methods/channels_editAdmin.md new file mode 100644 index 00000000..19670a43 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_editAdmin.md @@ -0,0 +1,90 @@ +--- +title: channels.editAdmin +description: Edit admin permissions of a user in a channel/supergroup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.editAdmin +[Back to methods index](index.md) + + +Edit admin permissions of a user in a channel/supergroup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional| +|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | The new admin rights | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.editAdmin +* params - `{"channel": InputChannel, "user_id": InputUser, "admin_rights": ChannelAdminRights, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.editAdmin` + +Parameters: + +channel - Json encoded InputChannel + +user_id - Json encoded InputUser + +admin_rights - Json encoded ChannelAdminRights + + + + +Or, if you're into Lua: + +```lua +Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rights=ChannelAdminRights, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|ADMINS_TOO_MUCH|Too many admins| +|BOT_CHANNELS_NA|Bots can't edit admin privileges| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + + diff --git a/old_docs/API_docs_v91/methods/channels_editBanned.md b/old_docs/API_docs_v91/methods/channels_editBanned.md new file mode 100644 index 00000000..e18f236e --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_editBanned.md @@ -0,0 +1,85 @@ +--- +title: channels.editBanned +description: Kick or ban a user from a channel/supergroup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.editBanned +[Back to methods index](index.md) + + +Kick or ban a user from a channel/supergroup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to kick/ban | Optional| +|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Banned/kicked permissions | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.editBanned +* params - `{"channel": InputChannel, "user_id": InputUser, "banned_rights": ChannelBannedRights, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.editBanned` + +Parameters: + +channel - Json encoded InputChannel + +user_id - Json encoded InputUser + +banned_rights - Json encoded ChannelBannedRights + + + + +Or, if you're into Lua: + +```lua +Updates = channels.editBanned({channel=InputChannel, user_id=InputUser, banned_rights=ChannelBannedRights, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_ADMIN_INVALID|You're not an admin| +|USER_ID_INVALID|The provided user ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/channels_editPhoto.md b/old_docs/API_docs_v91/methods/channels_editPhoto.md new file mode 100644 index 00000000..7013c6e2 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_editPhoto.md @@ -0,0 +1,80 @@ +--- +title: channels.editPhoto +description: Edit the photo of a supergroup/channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.editPhoto +[Back to methods index](index.md) + + +Edit the photo of a supergroup/channel + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| +|photo|[InputChatPhoto](../types/InputChatPhoto.md) | The new photo | Optional| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.editPhoto +* params - `{"channel": InputChannel, "photo": InputChatPhoto, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.editPhoto` + +Parameters: + +channel - Json encoded InputChannel + +photo - Json encoded InputChatPhoto + + + + +Or, if you're into Lua: + +```lua +Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|PHOTO_INVALID|Photo invalid| + + diff --git a/old_docs/API_docs_v91/methods/channels_editTitle.md b/old_docs/API_docs_v91/methods/channels_editTitle.md new file mode 100644 index 00000000..a9c8c50f --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_editTitle.md @@ -0,0 +1,80 @@ +--- +title: channels.editTitle +description: Edit the title of a supergroup/channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.editTitle +[Back to methods index](index.md) + + +Edit the title of a supergroup/channel + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| +|title|[string](../types/string.md) | The new channel/supergroup title | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.editTitle +* params - `{"channel": InputChannel, "title": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.editTitle` + +Parameters: + +channel - Json encoded InputChannel + +title - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Updates = channels.editTitle({channel=InputChannel, title='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| + + diff --git a/docs/API_docs/methods/channels_exportInvite.md b/old_docs/API_docs_v91/methods/channels_exportInvite.md similarity index 100% rename from docs/API_docs/methods/channels_exportInvite.md rename to old_docs/API_docs_v91/methods/channels_exportInvite.md diff --git a/old_docs/API_docs_v91/methods/channels_exportMessageLink.md b/old_docs/API_docs_v91/methods/channels_exportMessageLink.md new file mode 100644 index 00000000..c28b37e0 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_exportMessageLink.md @@ -0,0 +1,72 @@ +--- +title: channels.exportMessageLink +description: Get the link of a message in a channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.exportMessageLink +[Back to methods index](index.md) + + +Get the link of a message in a channel + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|id|[int](../types/int.md) | The ID of the message | Yes| +|grouped|[Bool](../types/Bool.md) | Is this an album? | Yes| + + +### Return type: [ExportedMessageLink](../types/ExportedMessageLink.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, 'grouped' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.exportMessageLink` + +Parameters: + +channel - Json encoded InputChannel + +id - Json encoded int + +grouped - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +ExportedMessageLink = channels.exportMessageLink({channel=InputChannel, id=int, grouped=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| + + diff --git a/old_docs/API_docs_v91/methods/channels_getAdminLog.md b/old_docs/API_docs_v91/methods/channels_getAdminLog.md new file mode 100644 index 00000000..79a6b402 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_getAdminLog.md @@ -0,0 +1,86 @@ +--- +title: channels.getAdminLog +description: Get admin log of a channel/supergroup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.getAdminLog +[Back to methods index](index.md) + + +Get admin log of a channel/supergroup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|q|[string](../types/string.md) | Search query | Yes| +|events\_filter|[ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md) | Event filter | Optional| +|admins|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Fetch only actions from these admins | Optional| +|max\_id|[long](../types/long.md) | Maximum message ID to fetch | Yes| +|min\_id|[long](../types/long.md) | Minimum message ID to fetch | Yes| +|limit|[int](../types/int.md) | Number of results to fetch | Yes| + + +### Return type: [channels\_AdminLogResults](../types/channels_AdminLogResults.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser, InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.getAdminLog` + +Parameters: + +channel - Json encoded InputChannel + +q - Json encoded string + +events_filter - Json encoded ChannelAdminLogEventsFilter + +admins - Json encoded array of InputUser + +max_id - Json encoded long + +min_id - Json encoded long + +limit - Json encoded int + + + + +Or, if you're into Lua: + +```lua +channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string', events_filter=ChannelAdminLogEventsFilter, admins={InputUser}, max_id=long, min_id=long, limit=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + + diff --git a/old_docs/API_docs_v91/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v91/methods/channels_getAdminedPublicChannels.md new file mode 100644 index 00000000..dc2c29ed --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_getAdminedPublicChannels.md @@ -0,0 +1,52 @@ +--- +title: channels.getAdminedPublicChannels +description: Get all supergroups/channels where you're admin +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.getAdminedPublicChannels +[Back to methods index](index.md) + + +Get all supergroups/channels where you're admin + + + +### Return type: [messages\_Chats](../types/messages_Chats.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.getAdminedPublicChannels` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +messages_Chats = channels.getAdminedPublicChannels({}) +``` + diff --git a/old_docs/API_docs_v91/methods/channels_getChannels.md b/old_docs/API_docs_v91/methods/channels_getChannels.md new file mode 100644 index 00000000..a146be1e --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_getChannels.md @@ -0,0 +1,77 @@ +--- +title: channels.getChannels +description: Get info about multiple channels/supergroups +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.getChannels +[Back to methods index](index.md) + + +Get info about multiple channels/supergroups + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup MTProto IDs | Yes| + + +### Return type: [messages\_Chats](../types/messages_Chats.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.getChannels +* params - `{"id": [InputChannel], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.getChannels` + +Parameters: + +id - Json encoded array of InputChannel + + + + +Or, if you're into Lua: + +```lua +messages_Chats = channels.getChannels({id={InputChannel}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|NEED_CHAT_INVALID|The provided chat is invalid| + + diff --git a/old_docs/API_docs_v91/methods/channels_getFullChannel.md b/old_docs/API_docs_v91/methods/channels_getFullChannel.md new file mode 100644 index 00000000..45a8ec72 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_getFullChannel.md @@ -0,0 +1,14 @@ +--- +title: channels.getFullChannel +description: You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.getFullChannel +[Back to methods index](index.md) + + +**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/channels_getLeftChannels.md b/old_docs/API_docs_v91/methods/channels_getLeftChannels.md new file mode 100644 index 00000000..3623d820 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_getLeftChannels.md @@ -0,0 +1,68 @@ +--- +title: channels.getLeftChannels +description: Get all channels you left +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.getLeftChannels +[Back to methods index](index.md) + + +Get all channels you left + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|offset|[int](../types/int.md) | Offset | Yes| + + +### Return type: [messages\_Chats](../types/messages_Chats.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->channels->getLeftChannels(['offset' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.getLeftChannels +* params - `{"offset": int, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.getLeftChannels` + +Parameters: + +offset - Json encoded int + + + + +Or, if you're into Lua: + +```lua +messages_Chats = channels.getLeftChannels({offset=int, }) +``` + diff --git a/old_docs/API_docs_v91/methods/channels_getMessages.md b/old_docs/API_docs_v91/methods/channels_getMessages.md new file mode 100644 index 00000000..95382110 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_getMessages.md @@ -0,0 +1,80 @@ +--- +title: channels.getMessages +description: Get channel/supergroup messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.getMessages +[Back to methods index](index.md) + + +Get channel/supergroup messages + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|id|Array of [Message ID or InputMessage](../types/InputMessage.md) | The message IDs | Yes| + + +### Return type: [messages\_Messages](../types/messages_Messages.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [InputMessage, InputMessage], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.getMessages +* params - `{"channel": InputChannel, "id": [InputMessage], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.getMessages` + +Parameters: + +channel - Json encoded InputChannel + +id - Json encoded array of InputMessage + + + + +Or, if you're into Lua: + +```lua +messages_Messages = channels.getMessages({channel=InputChannel, id={InputMessage}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|MESSAGE_IDS_EMPTY|No message ids were provided| + + diff --git a/old_docs/API_docs_v91/methods/channels_getParticipant.md b/old_docs/API_docs_v91/methods/channels_getParticipant.md new file mode 100644 index 00000000..9cf80799 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_getParticipant.md @@ -0,0 +1,82 @@ +--- +title: channels.getParticipant +description: Get info about a certain channel/supergroup participant +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.getParticipant +[Back to methods index](index.md) + + +Get info about a certain channel/supergroup participant + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to fetch info about | Optional| + + +### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.getParticipant +* params - `{"channel": InputChannel, "user_id": InputUser, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.getParticipant` + +Parameters: + +channel - Json encoded InputChannel + +user_id - Json encoded InputUser + + + + +Or, if you're into Lua: + +```lua +channels_ChannelParticipant = channels.getParticipant({channel=InputChannel, user_id=InputUser, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + + diff --git a/old_docs/API_docs_v91/methods/channels_getParticipants.md b/old_docs/API_docs_v91/methods/channels_getParticipants.md new file mode 100644 index 00000000..eefd0917 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_getParticipants.md @@ -0,0 +1,91 @@ +--- +title: channels.getParticipants +description: Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.getParticipants +[Back to methods index](index.md) + + +Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| +|filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Member filter | Yes| +|offset|[int](../types/int.md) | Offset | Yes| +|limit|[int](../types/int.md) | Limit | Yes| +|hash|Array of [int](../types/int.md) | IDs of previously fetched participants | Optional| + + +### Return type: [channels\_ChannelParticipants](../types/channels_ChannelParticipants.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, 'hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.getParticipants +* params - `{"channel": InputChannel, "filter": ChannelParticipantsFilter, "offset": int, "limit": int, "hash": [int], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.getParticipants` + +Parameters: + +channel - Json encoded InputChannel + +filter - Json encoded ChannelParticipantsFilter + +offset - Json encoded int + +limit - Json encoded int + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +channels_ChannelParticipants = channels.getParticipants({channel=InputChannel, filter=ChannelParticipantsFilter, offset=int, limit=int, hash={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/channels_inviteToChannel.md b/old_docs/API_docs_v91/methods/channels_inviteToChannel.md new file mode 100644 index 00000000..998e3895 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_inviteToChannel.md @@ -0,0 +1,84 @@ +--- +title: channels.inviteToChannel +description: Add users to channel/supergroup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.inviteToChannel +[Back to methods index](index.md) + + +Add users to channel/supergroup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The users to add | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.inviteToChannel` + +Parameters: + +channel - Json encoded InputChannel + +users - Json encoded array of InputUser + + + + +Or, if you're into Lua: + +```lua +Updates = channels.inviteToChannel({channel=InputChannel, users={InputUser}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|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_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + + diff --git a/old_docs/API_docs_v91/methods/channels_joinChannel.md b/old_docs/API_docs_v91/methods/channels_joinChannel.md new file mode 100644 index 00000000..3c6a3b94 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_joinChannel.md @@ -0,0 +1,68 @@ +--- +title: channels.joinChannel +description: Join a channel/supergroup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.joinChannel +[Back to methods index](index.md) + + +Join a channel/supergroup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup to join | Optional| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.joinChannel` + +Parameters: + +channel - Json encoded InputChannel + + + + +Or, if you're into Lua: + +```lua +Updates = channels.joinChannel({channel=InputChannel, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| + + diff --git a/old_docs/API_docs_v91/methods/channels_leaveChannel.md b/old_docs/API_docs_v91/methods/channels_leaveChannel.md new file mode 100644 index 00000000..0934089f --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_leaveChannel.md @@ -0,0 +1,79 @@ +--- +title: channels.leaveChannel +description: Leave a channel/supergroup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.leaveChannel +[Back to methods index](index.md) + + +Leave a channel/supergroup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup to leave | Optional| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.leaveChannel +* params - `{"channel": InputChannel, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.leaveChannel` + +Parameters: + +channel - Json encoded InputChannel + + + + +Or, if you're into Lua: + +```lua +Updates = channels.leaveChannel({channel=InputChannel, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| + + diff --git a/old_docs/API_docs_v91/methods/channels_readHistory.md b/old_docs/API_docs_v91/methods/channels_readHistory.md new file mode 100644 index 00000000..cf5c1529 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_readHistory.md @@ -0,0 +1,70 @@ +--- +title: channels.readHistory +description: Mark channel/supergroup history as read +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.readHistory +[Back to methods index](index.md) + + +Mark channel/supergroup history as read + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|max\_id|[int](../types/int.md) | Maximum message ID to mark as read | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.readHistory` + +Parameters: + +channel - Json encoded InputChannel + +max_id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Bool = channels.readHistory({channel=InputChannel, max_id=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + + diff --git a/old_docs/API_docs_v91/methods/channels_readMessageContents.md b/old_docs/API_docs_v91/methods/channels_readMessageContents.md new file mode 100644 index 00000000..a6cf4f3a --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_readMessageContents.md @@ -0,0 +1,70 @@ +--- +title: channels.readMessageContents +description: Mark channel/supergroup messages as read +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.readMessageContents +[Back to methods index](index.md) + + +Mark channel/supergroup messages as read + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| +|id|Array of [int](../types/int.md) | List of message IDs | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.readMessageContents` + +Parameters: + +channel - Json encoded InputChannel + +id - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +Bool = channels.readMessageContents({channel=InputChannel, id={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + + diff --git a/old_docs/API_docs_v91/methods/channels_reportSpam.md b/old_docs/API_docs_v91/methods/channels_reportSpam.md new file mode 100644 index 00000000..b0e99eb1 --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_reportSpam.md @@ -0,0 +1,73 @@ +--- +title: channels.reportSpam +description: Report a message in a supergroup/channel for spam +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.reportSpam +[Back to methods index](index.md) + + +Report a message in a supergroup/channel for spam + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user that sent the messages | Optional| +|id|Array of [int](../types/int.md) | The IDs of messages to report | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.reportSpam` + +Parameters: + +channel - Json encoded InputChannel + +user_id - Json encoded InputUser + +id - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|INPUT_USER_DEACTIVATED|The specified user was deleted| + + diff --git a/old_docs/API_docs_v91/methods/channels_setStickers.md b/old_docs/API_docs_v91/methods/channels_setStickers.md new file mode 100644 index 00000000..4338f29a --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_setStickers.md @@ -0,0 +1,79 @@ +--- +title: channels.setStickers +description: Set the supergroup/channel stickerpack +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.setStickers +[Back to methods index](index.md) + + +Set the supergroup/channel stickerpack + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergoup | Optional| +|stickerset|[InputStickerSet](../types/InputStickerSet.md) | The stickerset | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->setStickers(['channel' => InputChannel, 'stickerset' => InputStickerSet, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.setStickers +* params - `{"channel": InputChannel, "stickerset": InputStickerSet, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.setStickers` + +Parameters: + +channel - Json encoded InputChannel + +stickerset - Json encoded InputStickerSet + + + + +Or, if you're into Lua: + +```lua +Bool = channels.setStickers({channel=InputChannel, stickerset=InputStickerSet, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|PARTICIPANTS_TOO_FEW|Not enough participants| + + diff --git a/docs/API_docs/methods/channels_toggleInvites.md b/old_docs/API_docs_v91/methods/channels_toggleInvites.md similarity index 100% rename from docs/API_docs/methods/channels_toggleInvites.md rename to old_docs/API_docs_v91/methods/channels_toggleInvites.md diff --git a/old_docs/API_docs_v91/methods/channels_togglePreHistoryHidden.md b/old_docs/API_docs_v91/methods/channels_togglePreHistoryHidden.md new file mode 100644 index 00000000..c972473d --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_togglePreHistoryHidden.md @@ -0,0 +1,71 @@ +--- +title: channels.togglePreHistoryHidden +description: Enable or disable hidden history for new channel/supergroup users +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.togglePreHistoryHidden +[Back to methods index](index.md) + + +Enable or disable hidden history for new channel/supergroup users + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|enabled|[Bool](../types/Bool.md) | Enable or disable hidden history for new channel/supergroup users | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->togglePreHistoryHidden(['channel' => InputChannel, 'enabled' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - channels.togglePreHistoryHidden +* params - `{"channel": InputChannel, "enabled": Bool, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.togglePreHistoryHidden` + +Parameters: + +channel - Json encoded InputChannel + +enabled - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Updates = channels.togglePreHistoryHidden({channel=InputChannel, enabled=Bool, }) +``` + diff --git a/old_docs/API_docs_v91/methods/channels_toggleSignatures.md b/old_docs/API_docs_v91/methods/channels_toggleSignatures.md new file mode 100644 index 00000000..c9fe18cc --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_toggleSignatures.md @@ -0,0 +1,69 @@ +--- +title: channels.toggleSignatures +description: Toggle channel signatures +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.toggleSignatures +[Back to methods index](index.md) + + +Toggle channel signatures + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|enabled|[Bool](../types/Bool.md) | Enable or disable channel signatures? | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.toggleSignatures` + +Parameters: + +channel - Json encoded InputChannel + +enabled - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| + + diff --git a/old_docs/API_docs_v91/methods/channels_updateUsername.md b/old_docs/API_docs_v91/methods/channels_updateUsername.md new file mode 100644 index 00000000..c0df8c7c --- /dev/null +++ b/old_docs/API_docs_v91/methods/channels_updateUsername.md @@ -0,0 +1,73 @@ +--- +title: channels.updateUsername +description: Update the username of a supergroup/channel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: channels.updateUsername +[Back to methods index](index.md) + + +Update the username of a supergroup/channel + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| +|username|[string](../types/string.md) | The new username | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.updateUsername` + +Parameters: + +channel - Json encoded InputChannel + +username - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = channels.updateUsername({channel=InputChannel, username='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + + diff --git a/old_docs/API_docs_v91/methods/contacts_block.md b/old_docs/API_docs_v91/methods/contacts_block.md new file mode 100644 index 00000000..ca390b37 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_block.md @@ -0,0 +1,66 @@ +--- +title: contacts.block +description: Block a user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.block +[Back to methods index](index.md) + + +Block a user + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to block | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.block` + +Parameters: + +id - Json encoded InputUser + + + + +Or, if you're into Lua: + +```lua +Bool = contacts.block({id=InputUser, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CONTACT_ID_INVALID|The provided contact ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/contacts_deleteByPhones.md b/old_docs/API_docs_v91/methods/contacts_deleteByPhones.md new file mode 100644 index 00000000..4cac225c --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_deleteByPhones.md @@ -0,0 +1,68 @@ +--- +title: contacts.deleteByPhones +description: Delete contacts by phones +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.deleteByPhones +[Back to methods index](index.md) + + +Delete contacts by phones + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|phones|Array of [string](../types/string.md) | Phones | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteByPhones(['phones' => ['string', 'string'], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - contacts.deleteByPhones +* params - `{"phones": ["string"], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.deleteByPhones` + +Parameters: + +phones - Json encoded array of string + + + + +Or, if you're into Lua: + +```lua +Bool = contacts.deleteByPhones({phones={'string'}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/contacts_deleteContact.md b/old_docs/API_docs_v91/methods/contacts_deleteContact.md new file mode 100644 index 00000000..804afd98 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_deleteContact.md @@ -0,0 +1,66 @@ +--- +title: contacts.deleteContact +description: Delete a contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.deleteContact +[Back to methods index](index.md) + + +Delete a contact + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The contact to delete | Optional| + + +### Return type: [contacts\_Link](../types/contacts_Link.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.deleteContact` + +Parameters: + +id - Json encoded InputUser + + + + +Or, if you're into Lua: + +```lua +contacts_Link = contacts.deleteContact({id=InputUser, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CONTACT_ID_INVALID|The provided contact ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/contacts_deleteContacts.md b/old_docs/API_docs_v91/methods/contacts_deleteContacts.md new file mode 100644 index 00000000..79a04c66 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_deleteContacts.md @@ -0,0 +1,67 @@ +--- +title: contacts.deleteContacts +description: Delete multiple contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.deleteContacts +[Back to methods index](index.md) + + +Delete multiple contacts + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The contacts to delete | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.deleteContacts` + +Parameters: + +id - Json encoded array of InputUser + + + + +Or, if you're into Lua: + +```lua +Bool = contacts.deleteContacts({id={InputUser}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|NEED_MEMBER_INVALID|The provided member is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/contacts_getBlocked.md b/old_docs/API_docs_v91/methods/contacts_getBlocked.md new file mode 100644 index 00000000..d4c8ce97 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_getBlocked.md @@ -0,0 +1,62 @@ +--- +title: contacts.getBlocked +description: Get blocked users +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.getBlocked +[Back to methods index](index.md) + + +Get blocked users + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|offset|[int](../types/int.md) | Initially 0, then set to the number of blocked contacts previously fetched | Yes| +|limit|[int](../types/int.md) | How many blocked contacts to fetch | Yes| + + +### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.getBlocked` + +Parameters: + +offset - Json encoded int + +limit - Json encoded int + + + + +Or, if you're into Lua: + +```lua +contacts_Blocked = contacts.getBlocked({offset=int, limit=int, }) +``` + diff --git a/old_docs/API_docs_v91/methods/contacts_getContactIDs.md b/old_docs/API_docs_v91/methods/contacts_getContactIDs.md new file mode 100644 index 00000000..46a1d748 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_getContactIDs.md @@ -0,0 +1,68 @@ +--- +title: contacts.getContactIDs +description: Get contacts by IDs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.getContactIDs +[Back to methods index](index.md) + + +Get contacts by IDs + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|Array of [int](../types/int.md) | Previously fetched IDs | Optional| + + +### Return type: [Vector\_of\_int](../types/int.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->contacts->getContactIDs(['hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - contacts.getContactIDs +* params - `{"hash": [int], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.getContactIDs` + +Parameters: + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +Vector_of_int = contacts.getContactIDs({hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/contacts_getContacts.md b/old_docs/API_docs_v91/methods/contacts_getContacts.md new file mode 100644 index 00000000..19826f89 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_getContacts.md @@ -0,0 +1,59 @@ +--- +title: contacts.getContacts +description: Get all contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.getContacts +[Back to methods index](index.md) + + +Get all contacts + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|Array of [int](../types/int.md) | User IDs of previously cached contacts | Optional| + + +### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.getContacts` + +Parameters: + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +contacts_Contacts = contacts.getContacts({hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/contacts_getSaved.md b/old_docs/API_docs_v91/methods/contacts_getSaved.md new file mode 100644 index 00000000..720d215a --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_getSaved.md @@ -0,0 +1,61 @@ +--- +title: contacts.getSaved +description: Get saved contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.getSaved +[Back to methods index](index.md) + + +Get saved contacts + + + +### Return type: [Vector\_of\_SavedContact](../types/SavedContact.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_SavedContact = $MadelineProto->contacts->getSaved(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - contacts.getSaved +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.getSaved` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Vector_of_SavedContact = contacts.getSaved({}) +``` + diff --git a/old_docs/API_docs_v91/methods/contacts_getStatuses.md b/old_docs/API_docs_v91/methods/contacts_getStatuses.md new file mode 100644 index 00000000..9ca4b553 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_getStatuses.md @@ -0,0 +1,52 @@ +--- +title: contacts.getStatuses +description: Get online status of all users +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.getStatuses +[Back to methods index](index.md) + + +Get online status of all users + + + +### Return type: [Vector\_of\_ContactStatus](../types/ContactStatus.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.getStatuses` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Vector_of_ContactStatus = contacts.getStatuses({}) +``` + diff --git a/old_docs/API_docs_v91/methods/contacts_getTopPeers.md b/old_docs/API_docs_v91/methods/contacts_getTopPeers.md new file mode 100644 index 00000000..c64e7486 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_getTopPeers.md @@ -0,0 +1,90 @@ +--- +title: contacts.getTopPeers +description: Get most used chats +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.getTopPeers +[Back to methods index](index.md) + + +Get most used chats + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|correspondents|[Bool](../types/Bool.md) | Fetch users? | Optional| +|bots\_pm|[Bool](../types/Bool.md) | Fetch bots? | Optional| +|bots\_inline|[Bool](../types/Bool.md) | Fetch inline bots? | Optional| +|phone\_calls|[Bool](../types/Bool.md) | Fetch phone calls? | Optional| +|groups|[Bool](../types/Bool.md) | Fetch groups? | Optional| +|channels|[Bool](../types/Bool.md) | Fetch channels and supergroups? | Optional| +|offset|[int](../types/int.md) | Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];` | Yes| +|limit|[int](../types/int.md) | How many results to fetch | Yes| +|hash|Array of [int](../types/int.md) | Peer IDs of previously cached peers | Optional| + + +### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'phone_calls' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.getTopPeers` + +Parameters: + +correspondents - Json encoded Bool + +bots_pm - Json encoded Bool + +bots_inline - Json encoded Bool + +phone_calls - Json encoded Bool + +groups - Json encoded Bool + +channels - Json encoded Bool + +offset - Json encoded int + +limit - Json encoded int + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, phone_calls=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|TYPES_EMPTY|The types field is empty| + + diff --git a/old_docs/API_docs_v91/methods/contacts_importContacts.md b/old_docs/API_docs_v91/methods/contacts_importContacts.md new file mode 100644 index 00000000..c42f5c57 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_importContacts.md @@ -0,0 +1,59 @@ +--- +title: contacts.importContacts +description: Add phone number as contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.importContacts +[Back to methods index](index.md) + + +Add phone number as contact + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|contacts|Array of [InputContact](../types/InputContact.md) | The numbers to import | Yes| + + +### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.importContacts` + +Parameters: + +contacts - Json encoded array of InputContact + + + + +Or, if you're into Lua: + +```lua +contacts_ImportedContacts = contacts.importContacts({contacts={InputContact}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/contacts_resetSaved.md b/old_docs/API_docs_v91/methods/contacts_resetSaved.md new file mode 100644 index 00000000..40d528bc --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_resetSaved.md @@ -0,0 +1,61 @@ +--- +title: contacts.resetSaved +description: Reset saved contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.resetSaved +[Back to methods index](index.md) + + +Reset saved contacts + + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->resetSaved(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - contacts.resetSaved +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.resetSaved` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Bool = contacts.resetSaved({}) +``` + diff --git a/old_docs/API_docs_v91/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v91/methods/contacts_resetTopPeerRating.md new file mode 100644 index 00000000..94a07f54 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_resetTopPeerRating.md @@ -0,0 +1,69 @@ +--- +title: contacts.resetTopPeerRating +description: Reset top peer rating for a certain category/peer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.resetTopPeerRating +[Back to methods index](index.md) + + +Reset top peer rating for a certain category/peer + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|category|[TopPeerCategory](../types/TopPeerCategory.md) | The category | Yes| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The peer | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.resetTopPeerRating` + +Parameters: + +category - Json encoded TopPeerCategory + +peer - Json encoded InputPeer + + + + +Or, if you're into Lua: + +```lua +Bool = contacts.resetTopPeerRating({category=TopPeerCategory, peer=InputPeer, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/contacts_resolveUsername.md b/old_docs/API_docs_v91/methods/contacts_resolveUsername.md new file mode 100644 index 00000000..fab56bb1 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_resolveUsername.md @@ -0,0 +1,14 @@ +--- +title: contacts.resolveUsername +description: You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.resolveUsername +[Back to methods index](index.md) + + +**You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/contacts_search.md b/old_docs/API_docs_v91/methods/contacts_search.md new file mode 100644 index 00000000..54c21d05 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_search.md @@ -0,0 +1,71 @@ +--- +title: contacts.search +description: Search contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.search +[Back to methods index](index.md) + + +Search contacts + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|q|[string](../types/string.md) | The search query | Yes| +|limit|[int](../types/int.md) | How many results should be returned | Yes| + + +### Return type: [contacts\_Found](../types/contacts_Found.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.search` + +Parameters: + +q - Json encoded string + +limit - Json encoded int + + + + +Or, if you're into Lua: + +```lua +contacts_Found = contacts.search({q='string', limit=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/contacts_toggleTopPeers.md b/old_docs/API_docs_v91/methods/contacts_toggleTopPeers.md new file mode 100644 index 00000000..b68b4bf3 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_toggleTopPeers.md @@ -0,0 +1,68 @@ +--- +title: contacts.toggleTopPeers +description: Toggle top peers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.toggleTopPeers +[Back to methods index](index.md) + + +Toggle top peers + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|enabled|[Bool](../types/Bool.md) | Enable or disable top peer | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->toggleTopPeers(['enabled' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - contacts.toggleTopPeers +* params - `{"enabled": Bool, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.toggleTopPeers` + +Parameters: + +enabled - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Bool = contacts.toggleTopPeers({enabled=Bool, }) +``` + diff --git a/old_docs/API_docs_v91/methods/contacts_unblock.md b/old_docs/API_docs_v91/methods/contacts_unblock.md new file mode 100644 index 00000000..4f85b8e7 --- /dev/null +++ b/old_docs/API_docs_v91/methods/contacts_unblock.md @@ -0,0 +1,66 @@ +--- +title: contacts.unblock +description: Unblock a user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: contacts.unblock +[Back to methods index](index.md) + + +Unblock a user + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to unblock | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.unblock` + +Parameters: + +id - Json encoded InputUser + + + + +Or, if you're into Lua: + +```lua +Bool = contacts.unblock({id=InputUser, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CONTACT_ID_INVALID|The provided contact ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/help_acceptTermsOfService.md b/old_docs/API_docs_v91/methods/help_acceptTermsOfService.md new file mode 100644 index 00000000..56a6c695 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_acceptTermsOfService.md @@ -0,0 +1,68 @@ +--- +title: help.acceptTermsOfService +description: Accept telegram's TOS +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.acceptTermsOfService +[Back to methods index](index.md) + + +Accept telegram's TOS + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|[DataJSON](../types/DataJSON.md) | TOS | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->acceptTermsOfService(['id' => DataJSON, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.acceptTermsOfService +* params - `{"id": DataJSON, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.acceptTermsOfService` + +Parameters: + +id - Json encoded DataJSON + + + + +Or, if you're into Lua: + +```lua +Bool = help.acceptTermsOfService({id=DataJSON, }) +``` + diff --git a/old_docs/API_docs_v91/methods/help_editUserInfo.md b/old_docs/API_docs_v91/methods/help_editUserInfo.md new file mode 100644 index 00000000..580d2f33 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_editUserInfo.md @@ -0,0 +1,107 @@ +--- +title: help.editUserInfo +description: Edit user info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.editUserInfo +[Back to methods index](index.md) + + +Edit user info + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|message|[string](../types/string.md) | Message | Yes| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Entities | Yes| +|parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional | + + +### Return type: [help\_UserInfo](../types/help_UserInfo.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$help_UserInfo = $MadelineProto->help->editUserInfo(['user_id' => InputUser, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.editUserInfo +* params - `{"user_id": InputUser, "message": "string", "entities": [MessageEntity], "parse_mode": "string"}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.editUserInfo` + +Parameters: + +parse_mode - string + + + +Or, if you're into Lua: + +```lua +help_UserInfo = help.editUserInfo({user_id=InputUser, message='string', entities={MessageEntity}, parse_mode='string', }) +``` + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [help\_UserInfo](../types/help_UserInfo.md) will be returned instead. + + + +## Usage of parse_mode: + +Set parse_mode to html to enable HTML parsing of the message. + +Set parse_mode to Markdown to enable markown AND html parsing of the message. + +The following tags are currently supported: + +```html +
a newline +bold works ok, internal tags are stripped +bold +italic +italic +inline fixed-width code +
pre-formatted fixed-width code block
+URL +Mention by username +Mention by user id +
Pre tags can have a language attribute
+``` + +You can also use normal markdown, note that to create mentions you must use the `mention:` syntax like in html: + +```markdown +[Mention by username](mention:@danogentili) +[Mention by user id](mention:186785362) +``` + +MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php). diff --git a/old_docs/API_docs_v91/methods/help_getAppChangelog.md b/old_docs/API_docs_v91/methods/help_getAppChangelog.md new file mode 100644 index 00000000..179eaf3a --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getAppChangelog.md @@ -0,0 +1,59 @@ +--- +title: help.getAppChangelog +description: Get the changelog of this app +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getAppChangelog +[Back to methods index](index.md) + + +Get the changelog of this app + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|prev\_app\_version|[string](../types/string.md) | Previous app version | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getAppChangelog` + +Parameters: + +prev_app_version - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Updates = help.getAppChangelog({prev_app_version='string', }) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getAppConfig.md b/old_docs/API_docs_v91/methods/help_getAppConfig.md new file mode 100644 index 00000000..3fd5f540 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getAppConfig.md @@ -0,0 +1,61 @@ +--- +title: help.getAppConfig +description: Get app config +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getAppConfig +[Back to methods index](index.md) + + +Get app config + + + +### Return type: [JSONValue](../types/JSONValue.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$JSONValue = $MadelineProto->help->getAppConfig(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.getAppConfig +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getAppConfig` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +JSONValue = help.getAppConfig({}) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getAppUpdate.md b/old_docs/API_docs_v91/methods/help_getAppUpdate.md new file mode 100644 index 00000000..4558e073 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getAppUpdate.md @@ -0,0 +1,59 @@ +--- +title: help.getAppUpdate +description: Get info about app updates +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getAppUpdate +[Back to methods index](index.md) + + +Get info about app updates + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|source|[string](../types/string.md) | Source | Yes| + + +### Return type: [help\_AppUpdate](../types/help_AppUpdate.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$help_AppUpdate = $MadelineProto->help->getAppUpdate(['source' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getAppUpdate` + +Parameters: + +source - Json encoded string + + + + +Or, if you're into Lua: + +```lua +help_AppUpdate = help.getAppUpdate({source='string', }) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getCdnConfig.md b/old_docs/API_docs_v91/methods/help_getCdnConfig.md new file mode 100644 index 00000000..766896c7 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getCdnConfig.md @@ -0,0 +1,69 @@ +--- +title: help.getCdnConfig +description: Get CDN configuration +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getCdnConfig +[Back to methods index](index.md) + + +Get CDN configuration + + + +### Return type: [CdnConfig](../types/CdnConfig.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$CdnConfig = $MadelineProto->help->getCdnConfig(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.getCdnConfig +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getCdnConfig` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +CdnConfig = help.getCdnConfig({}) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/help_getConfig.md b/old_docs/API_docs_v91/methods/help_getConfig.md new file mode 100644 index 00000000..c17e7b37 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getConfig.md @@ -0,0 +1,69 @@ +--- +title: help.getConfig +description: Get server configuration +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getConfig +[Back to methods index](index.md) + + +Get server configuration + + + +### Return type: [Config](../types/Config.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Config = $MadelineProto->help->getConfig(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.getConfig +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getConfig` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Config = help.getConfig({}) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/help_getDeepLinkInfo.md b/old_docs/API_docs_v91/methods/help_getDeepLinkInfo.md new file mode 100644 index 00000000..55885ec2 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getDeepLinkInfo.md @@ -0,0 +1,68 @@ +--- +title: help.getDeepLinkInfo +description: Get deep link info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getDeepLinkInfo +[Back to methods index](index.md) + + +Get deep link info + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|path|[string](../types/string.md) | Deep link | Yes| + + +### Return type: [help\_DeepLinkInfo](../types/help_DeepLinkInfo.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$help_DeepLinkInfo = $MadelineProto->help->getDeepLinkInfo(['path' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.getDeepLinkInfo +* params - `{"path": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getDeepLinkInfo` + +Parameters: + +path - Json encoded string + + + + +Or, if you're into Lua: + +```lua +help_DeepLinkInfo = help.getDeepLinkInfo({path='string', }) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getInviteText.md b/old_docs/API_docs_v91/methods/help_getInviteText.md new file mode 100644 index 00000000..f05ac4ac --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getInviteText.md @@ -0,0 +1,52 @@ +--- +title: help.getInviteText +description: Get invitation text +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getInviteText +[Back to methods index](index.md) + + +Get invitation text + + + +### Return type: [help\_InviteText](../types/help_InviteText.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$help_InviteText = $MadelineProto->help->getInviteText(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getInviteText` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +help_InviteText = help.getInviteText({}) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getNearestDc.md b/old_docs/API_docs_v91/methods/help_getNearestDc.md new file mode 100644 index 00000000..ed773822 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getNearestDc.md @@ -0,0 +1,52 @@ +--- +title: help.getNearestDc +description: Get nearest datacenter +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getNearestDc +[Back to methods index](index.md) + + +Get nearest datacenter + + + +### Return type: [NearestDc](../types/NearestDc.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$NearestDc = $MadelineProto->help->getNearestDc(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getNearestDc` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +NearestDc = help.getNearestDc({}) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getPassportConfig.md b/old_docs/API_docs_v91/methods/help_getPassportConfig.md new file mode 100644 index 00000000..4b58fa73 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getPassportConfig.md @@ -0,0 +1,68 @@ +--- +title: help.getPassportConfig +description: Get passport config +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getPassportConfig +[Back to methods index](index.md) + + +Get passport config + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|Array of [int](../types/int.md) | Hash | Optional| + + +### Return type: [help\_PassportConfig](../types/help_PassportConfig.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$help_PassportConfig = $MadelineProto->help->getPassportConfig(['hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.getPassportConfig +* params - `{"hash": [int], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getPassportConfig` + +Parameters: + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +help_PassportConfig = help.getPassportConfig({hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getProxyData.md b/old_docs/API_docs_v91/methods/help_getProxyData.md new file mode 100644 index 00000000..37955ac0 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getProxyData.md @@ -0,0 +1,61 @@ +--- +title: help.getProxyData +description: Get information about the current proxy +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getProxyData +[Back to methods index](index.md) + + +Get information about the current proxy + + + +### Return type: [help\_ProxyData](../types/help_ProxyData.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$help_ProxyData = $MadelineProto->help->getProxyData(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.getProxyData +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getProxyData` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +help_ProxyData = help.getProxyData({}) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getRecentMeUrls.md b/old_docs/API_docs_v91/methods/help_getRecentMeUrls.md new file mode 100644 index 00000000..c9641f67 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getRecentMeUrls.md @@ -0,0 +1,68 @@ +--- +title: help.getRecentMeUrls +description: Get recent t.me URLs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getRecentMeUrls +[Back to methods index](index.md) + + +Get recent t.me URLs + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|referer|[string](../types/string.md) | Referrer | Yes| + + +### Return type: [help\_RecentMeUrls](../types/help_RecentMeUrls.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$help_RecentMeUrls = $MadelineProto->help->getRecentMeUrls(['referer' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.getRecentMeUrls +* params - `{"referer": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getRecentMeUrls` + +Parameters: + +referer - Json encoded string + + + + +Or, if you're into Lua: + +```lua +help_RecentMeUrls = help.getRecentMeUrls({referer='string', }) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getSupport.md b/old_docs/API_docs_v91/methods/help_getSupport.md new file mode 100644 index 00000000..21e07cec --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getSupport.md @@ -0,0 +1,52 @@ +--- +title: help.getSupport +description: Get info of support user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getSupport +[Back to methods index](index.md) + + +Get info of support user + + + +### Return type: [help\_Support](../types/help_Support.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$help_Support = $MadelineProto->help->getSupport(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getSupport` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +help_Support = help.getSupport({}) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getSupportName.md b/old_docs/API_docs_v91/methods/help_getSupportName.md new file mode 100644 index 00000000..83440dc3 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getSupportName.md @@ -0,0 +1,61 @@ +--- +title: help.getSupportName +description: Get support name +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getSupportName +[Back to methods index](index.md) + + +Get support name + + + +### Return type: [help\_SupportName](../types/help_SupportName.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$help_SupportName = $MadelineProto->help->getSupportName(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.getSupportName +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getSupportName` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +help_SupportName = help.getSupportName({}) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getTermsOfServiceUpdate.md b/old_docs/API_docs_v91/methods/help_getTermsOfServiceUpdate.md new file mode 100644 index 00000000..b3cfa0ed --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getTermsOfServiceUpdate.md @@ -0,0 +1,61 @@ +--- +title: help.getTermsOfServiceUpdate +description: Get updated TOS +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getTermsOfServiceUpdate +[Back to methods index](index.md) + + +Get updated TOS + + + +### Return type: [help\_TermsOfServiceUpdate](../types/help_TermsOfServiceUpdate.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$help_TermsOfServiceUpdate = $MadelineProto->help->getTermsOfServiceUpdate(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.getTermsOfServiceUpdate +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getTermsOfServiceUpdate` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +help_TermsOfServiceUpdate = help.getTermsOfServiceUpdate({}) +``` + diff --git a/old_docs/API_docs_v91/methods/help_getUserInfo.md b/old_docs/API_docs_v91/methods/help_getUserInfo.md new file mode 100644 index 00000000..051af31f --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_getUserInfo.md @@ -0,0 +1,68 @@ +--- +title: help.getUserInfo +description: Get user info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.getUserInfo +[Back to methods index](index.md) + + +Get user info + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| + + +### Return type: [help\_UserInfo](../types/help_UserInfo.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$help_UserInfo = $MadelineProto->help->getUserInfo(['user_id' => InputUser, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.getUserInfo +* params - `{"user_id": InputUser, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.getUserInfo` + +Parameters: + +user_id - Json encoded InputUser + + + + +Or, if you're into Lua: + +```lua +help_UserInfo = help.getUserInfo({user_id=InputUser, }) +``` + diff --git a/old_docs/API_docs_v91/methods/help_saveAppLog.md b/old_docs/API_docs_v91/methods/help_saveAppLog.md new file mode 100644 index 00000000..d8478d5f --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_saveAppLog.md @@ -0,0 +1,59 @@ +--- +title: help.saveAppLog +description: Log data for developer of this app +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.saveAppLog +[Back to methods index](index.md) + + +Log data for developer of this app + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|events|Array of [InputAppEvent](../types/InputAppEvent.md) | Event list | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.saveAppLog` + +Parameters: + +events - Json encoded array of InputAppEvent + + + + +Or, if you're into Lua: + +```lua +Bool = help.saveAppLog({events={InputAppEvent}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v91/methods/help_setBotUpdatesStatus.md new file mode 100644 index 00000000..53736da7 --- /dev/null +++ b/old_docs/API_docs_v91/methods/help_setBotUpdatesStatus.md @@ -0,0 +1,77 @@ +--- +title: help.setBotUpdatesStatus +description: Set the update status of webhook +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: help.setBotUpdatesStatus +[Back to methods index](index.md) + + +Set the update status of webhook + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|pending\_updates\_count|[int](../types/int.md) | Pending update count | Yes| +|message|[string](../types/string.md) | Message | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - help.setBotUpdatesStatus +* params - `{"pending_updates_count": int, "message": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/help.setBotUpdatesStatus` + +Parameters: + +pending_updates_count - Json encoded int + +message - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = help.setBotUpdatesStatus({pending_updates_count=int, message='string', }) +``` + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [Bool](../types/Bool.md) will be returned instead. + + diff --git a/old_docs/API_docs_v91/methods/initConnection.md b/old_docs/API_docs_v91/methods/initConnection.md new file mode 100644 index 00000000..c956cf38 --- /dev/null +++ b/old_docs/API_docs_v91/methods/initConnection.md @@ -0,0 +1,100 @@ +--- +title: initConnection +description: Initializes connection and save information on the user's device and application. +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: initConnection +[Back to methods index](index.md) + + +Initializes connection and save information on the user's device and application. + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|api\_id|[int](../types/int.md) | Application identifier | Yes| +|device\_model|[string](../types/string.md) | Device model | Yes| +|system\_version|[string](../types/string.md) | System version | Yes| +|app\_version|[string](../types/string.md) | App version | Yes| +|system\_lang\_code|[string](../types/string.md) | Language code | Yes| +|lang\_pack|[string](../types/string.md) | Language pack to use | Yes| +|lang\_code|[string](../types/string.md) | Language code to set | Yes| +|proxy|[InputClientProxy](../types/InputClientProxy.md) | The current proxy | Optional| +|query|[!X](../types/!X.md) | Nested query | Yes| + + +### Return type: [X](../types/X.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'system_lang_code' => 'string', 'lang_pack' => 'string', 'lang_code' => 'string', 'proxy' => InputClientProxy, 'query' => !X, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - initConnection +* params - `{"api_id": int, "device_model": "string", "system_version": "string", "app_version": "string", "system_lang_code": "string", "lang_pack": "string", "lang_code": "string", "proxy": InputClientProxy, "query": !X, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/initConnection` + +Parameters: + +api_id - Json encoded int + +device_model - Json encoded string + +system_version - Json encoded string + +app_version - Json encoded string + +system_lang_code - Json encoded string + +lang_pack - Json encoded string + +lang_code - Json encoded string + +proxy - Json encoded InputClientProxy + +query - Json encoded !X + + + + +Or, if you're into Lua: + +```lua +X = initConnection({api_id=int, device_model='string', system_version='string', app_version='string', system_lang_code='string', lang_pack='string', lang_code='string', proxy=InputClientProxy, query=!X, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CONNECTION_LAYER_INVALID|Layer invalid| +|INPUT_FETCH_FAIL|Failed deserializing TL payload| + + diff --git a/old_docs/API_docs_v91/methods/invokeAfterMsg.md b/old_docs/API_docs_v91/methods/invokeAfterMsg.md new file mode 100644 index 00000000..70d077d0 --- /dev/null +++ b/old_docs/API_docs_v91/methods/invokeAfterMsg.md @@ -0,0 +1,71 @@ +--- +title: invokeAfterMsg +description: Invokes a query after successfull completion of one of the previous queries. +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: invokeAfterMsg +[Back to methods index](index.md) + + +Invokes a query after successfull completion of one of the previous queries. + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|msg\_id|[long](../types/long.md) | Message identifier on which a current query depends | Yes| +|query|[!X](../types/!X.md) | The query itself | Yes| + + +### Return type: [X](../types/X.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - invokeAfterMsg +* params - `{"msg_id": long, "query": !X, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/invokeAfterMsg` + +Parameters: + +msg_id - Json encoded long + +query - Json encoded !X + + + + +Or, if you're into Lua: + +```lua +X = invokeAfterMsg({msg_id=long, query=!X, }) +``` + diff --git a/old_docs/API_docs_v91/methods/invokeAfterMsgs.md b/old_docs/API_docs_v91/methods/invokeAfterMsgs.md new file mode 100644 index 00000000..5af5ebba --- /dev/null +++ b/old_docs/API_docs_v91/methods/invokeAfterMsgs.md @@ -0,0 +1,71 @@ +--- +title: invokeAfterMsgs +description: Result type returned by a current query. +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: invokeAfterMsgs +[Back to methods index](index.md) + + +Result type returned by a current query. + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|msg\_ids|Array of [long](../types/long.md) | List of messages on which a current query depends | Yes| +|query|[!X](../types/!X.md) | The query itself | Yes| + + +### Return type: [X](../types/X.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - invokeAfterMsgs +* params - `{"msg_ids": [long], "query": !X, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/invokeAfterMsgs` + +Parameters: + +msg_ids - Json encoded array of long + +query - Json encoded !X + + + + +Or, if you're into Lua: + +```lua +X = invokeAfterMsgs({msg_ids={long}, query=!X, }) +``` + diff --git a/old_docs/API_docs_v91/methods/invokeWithLayer.md b/old_docs/API_docs_v91/methods/invokeWithLayer.md new file mode 100644 index 00000000..298c6b39 --- /dev/null +++ b/old_docs/API_docs_v91/methods/invokeWithLayer.md @@ -0,0 +1,90 @@ +--- +title: invokeWithLayer +description: Invoke this method with layer X +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: invokeWithLayer +[Back to methods index](index.md) + + +Invoke this method with layer X + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|layer|[int](../types/int.md) | The layer version | Yes| +|query|[!X](../types/!X.md) | The query | Yes| + + +### Return type: [X](../types/X.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - invokeWithLayer +* params - `{"layer": int, "query": !X, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/invokeWithLayer` + +Parameters: + +layer - Json encoded int + +query - Json encoded !X + + + + +Or, if you're into Lua: + +```lua +X = invokeWithLayer({layer=int, query=!X, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|CDN_METHOD_INVALID|You can't call this method in a CDN DC| +|CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| +|CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_NOT_INITED|Connection not initialized| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| +|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|NEED_MEMBER_INVALID|The provided member is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/invokeWithMessagesRange.md b/old_docs/API_docs_v91/methods/invokeWithMessagesRange.md new file mode 100644 index 00000000..bd5bf0fa --- /dev/null +++ b/old_docs/API_docs_v91/methods/invokeWithMessagesRange.md @@ -0,0 +1,71 @@ +--- +title: invokeWithMessagesRange +description: Invoke with messages range +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: invokeWithMessagesRange +[Back to methods index](index.md) + + +Invoke with messages range + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|range|[MessageRange](../types/MessageRange.md) | The range | Yes| +|query|[!X](../types/!X.md) | The query | Yes| + + +### Return type: [X](../types/X.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$X = $MadelineProto->invokeWithMessagesRange(['range' => MessageRange, 'query' => !X, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - invokeWithMessagesRange +* params - `{"range": MessageRange, "query": !X, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/invokeWithMessagesRange` + +Parameters: + +range - Json encoded MessageRange + +query - Json encoded !X + + + + +Or, if you're into Lua: + +```lua +X = invokeWithMessagesRange({range=MessageRange, query=!X, }) +``` + diff --git a/old_docs/API_docs_v91/methods/invokeWithTakeout.md b/old_docs/API_docs_v91/methods/invokeWithTakeout.md new file mode 100644 index 00000000..5f83f4a1 --- /dev/null +++ b/old_docs/API_docs_v91/methods/invokeWithTakeout.md @@ -0,0 +1,71 @@ +--- +title: invokeWithTakeout +description: Invoke method from takeout session +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: invokeWithTakeout +[Back to methods index](index.md) + + +Invoke method from takeout session + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|takeout\_id|[long](../types/long.md) | The takeout session ID | Yes| +|query|[!X](../types/!X.md) | The query | Yes| + + +### Return type: [X](../types/X.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$X = $MadelineProto->invokeWithTakeout(['takeout_id' => long, 'query' => !X, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - invokeWithTakeout +* params - `{"takeout_id": long, "query": !X, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/invokeWithTakeout` + +Parameters: + +takeout_id - Json encoded long + +query - Json encoded !X + + + + +Or, if you're into Lua: + +```lua +X = invokeWithTakeout({takeout_id=long, query=!X, }) +``` + diff --git a/old_docs/API_docs_v91/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v91/methods/invokeWithoutUpdates.md new file mode 100644 index 00000000..1843ce99 --- /dev/null +++ b/old_docs/API_docs_v91/methods/invokeWithoutUpdates.md @@ -0,0 +1,68 @@ +--- +title: invokeWithoutUpdates +description: Invoke with method without returning updates in the socket +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: invokeWithoutUpdates +[Back to methods index](index.md) + + +Invoke with method without returning updates in the socket + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|query|[!X](../types/!X.md) | The query | Yes| + + +### Return type: [X](../types/X.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - invokeWithoutUpdates +* params - `{"query": !X, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/invokeWithoutUpdates` + +Parameters: + +query - Json encoded !X + + + + +Or, if you're into Lua: + +```lua +X = invokeWithoutUpdates({query=!X, }) +``` + diff --git a/old_docs/API_docs_v91/methods/langpack_getDifference.md b/old_docs/API_docs_v91/methods/langpack_getDifference.md new file mode 100644 index 00000000..8ec3cb04 --- /dev/null +++ b/old_docs/API_docs_v91/methods/langpack_getDifference.md @@ -0,0 +1,69 @@ +--- +title: langpack.getDifference +description: Get language pack updates +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: langpack.getDifference +[Back to methods index](index.md) + + +Get language pack updates + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|lang\_code|[string](../types/string.md) | Lang code | Yes| +|from\_version|[int](../types/int.md) | Previous version | Yes| + + +### Return type: [LangPackDifference](../types/LangPackDifference.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$LangPackDifference = $MadelineProto->langpack->getDifference(['lang_code' => 'string', 'from_version' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/langpack.getDifference` + +Parameters: + +lang_code - Json encoded string + +from_version - Json encoded int + + + + +Or, if you're into Lua: + +```lua +LangPackDifference = langpack.getDifference({lang_code='string', from_version=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|LANG_PACK_INVALID|The provided language pack is invalid| + + diff --git a/old_docs/API_docs_v91/methods/langpack_getLangPack.md b/old_docs/API_docs_v91/methods/langpack_getLangPack.md new file mode 100644 index 00000000..c6944f50 --- /dev/null +++ b/old_docs/API_docs_v91/methods/langpack_getLangPack.md @@ -0,0 +1,69 @@ +--- +title: langpack.getLangPack +description: Get language pack +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: langpack.getLangPack +[Back to methods index](index.md) + + +Get language pack + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|lang\_pack|[string](../types/string.md) | Lang pack | Yes| +|lang\_code|[string](../types/string.md) | Language code | Yes| + + +### Return type: [LangPackDifference](../types/LangPackDifference.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_pack' => 'string', 'lang_code' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/langpack.getLangPack` + +Parameters: + +lang_pack - Json encoded string + +lang_code - Json encoded string + + + + +Or, if you're into Lua: + +```lua +LangPackDifference = langpack.getLangPack({lang_pack='string', lang_code='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|LANG_PACK_INVALID|The provided language pack is invalid| + + diff --git a/old_docs/API_docs_v91/methods/langpack_getLanguage.md b/old_docs/API_docs_v91/methods/langpack_getLanguage.md new file mode 100644 index 00000000..a97a1429 --- /dev/null +++ b/old_docs/API_docs_v91/methods/langpack_getLanguage.md @@ -0,0 +1,71 @@ +--- +title: langpack.getLanguage +description: Get language +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: langpack.getLanguage +[Back to methods index](index.md) + + +Get language + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|lang\_pack|[string](../types/string.md) | Lang pack | Yes| +|lang\_code|[string](../types/string.md) | Lang code | Yes| + + +### Return type: [LangPackLanguage](../types/LangPackLanguage.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$LangPackLanguage = $MadelineProto->langpack->getLanguage(['lang_pack' => 'string', 'lang_code' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - langpack.getLanguage +* params - `{"lang_pack": "string", "lang_code": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/langpack.getLanguage` + +Parameters: + +lang_pack - Json encoded string + +lang_code - Json encoded string + + + + +Or, if you're into Lua: + +```lua +LangPackLanguage = langpack.getLanguage({lang_pack='string', lang_code='string', }) +``` + diff --git a/old_docs/API_docs_v91/methods/langpack_getLanguages.md b/old_docs/API_docs_v91/methods/langpack_getLanguages.md new file mode 100644 index 00000000..093ca8a5 --- /dev/null +++ b/old_docs/API_docs_v91/methods/langpack_getLanguages.md @@ -0,0 +1,66 @@ +--- +title: langpack.getLanguages +description: Get available languages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: langpack.getLanguages +[Back to methods index](index.md) + + +Get available languages + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|lang\_pack|[string](../types/string.md) | Lang pack | Yes| + + +### Return type: [Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(['lang_pack' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/langpack.getLanguages` + +Parameters: + +lang_pack - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Vector_of_LangPackLanguage = langpack.getLanguages({lang_pack='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|LANG_PACK_INVALID|The provided language pack is invalid| + + diff --git a/old_docs/API_docs_v91/methods/langpack_getStrings.md b/old_docs/API_docs_v91/methods/langpack_getStrings.md new file mode 100644 index 00000000..4df420e7 --- /dev/null +++ b/old_docs/API_docs_v91/methods/langpack_getStrings.md @@ -0,0 +1,72 @@ +--- +title: langpack.getStrings +description: Get language pack strings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: langpack.getStrings +[Back to methods index](index.md) + + +Get language pack strings + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|lang\_pack|[string](../types/string.md) | Lang pack | Yes| +|lang\_code|[string](../types/string.md) | Language code | Yes| +|keys|Array of [string](../types/string.md) | Keys | Yes| + + +### Return type: [Vector\_of\_LangPackString](../types/LangPackString.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_pack' => 'string', 'lang_code' => 'string', 'keys' => ['string', 'string'], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/langpack.getStrings` + +Parameters: + +lang_pack - Json encoded string + +lang_code - Json encoded string + +keys - Json encoded array of string + + + + +Or, if you're into Lua: + +```lua +Vector_of_LangPackString = langpack.getStrings({lang_pack='string', lang_code='string', keys={'string'}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|LANG_PACK_INVALID|The provided language pack is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_acceptEncryption.md b/old_docs/API_docs_v91/methods/messages_acceptEncryption.md new file mode 100644 index 00000000..26d28676 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_acceptEncryption.md @@ -0,0 +1,14 @@ +--- +title: messages.acceptEncryption +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.acceptEncryption +[Back to methods index](index.md) + + +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats** + + + + diff --git a/old_docs/API_docs_v91/methods/messages_addChatUser.md b/old_docs/API_docs_v91/methods/messages_addChatUser.md new file mode 100644 index 00000000..48694153 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_addChatUser.md @@ -0,0 +1,80 @@ +--- +title: messages.addChatUser +description: Add a user to a normal chat (use channels->inviteToChannel for supergroups) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.addChatUser +[Back to methods index](index.md) + + +Add a user to a normal chat (use channels->inviteToChannel for supergroups) + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat where to invite users | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to invite | Optional| +|fwd\_limit|[int](../types/int.md) | Number of old messages the user will see | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.addChatUser` + +Parameters: + +chat_id - Json encoded InputPeer + +user_id - Json encoded InputUser + +fwd_limit - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Updates = messages.addChatUser({chat_id=InputPeer, user_id=InputUser, fwd_limit=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + + diff --git a/old_docs/API_docs_v91/methods/messages_checkChatInvite.md b/old_docs/API_docs_v91/methods/messages_checkChatInvite.md new file mode 100644 index 00000000..413b0fa7 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_checkChatInvite.md @@ -0,0 +1,68 @@ +--- +title: messages.checkChatInvite +description: Check if an invitation link is valid +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.checkChatInvite +[Back to methods index](index.md) + + +Check if an invitation link is valid + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|[string](../types/string.md) | The invite link in t.me/joinchat/aflakf format | Yes| + + +### Return type: [ChatInvite](../types/ChatInvite.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.checkChatInvite` + +Parameters: + +hash - Json encoded string + + + + +Or, if you're into Lua: + +```lua +ChatInvite = messages.checkChatInvite({hash='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_clearAllDrafts.md b/old_docs/API_docs_v91/methods/messages_clearAllDrafts.md new file mode 100644 index 00000000..9840c525 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_clearAllDrafts.md @@ -0,0 +1,61 @@ +--- +title: messages.clearAllDrafts +description: Clear all drafts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.clearAllDrafts +[Back to methods index](index.md) + + +Clear all drafts + + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->clearAllDrafts(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.clearAllDrafts +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.clearAllDrafts` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Bool = messages.clearAllDrafts({}) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v91/methods/messages_clearRecentStickers.md new file mode 100644 index 00000000..53e1fa4f --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_clearRecentStickers.md @@ -0,0 +1,59 @@ +--- +title: messages.clearRecentStickers +description: Clear all recent stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.clearRecentStickers +[Back to methods index](index.md) + + +Clear all recent stickers + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|attached|[Bool](../types/Bool.md) | Clear recent stickers attached to images? | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.clearRecentStickers` + +Parameters: + +attached - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Bool = messages.clearRecentStickers({attached=Bool, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_createChat.md b/old_docs/API_docs_v91/methods/messages_createChat.md new file mode 100644 index 00000000..4110a1e4 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_createChat.md @@ -0,0 +1,70 @@ +--- +title: messages.createChat +description: Create a chat (not supergroup) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.createChat +[Back to methods index](index.md) + + +Create a chat (not supergroup) + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The users to add to the chat | Yes| +|title|[string](../types/string.md) | The new chat's title | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.createChat` + +Parameters: + +users - Json encoded array of InputUser + +title - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Updates = messages.createChat({users={InputUser}, title='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + + diff --git a/old_docs/API_docs_v91/methods/messages_deleteChatUser.md b/old_docs/API_docs_v91/methods/messages_deleteChatUser.md new file mode 100644 index 00000000..a82a7710 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_deleteChatUser.md @@ -0,0 +1,80 @@ +--- +title: messages.deleteChatUser +description: Delete a user from a chat (not supergroup) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.deleteChatUser +[Back to methods index](index.md) + + +Delete a user from a chat (not supergroup) + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The ID of the chat | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to delete (pass @me to leave the chat) | Optional| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.deleteChatUser +* params - `{"chat_id": InputPeer, "user_id": InputUser, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.deleteChatUser` + +Parameters: + +chat_id - Json encoded InputPeer + +user_id - Json encoded InputUser + + + + +Or, if you're into Lua: + +```lua +Updates = messages.deleteChatUser({chat_id=InputPeer, user_id=InputUser, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + + diff --git a/old_docs/API_docs_v91/methods/messages_deleteHistory.md b/old_docs/API_docs_v91/methods/messages_deleteHistory.md new file mode 100644 index 00000000..33d1ca52 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_deleteHistory.md @@ -0,0 +1,72 @@ +--- +title: messages.deleteHistory +description: Delete chat history +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.deleteHistory +[Back to methods index](index.md) + + +Delete chat history + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|just\_clear|[Bool](../types/Bool.md) | Only clear it from your side | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to clear it | Optional| +|max\_id|[int](../types/int.md) | Maximum message id of messages to delete | Yes| + + +### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.deleteHistory` + +Parameters: + +just_clear - Json encoded Bool + +peer - Json encoded InputPeer + +max_id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +messages_AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPeer, max_id=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_deleteMessages.md b/old_docs/API_docs_v91/methods/messages_deleteMessages.md new file mode 100644 index 00000000..9158e8bd --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_deleteMessages.md @@ -0,0 +1,78 @@ +--- +title: messages.deleteMessages +description: Delete messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.deleteMessages +[Back to methods index](index.md) + + +Delete messages + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|revoke|[Bool](../types/Bool.md) | Delete the messages for everyone? | Optional| +|id|Array of [int](../types/int.md) | IDs of messages to delete, use channels->deleteMessages for supergroups | Yes| + + +### Return type: [messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.deleteMessages +* params - `{"revoke": Bool, "id": [int], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.deleteMessages` + +Parameters: + +revoke - Json encoded Bool + +id - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_AffectedMessages = messages.deleteMessages({revoke=Bool, id={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + + diff --git a/old_docs/API_docs_v91/methods/messages_discardEncryption.md b/old_docs/API_docs_v91/methods/messages_discardEncryption.md new file mode 100644 index 00000000..f3689dd0 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_discardEncryption.md @@ -0,0 +1,14 @@ +--- +title: messages.discardEncryption +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.discardEncryption +[Back to methods index](index.md) + + +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats** + + + + diff --git a/old_docs/API_docs_v91/methods/messages_editChatAdmin.md b/old_docs/API_docs_v91/methods/messages_editChatAdmin.md new file mode 100644 index 00000000..f883b50e --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_editChatAdmin.md @@ -0,0 +1,72 @@ +--- +title: messages.editChatAdmin +description: Edit admin permissions +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.editChatAdmin +[Back to methods index](index.md) + + +Edit admin permissions + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat ID (no supergroups) | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user ID | Optional| +|is\_admin|[Bool](../types/Bool.md) | Should the user be admin? | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.editChatAdmin` + +Parameters: + +chat_id - Json encoded InputPeer + +user_id - Json encoded InputUser + +is_admin - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Bool = messages.editChatAdmin({chat_id=InputPeer, user_id=InputUser, is_admin=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ID_INVALID|The provided chat id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_editChatPhoto.md b/old_docs/API_docs_v91/methods/messages_editChatPhoto.md new file mode 100644 index 00000000..ce140a09 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_editChatPhoto.md @@ -0,0 +1,82 @@ +--- +title: messages.editChatPhoto +description: Edit the photo of a normal chat (not supergroup) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.editChatPhoto +[Back to methods index](index.md) + + +Edit the photo of a normal chat (not supergroup) + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The ID of the chat | Optional| +|photo|[InputChatPhoto](../types/InputChatPhoto.md) | The new phto | Optional| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.editChatPhoto +* params - `{"chat_id": InputPeer, "photo": InputChatPhoto, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.editChatPhoto` + +Parameters: + +chat_id - Json encoded InputPeer + +photo - Json encoded InputChatPhoto + + + + +Or, if you're into Lua: + +```lua +Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ID_INVALID|The provided chat id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_editChatTitle.md b/old_docs/API_docs_v91/methods/messages_editChatTitle.md new file mode 100644 index 00000000..6599d034 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_editChatTitle.md @@ -0,0 +1,79 @@ +--- +title: messages.editChatTitle +description: Edit the title of a normal chat (not supergroup) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.editChatTitle +[Back to methods index](index.md) + + +Edit the title of a normal chat (not supergroup) + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The ID of the chat | Optional| +|title|[string](../types/string.md) | The new title | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.editChatTitle +* params - `{"chat_id": InputPeer, "title": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.editChatTitle` + +Parameters: + +chat_id - Json encoded InputPeer + +title - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Updates = messages.editChatTitle({chat_id=InputPeer, title='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ID_INVALID|The provided chat id is invalid| +|NEED_CHAT_INVALID|The provided chat is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v91/methods/messages_editInlineBotMessage.md new file mode 100644 index 00000000..f147b8dc --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_editInlineBotMessage.md @@ -0,0 +1,124 @@ +--- +title: messages.editInlineBotMessage +description: Edit a sent inline message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.editInlineBotMessage +[Back to methods index](index.md) + + +Edit a sent inline message + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|no\_webpage|[Bool](../types/Bool.md) | Disable webpage preview | Optional| +|id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | The message ID | Yes| +|message|[string](../types/string.md) | The new message | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | The media to substitute | Optional| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | The new keyboard | Optional| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | The new entities (for styled text) | Optional| +|parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional | + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'media' => InputMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.editInlineBotMessage +* params - `{"no_webpage": Bool, "id": InputBotInlineMessageID, "message": "string", "media": InputMedia, "reply_markup": ReplyMarkup, "entities": [MessageEntity], "parse_mode": "string"}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.editInlineBotMessage` + +Parameters: + +parse_mode - string + + + +Or, if you're into Lua: + +```lua +Bool = messages.editInlineBotMessage({no_webpage=Bool, id=InputBotInlineMessageID, message='string', media=InputMedia, reply_markup=ReplyMarkup, entities={MessageEntity}, parse_mode='string', }) +``` + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [Bool](../types/Bool.md) will be returned instead. + + + +## Usage of parse_mode: + +Set parse_mode to html to enable HTML parsing of the message. + +Set parse_mode to Markdown to enable markown AND html parsing of the message. + +The following tags are currently supported: + +```html +
a newline +bold works ok, internal tags are stripped +bold +italic +italic +inline fixed-width code +
pre-formatted fixed-width code block
+URL +Mention by username +Mention by user id +
Pre tags can have a language attribute
+``` + +You can also use normal markdown, note that to create mentions you must use the `mention:` syntax like in html: + +```markdown +[Mention by username](mention:@danogentili) +[Mention by user id](mention:186785362) +``` + +MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php). +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| + + diff --git a/old_docs/API_docs_v91/methods/messages_editMessage.md b/old_docs/API_docs_v91/methods/messages_editMessage.md new file mode 100644 index 00000000..44dbb453 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_editMessage.md @@ -0,0 +1,133 @@ +--- +title: messages.editMessage +description: Edit a message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.editMessage +[Back to methods index](index.md) + + +Edit a message + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|no\_webpage|[Bool](../types/Bool.md) | Disable webpage preview | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat | Optional| +|id|[int](../types/int.md) | The message ID | Yes| +|message|[string](../types/string.md) | The new message | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | The media to substitute | Optional| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | The new keyboard | Optional| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | The new entities (for styled text) | Optional| +|parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional | + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'media' => InputMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.editMessage +* params - `{"no_webpage": Bool, "peer": InputPeer, "id": int, "message": "string", "media": InputMedia, "reply_markup": ReplyMarkup, "entities": [MessageEntity], "parse_mode": "string"}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.editMessage` + +Parameters: + +parse_mode - string + + + +Or, if you're into Lua: + +```lua +Updates = messages.editMessage({no_webpage=Bool, peer=InputPeer, id=int, message='string', media=InputMedia, reply_markup=ReplyMarkup, entities={MessageEntity}, parse_mode='string', }) +``` + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [Updates](../types/Updates.md) will be returned instead. + + + +## Usage of parse_mode: + +Set parse_mode to html to enable HTML parsing of the message. + +Set parse_mode to Markdown to enable markown AND html parsing of the message. + +The following tags are currently supported: + +```html +
a newline +bold works ok, internal tags are stripped +bold +italic +italic +inline fixed-width code +
pre-formatted fixed-width code block
+URL +Mention by username +Mention by user id +
Pre tags can have a language attribute
+``` + +You can also use normal markdown, note that to create mentions you must use the `mention:` syntax like in html: + +```markdown +[Mention by username](mention:@danogentili) +[Mention by user id](mention:186785362) +``` + +MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php). +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|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_NOT_MODIFIED|The message text has not changed| +|PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_AUTHOR_REQUIRED|Message author required| + + diff --git a/old_docs/API_docs_v91/methods/messages_exportChatInvite.md b/old_docs/API_docs_v91/methods/messages_exportChatInvite.md new file mode 100644 index 00000000..227135c6 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_exportChatInvite.md @@ -0,0 +1,66 @@ +--- +title: messages.exportChatInvite +description: Export chat invite +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.exportChatInvite +[Back to methods index](index.md) + + +Export chat invite + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat id | Optional| + + +### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.exportChatInvite` + +Parameters: + +chat_id - Json encoded InputPeer + + + + +Or, if you're into Lua: + +```lua +ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ID_INVALID|The provided chat id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_faveSticker.md b/old_docs/API_docs_v91/methods/messages_faveSticker.md new file mode 100644 index 00000000..26e49af9 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_faveSticker.md @@ -0,0 +1,78 @@ +--- +title: messages.faveSticker +description: Add a sticker to favorites +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.faveSticker +[Back to methods index](index.md) + + +Add a sticker to favorites + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | The sticker to add to favorites | Optional| +|unfave|[Bool](../types/Bool.md) | Remove it from favorites? | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->faveSticker(['id' => InputDocument, 'unfave' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.faveSticker +* params - `{"id": InputDocument, "unfave": Bool, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.faveSticker` + +Parameters: + +id - Json encoded InputDocument + +unfave - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Bool = messages.faveSticker({id=InputDocument, unfave=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|STICKER_ID_INVALID|The provided sticker ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_forwardMessages.md b/old_docs/API_docs_v91/methods/messages_forwardMessages.md new file mode 100644 index 00000000..d318421f --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_forwardMessages.md @@ -0,0 +1,115 @@ +--- +title: messages.forwardMessages +description: Forward messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.forwardMessages +[Back to methods index](index.md) + + +Forward messages + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|silent|[Bool](../types/Bool.md) | Disable notifications | Optional| +|background|[Bool](../types/Bool.md) | Disable background notifications | Optional| +|with\_my\_score|[Bool](../types/Bool.md) | If forwarding a game, forward your score, too | Optional| +|grouped|[Bool](../types/Bool.md) | Set to true if forwarding albums | Optional| +|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | From where to forward the messages | Optional| +|id|Array of [int](../types/int.md) | The message IDs | Yes| +|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to forward the messages | Optional| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'grouped' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.forwardMessages +* params - `{"silent": Bool, "background": Bool, "with_my_score": Bool, "grouped": Bool, "from_peer": InputPeer, "id": [int], "to_peer": InputPeer, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.forwardMessages` + +Parameters: + +silent - Json encoded Bool + +background - Json encoded Bool + +with_my_score - Json encoded Bool + +grouped - Json encoded Bool + +from_peer - Json encoded InputPeer + +id - Json encoded array of int + +to_peer - Json encoded InputPeer + + + + +Or, if you're into Lua: + +```lua +Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score=Bool, grouped=Bool, from_peer=InputPeer, id={int}, to_peer=InputPeer, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MEDIA_EMPTY|The provided media object is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_INVALID|A provided random ID is invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| +|NEED_MEMBER_INVALID|The provided member is invalid| +|PTS_CHANGE_EMPTY|No PTS change| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_getAllChats.md b/old_docs/API_docs_v91/methods/messages_getAllChats.md new file mode 100644 index 00000000..38cbbbae --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getAllChats.md @@ -0,0 +1,59 @@ +--- +title: messages.getAllChats +description: Get all chats (not supergroups or channels) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getAllChats +[Back to methods index](index.md) + + +Get all chats (not supergroups or channels) + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|except\_ids|Array of [int](../types/int.md) | Do not fetch these chats (MTProto id) | Yes| + + +### Return type: [messages\_Chats](../types/messages_Chats.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllChats` + +Parameters: + +except_ids - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_Chats = messages.getAllChats({except_ids={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getAllDrafts.md b/old_docs/API_docs_v91/methods/messages_getAllDrafts.md new file mode 100644 index 00000000..7300e01a --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getAllDrafts.md @@ -0,0 +1,52 @@ +--- +title: messages.getAllDrafts +description: Get all message drafts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getAllDrafts +[Back to methods index](index.md) + + +Get all message drafts + + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->getAllDrafts(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllDrafts` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Updates = messages.getAllDrafts({}) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getAllStickers.md b/old_docs/API_docs_v91/methods/messages_getAllStickers.md new file mode 100644 index 00000000..f8de60a2 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getAllStickers.md @@ -0,0 +1,59 @@ +--- +title: messages.getAllStickers +description: Get all stickerpacks +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getAllStickers +[Back to methods index](index.md) + + +Get all stickerpacks + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|Array of [int](../types/int.md) | The hash parameter of the previous result of this method | Optional| + + +### Return type: [messages\_AllStickers](../types/messages_AllStickers.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers` + +Parameters: + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_AllStickers = messages.getAllStickers({hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v91/methods/messages_getArchivedStickers.md new file mode 100644 index 00000000..ef79ee6e --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getArchivedStickers.md @@ -0,0 +1,65 @@ +--- +title: messages.getArchivedStickers +description: Get all archived stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getArchivedStickers +[Back to methods index](index.md) + + +Get all archived stickers + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|masks|[Bool](../types/Bool.md) | Get masks? | Optional| +|offset\_id|[long](../types/long.md) | Sticker ID offset | Yes| +|limit|[int](../types/int.md) | Number of stickers to fetch | Yes| + + +### Return type: [messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getArchivedStickers` + +Parameters: + +masks - Json encoded Bool + +offset_id - Json encoded long + +limit - Json encoded int + + + + +Or, if you're into Lua: + +```lua +messages_ArchivedStickers = messages.getArchivedStickers({masks=Bool, offset_id=long, limit=int, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v91/methods/messages_getAttachedStickers.md new file mode 100644 index 00000000..9ada6655 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getAttachedStickers.md @@ -0,0 +1,59 @@ +--- +title: messages.getAttachedStickers +description: Get stickers attachable to images +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getAttachedStickers +[Back to methods index](index.md) + + +Get stickers attachable to images + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|media|[InputStickeredMedia](../types/InputStickeredMedia.md) | The stickered media | Yes| + + +### Return type: [Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAttachedStickers` + +Parameters: + +media - Json encoded InputStickeredMedia + + + + +Or, if you're into Lua: + +```lua +Vector_of_StickerSetCovered = messages.getAttachedStickers({media=InputStickeredMedia, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v91/methods/messages_getBotCallbackAnswer.md new file mode 100644 index 00000000..b4f1d02f --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getBotCallbackAnswer.md @@ -0,0 +1,79 @@ +--- +title: messages.getBotCallbackAnswer +description: Get the callback answer of a bot (after clicking a button) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getBotCallbackAnswer +[Back to methods index](index.md) + + +Get the callback answer of a bot (after clicking a button) + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|game|[Bool](../types/Bool.md) | Is this a game? | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat | Optional| +|msg\_id|[int](../types/int.md) | The message ID | Yes| +|data|[bytes](../types/bytes.md) | The data to send to the bot | Optional| + + +### Return type: [messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getBotCallbackAnswer` + +Parameters: + +game - Json encoded Bool + +peer - Json encoded InputPeer + +msg_id - Json encoded int + +data - Json encoded bytes + + + + +Or, if you're into Lua: + +```lua +messages_BotCallbackAnswer = messages.getBotCallbackAnswer({game=Bool, peer=InputPeer, msg_id=int, data='bytes', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|DATA_INVALID|Encrypted data invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_getChats.md b/old_docs/API_docs_v91/methods/messages_getChats.md new file mode 100644 index 00000000..1976ea4f --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getChats.md @@ -0,0 +1,76 @@ +--- +title: messages.getChats +description: Get info about chats +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getChats +[Back to methods index](index.md) + + +Get info about chats + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|Array of [int](../types/int.md) | The MTProto IDs of chats to fetch info about | Yes| + + +### Return type: [messages\_Chats](../types/messages_Chats.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getChats +* params - `{"id": [int], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getChats` + +Parameters: + +id - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_Chats = messages.getChats({id={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_getCommonChats.md b/old_docs/API_docs_v91/methods/messages_getCommonChats.md new file mode 100644 index 00000000..83237f64 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getCommonChats.md @@ -0,0 +1,72 @@ +--- +title: messages.getCommonChats +description: Get chats in common with a user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getCommonChats +[Back to methods index](index.md) + + +Get chats in common with a user + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional| +|max\_id|[int](../types/int.md) | The maximum chat ID to fetch | Yes| +|limit|[int](../types/int.md) | Number of results to fetch | Yes| + + +### Return type: [messages\_Chats](../types/messages_Chats.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getCommonChats` + +Parameters: + +user_id - Json encoded InputUser + +max_id - Json encoded int + +limit - Json encoded int + + + + +Or, if you're into Lua: + +```lua +messages_Chats = messages.getCommonChats({user_id=InputUser, max_id=int, limit=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|USER_ID_INVALID|The provided user ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_getDhConfig.md b/old_docs/API_docs_v91/methods/messages_getDhConfig.md new file mode 100644 index 00000000..ea48a8f1 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getDhConfig.md @@ -0,0 +1,14 @@ +--- +title: messages.getDhConfig +description: You cannot use this method directly, instead use $MadelineProto->get_dh_config(); +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getDhConfig +[Back to methods index](index.md) + + +**You cannot use this method directly, instead use $MadelineProto->get_dh_config();** + + + + diff --git a/old_docs/API_docs_v91/methods/messages_getDialogUnreadMarks.md b/old_docs/API_docs_v91/methods/messages_getDialogUnreadMarks.md new file mode 100644 index 00000000..74c65efa --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getDialogUnreadMarks.md @@ -0,0 +1,61 @@ +--- +title: messages.getDialogUnreadMarks +description: Get dialogs marked as unread manually +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getDialogUnreadMarks +[Back to methods index](index.md) + + +Get dialogs marked as unread manually + + + +### Return type: [Vector\_of\_DialogPeer](../types/DialogPeer.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_DialogPeer = $MadelineProto->messages->getDialogUnreadMarks(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getDialogUnreadMarks +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getDialogUnreadMarks` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Vector_of_DialogPeer = messages.getDialogUnreadMarks({}) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getDialogs.md b/old_docs/API_docs_v91/methods/messages_getDialogs.md new file mode 100644 index 00000000..9e2e33c2 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getDialogs.md @@ -0,0 +1,84 @@ +--- +title: messages.getDialogs +description: Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getDialogs +[Back to methods index](index.md) + + +Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|exclude\_pinned|[Bool](../types/Bool.md) | Do not fetch pinned chats | Optional| +|offset\_date|[int](../types/int.md) | End($res['messages'])['date']; | Yes| +|offset\_id|[int](../types/int.md) | End($res['messages'])['id']; | Yes| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | End($res['dialogs'])['peer']; | Optional| +|limit|[int](../types/int.md) | Number of dialogs to fetch | Yes| +|hash|Array of [int](../types/int.md) | IDs of previously fetched dialogs | Optional| + + +### Return type: [messages\_Dialogs](../types/messages_Dialogs.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, 'hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getDialogs` + +Parameters: + +exclude_pinned - Json encoded Bool + +offset_date - Json encoded int + +offset_id - Json encoded int + +offset_peer - Json encoded InputPeer + +limit - Json encoded int + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, offset_id=int, offset_peer=InputPeer, limit=int, hash={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v91/methods/messages_getDocumentByHash.md new file mode 100644 index 00000000..00f0a558 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getDocumentByHash.md @@ -0,0 +1,81 @@ +--- +title: messages.getDocumentByHash +description: Get document by SHA256 hash +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getDocumentByHash +[Back to methods index](index.md) + + +Get document by SHA256 hash + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|sha256|[bytes](../types/bytes.md) | `hash('sha256', $filename, true);` | Yes| +|size|[int](../types/int.md) | The file size | Yes| +|mime\_type|[string](../types/string.md) | The mime type of the file | Yes| + + +### Return type: [Document](../types/Document.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getDocumentByHash +* params - `{"sha256": {"_": "bytes", "bytes":"base64 encoded bytes"}, "size": int, "mime_type": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getDocumentByHash` + +Parameters: + +sha256 - Json encoded bytes + +size - Json encoded int + +mime_type - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Document = messages.getDocumentByHash({sha256='bytes', size=int, mime_type='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_getFavedStickers.md b/old_docs/API_docs_v91/methods/messages_getFavedStickers.md new file mode 100644 index 00000000..95d6d4a2 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getFavedStickers.md @@ -0,0 +1,68 @@ +--- +title: messages.getFavedStickers +description: Get favorite stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getFavedStickers +[Back to methods index](index.md) + + +Get favorite stickers + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|Array of [int](../types/int.md) | the hash parameter of the previous result of this method | Optional| + + +### Return type: [messages\_FavedStickers](../types/messages_FavedStickers.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getFavedStickers +* params - `{"hash": [int], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFavedStickers` + +Parameters: + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_FavedStickers = messages.getFavedStickers({hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v91/methods/messages_getFeaturedStickers.md new file mode 100644 index 00000000..c257621e --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getFeaturedStickers.md @@ -0,0 +1,59 @@ +--- +title: messages.getFeaturedStickers +description: Get featured stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getFeaturedStickers +[Back to methods index](index.md) + + +Get featured stickers + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|Array of [int](../types/int.md) | the hash parameter of the previous result of this method | Optional| + + +### Return type: [messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFeaturedStickers` + +Parameters: + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_FeaturedStickers = messages.getFeaturedStickers({hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getFullChat.md b/old_docs/API_docs_v91/methods/messages_getFullChat.md new file mode 100644 index 00000000..5ef14f65 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getFullChat.md @@ -0,0 +1,14 @@ +--- +title: messages.getFullChat +description: You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getFullChat +[Back to methods index](index.md) + + +**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/messages_getGameHighScores.md b/old_docs/API_docs_v91/methods/messages_getGameHighScores.md new file mode 100644 index 00000000..a97fb1ff --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getGameHighScores.md @@ -0,0 +1,82 @@ +--- +title: messages.getGameHighScores +description: Get high scores of a game +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getGameHighScores +[Back to methods index](index.md) + + +Get high scores of a game + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat | Optional| +|id|[int](../types/int.md) | The message ID | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user that set the high scores | Optional| + + +### Return type: [messages\_HighScores](../types/messages_HighScores.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getGameHighScores +* params - `{"peer": InputPeer, "id": int, "user_id": InputUser, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getGameHighScores` + +Parameters: + +peer - Json encoded InputPeer + +id - Json encoded int + +user_id - Json encoded InputUser + + + + +Or, if you're into Lua: + +```lua +messages_HighScores = messages.getGameHighScores({peer=InputPeer, id=int, user_id=InputUser, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_getHistory.md b/old_docs/API_docs_v91/methods/messages_getHistory.md new file mode 100644 index 00000000..215e949d --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getHistory.md @@ -0,0 +1,93 @@ +--- +title: messages.getHistory +description: Get previous messages of a group +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getHistory +[Back to methods index](index.md) + + +Get previous messages of a group + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat | Optional| +|offset\_id|[int](../types/int.md) | The last fetched message ID, initially 0 | Yes| +|offset\_date|[int](../types/int.md) | The date of the last previously fetched message, initially 0 | Yes| +|add\_offset|[int](../types/int.md) | Additional offset, can be 0 | Yes| +|limit|[int](../types/int.md) | Number of messages to fetch | Yes| +|max\_id|[int](../types/int.md) | Maximum message ID to fetch | Yes| +|min\_id|[int](../types/int.md) | Minumum message ID to fetch | Yes| +|hash|Array of [int](../types/int.md) | IDs of messages you already fetched | Optional| + + +### Return type: [messages\_Messages](../types/messages_Messages.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, 'hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getHistory` + +Parameters: + +peer - Json encoded InputPeer + +offset_id - Json encoded int + +offset_date - Json encoded int + +add_offset - Json encoded int + +limit - Json encoded int + +max_id - Json encoded int + +min_id - Json encoded int + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_Messages = messages.getHistory({peer=InputPeer, offset_id=int, offset_date=int, add_offset=int, limit=int, max_id=int, min_id=int, hash={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v91/methods/messages_getInlineBotResults.md new file mode 100644 index 00000000..73f2deb2 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getInlineBotResults.md @@ -0,0 +1,81 @@ +--- +title: messages.getInlineBotResults +description: Call inline bot +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getInlineBotResults +[Back to methods index](index.md) + + +Call inline bot + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The bot to call | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat where to call the bot | Optional| +|geo\_point|[InputGeoPoint](../types/InputGeoPoint.md) | The current location | Optional| +|query|[string](../types/string.md) | The query to send to the bot | Yes| +|offset|[string](../types/string.md) | The offset to send to the bot | Yes| + + +### Return type: [messages\_BotResults](../types/messages_BotResults.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getInlineBotResults` + +Parameters: + +bot - Json encoded InputUser + +peer - Json encoded InputPeer + +geo_point - Json encoded InputGeoPoint + +query - Json encoded string + +offset - Json encoded string + + + + +Or, if you're into Lua: + +```lua +messages_BotResults = messages.getInlineBotResults({bot=InputUser, peer=InputPeer, geo_point=InputGeoPoint, query='string', offset='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v91/methods/messages_getInlineGameHighScores.md new file mode 100644 index 00000000..046c1cfb --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getInlineGameHighScores.md @@ -0,0 +1,79 @@ +--- +title: messages.getInlineGameHighScores +description: Get high scores of a game sent in an inline message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getInlineGameHighScores +[Back to methods index](index.md) + + +Get high scores of a game sent in an inline message + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | The inline message | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user that set the high scores | Optional| + + +### Return type: [messages\_HighScores](../types/messages_HighScores.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getInlineGameHighScores +* params - `{"id": InputBotInlineMessageID, "user_id": InputUser, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getInlineGameHighScores` + +Parameters: + +id - Json encoded InputBotInlineMessageID + +user_id - Json encoded InputUser + + + + +Or, if you're into Lua: + +```lua +messages_HighScores = messages.getInlineGameHighScores({id=InputBotInlineMessageID, user_id=InputUser, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_getMaskStickers.md b/old_docs/API_docs_v91/methods/messages_getMaskStickers.md new file mode 100644 index 00000000..06fd153e --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getMaskStickers.md @@ -0,0 +1,59 @@ +--- +title: messages.getMaskStickers +description: Get masks +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getMaskStickers +[Back to methods index](index.md) + + +Get masks + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|Array of [int](../types/int.md) | the hash parameter of the previous result of this method | Optional| + + +### Return type: [messages\_AllStickers](../types/messages_AllStickers.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getMaskStickers` + +Parameters: + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_AllStickers = messages.getMaskStickers({hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getMessageEditData.md b/old_docs/API_docs_v91/methods/messages_getMessageEditData.md new file mode 100644 index 00000000..77e2c030 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getMessageEditData.md @@ -0,0 +1,70 @@ +--- +title: messages.getMessageEditData +description: Check if about to edit a message or a media caption +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getMessageEditData +[Back to methods index](index.md) + + +Check if about to edit a message or a media caption + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat | Optional| +|id|[int](../types/int.md) | The message ID | Yes| + + +### Return type: [messages\_MessageEditData](../types/messages_MessageEditData.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getMessageEditData` + +Parameters: + +peer - Json encoded InputPeer + +id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +messages_MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_AUTHOR_REQUIRED|Message author required| + + diff --git a/old_docs/API_docs_v91/methods/messages_getMessages.md b/old_docs/API_docs_v91/methods/messages_getMessages.md new file mode 100644 index 00000000..ffc8cdb6 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getMessages.md @@ -0,0 +1,68 @@ +--- +title: messages.getMessages +description: Get messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getMessages +[Back to methods index](index.md) + + +Get messages + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|Array of [Message ID or InputMessage](../types/InputMessage.md) | The IDs of messages to fetch (only for users and normal groups) | Yes| + + +### Return type: [messages\_Messages](../types/messages_Messages.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getMessages(['id' => [InputMessage, InputMessage], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getMessages +* params - `{"id": [InputMessage], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getMessages` + +Parameters: + +id - Json encoded array of InputMessage + + + + +Or, if you're into Lua: + +```lua +messages_Messages = messages.getMessages({id={InputMessage}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getMessagesViews.md b/old_docs/API_docs_v91/methods/messages_getMessagesViews.md new file mode 100644 index 00000000..b2b6110e --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getMessagesViews.md @@ -0,0 +1,74 @@ +--- +title: messages.getMessagesViews +description: Get and increase message views +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getMessagesViews +[Back to methods index](index.md) + + +Get and increase message views + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat where the message is located | Optional| +|id|Array of [int](../types/int.md) | The IDs messages to get | Yes| +|increment|[Bool](../types/Bool.md) | Increase message views? | Yes| + + +### Return type: [Vector\_of\_int](../types/int.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getMessagesViews` + +Parameters: + +peer - Json encoded InputPeer + +id - Json encoded array of int + +increment - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_getOnlines.md b/old_docs/API_docs_v91/methods/messages_getOnlines.md new file mode 100644 index 00000000..a5e8d601 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getOnlines.md @@ -0,0 +1,68 @@ +--- +title: messages.getOnlines +description: Get online users +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getOnlines +[Back to methods index](index.md) + + +Get online users + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Peer | Optional| + + +### Return type: [ChatOnlines](../types/ChatOnlines.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$ChatOnlines = $MadelineProto->messages->getOnlines(['peer' => InputPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getOnlines +* params - `{"peer": InputPeer, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getOnlines` + +Parameters: + +peer - Json encoded InputPeer + + + + +Or, if you're into Lua: + +```lua +ChatOnlines = messages.getOnlines({peer=InputPeer, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v91/methods/messages_getPeerDialogs.md new file mode 100644 index 00000000..7d6ea635 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getPeerDialogs.md @@ -0,0 +1,67 @@ +--- +title: messages.getPeerDialogs +description: Get dialog info of peers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getPeerDialogs +[Back to methods index](index.md) + + +Get dialog info of peers + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peers|Array of [Username, chat ID, Update, Message or InputDialogPeer](../types/InputDialogPeer.md) | The peers | Yes| + + +### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputDialogPeer, InputDialogPeer], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getPeerDialogs` + +Parameters: + +peers - Json encoded array of InputDialogPeer + + + + +Or, if you're into Lua: + +```lua +messages_PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_getPeerSettings.md b/old_docs/API_docs_v91/methods/messages_getPeerSettings.md new file mode 100644 index 00000000..e2b3ec4f --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getPeerSettings.md @@ -0,0 +1,67 @@ +--- +title: messages.getPeerSettings +description: Get the settings of apeer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getPeerSettings +[Back to methods index](index.md) + + +Get the settings of apeer + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The peer | Optional| + + +### Return type: [PeerSettings](../types/PeerSettings.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getPeerSettings` + +Parameters: + +peer - Json encoded InputPeer + + + + +Or, if you're into Lua: + +```lua +PeerSettings = messages.getPeerSettings({peer=InputPeer, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v91/methods/messages_getPinnedDialogs.md new file mode 100644 index 00000000..77eb98ce --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getPinnedDialogs.md @@ -0,0 +1,52 @@ +--- +title: messages.getPinnedDialogs +description: Get pinned dialogs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getPinnedDialogs +[Back to methods index](index.md) + + +Get pinned dialogs + + + +### Return type: [messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getPinnedDialogs` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +messages_PeerDialogs = messages.getPinnedDialogs({}) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getPollResults.md b/old_docs/API_docs_v91/methods/messages_getPollResults.md new file mode 100644 index 00000000..a6203884 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getPollResults.md @@ -0,0 +1,71 @@ +--- +title: messages.getPollResults +description: Get poll results +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getPollResults +[Back to methods index](index.md) + + +Get poll results + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Peer | Optional| +|msg\_id|[int](../types/int.md) | Message ID | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->getPollResults(['peer' => InputPeer, 'msg_id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getPollResults +* params - `{"peer": InputPeer, "msg_id": int, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getPollResults` + +Parameters: + +peer - Json encoded InputPeer + +msg_id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Updates = messages.getPollResults({peer=InputPeer, msg_id=int, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getRecentLocations.md b/old_docs/API_docs_v91/methods/messages_getRecentLocations.md new file mode 100644 index 00000000..015d0c24 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getRecentLocations.md @@ -0,0 +1,74 @@ +--- +title: messages.getRecentLocations +description: Get recent locations +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getRecentLocations +[Back to methods index](index.md) + + +Get recent locations + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat where to search locations | Optional| +|limit|[int](../types/int.md) | Number of results to return | Yes| +|hash|Array of [int](../types/int.md) | IDs of locations you already fetched | Optional| + + +### Return type: [messages\_Messages](../types/messages_Messages.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getRecentLocations(['peer' => InputPeer, 'limit' => int, 'hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getRecentLocations +* params - `{"peer": InputPeer, "limit": int, "hash": [int], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getRecentLocations` + +Parameters: + +peer - Json encoded InputPeer + +limit - Json encoded int + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_Messages = messages.getRecentLocations({peer=InputPeer, limit=int, hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getRecentStickers.md b/old_docs/API_docs_v91/methods/messages_getRecentStickers.md new file mode 100644 index 00000000..939fd036 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getRecentStickers.md @@ -0,0 +1,62 @@ +--- +title: messages.getRecentStickers +description: Get recent stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getRecentStickers +[Back to methods index](index.md) + + +Get recent stickers + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|attached|[Bool](../types/Bool.md) | Get stickers attached to image? | Optional| +|hash|Array of [int](../types/int.md) | IDs the hash parameter of the previous result of this method | Optional| + + +### Return type: [messages\_RecentStickers](../types/messages_RecentStickers.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getRecentStickers` + +Parameters: + +attached - Json encoded Bool + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getSavedGifs.md b/old_docs/API_docs_v91/methods/messages_getSavedGifs.md new file mode 100644 index 00000000..1a879907 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getSavedGifs.md @@ -0,0 +1,59 @@ +--- +title: messages.getSavedGifs +description: Get saved gifs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getSavedGifs +[Back to methods index](index.md) + + +Get saved gifs + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|Array of [int](../types/int.md) | the hash parameter of the previous result of this method | Optional| + + +### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs` + +Parameters: + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_SavedGifs = messages.getSavedGifs({hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getSplitRanges.md b/old_docs/API_docs_v91/methods/messages_getSplitRanges.md new file mode 100644 index 00000000..ba744579 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getSplitRanges.md @@ -0,0 +1,61 @@ +--- +title: messages.getSplitRanges +description: Get message ranges to fetch +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getSplitRanges +[Back to methods index](index.md) + + +Get message ranges to fetch + + + +### Return type: [Vector\_of\_MessageRange](../types/MessageRange.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_MessageRange = $MadelineProto->messages->getSplitRanges(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getSplitRanges +* params - `{}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSplitRanges` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +Vector_of_MessageRange = messages.getSplitRanges({}) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getStatsURL.md b/old_docs/API_docs_v91/methods/messages_getStatsURL.md new file mode 100644 index 00000000..17ac29a7 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getStatsURL.md @@ -0,0 +1,68 @@ +--- +title: messages.getStatsURL +description: Get stats URL +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getStatsURL +[Back to methods index](index.md) + + +Get stats URL + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Peer | Optional| + + +### Return type: [StatsURL](../types/StatsURL.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$StatsURL = $MadelineProto->messages->getStatsURL(['peer' => InputPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getStatsURL +* params - `{"peer": InputPeer, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getStatsURL` + +Parameters: + +peer - Json encoded InputPeer + + + + +Or, if you're into Lua: + +```lua +StatsURL = messages.getStatsURL({peer=InputPeer, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getStickerSet.md b/old_docs/API_docs_v91/methods/messages_getStickerSet.md new file mode 100644 index 00000000..071ddde3 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getStickerSet.md @@ -0,0 +1,75 @@ +--- +title: messages.getStickerSet +description: Get a stickerset +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getStickerSet +[Back to methods index](index.md) + + +Get a stickerset + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|stickerset|[InputStickerSet](../types/InputStickerSet.md) | The stickerset to get | Optional| + + +### Return type: [messages\_StickerSet](../types/messages_StickerSet.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getStickerSet +* params - `{"stickerset": InputStickerSet, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getStickerSet` + +Parameters: + +stickerset - Json encoded InputStickerSet + + + + +Or, if you're into Lua: + +```lua +messages_StickerSet = messages.getStickerSet({stickerset=InputStickerSet, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|STICKERSET_INVALID|The provided sticker set is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_getStickers.md b/old_docs/API_docs_v91/methods/messages_getStickers.md new file mode 100644 index 00000000..a86b59f4 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getStickers.md @@ -0,0 +1,71 @@ +--- +title: messages.getStickers +description: Get stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getStickers +[Back to methods index](index.md) + + +Get stickers + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|emoticon|[string](../types/string.md) | Search by emoji | Yes| +|hash|Array of [int](../types/int.md) | the hash parameter of the previous result of this method | Optional| + + +### Return type: [messages\_Stickers](../types/messages_Stickers.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.getStickers +* params - `{"emoticon": "string", "hash": [int], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getStickers` + +Parameters: + +emoticon - Json encoded string + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_Stickers = messages.getStickers({emoticon='string', hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_getUnreadMentions.md b/old_docs/API_docs_v91/methods/messages_getUnreadMentions.md new file mode 100644 index 00000000..d30c19c5 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getUnreadMentions.md @@ -0,0 +1,81 @@ +--- +title: messages.getUnreadMentions +description: Get unread mentions +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getUnreadMentions +[Back to methods index](index.md) + + +Get unread mentions + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat where to get unread mentions | Optional| +|offset\_id|[int](../types/int.md) | The offset | Yes| +|add\_offset|[int](../types/int.md) | The additional offset | Yes| +|limit|[int](../types/int.md) | The number of results to fetch | Yes| +|max\_id|[int](../types/int.md) | The maximum message ID to fetch | Yes| +|min\_id|[int](../types/int.md) | The minumum message ID to fetch | Yes| + + +### Return type: [messages\_Messages](../types/messages_Messages.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->getUnreadMentions(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getUnreadMentions` + +Parameters: + +peer - Json encoded InputPeer + +offset_id - Json encoded int + +add_offset - Json encoded int + +limit - Json encoded int + +max_id - Json encoded int + +min_id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +messages_Messages = messages.getUnreadMentions({peer=InputPeer, offset_id=int, add_offset=int, limit=int, max_id=int, min_id=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_getWebPage.md b/old_docs/API_docs_v91/methods/messages_getWebPage.md new file mode 100644 index 00000000..9237d4b7 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getWebPage.md @@ -0,0 +1,69 @@ +--- +title: messages.getWebPage +description: Get webpage preview +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getWebPage +[Back to methods index](index.md) + + +Get webpage preview + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|url|[string](../types/string.md) | URL | Yes| +|hash|Array of [int](../types/int.md) | the hash parameter of the previous result of this method | Optional| + + +### Return type: [WebPage](../types/WebPage.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getWebPage` + +Parameters: + +url - Json encoded string + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +WebPage = messages.getWebPage({url='string', hash={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|WC_CONVERT_URL_INVALID|WC convert URL invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v91/methods/messages_getWebPagePreview.md new file mode 100644 index 00000000..e6b633ed --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_getWebPagePreview.md @@ -0,0 +1,97 @@ +--- +title: messages.getWebPagePreview +description: Get webpage preview +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.getWebPagePreview +[Back to methods index](index.md) + + +Get webpage preview + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|message|[string](../types/string.md) | Extract preview from this message | Yes| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Entities for styled text | Optional| +|parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional | + + +### Return type: [MessageMedia](../types/MessageMedia.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getWebPagePreview` + +Parameters: + +parse_mode - string + + + +Or, if you're into Lua: + +```lua +MessageMedia = messages.getWebPagePreview({message='string', entities={MessageEntity}, parse_mode='string', }) +``` + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [MessageMedia](../types/MessageMedia.md) will be returned instead. + + + +## Usage of parse_mode: + +Set parse_mode to html to enable HTML parsing of the message. + +Set parse_mode to Markdown to enable markown AND html parsing of the message. + +The following tags are currently supported: + +```html +
a newline +bold works ok, internal tags are stripped +bold +italic +italic +inline fixed-width code +
pre-formatted fixed-width code block
+URL +Mention by username +Mention by user id +
Pre tags can have a language attribute
+``` + +You can also use normal markdown, note that to create mentions you must use the `mention:` syntax like in html: + +```markdown +[Mention by username](mention:@danogentili) +[Mention by user id](mention:186785362) +``` + +MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php). diff --git a/old_docs/API_docs_v91/methods/messages_hideReportSpam.md b/old_docs/API_docs_v91/methods/messages_hideReportSpam.md new file mode 100644 index 00000000..1c0d72c5 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_hideReportSpam.md @@ -0,0 +1,66 @@ +--- +title: messages.hideReportSpam +description: Hide report spam popup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.hideReportSpam +[Back to methods index](index.md) + + +Hide report spam popup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to hide the popup | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.hideReportSpam` + +Parameters: + +peer - Json encoded InputPeer + + + + +Or, if you're into Lua: + +```lua +Bool = messages.hideReportSpam({peer=InputPeer, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_importChatInvite.md b/old_docs/API_docs_v91/methods/messages_importChatInvite.md new file mode 100644 index 00000000..5781e438 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_importChatInvite.md @@ -0,0 +1,72 @@ +--- +title: messages.importChatInvite +description: Import chat invite +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.importChatInvite +[Back to methods index](index.md) + + +Import chat invite + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|hash|[string](../types/string.md) | The invite link in t.me/joinchat/aflakf format | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.importChatInvite` + +Parameters: + +hash - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Updates = messages.importChatInvite({hash='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v91/methods/messages_installStickerSet.md b/old_docs/API_docs_v91/methods/messages_installStickerSet.md new file mode 100644 index 00000000..6bdb9390 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_installStickerSet.md @@ -0,0 +1,69 @@ +--- +title: messages.installStickerSet +description: Add a sticker set +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.installStickerSet +[Back to methods index](index.md) + + +Add a sticker set + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|stickerset|[InputStickerSet](../types/InputStickerSet.md) | The sticker set to add | Optional| +|archived|[Bool](../types/Bool.md) | Archive this set? | Yes| + + +### Return type: [messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.installStickerSet` + +Parameters: + +stickerset - Json encoded InputStickerSet + +archived - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +messages_StickerSetInstallResult = messages.installStickerSet({stickerset=InputStickerSet, archived=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|STICKERSET_INVALID|The provided sticker set is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_markDialogUnread.md b/old_docs/API_docs_v91/methods/messages_markDialogUnread.md new file mode 100644 index 00000000..ddf580db --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_markDialogUnread.md @@ -0,0 +1,71 @@ +--- +title: messages.markDialogUnread +description: Mark dialog as unread +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.markDialogUnread +[Back to methods index](index.md) + + +Mark dialog as unread + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|unread|[Bool](../types/Bool.md) | Should it be marked or unmarked as read | Optional| +|peer|[Username, chat ID, Update, Message or InputDialogPeer](../types/InputDialogPeer.md) | The dialog to mark as unread | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->markDialogUnread(['unread' => Bool, 'peer' => InputDialogPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.markDialogUnread +* params - `{"unread": Bool, "peer": InputDialogPeer, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.markDialogUnread` + +Parameters: + +unread - Json encoded Bool + +peer - Json encoded InputDialogPeer + + + + +Or, if you're into Lua: + +```lua +Bool = messages.markDialogUnread({unread=Bool, peer=InputDialogPeer, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_migrateChat.md b/old_docs/API_docs_v91/methods/messages_migrateChat.md new file mode 100644 index 00000000..e789ff7d --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_migrateChat.md @@ -0,0 +1,68 @@ +--- +title: messages.migrateChat +description: Convert chat to supergroup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.migrateChat +[Back to methods index](index.md) + + +Convert chat to supergroup + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat to convert | Optional| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.migrateChat` + +Parameters: + +chat_id - Json encoded InputPeer + + + + +Or, if you're into Lua: + +```lua +Updates = messages.migrateChat({chat_id=InputPeer, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + + diff --git a/old_docs/API_docs_v91/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v91/methods/messages_readEncryptedHistory.md new file mode 100644 index 00000000..1034eb84 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_readEncryptedHistory.md @@ -0,0 +1,78 @@ +--- +title: messages.readEncryptedHistory +description: Mark messages as read in secret chats +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.readEncryptedHistory +[Back to methods index](index.md) + + +Mark messages as read in secret chats + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | The secret chat where to mark messages as read | Yes| +|max\_date|[int](../types/int.md) | Maximum date of messages to mark | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.readEncryptedHistory +* params - `{"peer": InputEncryptedChat, "max_date": int, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.readEncryptedHistory` + +Parameters: + +peer - Json encoded InputEncryptedChat + +max_date - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Bool = messages.readEncryptedHistory({peer=InputEncryptedChat, max_date=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MSG_WAIT_FAILED|A waiting call returned an error| + + diff --git a/old_docs/API_docs_v91/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v91/methods/messages_readFeaturedStickers.md new file mode 100644 index 00000000..9fef6621 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_readFeaturedStickers.md @@ -0,0 +1,59 @@ +--- +title: messages.readFeaturedStickers +description: Mark new featured stickers as read +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.readFeaturedStickers +[Back to methods index](index.md) + + +Mark new featured stickers as read + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|Array of [long](../types/long.md) | The stickers to mark as read | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.readFeaturedStickers` + +Parameters: + +id - Json encoded array of long + + + + +Or, if you're into Lua: + +```lua +Bool = messages.readFeaturedStickers({id={long}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_readHistory.md b/old_docs/API_docs_v91/methods/messages_readHistory.md new file mode 100644 index 00000000..4a2188d8 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_readHistory.md @@ -0,0 +1,70 @@ +--- +title: messages.readHistory +description: Mark messages as read +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.readHistory +[Back to methods index](index.md) + + +Mark messages as read + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to mark messages as read | Optional| +|max\_id|[int](../types/int.md) | Maximum message ID to mark as read | Yes| + + +### Return type: [messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.readHistory` + +Parameters: + +peer - Json encoded InputPeer + +max_id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +messages_AffectedMessages = messages.readHistory({peer=InputPeer, max_id=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_readMentions.md b/old_docs/API_docs_v91/methods/messages_readMentions.md new file mode 100644 index 00000000..237da9c4 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_readMentions.md @@ -0,0 +1,68 @@ +--- +title: messages.readMentions +description: Mark mentions as read +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.readMentions +[Back to methods index](index.md) + + +Mark mentions as read + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat | Optional| + + +### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_AffectedHistory = $MadelineProto->messages->readMentions(['peer' => InputPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.readMentions +* params - `{"peer": InputPeer, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.readMentions` + +Parameters: + +peer - Json encoded InputPeer + + + + +Or, if you're into Lua: + +```lua +messages_AffectedHistory = messages.readMentions({peer=InputPeer, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_readMessageContents.md b/old_docs/API_docs_v91/methods/messages_readMessageContents.md new file mode 100644 index 00000000..4a701059 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_readMessageContents.md @@ -0,0 +1,59 @@ +--- +title: messages.readMessageContents +description: Mark message as read +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.readMessageContents +[Back to methods index](index.md) + + +Mark message as read + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|Array of [int](../types/int.md) | The messages to mark as read (only users and normal chats, not supergroups) | Yes| + + +### Return type: [messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.readMessageContents` + +Parameters: + +id - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_AffectedMessages = messages.readMessageContents({id={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_receivedMessages.md b/old_docs/API_docs_v91/methods/messages_receivedMessages.md new file mode 100644 index 00000000..edc3987f --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_receivedMessages.md @@ -0,0 +1,59 @@ +--- +title: messages.receivedMessages +description: Mark messages as read +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.receivedMessages +[Back to methods index](index.md) + + +Mark messages as read + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|max\_id|[int](../types/int.md) | Maximum message id of messages to mark as read | Yes| + + +### Return type: [Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.receivedMessages` + +Parameters: + +max_id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Vector_of_ReceivedNotifyMessage = messages.receivedMessages({max_id=int, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_receivedQueue.md b/old_docs/API_docs_v91/methods/messages_receivedQueue.md new file mode 100644 index 00000000..97b1aae8 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_receivedQueue.md @@ -0,0 +1,14 @@ +--- +title: messages.receivedQueue +description: You cannot use this method directly +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.receivedQueue +[Back to methods index](index.md) + + +**You cannot use this method directly** + + + + diff --git a/old_docs/API_docs_v91/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v91/methods/messages_reorderPinnedDialogs.md new file mode 100644 index 00000000..99aa9865 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_reorderPinnedDialogs.md @@ -0,0 +1,69 @@ +--- +title: messages.reorderPinnedDialogs +description: Reorder pinned dialogs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.reorderPinnedDialogs +[Back to methods index](index.md) + + +Reorder pinned dialogs + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|force|[Bool](../types/Bool.md) | Force reordering | Optional| +|order|Array of [Username, chat ID, Update, Message or InputDialogPeer](../types/InputDialogPeer.md) | New order | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputDialogPeer, InputDialogPeer], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.reorderPinnedDialogs` + +Parameters: + +force - Json encoded Bool + +order - Json encoded array of InputDialogPeer + + + + +Or, if you're into Lua: + +```lua +Bool = messages.reorderPinnedDialogs({force=Bool, order={InputDialogPeer}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v91/methods/messages_reorderStickerSets.md new file mode 100644 index 00000000..cd73daa0 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_reorderStickerSets.md @@ -0,0 +1,62 @@ +--- +title: messages.reorderStickerSets +description: Reorder sticker sets +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.reorderStickerSets +[Back to methods index](index.md) + + +Reorder sticker sets + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|masks|[Bool](../types/Bool.md) | Reorder masks? | Optional| +|order|Array of [long](../types/long.md) | The order | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.reorderStickerSets` + +Parameters: + +masks - Json encoded Bool + +order - Json encoded array of long + + + + +Or, if you're into Lua: + +```lua +Bool = messages.reorderStickerSets({masks=Bool, order={long}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_report.md b/old_docs/API_docs_v91/methods/messages_report.md new file mode 100644 index 00000000..2e5e4353 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_report.md @@ -0,0 +1,74 @@ +--- +title: messages.report +description: Report a message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.report +[Back to methods index](index.md) + + +Report a message + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The user that sent the messages | Optional| +|id|Array of [int](../types/int.md) | The messages to report | Yes| +|reason|[ReportReason](../types/ReportReason.md) | The reason why you're sending this report | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->report(['peer' => InputPeer, 'id' => [int, int], 'reason' => ReportReason, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.report +* params - `{"peer": InputPeer, "id": [int], "reason": ReportReason, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.report` + +Parameters: + +peer - Json encoded InputPeer + +id - Json encoded array of int + +reason - Json encoded ReportReason + + + + +Or, if you're into Lua: + +```lua +Bool = messages.report({peer=InputPeer, id={int}, reason=ReportReason, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v91/methods/messages_reportEncryptedSpam.md new file mode 100644 index 00000000..5d5f0dab --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_reportEncryptedSpam.md @@ -0,0 +1,66 @@ +--- +title: messages.reportEncryptedSpam +description: Report for spam a secret chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.reportEncryptedSpam +[Back to methods index](index.md) + + +Report for spam a secret chat + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | The chat to report | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.reportEncryptedSpam` + +Parameters: + +peer - Json encoded InputEncryptedChat + + + + +Or, if you're into Lua: + +```lua +Bool = messages.reportEncryptedSpam({peer=InputEncryptedChat, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ID_INVALID|The provided chat id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_reportSpam.md b/old_docs/API_docs_v91/methods/messages_reportSpam.md new file mode 100644 index 00000000..086d901e --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_reportSpam.md @@ -0,0 +1,66 @@ +--- +title: messages.reportSpam +description: Report a peer for spam +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.reportSpam +[Back to methods index](index.md) + + +Report a peer for spam + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The peer to report | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.reportSpam` + +Parameters: + +peer - Json encoded InputPeer + + + + +Or, if you're into Lua: + +```lua +Bool = messages.reportSpam({peer=InputPeer, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_requestEncryption.md b/old_docs/API_docs_v91/methods/messages_requestEncryption.md new file mode 100644 index 00000000..eccf45f3 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_requestEncryption.md @@ -0,0 +1,14 @@ +--- +title: messages.requestEncryption +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.requestEncryption +[Back to methods index](index.md) + + +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats** + + + + diff --git a/old_docs/API_docs_v91/methods/messages_saveDraft.md b/old_docs/API_docs_v91/methods/messages_saveDraft.md new file mode 100644 index 00000000..e6afdcea --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_saveDraft.md @@ -0,0 +1,107 @@ +--- +title: messages.saveDraft +description: Save a message draft +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.saveDraft +[Back to methods index](index.md) + + +Save a message draft + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|no\_webpage|[Bool](../types/Bool.md) | Disable webpage preview | Optional| +|reply\_to\_msg\_id|[int](../types/int.md) | Reply to message by ID | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat | Optional| +|message|[string](../types/string.md) | The message | Yes| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | The entities (for styled text) | Optional| +|parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional | + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.saveDraft` + +Parameters: + +parse_mode - string + + + +Or, if you're into Lua: + +```lua +Bool = messages.saveDraft({no_webpage=Bool, reply_to_msg_id=int, peer=InputPeer, message='string', entities={MessageEntity}, parse_mode='string', }) +``` + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [Bool](../types/Bool.md) will be returned instead. + + + +## Usage of parse_mode: + +Set parse_mode to html to enable HTML parsing of the message. + +Set parse_mode to Markdown to enable markown AND html parsing of the message. + +The following tags are currently supported: + +```html +
a newline +bold works ok, internal tags are stripped +bold +italic +italic +inline fixed-width code +
pre-formatted fixed-width code block
+URL +Mention by username +Mention by user id +
Pre tags can have a language attribute
+``` + +You can also use normal markdown, note that to create mentions you must use the `mention:` syntax like in html: + +```markdown +[Mention by username](mention:@danogentili) +[Mention by user id](mention:186785362) +``` + +MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php). +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_saveGif.md b/old_docs/API_docs_v91/methods/messages_saveGif.md new file mode 100644 index 00000000..dfa956ab --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_saveGif.md @@ -0,0 +1,69 @@ +--- +title: messages.saveGif +description: Save a GIF +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.saveGif +[Back to methods index](index.md) + + +Save a GIF + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | The GIF to save | Optional| +|unsave|[Bool](../types/Bool.md) | Remove the gif? | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.saveGif` + +Parameters: + +id - Json encoded InputDocument + +unsave - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Bool = messages.saveGif({id=InputDocument, unsave=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|GIF_ID_INVALID|The provided GIF ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v91/methods/messages_saveRecentSticker.md new file mode 100644 index 00000000..1abf524f --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_saveRecentSticker.md @@ -0,0 +1,72 @@ +--- +title: messages.saveRecentSticker +description: Add a sticker to recent stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.saveRecentSticker +[Back to methods index](index.md) + + +Add a sticker to recent stickers + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|attached|[Bool](../types/Bool.md) | Get stickers attached to image? | Optional| +|id|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | The sticker | Optional| +|unsave|[Bool](../types/Bool.md) | Remove the sticker from recent stickers? | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.saveRecentSticker` + +Parameters: + +attached - Json encoded Bool + +id - Json encoded InputDocument + +unsave - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Bool = messages.saveRecentSticker({attached=Bool, id=InputDocument, unsave=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|STICKER_ID_INVALID|The provided sticker ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_search.md b/old_docs/API_docs_v91/methods/messages_search.md new file mode 100644 index 00000000..5d038792 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_search.md @@ -0,0 +1,105 @@ +--- +title: messages.search +description: Search peers or messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.search +[Back to methods index](index.md) + + +Search peers or messages + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to search | Optional| +|q|[string](../types/string.md) | What to search | Yes| +|from\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Show only messages from a certain user? | Optional| +|filter|[MessagesFilter](../types/MessagesFilter.md) | Message filter | Optional| +|min\_date|[int](../types/int.md) | Minumum date of results to fetch | Yes| +|max\_date|[int](../types/int.md) | Maximum date of results to fetch | Yes| +|offset\_id|[int](../types/int.md) | Message ID offset | Yes| +|add\_offset|[int](../types/int.md) | Additional offset, can be 0 | Yes| +|limit|[int](../types/int.md) | Number of results to return | Yes| +|max\_id|[int](../types/int.md) | Maximum message id to return | Yes| +|min\_id|[int](../types/int.md) | Minumum message id to return | Yes| +|hash|Array of [int](../types/int.md) | The IDs of messages you already fetched | Optional| + + +### Return type: [messages\_Messages](../types/messages_Messages.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, 'hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.search` + +Parameters: + +peer - Json encoded InputPeer + +q - Json encoded string + +from_id - Json encoded InputUser + +filter - Json encoded MessagesFilter + +min_date - Json encoded int + +max_date - Json encoded int + +offset_id - Json encoded int + +add_offset - Json encoded int + +limit - Json encoded int + +max_id - Json encoded int + +min_id - Json encoded int + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_Messages = messages.search({peer=InputPeer, q='string', from_id=InputUser, filter=MessagesFilter, min_date=int, max_date=int, offset_id=int, add_offset=int, limit=int, max_id=int, min_id=int, hash={int}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|PEER_ID_INVALID|The provided peer id is invalid| +|PEER_ID_NOT_SUPPORTED|The provided peer ID is not supported| +|SEARCH_QUERY_EMPTY|The search query is empty| +|USER_ID_INVALID|The provided user ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_searchGifs.md b/old_docs/API_docs_v91/methods/messages_searchGifs.md new file mode 100644 index 00000000..a12cdd21 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_searchGifs.md @@ -0,0 +1,69 @@ +--- +title: messages.searchGifs +description: Search gifs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.searchGifs +[Back to methods index](index.md) + + +Search gifs + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|q|[string](../types/string.md) | The search query | Yes| +|offset|[int](../types/int.md) | The offset | Yes| + + +### Return type: [messages\_FoundGifs](../types/messages_FoundGifs.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.searchGifs` + +Parameters: + +q - Json encoded string + +offset - Json encoded int + + + + +Or, if you're into Lua: + +```lua +messages_FoundGifs = messages.searchGifs({q='string', offset=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|SEARCH_QUERY_EMPTY|The search query is empty| + + diff --git a/old_docs/API_docs_v91/methods/messages_searchGlobal.md b/old_docs/API_docs_v91/methods/messages_searchGlobal.md new file mode 100644 index 00000000..1fb73592 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_searchGlobal.md @@ -0,0 +1,78 @@ +--- +title: messages.searchGlobal +description: Global message search +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.searchGlobal +[Back to methods index](index.md) + + +Global message search + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|q|[string](../types/string.md) | The query | Yes| +|offset\_date|[int](../types/int.md) | 0 or the date offset | Yes| +|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | 0 or the peer offset | Optional| +|offset\_id|[int](../types/int.md) | 0 or the message ID offset | Yes| +|limit|[int](../types/int.md) | The number of results to return | Yes| + + +### Return type: [messages\_Messages](../types/messages_Messages.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.searchGlobal` + +Parameters: + +q - Json encoded string + +offset_date - Json encoded int + +offset_peer - Json encoded InputPeer + +offset_id - Json encoded int + +limit - Json encoded int + + + + +Or, if you're into Lua: + +```lua +messages_Messages = messages.searchGlobal({q='string', offset_date=int, offset_peer=InputPeer, offset_id=int, limit=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|SEARCH_QUERY_EMPTY|The search query is empty| + + diff --git a/old_docs/API_docs_v91/methods/messages_searchStickerSets.md b/old_docs/API_docs_v91/methods/messages_searchStickerSets.md new file mode 100644 index 00000000..9b1dd1b0 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_searchStickerSets.md @@ -0,0 +1,74 @@ +--- +title: messages.searchStickerSets +description: Find a sticker set +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.searchStickerSets +[Back to methods index](index.md) + + +Find a sticker set + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|exclude\_featured|[Bool](../types/Bool.md) | Exclude featured sticker sets from the search? | Optional| +|q|[string](../types/string.md) | The search query | Yes| +|hash|Array of [int](../types/int.md) | The IDs of stickersets you already fetched | Optional| + + +### Return type: [messages\_FoundStickerSets](../types/messages_FoundStickerSets.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_FoundStickerSets = $MadelineProto->messages->searchStickerSets(['exclude_featured' => Bool, 'q' => 'string', 'hash' => [int, int], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.searchStickerSets +* params - `{"exclude_featured": Bool, "q": "string", "hash": [int], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.searchStickerSets` + +Parameters: + +exclude_featured - Json encoded Bool + +q - Json encoded string + +hash - Json encoded array of int + + + + +Or, if you're into Lua: + +```lua +messages_FoundStickerSets = messages.searchStickerSets({exclude_featured=Bool, q='string', hash={int}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_sendEncrypted.md b/old_docs/API_docs_v91/methods/messages_sendEncrypted.md new file mode 100644 index 00000000..0c356381 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_sendEncrypted.md @@ -0,0 +1,87 @@ +--- +title: messages.sendEncrypted +description: Send message to secret chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.sendEncrypted +[Back to methods index](index.md) + + +Send message to secret chat + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | The chat where to send the message | Yes| +|message|[DecryptedMessage](../types/DecryptedMessage.md) | The message to send | Yes| + + +### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.sendEncrypted +* params - `{"peer": InputEncryptedChat, "message": DecryptedMessage, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.sendEncrypted` + +Parameters: + +peer - Json encoded InputEncryptedChat + +message - Json encoded DecryptedMessage + + + + +Or, if you're into Lua: + +```lua +messages_SentEncryptedMessage = messages.sendEncrypted({peer=InputEncryptedChat, message=DecryptedMessage, }) +``` + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) will be returned instead. + + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ID_INVALID|The provided chat id is invalid| +|DATA_INVALID|Encrypted data invalid| +|ENCRYPTION_DECLINED|The secret chat was declined| +|MSG_WAIT_FAILED|A waiting call returned an error| + + diff --git a/old_docs/API_docs_v91/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v91/methods/messages_sendEncryptedFile.md new file mode 100644 index 00000000..ec08c0a6 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_sendEncryptedFile.md @@ -0,0 +1,87 @@ +--- +title: messages.sendEncryptedFile +description: Send a file to a secret chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.sendEncryptedFile +[Back to methods index](index.md) + + +Send a file to a secret chat + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | The chat where to send the file | Yes| +|message|[DecryptedMessage](../types/DecryptedMessage.md) | The message with the file | Yes| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | The file (optional) | Optional| + + +### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.sendEncryptedFile +* params - `{"peer": InputEncryptedChat, "message": DecryptedMessage, "file": InputEncryptedFile, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.sendEncryptedFile` + +Parameters: + +peer - Json encoded InputEncryptedChat + +message - Json encoded DecryptedMessage + +file - Json encoded InputEncryptedFile + + + + +Or, if you're into Lua: + +```lua +messages_SentEncryptedMessage = messages.sendEncryptedFile({peer=InputEncryptedChat, message=DecryptedMessage, file=InputEncryptedFile, }) +``` + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) will be returned instead. + + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MSG_WAIT_FAILED|A waiting call returned an error| + + diff --git a/old_docs/API_docs_v91/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v91/methods/messages_sendEncryptedService.md new file mode 100644 index 00000000..5654da64 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_sendEncryptedService.md @@ -0,0 +1,87 @@ +--- +title: messages.sendEncryptedService +description: Send a service message to a secret chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.sendEncryptedService +[Back to methods index](index.md) + + +Send a service message to a secret chat + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | The chat where to send the service message | Yes| +|message|[DecryptedMessage](../types/DecryptedMessage.md) | The service message | Yes| + + +### Return type: [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.sendEncryptedService +* params - `{"peer": InputEncryptedChat, "message": DecryptedMessage, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.sendEncryptedService` + +Parameters: + +peer - Json encoded InputEncryptedChat + +message - Json encoded DecryptedMessage + + + + +Or, if you're into Lua: + +```lua +messages_SentEncryptedMessage = messages.sendEncryptedService({peer=InputEncryptedChat, message=DecryptedMessage, }) +``` + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) will be returned instead. + + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|DATA_INVALID|Encrypted data invalid| +|ENCRYPTION_DECLINED|The secret chat was declined| +|MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| + + diff --git a/old_docs/API_docs_v91/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v91/methods/messages_sendInlineBotResult.md new file mode 100644 index 00000000..5487dfc8 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_sendInlineBotResult.md @@ -0,0 +1,92 @@ +--- +title: messages.sendInlineBotResult +description: Send inline bot result obtained with messages.getInlineBotResults to the chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.sendInlineBotResult +[Back to methods index](index.md) + + +Send inline bot result obtained with messages.getInlineBotResults to the chat + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|silent|[Bool](../types/Bool.md) | Disable notifications? | Optional| +|background|[Bool](../types/Bool.md) | Disable background notifications? | Optional| +|clear\_draft|[Bool](../types/Bool.md) | Clear the message draft? | Optional| +|hide\_via|[Bool](../types/Bool.md) | Hide "via @bot" | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to send the message | Optional| +|reply\_to\_msg\_id|[int](../types/int.md) | Reply to message by ID | Optional| +|query\_id|[long](../types/long.md) | The inline query ID | Yes| +|id|[string](../types/string.md) | The ID of one of the inline results | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'hide_via' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.sendInlineBotResult` + +Parameters: + +silent - Json encoded Bool + +background - Json encoded Bool + +clear_draft - Json encoded Bool + +hide_via - Json encoded Bool + +peer - Json encoded InputPeer + +reply_to_msg_id - Json encoded int + +query_id - Json encoded long + +id - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draft=Bool, hide_via=Bool, peer=InputPeer, reply_to_msg_id=int, query_id=long, id='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|INLINE_RESULT_EXPIRED|The inline query expired| +|PEER_ID_INVALID|The provided peer id is invalid| +|QUERY_ID_EMPTY|The query ID is empty| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|WEBPAGE_MEDIA_EMPTY|Webpage media empty| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| + + diff --git a/old_docs/API_docs_v91/methods/messages_sendMedia.md b/old_docs/API_docs_v91/methods/messages_sendMedia.md new file mode 100644 index 00000000..67203190 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_sendMedia.md @@ -0,0 +1,148 @@ +--- +title: messages.sendMedia +description: Send a media +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.sendMedia +[Back to methods index](index.md) + + +Send a media + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|silent|[Bool](../types/Bool.md) | Disable notifications? | Optional| +|background|[Bool](../types/Bool.md) | Disable background notifications? | Optional| +|clear\_draft|[Bool](../types/Bool.md) | Clear the message draft of this chat? | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to send the media | Optional| +|reply\_to\_msg\_id|[int](../types/int.md) | Reply to message by ID | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | The media to send | Optional| +|message|[string](../types/string.md) | The caption | Yes| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Keyboards to send | Optional| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Entities for styled text | Optional| +|parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional | + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.sendMedia +* params - `{"silent": Bool, "background": Bool, "clear_draft": Bool, "peer": InputPeer, "reply_to_msg_id": int, "media": InputMedia, "message": "string", "reply_markup": ReplyMarkup, "entities": [MessageEntity], "parse_mode": "string"}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.sendMedia` + +Parameters: + +parse_mode - string + + + +Or, if you're into Lua: + +```lua +Updates = messages.sendMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, message='string', reply_markup=ReplyMarkup, entities={MessageEntity}, parse_mode='string', }) +``` + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [Updates](../types/Updates.md) will be returned instead. + + + +## Usage of parse_mode: + +Set parse_mode to html to enable HTML parsing of the message. + +Set parse_mode to Markdown to enable markown AND html parsing of the message. + +The following tags are currently supported: + +```html +
a newline +bold works ok, internal tags are stripped +bold +italic +italic +inline fixed-width code +
pre-formatted fixed-width code block
+URL +Mention by username +Mention by user id +
Pre tags can have a language attribute
+``` + +You can also use normal markdown, note that to create mentions you must use the `mention:` syntax like in html: + +```markdown +[Mention by username](mention:@danogentili) +[Mention by user id](mention:186785362) +``` + +MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php). +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|EXTERNAL_URL_INVALID|External URL invalid| +|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|IMAGE_PROCESS_FAILED|Failure while processing image| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|WEBPAGE_MEDIA_EMPTY|Webpage media empty| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_sendMessage.md b/old_docs/API_docs_v91/methods/messages_sendMessage.md new file mode 100644 index 00000000..446b3901 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_sendMessage.md @@ -0,0 +1,148 @@ +--- +title: messages.sendMessage +description: Send a message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.sendMessage +[Back to methods index](index.md) + + +Send a message + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|no\_webpage|[Bool](../types/Bool.md) | Disable webpage preview? | Optional| +|silent|[Bool](../types/Bool.md) | Disable notifications? | Optional| +|background|[Bool](../types/Bool.md) | Disable background notifications? | Optional| +|clear\_draft|[Bool](../types/Bool.md) | Clear the message draft of this chat? | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat where to send this message | Optional| +|reply\_to\_msg\_id|[int](../types/int.md) | Reply to message by ID | Optional| +|message|[string](../types/string.md) | The message to send | Yes| +|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Keyboards to send | Optional| +|entities|Array of [MessageEntity](../types/MessageEntity.md) | Entities to send (for styled text) | Optional| +|parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional | + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.sendMessage +* params - `{"no_webpage": Bool, "silent": Bool, "background": Bool, "clear_draft": Bool, "peer": InputPeer, "reply_to_msg_id": int, "message": "string", "reply_markup": ReplyMarkup, "entities": [MessageEntity], "parse_mode": "string"}` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.sendMessage` + +Parameters: + +parse_mode - string + + + +Or, if you're into Lua: + +```lua +Updates = messages.sendMessage({no_webpage=Bool, silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, message='string', reply_markup=ReplyMarkup, entities={MessageEntity}, parse_mode='string', }) +``` + + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [Updates](../types/Updates.md) will be returned instead. + + + +## Usage of parse_mode: + +Set parse_mode to html to enable HTML parsing of the message. + +Set parse_mode to Markdown to enable markown AND html parsing of the message. + +The following tags are currently supported: + +```html +
a newline +bold works ok, internal tags are stripped +bold +italic +italic +inline fixed-width code +
pre-formatted fixed-width code block
+URL +Mention by username +Mention by user id +
Pre tags can have a language attribute
+``` + +You can also use normal markdown, note that to create mentions you must use the `mention:` syntax like in html: + +```markdown +[Mention by username](mention:@danogentili) +[Mention by user id](mention:186785362) +``` + +MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php). +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| +|ENTITY_MENTION_USER_INVALID|You can't use this entity| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| +|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|NEED_MEMBER_INVALID|The provided member is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|tanti SALUTI da peppe lg .|Ciao da un pony| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_sendMultiMedia.md b/old_docs/API_docs_v91/methods/messages_sendMultiMedia.md new file mode 100644 index 00000000..a6cd72c4 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_sendMultiMedia.md @@ -0,0 +1,83 @@ +--- +title: messages.sendMultiMedia +description: Send an album +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.sendMultiMedia +[Back to methods index](index.md) + + +Send an album + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|silent|[Bool](../types/Bool.md) | Disable notifications? | Optional| +|background|[Bool](../types/Bool.md) | Disable background notification? | Optional| +|clear\_draft|[Bool](../types/Bool.md) | Clear draft? | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to send the album | Optional| +|reply\_to\_msg\_id|[int](../types/int.md) | Reply to message by ID | Optional| +|multi\_media|Array of [InputSingleMedia](../types/InputSingleMedia.md) | The album | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendMultiMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'multi_media' => [InputSingleMedia, InputSingleMedia], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.sendMultiMedia +* params - `{"silent": Bool, "background": Bool, "clear_draft": Bool, "peer": InputPeer, "reply_to_msg_id": int, "multi_media": [InputSingleMedia], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.sendMultiMedia` + +Parameters: + +silent - Json encoded Bool + +background - Json encoded Bool + +clear_draft - Json encoded Bool + +peer - Json encoded InputPeer + +reply_to_msg_id - Json encoded int + +multi_media - Json encoded array of InputSingleMedia + + + + +Or, if you're into Lua: + +```lua +Updates = messages.sendMultiMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, multi_media={InputSingleMedia}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v91/methods/messages_sendScreenshotNotification.md new file mode 100644 index 00000000..d4fd79b6 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_sendScreenshotNotification.md @@ -0,0 +1,69 @@ +--- +title: messages.sendScreenshotNotification +description: Send screenshot notification +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.sendScreenshotNotification +[Back to methods index](index.md) + + +Send screenshot notification + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to send the notification | Optional| +|reply\_to\_msg\_id|[int](../types/int.md) | Reply to message by ID | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendScreenshotNotification(['peer' => InputPeer, 'reply_to_msg_id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.sendScreenshotNotification` + +Parameters: + +peer - Json encoded InputPeer + +reply_to_msg_id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Updates = messages.sendScreenshotNotification({peer=InputPeer, reply_to_msg_id=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_sendVote.md b/old_docs/API_docs_v91/methods/messages_sendVote.md new file mode 100644 index 00000000..50049522 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_sendVote.md @@ -0,0 +1,74 @@ +--- +title: messages.sendVote +description: Send vote +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.sendVote +[Back to methods index](index.md) + + +Send vote + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Peer | Optional| +|msg\_id|[int](../types/int.md) | Message ID | Yes| +|options|Array of [bytes](../types/bytes.md) | Options | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->sendVote(['peer' => InputPeer, 'msg_id' => int, 'options' => ['bytes', 'bytes'], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.sendVote +* params - `{"peer": InputPeer, "msg_id": int, "options": [{"_": "bytes", "bytes":"base64 encoded bytes"}], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.sendVote` + +Parameters: + +peer - Json encoded InputPeer + +msg_id - Json encoded int + +options - Json encoded array of bytes + + + + +Or, if you're into Lua: + +```lua +Updates = messages.sendVote({peer=InputPeer, msg_id=int, options={'bytes'}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v91/methods/messages_setBotCallbackAnswer.md new file mode 100644 index 00000000..47d74918 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_setBotCallbackAnswer.md @@ -0,0 +1,93 @@ +--- +title: messages.setBotCallbackAnswer +description: Bots only: set the callback answer (after a button was clicked) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.setBotCallbackAnswer +[Back to methods index](index.md) + + +Bots only: set the callback answer (after a button was clicked) + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|alert|[Bool](../types/Bool.md) | Is this an alert? | Optional| +|query\_id|[long](../types/long.md) | The query ID | Yes| +|message|[string](../types/string.md) | The message | Optional| +|url|[string](../types/string.md) | The URL | Optional| +|cache\_time|[int](../types/int.md) | Cache time | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.setBotCallbackAnswer +* params - `{"alert": Bool, "query_id": long, "message": "string", "url": "string", "cache_time": int, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.setBotCallbackAnswer` + +Parameters: + +alert - Json encoded Bool + +query_id - Json encoded long + +message - Json encoded string + +url - Json encoded string + +cache_time - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Bool = messages.setBotCallbackAnswer({alert=Bool, query_id=long, message='string', url='string', cache_time=int, }) +``` + + +## Return value + +If the length of the provided message is bigger than 4096, the message will be split in chunks and the method will be called multiple times, with the same parameters (except for the message), and an array of [Bool](../types/Bool.md) will be returned instead. + + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|QUERY_ID_INVALID|The query ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v91/methods/messages_setBotPrecheckoutResults.md new file mode 100644 index 00000000..92e8ea5a --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_setBotPrecheckoutResults.md @@ -0,0 +1,81 @@ +--- +title: messages.setBotPrecheckoutResults +description: Bots only: set precheckout results +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.setBotPrecheckoutResults +[Back to methods index](index.md) + + +Bots only: set precheckout results + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|success|[Bool](../types/Bool.md) | Success? | Optional| +|query\_id|[long](../types/long.md) | Query ID | Yes| +|error|[string](../types/string.md) | Error | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.setBotPrecheckoutResults +* params - `{"success": Bool, "query_id": long, "error": "string", }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.setBotPrecheckoutResults` + +Parameters: + +success - Json encoded Bool + +query_id - Json encoded long + +error - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Bool = messages.setBotPrecheckoutResults({success=Bool, query_id=long, error='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|ERROR_TEXT_EMPTY|The provided error message is empty| + + diff --git a/old_docs/API_docs_v91/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v91/methods/messages_setBotShippingResults.md new file mode 100644 index 00000000..6e223219 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_setBotShippingResults.md @@ -0,0 +1,81 @@ +--- +title: messages.setBotShippingResults +description: Bots only: set shipping results +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.setBotShippingResults +[Back to methods index](index.md) + + +Bots only: set shipping results + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|query\_id|[long](../types/long.md) | Query ID | Yes| +|error|[string](../types/string.md) | Error | Optional| +|shipping\_options|Array of [ShippingOption](../types/ShippingOption.md) | Shipping options | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.setBotShippingResults +* params - `{"query_id": long, "error": "string", "shipping_options": [ShippingOption], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.setBotShippingResults` + +Parameters: + +query_id - Json encoded long + +error - Json encoded string + +shipping_options - Json encoded array of ShippingOption + + + + +Or, if you're into Lua: + +```lua +Bool = messages.setBotShippingResults({query_id=long, error='string', shipping_options={ShippingOption}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|QUERY_ID_INVALID|The query ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v91/methods/messages_setEncryptedTyping.md new file mode 100644 index 00000000..dd8255bb --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_setEncryptedTyping.md @@ -0,0 +1,69 @@ +--- +title: messages.setEncryptedTyping +description: Send typing notification to secret chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.setEncryptedTyping +[Back to methods index](index.md) + + +Send typing notification to secret chat + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | The secret chat where to send the notification | Yes| +|typing|[Bool](../types/Bool.md) | Set to true to enable the notification, false to disable it | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.setEncryptedTyping` + +Parameters: + +peer - Json encoded InputEncryptedChat + +typing - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Bool = messages.setEncryptedTyping({peer=InputEncryptedChat, typing=Bool, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHAT_ID_INVALID|The provided chat id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_setGameScore.md b/old_docs/API_docs_v91/methods/messages_setGameScore.md new file mode 100644 index 00000000..1a50326e --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_setGameScore.md @@ -0,0 +1,91 @@ +--- +title: messages.setGameScore +description: Set the game score +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.setGameScore +[Back to methods index](index.md) + + +Set the game score + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|edit\_message|[Bool](../types/Bool.md) | Should the message with the game be edited? | Optional| +|force|[Bool](../types/Bool.md) | Force setting the game score | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat where the game was sent | Optional| +|id|[int](../types/int.md) | The message ID | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user that set the score | Optional| +|score|[int](../types/int.md) | The score | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.setGameScore +* params - `{"edit_message": Bool, "force": Bool, "peer": InputPeer, "id": int, "user_id": InputUser, "score": int, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.setGameScore` + +Parameters: + +edit_message - Json encoded Bool + +force - Json encoded Bool + +peer - Json encoded InputPeer + +id - Json encoded int + +user_id - Json encoded InputUser + +score - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Updates = messages.setGameScore({edit_message=Bool, force=Bool, peer=InputPeer, id=int, user_id=InputUser, score=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v91/methods/messages_setInlineBotResults.md new file mode 100644 index 00000000..e1ebe4e3 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_setInlineBotResults.md @@ -0,0 +1,103 @@ +--- +title: messages.setInlineBotResults +description: Bots only: set the results of an inline query +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.setInlineBotResults +[Back to methods index](index.md) + + +Bots only: set the results of an inline query + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|gallery|[Bool](../types/Bool.md) | Is this a gallery? | Optional| +|private|[Bool](../types/Bool.md) | Is this result private (not cached)? | Optional| +|query\_id|[long](../types/long.md) | Query ID | Yes| +|results|Array of [InputBotInlineResult](../types/InputBotInlineResult.md) | Results | Yes| +|cache\_time|[int](../types/int.md) | Cache time | Yes| +|next\_offset|[string](../types/string.md) | The next offset | Optional| +|switch\_pm|[InlineBotSwitchPM](../types/InlineBotSwitchPM.md) | Switch to PM? | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.setInlineBotResults +* params - `{"gallery": Bool, "private": Bool, "query_id": long, "results": [InputBotInlineResult], "cache_time": int, "next_offset": "string", "switch_pm": InlineBotSwitchPM, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.setInlineBotResults` + +Parameters: + +gallery - Json encoded Bool + +private - Json encoded Bool + +query_id - Json encoded long + +results - Json encoded array of InputBotInlineResult + +cache_time - Json encoded int + +next_offset - Json encoded string + +switch_pm - Json encoded InlineBotSwitchPM + + + + +Or, if you're into Lua: + +```lua +Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, results={InputBotInlineResult}, cache_time=int, next_offset='string', switch_pm=InlineBotSwitchPM, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v91/methods/messages_setInlineGameScore.md new file mode 100644 index 00000000..76db49dd --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_setInlineGameScore.md @@ -0,0 +1,88 @@ +--- +title: messages.setInlineGameScore +description: Set the game score of an inline message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.setInlineGameScore +[Back to methods index](index.md) + + +Set the game score of an inline message + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|edit\_message|[Bool](../types/Bool.md) | Should the message with the game be edited? | Optional| +|force|[Bool](../types/Bool.md) | Force setting the game score | Optional| +|id|[InputBotInlineMessageID](../types/InputBotInlineMessageID.md) | The ID of the inline message | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user that set the score | Optional| +|score|[int](../types/int.md) | The score | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.setInlineGameScore +* params - `{"edit_message": Bool, "force": Bool, "id": InputBotInlineMessageID, "user_id": InputUser, "score": int, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.setInlineGameScore` + +Parameters: + +edit_message - Json encoded Bool + +force - Json encoded Bool + +id - Json encoded InputBotInlineMessageID + +user_id - Json encoded InputUser + +score - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Bool = messages.setInlineGameScore({edit_message=Bool, force=Bool, id=InputBotInlineMessageID, user_id=InputUser, score=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + + diff --git a/old_docs/API_docs_v91/methods/messages_setTyping.md b/old_docs/API_docs_v91/methods/messages_setTyping.md new file mode 100644 index 00000000..410e19df --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_setTyping.md @@ -0,0 +1,85 @@ +--- +title: messages.setTyping +description: Change typing status +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.setTyping +[Back to methods index](index.md) + + +Change typing status + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to change typing status | Optional| +|action|[SendMessageAction](../types/SendMessageAction.md) | Typing status | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.setTyping +* params - `{"peer": InputPeer, "action": SendMessageAction, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.setTyping` + +Parameters: + +peer - Json encoded InputPeer + +action - Json encoded SendMessageAction + + + + +Or, if you're into Lua: + +```lua +Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| + + diff --git a/old_docs/API_docs_v91/methods/messages_startBot.md b/old_docs/API_docs_v91/methods/messages_startBot.md new file mode 100644 index 00000000..71f82822 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_startBot.md @@ -0,0 +1,75 @@ +--- +title: messages.startBot +description: Start a bot +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.startBot +[Back to methods index](index.md) + + +Start a bot + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|bot|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The bot's ID or username | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to start the bot (@me or group ID/username) | Optional| +|start\_param|[string](../types/string.md) | The bot's start parameter | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.startBot` + +Parameters: + +bot - Json encoded InputUser + +peer - Json encoded InputPeer + +start_param - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Updates = messages.startBot({bot=InputUser, peer=InputPeer, start_param='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|BOT_INVALID|This is not a valid bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + + diff --git a/docs/API_docs/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v91/methods/messages_toggleChatAdmins.md similarity index 100% rename from docs/API_docs/methods/messages_toggleChatAdmins.md rename to old_docs/API_docs_v91/methods/messages_toggleChatAdmins.md diff --git a/old_docs/API_docs_v91/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v91/methods/messages_toggleDialogPin.md new file mode 100644 index 00000000..d564a52c --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_toggleDialogPin.md @@ -0,0 +1,69 @@ +--- +title: messages.toggleDialogPin +description: Pin or unpin dialog +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.toggleDialogPin +[Back to methods index](index.md) + + +Pin or unpin dialog + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|pinned|[Bool](../types/Bool.md) | Pin or unpin the dialog? | Optional| +|peer|[Username, chat ID, Update, Message or InputDialogPeer](../types/InputDialogPeer.md) | The dialog to pin | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputDialogPeer, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.toggleDialogPin` + +Parameters: + +pinned - Json encoded Bool + +peer - Json encoded InputDialogPeer + + + + +Or, if you're into Lua: + +```lua +Bool = messages.toggleDialogPin({pinned=Bool, peer=InputDialogPeer, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v91/methods/messages_uninstallStickerSet.md new file mode 100644 index 00000000..afbb824a --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_uninstallStickerSet.md @@ -0,0 +1,66 @@ +--- +title: messages.uninstallStickerSet +description: Remove a sticker set +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.uninstallStickerSet +[Back to methods index](index.md) + + +Remove a sticker set + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|stickerset|[InputStickerSet](../types/InputStickerSet.md) | The sticker set to remove | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.uninstallStickerSet` + +Parameters: + +stickerset - Json encoded InputStickerSet + + + + +Or, if you're into Lua: + +```lua +Bool = messages.uninstallStickerSet({stickerset=InputStickerSet, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|STICKERSET_INVALID|The provided sticker set is invalid| + + diff --git a/old_docs/API_docs_v91/methods/messages_updatePinnedMessage.md b/old_docs/API_docs_v91/methods/messages_updatePinnedMessage.md new file mode 100644 index 00000000..c9b59508 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_updatePinnedMessage.md @@ -0,0 +1,74 @@ +--- +title: messages.updatePinnedMessage +description: Update pinned message (private chat only) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.updatePinnedMessage +[Back to methods index](index.md) + + +Update pinned message (private chat only) + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|silent|[Bool](../types/Bool.md) | Silent? | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Peer | Optional| +|id|[int](../types/int.md) | Message ID | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->messages->updatePinnedMessage(['silent' => Bool, 'peer' => InputPeer, 'id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.updatePinnedMessage +* params - `{"silent": Bool, "peer": InputPeer, "id": int, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.updatePinnedMessage` + +Parameters: + +silent - Json encoded Bool + +peer - Json encoded InputPeer + +id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +Updates = messages.updatePinnedMessage({silent=Bool, peer=InputPeer, id=int, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_uploadEncryptedFile.md b/old_docs/API_docs_v91/methods/messages_uploadEncryptedFile.md new file mode 100644 index 00000000..f3d5d0e5 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_uploadEncryptedFile.md @@ -0,0 +1,71 @@ +--- +title: messages.uploadEncryptedFile +description: Upload a secret chat file without sending it to anyone +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.uploadEncryptedFile +[Back to methods index](index.md) + + +Upload a secret chat file without sending it to anyone + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | The chat where to upload the media | Yes| +|file|[File path or InputEncryptedFile](../types/InputEncryptedFile.md) | The file | Optional| + + +### Return type: [EncryptedFile](../types/EncryptedFile.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$EncryptedFile = $MadelineProto->messages->uploadEncryptedFile(['peer' => InputEncryptedChat, 'file' => InputEncryptedFile, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.uploadEncryptedFile +* params - `{"peer": InputEncryptedChat, "file": InputEncryptedFile, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.uploadEncryptedFile` + +Parameters: + +peer - Json encoded InputEncryptedChat + +file - Json encoded InputEncryptedFile + + + + +Or, if you're into Lua: + +```lua +EncryptedFile = messages.uploadEncryptedFile({peer=InputEncryptedChat, file=InputEncryptedFile, }) +``` + diff --git a/old_docs/API_docs_v91/methods/messages_uploadMedia.md b/old_docs/API_docs_v91/methods/messages_uploadMedia.md new file mode 100644 index 00000000..af710357 --- /dev/null +++ b/old_docs/API_docs_v91/methods/messages_uploadMedia.md @@ -0,0 +1,80 @@ +--- +title: messages.uploadMedia +description: Upload a file without sending it to anyone +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: messages.uploadMedia +[Back to methods index](index.md) + + +Upload a file without sending it to anyone + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Nothing | Optional| +|media|[MessageMedia, Update, Message or InputMedia](../types/InputMedia.md) | The media to upload | Optional| + + +### Return type: [MessageMedia](../types/MessageMedia.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - messages.uploadMedia +* params - `{"peer": InputPeer, "media": InputMedia, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.uploadMedia` + +Parameters: + +peer - Json encoded InputPeer + +media - Json encoded InputMedia + + + + +Or, if you're into Lua: + +```lua +MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|BOT_MISSING|This method can only be run by a bot| +|MEDIA_INVALID|Media invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v91/methods/payments_clearSavedInfo.md new file mode 100644 index 00000000..1fb58ffa --- /dev/null +++ b/old_docs/API_docs_v91/methods/payments_clearSavedInfo.md @@ -0,0 +1,62 @@ +--- +title: payments.clearSavedInfo +description: Clear saved payments info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: payments.clearSavedInfo +[Back to methods index](index.md) + + +Clear saved payments info + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|credentials|[Bool](../types/Bool.md) | Clear credentials? | Optional| +|info|[Bool](../types/Bool.md) | Clear payment info? | Optional| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/payments.clearSavedInfo` + +Parameters: + +credentials - Json encoded Bool + +info - Json encoded Bool + + + + +Or, if you're into Lua: + +```lua +Bool = payments.clearSavedInfo({credentials=Bool, info=Bool, }) +``` + diff --git a/old_docs/API_docs_v91/methods/payments_getPaymentForm.md b/old_docs/API_docs_v91/methods/payments_getPaymentForm.md new file mode 100644 index 00000000..480e7d6d --- /dev/null +++ b/old_docs/API_docs_v91/methods/payments_getPaymentForm.md @@ -0,0 +1,66 @@ +--- +title: payments.getPaymentForm +description: Get payment form +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: payments.getPaymentForm +[Back to methods index](index.md) + + +Get payment form + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|msg\_id|[int](../types/int.md) | Message ID | Yes| + + +### Return type: [payments\_PaymentForm](../types/payments_PaymentForm.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/payments.getPaymentForm` + +Parameters: + +msg_id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +payments_PaymentForm = payments.getPaymentForm({msg_id=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_ID_INVALID|The provided message id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v91/methods/payments_getPaymentReceipt.md new file mode 100644 index 00000000..074aed0e --- /dev/null +++ b/old_docs/API_docs_v91/methods/payments_getPaymentReceipt.md @@ -0,0 +1,66 @@ +--- +title: payments.getPaymentReceipt +description: Get payment receipt +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: payments.getPaymentReceipt +[Back to methods index](index.md) + + +Get payment receipt + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|msg\_id|[int](../types/int.md) | The message ID | Yes| + + +### Return type: [payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/payments.getPaymentReceipt` + +Parameters: + +msg_id - Json encoded int + + + + +Or, if you're into Lua: + +```lua +payments_PaymentReceipt = payments.getPaymentReceipt({msg_id=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_ID_INVALID|The provided message id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/payments_getSavedInfo.md b/old_docs/API_docs_v91/methods/payments_getSavedInfo.md new file mode 100644 index 00000000..df3796a2 --- /dev/null +++ b/old_docs/API_docs_v91/methods/payments_getSavedInfo.md @@ -0,0 +1,52 @@ +--- +title: payments.getSavedInfo +description: Get saved payments info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: payments.getSavedInfo +[Back to methods index](index.md) + + +Get saved payments info + + + +### Return type: [payments\_SavedInfo](../types/payments_SavedInfo.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/payments.getSavedInfo` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +payments_SavedInfo = payments.getSavedInfo({}) +``` + diff --git a/old_docs/API_docs_v91/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v91/methods/payments_sendPaymentForm.md new file mode 100644 index 00000000..582f446a --- /dev/null +++ b/old_docs/API_docs_v91/methods/payments_sendPaymentForm.md @@ -0,0 +1,75 @@ +--- +title: payments.sendPaymentForm +description: Bots only: send payment form +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: payments.sendPaymentForm +[Back to methods index](index.md) + + +Bots only: send payment form + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|msg\_id|[int](../types/int.md) | Message ID | Yes| +|requested\_info\_id|[string](../types/string.md) | ID of requested info | Optional| +|shipping\_option\_id|[string](../types/string.md) | Shipping option ID | Optional| +|credentials|[InputPaymentCredentials](../types/InputPaymentCredentials.md) | Payment credentials | Yes| + + +### Return type: [payments\_PaymentResult](../types/payments_PaymentResult.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/payments.sendPaymentForm` + +Parameters: + +msg_id - Json encoded int + +requested_info_id - Json encoded string + +shipping_option_id - Json encoded string + +credentials - Json encoded InputPaymentCredentials + + + + +Or, if you're into Lua: + +```lua +payments_PaymentResult = payments.sendPaymentForm({msg_id=int, requested_info_id='string', shipping_option_id='string', credentials=InputPaymentCredentials, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_ID_INVALID|The provided message id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v91/methods/payments_validateRequestedInfo.md new file mode 100644 index 00000000..524c8515 --- /dev/null +++ b/old_docs/API_docs_v91/methods/payments_validateRequestedInfo.md @@ -0,0 +1,72 @@ +--- +title: payments.validateRequestedInfo +description: Validate requested payment info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: payments.validateRequestedInfo +[Back to methods index](index.md) + + +Validate requested payment info + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|save|[Bool](../types/Bool.md) | Save payment info? | Optional| +|msg\_id|[int](../types/int.md) | The message ID | Yes| +|info|[PaymentRequestedInfo](../types/PaymentRequestedInfo.md) | The requested payment info | Yes| + + +### Return type: [payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/payments.validateRequestedInfo` + +Parameters: + +save - Json encoded Bool + +msg_id - Json encoded int + +info - Json encoded PaymentRequestedInfo + + + + +Or, if you're into Lua: + +```lua +payments_ValidatedRequestedInfo = payments.validateRequestedInfo({save=Bool, msg_id=int, info=PaymentRequestedInfo, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MESSAGE_ID_INVALID|The provided message id is invalid| + + diff --git a/old_docs/API_docs_v91/methods/phone_acceptCall.md b/old_docs/API_docs_v91/methods/phone_acceptCall.md new file mode 100644 index 00000000..b75ac65b --- /dev/null +++ b/old_docs/API_docs_v91/methods/phone_acceptCall.md @@ -0,0 +1,14 @@ +--- +title: phone.acceptCall +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: phone.acceptCall +[Back to methods index](index.md) + + +**You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls** + + + + diff --git a/old_docs/API_docs_v91/methods/phone_confirmCall.md b/old_docs/API_docs_v91/methods/phone_confirmCall.md new file mode 100644 index 00000000..1a75563d --- /dev/null +++ b/old_docs/API_docs_v91/methods/phone_confirmCall.md @@ -0,0 +1,14 @@ +--- +title: phone.confirmCall +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: phone.confirmCall +[Back to methods index](index.md) + + +**You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls** + + + + diff --git a/old_docs/API_docs_v91/methods/phone_discardCall.md b/old_docs/API_docs_v91/methods/phone_discardCall.md new file mode 100644 index 00000000..e50456eb --- /dev/null +++ b/old_docs/API_docs_v91/methods/phone_discardCall.md @@ -0,0 +1,14 @@ +--- +title: phone.discardCall +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: phone.discardCall +[Back to methods index](index.md) + + +**You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls** + + + + diff --git a/old_docs/API_docs_v91/methods/phone_getCallConfig.md b/old_docs/API_docs_v91/methods/phone_getCallConfig.md new file mode 100644 index 00000000..4ee97d2f --- /dev/null +++ b/old_docs/API_docs_v91/methods/phone_getCallConfig.md @@ -0,0 +1,52 @@ +--- +title: phone.getCallConfig +description: Get call configuration +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: phone.getCallConfig +[Back to methods index](index.md) + + +Get call configuration + + + +### Return type: [DataJSON](../types/DataJSON.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$DataJSON = $MadelineProto->phone->getCallConfig(); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/phone.getCallConfig` + +Parameters: + + + + +Or, if you're into Lua: + +```lua +DataJSON = phone.getCallConfig({}) +``` + diff --git a/old_docs/API_docs_v91/methods/phone_receivedCall.md b/old_docs/API_docs_v91/methods/phone_receivedCall.md new file mode 100644 index 00000000..c030fe43 --- /dev/null +++ b/old_docs/API_docs_v91/methods/phone_receivedCall.md @@ -0,0 +1,67 @@ +--- +title: phone.receivedCall +description: Notify server that you received a call (server will refuse all incoming calls until the current call is over) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: phone.receivedCall +[Back to methods index](index.md) + + +Notify server that you received a call (server will refuse all incoming calls until the current call is over) + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call you received | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/phone.receivedCall` + +Parameters: + +peer - Json encoded InputPhoneCall + + + + +Or, if you're into Lua: + +```lua +Bool = phone.receivedCall({peer=InputPhoneCall, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CALL_ALREADY_DECLINED|The call was already declined| +|CALL_PEER_INVALID|The provided call peer object is invalid| + + diff --git a/old_docs/API_docs_v91/methods/phone_requestCall.md b/old_docs/API_docs_v91/methods/phone_requestCall.md new file mode 100644 index 00000000..9b8df564 --- /dev/null +++ b/old_docs/API_docs_v91/methods/phone_requestCall.md @@ -0,0 +1,14 @@ +--- +title: phone.requestCall +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: phone.requestCall +[Back to methods index](index.md) + + +**You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls** + + + + diff --git a/old_docs/API_docs_v91/methods/phone_saveCallDebug.md b/old_docs/API_docs_v91/methods/phone_saveCallDebug.md new file mode 100644 index 00000000..3aff7998 --- /dev/null +++ b/old_docs/API_docs_v91/methods/phone_saveCallDebug.md @@ -0,0 +1,70 @@ +--- +title: phone.saveCallDebug +description: Save call debugging info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: phone.saveCallDebug +[Back to methods index](index.md) + + +Save call debugging info + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call | Yes| +|debug|[DataJSON](../types/DataJSON.md) | Debugging info | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/phone.saveCallDebug` + +Parameters: + +peer - Json encoded InputPhoneCall + +debug - Json encoded DataJSON + + + + +Or, if you're into Lua: + +```lua +Bool = phone.saveCallDebug({peer=InputPhoneCall, debug=DataJSON, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CALL_PEER_INVALID|The provided call peer object is invalid| +|DATA_JSON_INVALID|The provided JSON data is invalid| + + diff --git a/old_docs/API_docs_v91/methods/phone_setCallRating.md b/old_docs/API_docs_v91/methods/phone_setCallRating.md new file mode 100644 index 00000000..fa83b2c7 --- /dev/null +++ b/old_docs/API_docs_v91/methods/phone_setCallRating.md @@ -0,0 +1,72 @@ +--- +title: phone.setCallRating +description: Set phone call rating +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: phone.setCallRating +[Back to methods index](index.md) + + +Set phone call rating + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| +|rating|[int](../types/int.md) | Rating (1-5 stars) | Yes| +|comment|[string](../types/string.md) | An optional comment | Yes| + + +### Return type: [Updates](../types/Updates.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/phone.setCallRating` + +Parameters: + +peer - Json encoded InputPhoneCall + +rating - Json encoded int + +comment - Json encoded string + + + + +Or, if you're into Lua: + +```lua +Updates = phone.setCallRating({peer=InputPhoneCall, rating=int, comment='string', }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|CALL_PEER_INVALID|The provided call peer object is invalid| + + diff --git a/old_docs/API_docs_v91/methods/photos_deletePhotos.md b/old_docs/API_docs_v91/methods/photos_deletePhotos.md new file mode 100644 index 00000000..78b12cc6 --- /dev/null +++ b/old_docs/API_docs_v91/methods/photos_deletePhotos.md @@ -0,0 +1,59 @@ +--- +title: photos.deletePhotos +description: Delete profile photos +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: photos.deletePhotos +[Back to methods index](index.md) + + +Delete profile photos + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|Array of [MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | The profile photos to delete | Yes| + + +### Return type: [Vector\_of\_long](../types/long.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/photos.deletePhotos` + +Parameters: + +id - Json encoded array of InputPhoto + + + + +Or, if you're into Lua: + +```lua +Vector_of_long = photos.deletePhotos({id={InputPhoto}, }) +``` + diff --git a/old_docs/API_docs_v91/methods/photos_getUserPhotos.md b/old_docs/API_docs_v91/methods/photos_getUserPhotos.md new file mode 100644 index 00000000..9718737e --- /dev/null +++ b/old_docs/API_docs_v91/methods/photos_getUserPhotos.md @@ -0,0 +1,85 @@ +--- +title: photos.getUserPhotos +description: Get the profile photos of a user +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: photos.getUserPhotos +[Back to methods index](index.md) + + +Get the profile photos of a user + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional| +|offset|[int](../types/int.md) | Offset | Yes| +|max\_id|[long](../types/long.md) | Maximum ID of photo to return | Yes| +|limit|[int](../types/int.md) | Number of photos to return | Yes| + + +### Return type: [photos\_Photos](../types/photos_Photos.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - photos.getUserPhotos +* params - `{"user_id": InputUser, "offset": int, "max_id": long, "limit": int, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/photos.getUserPhotos` + +Parameters: + +user_id - Json encoded InputUser + +offset - Json encoded int + +max_id - Json encoded long + +limit - Json encoded int + + + + +Or, if you're into Lua: + +```lua +photos_Photos = photos.getUserPhotos({user_id=InputUser, offset=int, max_id=long, limit=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v91/methods/photos_updateProfilePhoto.md new file mode 100644 index 00000000..f97c932f --- /dev/null +++ b/old_docs/API_docs_v91/methods/photos_updateProfilePhoto.md @@ -0,0 +1,59 @@ +--- +title: photos.updateProfilePhoto +description: Change the profile photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: photos.updateProfilePhoto +[Back to methods index](index.md) + + +Change the profile photo + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|[MessageMedia, Update, Message or InputPhoto](../types/InputPhoto.md) | The photo to use | Optional| + + +### Return type: [UserProfilePhoto](../types/UserProfilePhoto.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/photos.updateProfilePhoto` + +Parameters: + +id - Json encoded InputPhoto + + + + +Or, if you're into Lua: + +```lua +UserProfilePhoto = photos.updateProfilePhoto({id=InputPhoto, }) +``` + diff --git a/old_docs/API_docs_v91/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v91/methods/photos_uploadProfilePhoto.md new file mode 100644 index 00000000..8d047d9a --- /dev/null +++ b/old_docs/API_docs_v91/methods/photos_uploadProfilePhoto.md @@ -0,0 +1,69 @@ +--- +title: photos.uploadProfilePhoto +description: Upload profile photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: photos.uploadProfilePhoto +[Back to methods index](index.md) + + +Upload profile photo + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|file|[File path or InputFile](../types/InputFile.md) | The photo | Yes| + + +### Return type: [photos\_Photo](../types/photos_Photo.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/photos.uploadProfilePhoto` + +Parameters: + +file - Json encoded InputFile + + + + +Or, if you're into Lua: + +```lua +photos_Photo = photos.uploadProfilePhoto({file=InputFile, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|IMAGE_PROCESS_FAILED|Failure while processing image| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| + + diff --git a/old_docs/API_docs_v91/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v91/methods/stickers_addStickerToSet.md new file mode 100644 index 00000000..0946e28a --- /dev/null +++ b/old_docs/API_docs_v91/methods/stickers_addStickerToSet.md @@ -0,0 +1,79 @@ +--- +title: stickers.addStickerToSet +description: Add sticker to stickerset +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: stickers.addStickerToSet +[Back to methods index](index.md) + + +Add sticker to stickerset + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|stickerset|[InputStickerSet](../types/InputStickerSet.md) | The stickerset | Optional| +|sticker|[InputStickerSetItem](../types/InputStickerSetItem.md) | The sticker | Yes| + + +### Return type: [messages\_StickerSet](../types/messages_StickerSet.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - stickers.addStickerToSet +* params - `{"stickerset": InputStickerSet, "sticker": InputStickerSetItem, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/stickers.addStickerToSet` + +Parameters: + +stickerset - Json encoded InputStickerSet + +sticker - Json encoded InputStickerSetItem + + + + +Or, if you're into Lua: + +```lua +messages_StickerSet = stickers.addStickerToSet({stickerset=InputStickerSet, sticker=InputStickerSetItem, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|BOT_MISSING|This method can only be run by a bot| +|STICKERSET_INVALID|The provided sticker set is invalid| + + diff --git a/old_docs/API_docs_v91/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v91/methods/stickers_changeStickerPosition.md new file mode 100644 index 00000000..ff27fd3c --- /dev/null +++ b/old_docs/API_docs_v91/methods/stickers_changeStickerPosition.md @@ -0,0 +1,79 @@ +--- +title: stickers.changeStickerPosition +description: Change sticker position in photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: stickers.changeStickerPosition +[Back to methods index](index.md) + + +Change sticker position in photo + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | The sticker | Optional| +|position|[int](../types/int.md) | New position | Yes| + + +### Return type: [messages\_StickerSet](../types/messages_StickerSet.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_StickerSet = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - stickers.changeStickerPosition +* params - `{"sticker": InputDocument, "position": int, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/stickers.changeStickerPosition` + +Parameters: + +sticker - Json encoded InputDocument + +position - Json encoded int + + + + +Or, if you're into Lua: + +```lua +messages_StickerSet = stickers.changeStickerPosition({sticker=InputDocument, position=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|BOT_MISSING|This method can only be run by a bot| +|STICKER_INVALID|The provided sticker is invalid| + + diff --git a/old_docs/API_docs_v91/methods/stickers_createStickerSet.md b/old_docs/API_docs_v91/methods/stickers_createStickerSet.md new file mode 100644 index 00000000..7dd29ccd --- /dev/null +++ b/old_docs/API_docs_v91/methods/stickers_createStickerSet.md @@ -0,0 +1,95 @@ +--- +title: stickers.createStickerSet +description: Create stickerset +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: stickers.createStickerSet +[Back to methods index](index.md) + + +Create stickerset + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|masks|[Bool](../types/Bool.md) | Masks? | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user ID associated to this stickerset | Optional| +|title|[string](../types/string.md) | The stickerset title | Yes| +|short\_name|[string](../types/string.md) | The stickerset short name | Yes| +|stickers|Array of [InputStickerSetItem](../types/InputStickerSetItem.md) | The stickers to add | Yes| + + +### Return type: [messages\_StickerSet](../types/messages_StickerSet.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - stickers.createStickerSet +* params - `{"masks": Bool, "user_id": InputUser, "title": "string", "short_name": "string", "stickers": [InputStickerSetItem], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/stickers.createStickerSet` + +Parameters: + +masks - Json encoded Bool + +user_id - Json encoded InputUser + +title - Json encoded string + +short_name - Json encoded string + +stickers - Json encoded array of InputStickerSetItem + + + + +Or, if you're into Lua: + +```lua +messages_StickerSet = stickers.createStickerSet({masks=Bool, user_id=InputUser, title='string', short_name='string', stickers={InputStickerSetItem}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|BOT_MISSING|This method can only be run by a bot| +|PACK_SHORT_NAME_INVALID|Short pack name invalid| +|PACK_SHORT_NAME_OCCUPIED|A stickerpack with this name already exists| +|PEER_ID_INVALID|The provided peer id is invalid| +|STICKER_EMOJI_INVALID|Sticker emoji invalid| +|STICKER_FILE_INVALID|Sticker file invalid| +|STICKER_PNG_DIMENSIONS|Sticker png dimensions invalid| +|STICKERS_EMPTY|No sticker provided| +|USER_ID_INVALID|The provided user ID is invalid| + + diff --git a/old_docs/API_docs_v91/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v91/methods/stickers_removeStickerFromSet.md new file mode 100644 index 00000000..64ce97a3 --- /dev/null +++ b/old_docs/API_docs_v91/methods/stickers_removeStickerFromSet.md @@ -0,0 +1,76 @@ +--- +title: stickers.removeStickerFromSet +description: Remove sticker from stickerset +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: stickers.removeStickerFromSet +[Back to methods index](index.md) + + +Remove sticker from stickerset + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|sticker|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | The sticker to remove | Optional| + + +### Return type: [messages\_StickerSet](../types/messages_StickerSet.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$messages_StickerSet = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - stickers.removeStickerFromSet +* params - `{"sticker": InputDocument, }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/stickers.removeStickerFromSet` + +Parameters: + +sticker - Json encoded InputDocument + + + + +Or, if you're into Lua: + +```lua +messages_StickerSet = stickers.removeStickerFromSet({sticker=InputDocument, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|BOT_MISSING|This method can only be run by a bot| +|STICKER_INVALID|The provided sticker is invalid| + + diff --git a/old_docs/API_docs_v91/methods/updates_getChannelDifference.md b/old_docs/API_docs_v91/methods/updates_getChannelDifference.md new file mode 100644 index 00000000..6fa79529 --- /dev/null +++ b/old_docs/API_docs_v91/methods/updates_getChannelDifference.md @@ -0,0 +1,14 @@ +--- +title: updates.getChannelDifference +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: updates.getChannelDifference +[Back to methods index](index.md) + + +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** + + + + diff --git a/old_docs/API_docs_v91/methods/updates_getDifference.md b/old_docs/API_docs_v91/methods/updates_getDifference.md new file mode 100644 index 00000000..33e7d7f2 --- /dev/null +++ b/old_docs/API_docs_v91/methods/updates_getDifference.md @@ -0,0 +1,14 @@ +--- +title: updates.getDifference +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: updates.getDifference +[Back to methods index](index.md) + + +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** + + + + diff --git a/old_docs/API_docs_v91/methods/updates_getState.md b/old_docs/API_docs_v91/methods/updates_getState.md new file mode 100644 index 00000000..f43ba440 --- /dev/null +++ b/old_docs/API_docs_v91/methods/updates_getState.md @@ -0,0 +1,14 @@ +--- +title: updates.getState +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: updates.getState +[Back to methods index](index.md) + + +**You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates** + + + + diff --git a/old_docs/API_docs_v91/methods/upload_getCdnFile.md b/old_docs/API_docs_v91/methods/upload_getCdnFile.md new file mode 100644 index 00000000..5e5b3f43 --- /dev/null +++ b/old_docs/API_docs_v91/methods/upload_getCdnFile.md @@ -0,0 +1,14 @@ +--- +title: upload.getCdnFile +description: You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: upload.getCdnFile +[Back to methods index](index.md) + + +**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info** + + + + diff --git a/old_docs/API_docs_v91/methods/upload_getCdnFileHashes.md b/old_docs/API_docs_v91/methods/upload_getCdnFileHashes.md new file mode 100644 index 00000000..ea6a8e75 --- /dev/null +++ b/old_docs/API_docs_v91/methods/upload_getCdnFileHashes.md @@ -0,0 +1,14 @@ +--- +title: upload.getCdnFileHashes +description: You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: upload.getCdnFileHashes +[Back to methods index](index.md) + + +**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info** + + + + diff --git a/old_docs/API_docs_v91/methods/upload_getFile.md b/old_docs/API_docs_v91/methods/upload_getFile.md new file mode 100644 index 00000000..c72e6090 --- /dev/null +++ b/old_docs/API_docs_v91/methods/upload_getFile.md @@ -0,0 +1,14 @@ +--- +title: upload.getFile +description: You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: upload.getFile +[Back to methods index](index.md) + + +**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info** + + + + diff --git a/old_docs/API_docs_v91/methods/upload_getFileHashes.md b/old_docs/API_docs_v91/methods/upload_getFileHashes.md new file mode 100644 index 00000000..debeb60d --- /dev/null +++ b/old_docs/API_docs_v91/methods/upload_getFileHashes.md @@ -0,0 +1,14 @@ +--- +title: upload.getFileHashes +description: Get file hashes +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: upload.getFileHashes +[Back to methods index](index.md) + + +**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info** + + + + diff --git a/old_docs/API_docs_v91/methods/upload_getWebFile.md b/old_docs/API_docs_v91/methods/upload_getWebFile.md new file mode 100644 index 00000000..16952ff9 --- /dev/null +++ b/old_docs/API_docs_v91/methods/upload_getWebFile.md @@ -0,0 +1,72 @@ +--- +title: upload.getWebFile +description: Download a file through telegram +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: upload.getWebFile +[Back to methods index](index.md) + + +Download a file through telegram + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|location|[InputWebFileLocation](../types/InputWebFileLocation.md) | The file | Yes| +|offset|[int](../types/int.md) | The offset in bytes | Yes| +|limit|[int](../types/int.md) | The number of bytes to fetch | Yes| + + +### Return type: [upload\_WebFile](../types/upload_WebFile.md) + +### Can bots use this method: **NO** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.getWebFile` + +Parameters: + +location - Json encoded InputWebFileLocation + +offset - Json encoded int + +limit - Json encoded int + + + + +Or, if you're into Lua: + +```lua +upload_WebFile = upload.getWebFile({location=InputWebFileLocation, offset=int, limit=int, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|LOCATION_INVALID|The provided location is invalid| + + diff --git a/old_docs/API_docs_v91/methods/upload_reuploadCdnFile.md b/old_docs/API_docs_v91/methods/upload_reuploadCdnFile.md new file mode 100644 index 00000000..cc20d5e3 --- /dev/null +++ b/old_docs/API_docs_v91/methods/upload_reuploadCdnFile.md @@ -0,0 +1,14 @@ +--- +title: upload.reuploadCdnFile +description: You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: upload.reuploadCdnFile +[Back to methods index](index.md) + + +**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info** + + + + diff --git a/old_docs/API_docs_v91/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v91/methods/upload_saveBigFilePart.md new file mode 100644 index 00000000..91659f4f --- /dev/null +++ b/old_docs/API_docs_v91/methods/upload_saveBigFilePart.md @@ -0,0 +1,14 @@ +--- +title: upload.saveBigFilePart +description: You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: upload.saveBigFilePart +[Back to methods index](index.md) + + +**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info** + + + + diff --git a/old_docs/API_docs_v91/methods/upload_saveFilePart.md b/old_docs/API_docs_v91/methods/upload_saveFilePart.md new file mode 100644 index 00000000..f37bcaaf --- /dev/null +++ b/old_docs/API_docs_v91/methods/upload_saveFilePart.md @@ -0,0 +1,14 @@ +--- +title: upload.saveFilePart +description: You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: upload.saveFilePart +[Back to methods index](index.md) + + +**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info** + + + + diff --git a/old_docs/API_docs_v91/methods/users_getFullUser.md b/old_docs/API_docs_v91/methods/users_getFullUser.md new file mode 100644 index 00000000..4bee704c --- /dev/null +++ b/old_docs/API_docs_v91/methods/users_getFullUser.md @@ -0,0 +1,14 @@ +--- +title: users.getFullUser +description: You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: users.getFullUser +[Back to methods index](index.md) + + +**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info)** + + + + diff --git a/old_docs/API_docs_v91/methods/users_getUsers.md b/old_docs/API_docs_v91/methods/users_getUsers.md new file mode 100644 index 00000000..b2b7cb0f --- /dev/null +++ b/old_docs/API_docs_v91/methods/users_getUsers.md @@ -0,0 +1,79 @@ +--- +title: users.getUsers +description: Get info about users +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: users.getUsers +[Back to methods index](index.md) + + +Get info about users + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The ids of the users | Yes| + + +### Return type: [Vector\_of\_User](../types/User.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - users.getUsers +* params - `{"id": [InputUser], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/users.getUsers` + +Parameters: + +id - Json encoded array of InputUser + + + + +Or, if you're into Lua: + +```lua +Vector_of_User = users.getUsers({id={InputUser}, }) +``` + +### Errors this method can return: + +| Error | Description | +|----------|---------------| +|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|MEMBER_NO_LOCATION|An internal failure occurred while fetching user info (couldn't find location)| +|NEED_MEMBER_INVALID|The provided member is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + + diff --git a/old_docs/API_docs_v91/methods/users_setSecureValueErrors.md b/old_docs/API_docs_v91/methods/users_setSecureValueErrors.md new file mode 100644 index 00000000..3389b737 --- /dev/null +++ b/old_docs/API_docs_v91/methods/users_setSecureValueErrors.md @@ -0,0 +1,71 @@ +--- +title: users.setSecureValueErrors +description: Set secure value error for telegram passport +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Method: users.setSecureValueErrors +[Back to methods index](index.md) + + +Set secure value error for telegram passport + +### Parameters: + +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user ID | Optional| +|errors|Array of [SecureValueError](../types/SecureValueError.md) | The errors | Yes| + + +### Return type: [Bool](../types/Bool.md) + +### Can bots use this method: **YES** + + +### MadelineProto Example: + + +```php +if (!file_exists('madeline.php')) { + copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); +} +include 'madeline.php'; + +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); +$MadelineProto->start(); + +$Bool = $MadelineProto->users->setSecureValueErrors(['id' => InputUser, 'errors' => [SecureValueError, SecureValueError], ]); +``` + +### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): + +### As a bot: + +POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` + +Parameters: + +* method - users.setSecureValueErrors +* params - `{"id": InputUser, "errors": [SecureValueError], }` + + + +### As a user: + +POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/users.setSecureValueErrors` + +Parameters: + +id - Json encoded InputUser + +errors - Json encoded array of SecureValueError + + + + +Or, if you're into Lua: + +```lua +Bool = users.setSecureValueErrors({id=InputUser, errors={SecureValueError}, }) +``` + diff --git a/old_docs/API_docs_v91/types/!X.md b/old_docs/API_docs_v91/types/!X.md new file mode 100644 index 00000000..dc27d5cd --- /dev/null +++ b/old_docs/API_docs_v91/types/!X.md @@ -0,0 +1,9 @@ +--- +title: !X +description: Represents a TL serialized payload +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: !X +[Back to constructor index](index.md) + +Represents a TL serialized payload. diff --git a/old_docs/API_docs_v91/types/AccessPointRule.md b/old_docs/API_docs_v91/types/AccessPointRule.md new file mode 100644 index 00000000..07450b37 --- /dev/null +++ b/old_docs/API_docs_v91/types/AccessPointRule.md @@ -0,0 +1,20 @@ +--- +title: AccessPointRule +description: constructors and methods of type AccessPointRule +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: AccessPointRule +[Back to types index](index.md) + + + +### Possible values (constructors): + +[accessPointRule](../constructors/accessPointRule.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/AccountDaysTTL.md b/old_docs/API_docs_v91/types/AccountDaysTTL.md new file mode 100644 index 00000000..12a10190 --- /dev/null +++ b/old_docs/API_docs_v91/types/AccountDaysTTL.md @@ -0,0 +1,22 @@ +--- +title: AccountDaysTTL +description: constructors and methods of type AccountDaysTTL +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: AccountDaysTTL +[Back to types index](index.md) + + + +### Possible values (constructors): + +[accountDaysTTL](../constructors/accountDaysTTL.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getAccountTTL](../methods/account_getAccountTTL.md) + + + diff --git a/old_docs/API_docs_v91/types/Authorization.md b/old_docs/API_docs_v91/types/Authorization.md new file mode 100644 index 00000000..e6760335 --- /dev/null +++ b/old_docs/API_docs_v91/types/Authorization.md @@ -0,0 +1,20 @@ +--- +title: Authorization +description: constructors and methods of type Authorization +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Authorization +[Back to types index](index.md) + + + +### Possible values (constructors): + +[authorization](../constructors/authorization.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Bool.md b/old_docs/API_docs_v91/types/Bool.md new file mode 100644 index 00000000..7a1d95ff --- /dev/null +++ b/old_docs/API_docs_v91/types/Bool.md @@ -0,0 +1,9 @@ +--- +title: Bool +description: Represents a boolean. +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Bool +[Back to types index](index.md) + +Represents a boolean. diff --git a/old_docs/API_docs_v91/types/BotCommand.md b/old_docs/API_docs_v91/types/BotCommand.md new file mode 100644 index 00000000..759f2b8b --- /dev/null +++ b/old_docs/API_docs_v91/types/BotCommand.md @@ -0,0 +1,20 @@ +--- +title: BotCommand +description: constructors and methods of type BotCommand +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: BotCommand +[Back to types index](index.md) + + + +### Possible values (constructors): + +[botCommand](../constructors/botCommand.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/BotInfo.md b/old_docs/API_docs_v91/types/BotInfo.md new file mode 100644 index 00000000..dc876cb5 --- /dev/null +++ b/old_docs/API_docs_v91/types/BotInfo.md @@ -0,0 +1,20 @@ +--- +title: BotInfo +description: constructors and methods of type BotInfo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: BotInfo +[Back to types index](index.md) + + + +### Possible values (constructors): + +[botInfo](../constructors/botInfo.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/BotInlineMessage.md b/old_docs/API_docs_v91/types/BotInlineMessage.md new file mode 100644 index 00000000..bd0da30e --- /dev/null +++ b/old_docs/API_docs_v91/types/BotInlineMessage.md @@ -0,0 +1,28 @@ +--- +title: BotInlineMessage +description: constructors and methods of type BotInlineMessage +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: BotInlineMessage +[Back to types index](index.md) + + + +### Possible values (constructors): + +[botInlineMessageMediaAuto](../constructors/botInlineMessageMediaAuto.md) + +[botInlineMessageText](../constructors/botInlineMessageText.md) + +[botInlineMessageMediaGeo](../constructors/botInlineMessageMediaGeo.md) + +[botInlineMessageMediaVenue](../constructors/botInlineMessageMediaVenue.md) + +[botInlineMessageMediaContact](../constructors/botInlineMessageMediaContact.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/BotInlineResult.md b/old_docs/API_docs_v91/types/BotInlineResult.md new file mode 100644 index 00000000..3d10e416 --- /dev/null +++ b/old_docs/API_docs_v91/types/BotInlineResult.md @@ -0,0 +1,22 @@ +--- +title: BotInlineResult +description: constructors and methods of type BotInlineResult +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: BotInlineResult +[Back to types index](index.md) + + + +### Possible values (constructors): + +[botInlineResult](../constructors/botInlineResult.md) + +[botInlineMediaResult](../constructors/botInlineMediaResult.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/CdnConfig.md b/old_docs/API_docs_v91/types/CdnConfig.md new file mode 100644 index 00000000..fbfe01c3 --- /dev/null +++ b/old_docs/API_docs_v91/types/CdnConfig.md @@ -0,0 +1,22 @@ +--- +title: CdnConfig +description: constructors and methods of type CdnConfig +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: CdnConfig +[Back to types index](index.md) + + + +### Possible values (constructors): + +[cdnConfig](../constructors/cdnConfig.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getCdnConfig](../methods/help_getCdnConfig.md) + + + diff --git a/old_docs/API_docs_v91/types/CdnPublicKey.md b/old_docs/API_docs_v91/types/CdnPublicKey.md new file mode 100644 index 00000000..14df6975 --- /dev/null +++ b/old_docs/API_docs_v91/types/CdnPublicKey.md @@ -0,0 +1,20 @@ +--- +title: CdnPublicKey +description: constructors and methods of type CdnPublicKey +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: CdnPublicKey +[Back to types index](index.md) + + + +### Possible values (constructors): + +[cdnPublicKey](../constructors/cdnPublicKey.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ChannelAdminLogEvent.md b/old_docs/API_docs_v91/types/ChannelAdminLogEvent.md new file mode 100644 index 00000000..5cd8d2fd --- /dev/null +++ b/old_docs/API_docs_v91/types/ChannelAdminLogEvent.md @@ -0,0 +1,20 @@ +--- +title: ChannelAdminLogEvent +description: constructors and methods of type ChannelAdminLogEvent +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChannelAdminLogEvent +[Back to types index](index.md) + + + +### Possible values (constructors): + +[channelAdminLogEvent](../constructors/channelAdminLogEvent.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ChannelAdminLogEventAction.md b/old_docs/API_docs_v91/types/ChannelAdminLogEventAction.md new file mode 100644 index 00000000..a01b5a83 --- /dev/null +++ b/old_docs/API_docs_v91/types/ChannelAdminLogEventAction.md @@ -0,0 +1,50 @@ +--- +title: ChannelAdminLogEventAction +description: constructors and methods of type ChannelAdminLogEventAction +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChannelAdminLogEventAction +[Back to types index](index.md) + + + +### Possible values (constructors): + +[channelAdminLogEventActionChangeTitle](../constructors/channelAdminLogEventActionChangeTitle.md) + +[channelAdminLogEventActionChangeAbout](../constructors/channelAdminLogEventActionChangeAbout.md) + +[channelAdminLogEventActionChangeUsername](../constructors/channelAdminLogEventActionChangeUsername.md) + +[channelAdminLogEventActionChangePhoto](../constructors/channelAdminLogEventActionChangePhoto.md) + +[channelAdminLogEventActionToggleInvites](../constructors/channelAdminLogEventActionToggleInvites.md) + +[channelAdminLogEventActionToggleSignatures](../constructors/channelAdminLogEventActionToggleSignatures.md) + +[channelAdminLogEventActionUpdatePinned](../constructors/channelAdminLogEventActionUpdatePinned.md) + +[channelAdminLogEventActionEditMessage](../constructors/channelAdminLogEventActionEditMessage.md) + +[channelAdminLogEventActionDeleteMessage](../constructors/channelAdminLogEventActionDeleteMessage.md) + +[channelAdminLogEventActionParticipantJoin](../constructors/channelAdminLogEventActionParticipantJoin.md) + +[channelAdminLogEventActionParticipantLeave](../constructors/channelAdminLogEventActionParticipantLeave.md) + +[channelAdminLogEventActionParticipantInvite](../constructors/channelAdminLogEventActionParticipantInvite.md) + +[channelAdminLogEventActionParticipantToggleBan](../constructors/channelAdminLogEventActionParticipantToggleBan.md) + +[channelAdminLogEventActionParticipantToggleAdmin](../constructors/channelAdminLogEventActionParticipantToggleAdmin.md) + +[channelAdminLogEventActionChangeStickerSet](../constructors/channelAdminLogEventActionChangeStickerSet.md) + +[channelAdminLogEventActionTogglePreHistoryHidden](../constructors/channelAdminLogEventActionTogglePreHistoryHidden.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ChannelAdminLogEventsFilter.md b/old_docs/API_docs_v91/types/ChannelAdminLogEventsFilter.md new file mode 100644 index 00000000..1199a100 --- /dev/null +++ b/old_docs/API_docs_v91/types/ChannelAdminLogEventsFilter.md @@ -0,0 +1,20 @@ +--- +title: ChannelAdminLogEventsFilter +description: constructors and methods of type ChannelAdminLogEventsFilter +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChannelAdminLogEventsFilter +[Back to types index](index.md) + + + +### Possible values (constructors): + +[channelAdminLogEventsFilter](../constructors/channelAdminLogEventsFilter.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/docs/API_docs/types/ChannelAdminRights.md b/old_docs/API_docs_v91/types/ChannelAdminRights.md similarity index 100% rename from docs/API_docs/types/ChannelAdminRights.md rename to old_docs/API_docs_v91/types/ChannelAdminRights.md diff --git a/docs/API_docs/types/ChannelBannedRights.md b/old_docs/API_docs_v91/types/ChannelBannedRights.md similarity index 100% rename from docs/API_docs/types/ChannelBannedRights.md rename to old_docs/API_docs_v91/types/ChannelBannedRights.md diff --git a/old_docs/API_docs_v91/types/ChannelMessagesFilter.md b/old_docs/API_docs_v91/types/ChannelMessagesFilter.md new file mode 100644 index 00000000..e3052b30 --- /dev/null +++ b/old_docs/API_docs_v91/types/ChannelMessagesFilter.md @@ -0,0 +1,22 @@ +--- +title: ChannelMessagesFilter +description: constructors and methods of type ChannelMessagesFilter +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChannelMessagesFilter +[Back to types index](index.md) + + + +### Possible values (constructors): + +[channelMessagesFilterEmpty](../constructors/channelMessagesFilterEmpty.md) + +[channelMessagesFilter](../constructors/channelMessagesFilter.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ChannelParticipant.md b/old_docs/API_docs_v91/types/ChannelParticipant.md new file mode 100644 index 00000000..0658f4e9 --- /dev/null +++ b/old_docs/API_docs_v91/types/ChannelParticipant.md @@ -0,0 +1,28 @@ +--- +title: ChannelParticipant +description: constructors and methods of type ChannelParticipant +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChannelParticipant +[Back to types index](index.md) + + + +### Possible values (constructors): + +[channelParticipant](../constructors/channelParticipant.md) + +[channelParticipantSelf](../constructors/channelParticipantSelf.md) + +[channelParticipantCreator](../constructors/channelParticipantCreator.md) + +[channelParticipantAdmin](../constructors/channelParticipantAdmin.md) + +[channelParticipantBanned](../constructors/channelParticipantBanned.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ChannelParticipantsFilter.md b/old_docs/API_docs_v91/types/ChannelParticipantsFilter.md new file mode 100644 index 00000000..fa8dee6b --- /dev/null +++ b/old_docs/API_docs_v91/types/ChannelParticipantsFilter.md @@ -0,0 +1,30 @@ +--- +title: ChannelParticipantsFilter +description: constructors and methods of type ChannelParticipantsFilter +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChannelParticipantsFilter +[Back to types index](index.md) + + + +### Possible values (constructors): + +[channelParticipantsRecent](../constructors/channelParticipantsRecent.md) + +[channelParticipantsAdmins](../constructors/channelParticipantsAdmins.md) + +[channelParticipantsKicked](../constructors/channelParticipantsKicked.md) + +[channelParticipantsBots](../constructors/channelParticipantsBots.md) + +[channelParticipantsBanned](../constructors/channelParticipantsBanned.md) + +[channelParticipantsSearch](../constructors/channelParticipantsSearch.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Chat.md b/old_docs/API_docs_v91/types/Chat.md new file mode 100644 index 00000000..cd83aacb --- /dev/null +++ b/old_docs/API_docs_v91/types/Chat.md @@ -0,0 +1,52 @@ +--- +title: Chat +description: constructors and methods of type Chat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Chat +[Back to types index](index.md) + + + +You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id. + +The following syntaxes can also be used: + +``` +$Chat = '@username'; // Username + +$Chat = 'me'; // The currently logged-in user + +$Chat = 44700; // bot API id (users) +$Chat = -492772765; // bot API id (chats) +$Chat = -10038575794; // bot API id (channels) + +$Chat = 'https://t.me/danogentili'; // t.me URLs +$Chat = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links + +$Chat = 'user#44700'; // tg-cli style id (users) +$Chat = 'chat#492772765'; // tg-cli style id (chats) +$Chat = 'channel#38575794'; // tg-cli style id (channels) +``` + +A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used. + + +### Possible values (constructors): + +[chatEmpty](../constructors/chatEmpty.md) + +[chat](../constructors/chat.md) + +[chatForbidden](../constructors/chatForbidden.md) + +[channel](../constructors/channel.md) + +[channelForbidden](../constructors/channelForbidden.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ChatFull.md b/old_docs/API_docs_v91/types/ChatFull.md new file mode 100644 index 00000000..615843bc --- /dev/null +++ b/old_docs/API_docs_v91/types/ChatFull.md @@ -0,0 +1,22 @@ +--- +title: ChatFull +description: constructors and methods of type ChatFull +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChatFull +[Back to types index](index.md) + + + +### Possible values (constructors): + +[chatFull](../constructors/chatFull.md) + +[channelFull](../constructors/channelFull.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ChatInvite.md b/old_docs/API_docs_v91/types/ChatInvite.md new file mode 100644 index 00000000..5022a2f0 --- /dev/null +++ b/old_docs/API_docs_v91/types/ChatInvite.md @@ -0,0 +1,24 @@ +--- +title: ChatInvite +description: constructors and methods of type ChatInvite +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChatInvite +[Back to types index](index.md) + + + +### Possible values (constructors): + +[chatInviteAlready](../constructors/chatInviteAlready.md) + +[chatInvite](../constructors/chatInvite.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->checkChatInvite](../methods/messages_checkChatInvite.md) + + + diff --git a/old_docs/API_docs_v91/types/ChatOnlines.md b/old_docs/API_docs_v91/types/ChatOnlines.md new file mode 100644 index 00000000..5faf4a6e --- /dev/null +++ b/old_docs/API_docs_v91/types/ChatOnlines.md @@ -0,0 +1,22 @@ +--- +title: ChatOnlines +description: constructors and methods of type ChatOnlines +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChatOnlines +[Back to types index](index.md) + + + +### Possible values (constructors): + +[chatOnlines](../constructors/chatOnlines.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getOnlines](../methods/messages_getOnlines.md) + + + diff --git a/old_docs/API_docs_v91/types/ChatParticipant.md b/old_docs/API_docs_v91/types/ChatParticipant.md new file mode 100644 index 00000000..30bad422 --- /dev/null +++ b/old_docs/API_docs_v91/types/ChatParticipant.md @@ -0,0 +1,24 @@ +--- +title: ChatParticipant +description: constructors and methods of type ChatParticipant +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChatParticipant +[Back to types index](index.md) + + + +### Possible values (constructors): + +[chatParticipant](../constructors/chatParticipant.md) + +[chatParticipantCreator](../constructors/chatParticipantCreator.md) + +[chatParticipantAdmin](../constructors/chatParticipantAdmin.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ChatParticipants.md b/old_docs/API_docs_v91/types/ChatParticipants.md new file mode 100644 index 00000000..ab60023d --- /dev/null +++ b/old_docs/API_docs_v91/types/ChatParticipants.md @@ -0,0 +1,22 @@ +--- +title: ChatParticipants +description: constructors and methods of type ChatParticipants +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChatParticipants +[Back to types index](index.md) + + + +### Possible values (constructors): + +[chatParticipantsForbidden](../constructors/chatParticipantsForbidden.md) + +[chatParticipants](../constructors/chatParticipants.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ChatPhoto.md b/old_docs/API_docs_v91/types/ChatPhoto.md new file mode 100644 index 00000000..066b2a14 --- /dev/null +++ b/old_docs/API_docs_v91/types/ChatPhoto.md @@ -0,0 +1,22 @@ +--- +title: ChatPhoto +description: constructors and methods of type ChatPhoto +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ChatPhoto +[Back to types index](index.md) + + + +### Possible values (constructors): + +[chatPhotoEmpty](../constructors/chatPhotoEmpty.md) + +[chatPhoto](../constructors/chatPhoto.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Config.md b/old_docs/API_docs_v91/types/Config.md new file mode 100644 index 00000000..0f7fbe70 --- /dev/null +++ b/old_docs/API_docs_v91/types/Config.md @@ -0,0 +1,22 @@ +--- +title: Config +description: constructors and methods of type Config +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Config +[Back to types index](index.md) + + + +### Possible values (constructors): + +[config](../constructors/config.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getConfig](../methods/help_getConfig.md) + + + diff --git a/old_docs/API_docs_v91/types/Contact.md b/old_docs/API_docs_v91/types/Contact.md new file mode 100644 index 00000000..b8c9db1a --- /dev/null +++ b/old_docs/API_docs_v91/types/Contact.md @@ -0,0 +1,20 @@ +--- +title: Contact +description: constructors and methods of type Contact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Contact +[Back to types index](index.md) + + + +### Possible values (constructors): + +[contact](../constructors/contact.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ContactBlocked.md b/old_docs/API_docs_v91/types/ContactBlocked.md new file mode 100644 index 00000000..a3384d9a --- /dev/null +++ b/old_docs/API_docs_v91/types/ContactBlocked.md @@ -0,0 +1,20 @@ +--- +title: ContactBlocked +description: constructors and methods of type ContactBlocked +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ContactBlocked +[Back to types index](index.md) + + + +### Possible values (constructors): + +[contactBlocked](../constructors/contactBlocked.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ContactLink.md b/old_docs/API_docs_v91/types/ContactLink.md new file mode 100644 index 00000000..dc0bba05 --- /dev/null +++ b/old_docs/API_docs_v91/types/ContactLink.md @@ -0,0 +1,26 @@ +--- +title: ContactLink +description: constructors and methods of type ContactLink +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ContactLink +[Back to types index](index.md) + + + +### Possible values (constructors): + +[contactLinkUnknown](../constructors/contactLinkUnknown.md) + +[contactLinkNone](../constructors/contactLinkNone.md) + +[contactLinkHasPhone](../constructors/contactLinkHasPhone.md) + +[contactLinkContact](../constructors/contactLinkContact.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ContactStatus.md b/old_docs/API_docs_v91/types/ContactStatus.md new file mode 100644 index 00000000..c5f5d658 --- /dev/null +++ b/old_docs/API_docs_v91/types/ContactStatus.md @@ -0,0 +1,22 @@ +--- +title: ContactStatus +description: constructors and methods of type ContactStatus +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ContactStatus +[Back to types index](index.md) + + + +### Possible values (constructors): + +[contactStatus](../constructors/contactStatus.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->getStatuses](../methods/contacts_getStatuses.md) + + + diff --git a/old_docs/API_docs_v91/types/DataJSON.md b/old_docs/API_docs_v91/types/DataJSON.md new file mode 100644 index 00000000..ad772790 --- /dev/null +++ b/old_docs/API_docs_v91/types/DataJSON.md @@ -0,0 +1,9 @@ +--- +title: DataJSON +description: Any json-encodable data +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: DataJSON +[Back to constructor index](index.md) + +Any json-encodable data. diff --git a/old_docs/API_docs_v91/types/DcOption.md b/old_docs/API_docs_v91/types/DcOption.md new file mode 100644 index 00000000..c621fa1d --- /dev/null +++ b/old_docs/API_docs_v91/types/DcOption.md @@ -0,0 +1,20 @@ +--- +title: DcOption +description: constructors and methods of type DcOption +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: DcOption +[Back to types index](index.md) + + + +### Possible values (constructors): + +[dcOption](../constructors/dcOption.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Dialog.md b/old_docs/API_docs_v91/types/Dialog.md new file mode 100644 index 00000000..f69e3538 --- /dev/null +++ b/old_docs/API_docs_v91/types/Dialog.md @@ -0,0 +1,20 @@ +--- +title: Dialog +description: constructors and methods of type Dialog +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Dialog +[Back to types index](index.md) + + + +### Possible values (constructors): + +[dialog](../constructors/dialog.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/DialogPeer.md b/old_docs/API_docs_v91/types/DialogPeer.md new file mode 100644 index 00000000..77d00a35 --- /dev/null +++ b/old_docs/API_docs_v91/types/DialogPeer.md @@ -0,0 +1,46 @@ +--- +title: DialogPeer +description: constructors and methods of type DialogPeer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: DialogPeer +[Back to types index](index.md) + + + +You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id. + +The following syntaxes can also be used: + +``` +$DialogPeer = '@username'; // Username + +$DialogPeer = 'me'; // The currently logged-in user + +$DialogPeer = 44700; // bot API id (users) +$DialogPeer = -492772765; // bot API id (chats) +$DialogPeer = -10038575794; // bot API id (channels) + +$DialogPeer = 'https://t.me/danogentili'; // t.me URLs +$DialogPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links + +$DialogPeer = 'user#44700'; // tg-cli style id (users) +$DialogPeer = 'chat#492772765'; // tg-cli style id (chats) +$DialogPeer = 'channel#38575794'; // tg-cli style id (channels) +``` + +A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used. + + +### Possible values (constructors): + +[dialogPeer](../constructors/dialogPeer.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getDialogUnreadMarks](../methods/messages_getDialogUnreadMarks.md) + + + diff --git a/old_docs/API_docs_v91/types/Document.md b/old_docs/API_docs_v91/types/Document.md new file mode 100644 index 00000000..f68b7aa4 --- /dev/null +++ b/old_docs/API_docs_v91/types/Document.md @@ -0,0 +1,24 @@ +--- +title: Document +description: constructors and methods of type Document +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Document +[Back to types index](index.md) + + + +### Possible values (constructors): + +[documentEmpty](../constructors/documentEmpty.md) + +[document](../constructors/document.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getDocumentByHash](../methods/messages_getDocumentByHash.md) + + + diff --git a/old_docs/API_docs_v91/types/DocumentAttribute.md b/old_docs/API_docs_v91/types/DocumentAttribute.md new file mode 100644 index 00000000..8a1060c8 --- /dev/null +++ b/old_docs/API_docs_v91/types/DocumentAttribute.md @@ -0,0 +1,32 @@ +--- +title: DocumentAttribute +description: constructors and methods of type DocumentAttribute +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: DocumentAttribute +[Back to types index](index.md) + + + +### Possible values (constructors): + +[documentAttributeImageSize](../constructors/documentAttributeImageSize.md) + +[documentAttributeAnimated](../constructors/documentAttributeAnimated.md) + +[documentAttributeSticker](../constructors/documentAttributeSticker.md) + +[documentAttributeVideo](../constructors/documentAttributeVideo.md) + +[documentAttributeAudio](../constructors/documentAttributeAudio.md) + +[documentAttributeFilename](../constructors/documentAttributeFilename.md) + +[documentAttributeHasStickers](../constructors/documentAttributeHasStickers.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/DraftMessage.md b/old_docs/API_docs_v91/types/DraftMessage.md new file mode 100644 index 00000000..63dd107a --- /dev/null +++ b/old_docs/API_docs_v91/types/DraftMessage.md @@ -0,0 +1,22 @@ +--- +title: DraftMessage +description: constructors and methods of type DraftMessage +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: DraftMessage +[Back to types index](index.md) + + + +### Possible values (constructors): + +[draftMessageEmpty](../constructors/draftMessageEmpty.md) + +[draftMessage](../constructors/draftMessage.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/EncryptedChat.md b/old_docs/API_docs_v91/types/EncryptedChat.md new file mode 100644 index 00000000..fd2277f6 --- /dev/null +++ b/old_docs/API_docs_v91/types/EncryptedChat.md @@ -0,0 +1,32 @@ +--- +title: EncryptedChat +description: constructors and methods of type EncryptedChat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: EncryptedChat +[Back to types index](index.md) + + + +### Possible values (constructors): + +[encryptedChatEmpty](../constructors/encryptedChatEmpty.md) + +[encryptedChatWaiting](../constructors/encryptedChatWaiting.md) + +[encryptedChatRequested](../constructors/encryptedChatRequested.md) + +[encryptedChat](../constructors/encryptedChat.md) + +[encryptedChatDiscarded](../constructors/encryptedChatDiscarded.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->requestEncryption](../methods/messages_requestEncryption.md) + +[$MadelineProto->messages->acceptEncryption](../methods/messages_acceptEncryption.md) + + + diff --git a/old_docs/API_docs_v91/types/EncryptedFile.md b/old_docs/API_docs_v91/types/EncryptedFile.md new file mode 100644 index 00000000..a26d40bb --- /dev/null +++ b/old_docs/API_docs_v91/types/EncryptedFile.md @@ -0,0 +1,24 @@ +--- +title: EncryptedFile +description: constructors and methods of type EncryptedFile +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: EncryptedFile +[Back to types index](index.md) + + + +### Possible values (constructors): + +[encryptedFileEmpty](../constructors/encryptedFileEmpty.md) + +[encryptedFile](../constructors/encryptedFile.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->uploadEncryptedFile](../methods/messages_uploadEncryptedFile.md) + + + diff --git a/old_docs/API_docs_v91/types/EncryptedMessage.md b/old_docs/API_docs_v91/types/EncryptedMessage.md new file mode 100644 index 00000000..f0b54b7e --- /dev/null +++ b/old_docs/API_docs_v91/types/EncryptedMessage.md @@ -0,0 +1,22 @@ +--- +title: EncryptedMessage +description: constructors and methods of type EncryptedMessage +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: EncryptedMessage +[Back to types index](index.md) + + + +### Possible values (constructors): + +[encryptedMessage](../constructors/encryptedMessage.md) + +[encryptedMessageService](../constructors/encryptedMessageService.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Error.md b/old_docs/API_docs_v91/types/Error.md new file mode 100644 index 00000000..245a4f03 --- /dev/null +++ b/old_docs/API_docs_v91/types/Error.md @@ -0,0 +1,20 @@ +--- +title: Error +description: constructors and methods of type Error +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Error +[Back to types index](index.md) + + + +### Possible values (constructors): + +[error](../constructors/error.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ExportedChatInvite.md b/old_docs/API_docs_v91/types/ExportedChatInvite.md new file mode 100644 index 00000000..4213a78f --- /dev/null +++ b/old_docs/API_docs_v91/types/ExportedChatInvite.md @@ -0,0 +1,26 @@ +--- +title: ExportedChatInvite +description: constructors and methods of type ExportedChatInvite +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ExportedChatInvite +[Back to types index](index.md) + + + +### Possible values (constructors): + +[chatInviteEmpty](../constructors/chatInviteEmpty.md) + +[chatInviteExported](../constructors/chatInviteExported.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->exportChatInvite](../methods/messages_exportChatInvite.md) + +[$MadelineProto->channels->exportInvite](../methods/channels_exportInvite.md) + + + diff --git a/old_docs/API_docs_v91/types/ExportedMessageLink.md b/old_docs/API_docs_v91/types/ExportedMessageLink.md new file mode 100644 index 00000000..eb2400f6 --- /dev/null +++ b/old_docs/API_docs_v91/types/ExportedMessageLink.md @@ -0,0 +1,22 @@ +--- +title: ExportedMessageLink +description: constructors and methods of type ExportedMessageLink +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ExportedMessageLink +[Back to types index](index.md) + + + +### Possible values (constructors): + +[exportedMessageLink](../constructors/exportedMessageLink.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->channels->exportMessageLink](../methods/channels_exportMessageLink.md) + + + diff --git a/old_docs/API_docs_v91/types/FileHash.md b/old_docs/API_docs_v91/types/FileHash.md new file mode 100644 index 00000000..3201d7e0 --- /dev/null +++ b/old_docs/API_docs_v91/types/FileHash.md @@ -0,0 +1,26 @@ +--- +title: FileHash +description: constructors and methods of type FileHash +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: FileHash +[Back to types index](index.md) + + + +### Possible values (constructors): + +[fileHash](../constructors/fileHash.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->upload->reuploadCdnFile](../methods/upload_reuploadCdnFile.md) + +[$MadelineProto->upload->getCdnFileHashes](../methods/upload_getCdnFileHashes.md) + +[$MadelineProto->upload->getFileHashes](../methods/upload_getFileHashes.md) + + + diff --git a/old_docs/API_docs_v91/types/FileLocation.md b/old_docs/API_docs_v91/types/FileLocation.md new file mode 100644 index 00000000..e6169428 --- /dev/null +++ b/old_docs/API_docs_v91/types/FileLocation.md @@ -0,0 +1,22 @@ +--- +title: FileLocation +description: constructors and methods of type FileLocation +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: FileLocation +[Back to types index](index.md) + + + +### Possible values (constructors): + +[fileLocationUnavailable](../constructors/fileLocationUnavailable.md) + +[fileLocation](../constructors/fileLocation.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/FoundGif.md b/old_docs/API_docs_v91/types/FoundGif.md new file mode 100644 index 00000000..6085f2a0 --- /dev/null +++ b/old_docs/API_docs_v91/types/FoundGif.md @@ -0,0 +1,22 @@ +--- +title: FoundGif +description: constructors and methods of type FoundGif +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: FoundGif +[Back to types index](index.md) + + + +### Possible values (constructors): + +[foundGif](../constructors/foundGif.md) + +[foundGifCached](../constructors/foundGifCached.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Game.md b/old_docs/API_docs_v91/types/Game.md new file mode 100644 index 00000000..77493a4b --- /dev/null +++ b/old_docs/API_docs_v91/types/Game.md @@ -0,0 +1,20 @@ +--- +title: Game +description: constructors and methods of type Game +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Game +[Back to types index](index.md) + + + +### Possible values (constructors): + +[game](../constructors/game.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/GeoPoint.md b/old_docs/API_docs_v91/types/GeoPoint.md new file mode 100644 index 00000000..13ac6ebb --- /dev/null +++ b/old_docs/API_docs_v91/types/GeoPoint.md @@ -0,0 +1,22 @@ +--- +title: GeoPoint +description: constructors and methods of type GeoPoint +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: GeoPoint +[Back to types index](index.md) + + + +### Possible values (constructors): + +[geoPointEmpty](../constructors/geoPointEmpty.md) + +[geoPoint](../constructors/geoPoint.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/HighScore.md b/old_docs/API_docs_v91/types/HighScore.md new file mode 100644 index 00000000..41e02ee4 --- /dev/null +++ b/old_docs/API_docs_v91/types/HighScore.md @@ -0,0 +1,20 @@ +--- +title: HighScore +description: constructors and methods of type HighScore +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: HighScore +[Back to types index](index.md) + + + +### Possible values (constructors): + +[highScore](../constructors/highScore.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ImportedContact.md b/old_docs/API_docs_v91/types/ImportedContact.md new file mode 100644 index 00000000..35654f72 --- /dev/null +++ b/old_docs/API_docs_v91/types/ImportedContact.md @@ -0,0 +1,20 @@ +--- +title: ImportedContact +description: constructors and methods of type ImportedContact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ImportedContact +[Back to types index](index.md) + + + +### Possible values (constructors): + +[importedContact](../constructors/importedContact.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InlineBotSwitchPM.md b/old_docs/API_docs_v91/types/InlineBotSwitchPM.md new file mode 100644 index 00000000..68c1be35 --- /dev/null +++ b/old_docs/API_docs_v91/types/InlineBotSwitchPM.md @@ -0,0 +1,20 @@ +--- +title: InlineBotSwitchPM +description: constructors and methods of type InlineBotSwitchPM +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InlineBotSwitchPM +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inlineBotSwitchPM](../constructors/inlineBotSwitchPM.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputAppEvent.md b/old_docs/API_docs_v91/types/InputAppEvent.md new file mode 100644 index 00000000..64a2d296 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputAppEvent.md @@ -0,0 +1,20 @@ +--- +title: InputAppEvent +description: constructors and methods of type InputAppEvent +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputAppEvent +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputAppEvent](../constructors/inputAppEvent.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputBotInlineMessage.md b/old_docs/API_docs_v91/types/InputBotInlineMessage.md new file mode 100644 index 00000000..d622b55f --- /dev/null +++ b/old_docs/API_docs_v91/types/InputBotInlineMessage.md @@ -0,0 +1,30 @@ +--- +title: InputBotInlineMessage +description: constructors and methods of type InputBotInlineMessage +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputBotInlineMessage +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputBotInlineMessageMediaAuto](../constructors/inputBotInlineMessageMediaAuto.md) + +[inputBotInlineMessageText](../constructors/inputBotInlineMessageText.md) + +[inputBotInlineMessageMediaGeo](../constructors/inputBotInlineMessageMediaGeo.md) + +[inputBotInlineMessageMediaVenue](../constructors/inputBotInlineMessageMediaVenue.md) + +[inputBotInlineMessageMediaContact](../constructors/inputBotInlineMessageMediaContact.md) + +[inputBotInlineMessageGame](../constructors/inputBotInlineMessageGame.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputBotInlineMessageID.md b/old_docs/API_docs_v91/types/InputBotInlineMessageID.md new file mode 100644 index 00000000..cb1c6783 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputBotInlineMessageID.md @@ -0,0 +1,20 @@ +--- +title: InputBotInlineMessageID +description: constructors and methods of type InputBotInlineMessageID +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputBotInlineMessageID +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputBotInlineMessageID](../constructors/inputBotInlineMessageID.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputBotInlineResult.md b/old_docs/API_docs_v91/types/InputBotInlineResult.md new file mode 100644 index 00000000..0c8d79bc --- /dev/null +++ b/old_docs/API_docs_v91/types/InputBotInlineResult.md @@ -0,0 +1,26 @@ +--- +title: InputBotInlineResult +description: constructors and methods of type InputBotInlineResult +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputBotInlineResult +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputBotInlineResult](../constructors/inputBotInlineResult.md) + +[inputBotInlineResultPhoto](../constructors/inputBotInlineResultPhoto.md) + +[inputBotInlineResultDocument](../constructors/inputBotInlineResultDocument.md) + +[inputBotInlineResultGame](../constructors/inputBotInlineResultGame.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputChannel.md b/old_docs/API_docs_v91/types/InputChannel.md new file mode 100644 index 00000000..3882099d --- /dev/null +++ b/old_docs/API_docs_v91/types/InputChannel.md @@ -0,0 +1,46 @@ +--- +title: InputChannel +description: constructors and methods of type InputChannel +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputChannel +[Back to types index](index.md) + + + +You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id. + +The following syntaxes can also be used: + +``` +$InputChannel = '@username'; // Username + +$InputChannel = 'me'; // The currently logged-in user + +$InputChannel = 44700; // bot API id (users) +$InputChannel = -492772765; // bot API id (chats) +$InputChannel = -10038575794; // bot API id (channels) + +$InputChannel = 'https://t.me/danogentili'; // t.me URLs +$InputChannel = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links + +$InputChannel = 'user#44700'; // tg-cli style id (users) +$InputChannel = 'chat#492772765'; // tg-cli style id (chats) +$InputChannel = 'channel#38575794'; // tg-cli style id (channels) +``` + +A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used. + + +### Possible values (constructors): + +[inputChannelEmpty](../constructors/inputChannelEmpty.md) + +[inputChannel](../constructors/inputChannel.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputChatPhoto.md b/old_docs/API_docs_v91/types/InputChatPhoto.md new file mode 100644 index 00000000..4be81e67 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputChatPhoto.md @@ -0,0 +1,24 @@ +--- +title: InputChatPhoto +description: constructors and methods of type InputChatPhoto +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputChatPhoto +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputChatPhotoEmpty](../constructors/inputChatPhotoEmpty.md) + +[inputChatUploadedPhoto](../constructors/inputChatUploadedPhoto.md) + +[inputChatPhoto](../constructors/inputChatPhoto.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputCheckPasswordSRP.md b/old_docs/API_docs_v91/types/InputCheckPasswordSRP.md new file mode 100644 index 00000000..6e6db00e --- /dev/null +++ b/old_docs/API_docs_v91/types/InputCheckPasswordSRP.md @@ -0,0 +1,22 @@ +--- +title: InputCheckPasswordSRP +description: constructors and methods of type InputCheckPasswordSRP +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputCheckPasswordSRP +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputCheckPasswordEmpty](../constructors/inputCheckPasswordEmpty.md) + +[inputCheckPasswordSRP](../constructors/inputCheckPasswordSRP.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputClientProxy.md b/old_docs/API_docs_v91/types/InputClientProxy.md new file mode 100644 index 00000000..7897a91f --- /dev/null +++ b/old_docs/API_docs_v91/types/InputClientProxy.md @@ -0,0 +1,20 @@ +--- +title: InputClientProxy +description: constructors and methods of type InputClientProxy +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputClientProxy +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputClientProxy](../constructors/inputClientProxy.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputContact.md b/old_docs/API_docs_v91/types/InputContact.md new file mode 100644 index 00000000..10026e98 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputContact.md @@ -0,0 +1,20 @@ +--- +title: InputContact +description: constructors and methods of type InputContact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputContact +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputPhoneContact](../constructors/inputPhoneContact.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputDialogPeer.md b/old_docs/API_docs_v91/types/InputDialogPeer.md new file mode 100644 index 00000000..665ea204 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputDialogPeer.md @@ -0,0 +1,44 @@ +--- +title: InputDialogPeer +description: constructors and methods of type InputDialogPeer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputDialogPeer +[Back to types index](index.md) + + + +You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id. + +The following syntaxes can also be used: + +``` +$InputDialogPeer = '@username'; // Username + +$InputDialogPeer = 'me'; // The currently logged-in user + +$InputDialogPeer = 44700; // bot API id (users) +$InputDialogPeer = -492772765; // bot API id (chats) +$InputDialogPeer = -10038575794; // bot API id (channels) + +$InputDialogPeer = 'https://t.me/danogentili'; // t.me URLs +$InputDialogPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links + +$InputDialogPeer = 'user#44700'; // tg-cli style id (users) +$InputDialogPeer = 'chat#492772765'; // tg-cli style id (chats) +$InputDialogPeer = 'channel#38575794'; // tg-cli style id (channels) +``` + +A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used. + + +### Possible values (constructors): + +[inputDialogPeer](../constructors/inputDialogPeer.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputDocument.md b/old_docs/API_docs_v91/types/InputDocument.md new file mode 100644 index 00000000..1227cd74 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputDocument.md @@ -0,0 +1,24 @@ +--- +title: InputDocument +description: constructors and methods of type InputDocument +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputDocument +[Back to types index](index.md) + + + +You can also provide a [MessageMedia](MessageMedia.md), [Message](Message.md), [Update](Update.md), [Document](Document.md) here, MadelineProto will automatically convert it to the right type. + +### Possible values (constructors): + +[inputDocumentEmpty](../constructors/inputDocumentEmpty.md) + +[inputDocument](../constructors/inputDocument.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputEncryptedChat.md b/old_docs/API_docs_v91/types/InputEncryptedChat.md new file mode 100644 index 00000000..17960951 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputEncryptedChat.md @@ -0,0 +1,29 @@ +--- +title: InputEncryptedChat +description: constructors and methods of type InputEncryptedChat +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputEncryptedChat +[Back to types index](index.md) + + + +You can directly provide the [Update](Update.md) or [EncryptedMessage](EncryptedMessage.md) object here, MadelineProto will automatically extract the destination chat id. + +The following syntax can also be used: + +``` +$InputEncryptedChat = -147286699; // Numeric chat id returned by request_secret_chat, can be positive or negative +``` + + +### Possible values (constructors): + +[inputEncryptedChat](../constructors/inputEncryptedChat.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputEncryptedFile.md b/old_docs/API_docs_v91/types/InputEncryptedFile.md new file mode 100644 index 00000000..cd7f365f --- /dev/null +++ b/old_docs/API_docs_v91/types/InputEncryptedFile.md @@ -0,0 +1,33 @@ +--- +title: InputEncryptedFile +description: constructors and methods of type InputEncryptedFile +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputEncryptedFile +[Back to types index](index.md) + + + +The following syntax can also be used: + +``` +$InputEncryptedFile = 'filename.mp4'; // The file path can also be used +``` + + +### Possible values (constructors): + +[inputEncryptedFileEmpty](../constructors/inputEncryptedFileEmpty.md) + +[inputEncryptedFileUploaded](../constructors/inputEncryptedFileUploaded.md) + +[inputEncryptedFile](../constructors/inputEncryptedFile.md) + +[inputEncryptedFileBigUploaded](../constructors/inputEncryptedFileBigUploaded.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputFile.md b/old_docs/API_docs_v91/types/InputFile.md new file mode 100644 index 00000000..f76612de --- /dev/null +++ b/old_docs/API_docs_v91/types/InputFile.md @@ -0,0 +1,29 @@ +--- +title: InputFile +description: constructors and methods of type InputFile +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputFile +[Back to types index](index.md) + + + +The following syntax can also be used: + +``` +$InputFile = 'filename.mp4'; // The file path can also be used +``` + + +### Possible values (constructors): + +[inputFile](../constructors/inputFile.md) + +[inputFileBig](../constructors/inputFileBig.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputFileLocation.md b/old_docs/API_docs_v91/types/InputFileLocation.md new file mode 100644 index 00000000..451b1a6e --- /dev/null +++ b/old_docs/API_docs_v91/types/InputFileLocation.md @@ -0,0 +1,28 @@ +--- +title: InputFileLocation +description: constructors and methods of type InputFileLocation +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputFileLocation +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputFileLocation](../constructors/inputFileLocation.md) + +[inputEncryptedFileLocation](../constructors/inputEncryptedFileLocation.md) + +[inputDocumentFileLocation](../constructors/inputDocumentFileLocation.md) + +[inputSecureFileLocation](../constructors/inputSecureFileLocation.md) + +[inputTakeoutFileLocation](../constructors/inputTakeoutFileLocation.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputGame.md b/old_docs/API_docs_v91/types/InputGame.md new file mode 100644 index 00000000..604d23fc --- /dev/null +++ b/old_docs/API_docs_v91/types/InputGame.md @@ -0,0 +1,22 @@ +--- +title: InputGame +description: constructors and methods of type InputGame +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputGame +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputGameID](../constructors/inputGameID.md) + +[inputGameShortName](../constructors/inputGameShortName.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputGeoPoint.md b/old_docs/API_docs_v91/types/InputGeoPoint.md new file mode 100644 index 00000000..87ea6c09 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputGeoPoint.md @@ -0,0 +1,22 @@ +--- +title: InputGeoPoint +description: constructors and methods of type InputGeoPoint +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputGeoPoint +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputGeoPointEmpty](../constructors/inputGeoPointEmpty.md) + +[inputGeoPoint](../constructors/inputGeoPoint.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputMedia.md b/old_docs/API_docs_v91/types/InputMedia.md new file mode 100644 index 00000000..71104682 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputMedia.md @@ -0,0 +1,50 @@ +--- +title: InputMedia +description: constructors and methods of type InputMedia +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputMedia +[Back to types index](index.md) + + + +You can also provide a [MessageMedia](MessageMedia.md), [Message](Message.md), [Update](Update.md), [Document](Document.md), [Photo](Photo.md), [InputDocument](InputDocument.md), [InputPhoto](InputPhoto.md) here, MadelineProto will automatically convert it to the right type. + +### Possible values (constructors): + +[inputMediaEmpty](../constructors/inputMediaEmpty.md) + +[inputMediaUploadedPhoto](../constructors/inputMediaUploadedPhoto.md) + +[inputMediaPhoto](../constructors/inputMediaPhoto.md) + +[inputMediaGeoPoint](../constructors/inputMediaGeoPoint.md) + +[inputMediaContact](../constructors/inputMediaContact.md) + +[inputMediaUploadedDocument](../constructors/inputMediaUploadedDocument.md) + +[inputMediaDocument](../constructors/inputMediaDocument.md) + +[inputMediaVenue](../constructors/inputMediaVenue.md) + +[inputMediaGifExternal](../constructors/inputMediaGifExternal.md) + +[inputMediaPhotoExternal](../constructors/inputMediaPhotoExternal.md) + +[inputMediaDocumentExternal](../constructors/inputMediaDocumentExternal.md) + +[inputMediaGame](../constructors/inputMediaGame.md) + +[inputMediaInvoice](../constructors/inputMediaInvoice.md) + +[inputMediaGeoLive](../constructors/inputMediaGeoLive.md) + +[inputMediaPoll](../constructors/inputMediaPoll.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputMessage.md b/old_docs/API_docs_v91/types/InputMessage.md new file mode 100644 index 00000000..075b4f04 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputMessage.md @@ -0,0 +1,31 @@ +--- +title: InputMessage +description: constructors and methods of type InputMessage +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputMessage +[Back to types index](index.md) + + + +The following syntax can also be used: + +``` +$InputMessage = 142; // Numeric message ID +``` + + +### Possible values (constructors): + +[inputMessageID](../constructors/inputMessageID.md) + +[inputMessageReplyTo](../constructors/inputMessageReplyTo.md) + +[inputMessagePinned](../constructors/inputMessagePinned.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputNotifyPeer.md b/old_docs/API_docs_v91/types/InputNotifyPeer.md new file mode 100644 index 00000000..82042c5c --- /dev/null +++ b/old_docs/API_docs_v91/types/InputNotifyPeer.md @@ -0,0 +1,50 @@ +--- +title: InputNotifyPeer +description: constructors and methods of type InputNotifyPeer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputNotifyPeer +[Back to types index](index.md) + + + +You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id. + +The following syntaxes can also be used: + +``` +$InputNotifyPeer = '@username'; // Username + +$InputNotifyPeer = 'me'; // The currently logged-in user + +$InputNotifyPeer = 44700; // bot API id (users) +$InputNotifyPeer = -492772765; // bot API id (chats) +$InputNotifyPeer = -10038575794; // bot API id (channels) + +$InputNotifyPeer = 'https://t.me/danogentili'; // t.me URLs +$InputNotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links + +$InputNotifyPeer = 'user#44700'; // tg-cli style id (users) +$InputNotifyPeer = 'chat#492772765'; // tg-cli style id (chats) +$InputNotifyPeer = 'channel#38575794'; // tg-cli style id (channels) +``` + +A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used. + + +### Possible values (constructors): + +[inputNotifyPeer](../constructors/inputNotifyPeer.md) + +[inputNotifyUsers](../constructors/inputNotifyUsers.md) + +[inputNotifyChats](../constructors/inputNotifyChats.md) + +[inputNotifyBroadcasts](../constructors/inputNotifyBroadcasts.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputPaymentCredentials.md b/old_docs/API_docs_v91/types/InputPaymentCredentials.md new file mode 100644 index 00000000..78374c45 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputPaymentCredentials.md @@ -0,0 +1,26 @@ +--- +title: InputPaymentCredentials +description: constructors and methods of type InputPaymentCredentials +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputPaymentCredentials +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputPaymentCredentialsSaved](../constructors/inputPaymentCredentialsSaved.md) + +[inputPaymentCredentials](../constructors/inputPaymentCredentials.md) + +[inputPaymentCredentialsApplePay](../constructors/inputPaymentCredentialsApplePay.md) + +[inputPaymentCredentialsAndroidPay](../constructors/inputPaymentCredentialsAndroidPay.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputPeer.md b/old_docs/API_docs_v91/types/InputPeer.md new file mode 100644 index 00000000..2076c00b --- /dev/null +++ b/old_docs/API_docs_v91/types/InputPeer.md @@ -0,0 +1,52 @@ +--- +title: InputPeer +description: constructors and methods of type InputPeer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputPeer +[Back to types index](index.md) + + + +You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id. + +The following syntaxes can also be used: + +``` +$InputPeer = '@username'; // Username + +$InputPeer = 'me'; // The currently logged-in user + +$InputPeer = 44700; // bot API id (users) +$InputPeer = -492772765; // bot API id (chats) +$InputPeer = -10038575794; // bot API id (channels) + +$InputPeer = 'https://t.me/danogentili'; // t.me URLs +$InputPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links + +$InputPeer = 'user#44700'; // tg-cli style id (users) +$InputPeer = 'chat#492772765'; // tg-cli style id (chats) +$InputPeer = 'channel#38575794'; // tg-cli style id (channels) +``` + +A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used. + + +### Possible values (constructors): + +[inputPeerEmpty](../constructors/inputPeerEmpty.md) + +[inputPeerSelf](../constructors/inputPeerSelf.md) + +[inputPeerChat](../constructors/inputPeerChat.md) + +[inputPeerUser](../constructors/inputPeerUser.md) + +[inputPeerChannel](../constructors/inputPeerChannel.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputPeerNotifySettings.md b/old_docs/API_docs_v91/types/InputPeerNotifySettings.md new file mode 100644 index 00000000..47645252 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputPeerNotifySettings.md @@ -0,0 +1,20 @@ +--- +title: InputPeerNotifySettings +description: constructors and methods of type InputPeerNotifySettings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputPeerNotifySettings +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputPeerNotifySettings](../constructors/inputPeerNotifySettings.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputPhoneCall.md b/old_docs/API_docs_v91/types/InputPhoneCall.md new file mode 100644 index 00000000..3203aff9 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputPhoneCall.md @@ -0,0 +1,20 @@ +--- +title: InputPhoneCall +description: constructors and methods of type InputPhoneCall +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputPhoneCall +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputPhoneCall](../constructors/inputPhoneCall.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputPhoto.md b/old_docs/API_docs_v91/types/InputPhoto.md new file mode 100644 index 00000000..fbad241d --- /dev/null +++ b/old_docs/API_docs_v91/types/InputPhoto.md @@ -0,0 +1,24 @@ +--- +title: InputPhoto +description: constructors and methods of type InputPhoto +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputPhoto +[Back to types index](index.md) + + + +You can also provide a [MessageMedia](MessageMedia.md), [Message](Message.md), [Update](Update.md), [Photo](Photo.md) here, MadelineProto will automatically convert it to the right type. + +### Possible values (constructors): + +[inputPhotoEmpty](../constructors/inputPhotoEmpty.md) + +[inputPhoto](../constructors/inputPhoto.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputPrivacyKey.md b/old_docs/API_docs_v91/types/InputPrivacyKey.md new file mode 100644 index 00000000..ce62f805 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputPrivacyKey.md @@ -0,0 +1,26 @@ +--- +title: InputPrivacyKey +description: constructors and methods of type InputPrivacyKey +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputPrivacyKey +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputPrivacyKeyStatusTimestamp](../constructors/inputPrivacyKeyStatusTimestamp.md) + +[inputPrivacyKeyChatInvite](../constructors/inputPrivacyKeyChatInvite.md) + +[inputPrivacyKeyPhoneCall](../constructors/inputPrivacyKeyPhoneCall.md) + +[inputPrivacyKeyPhoneP2P](../constructors/inputPrivacyKeyPhoneP2P.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputPrivacyRule.md b/old_docs/API_docs_v91/types/InputPrivacyRule.md new file mode 100644 index 00000000..92abf96f --- /dev/null +++ b/old_docs/API_docs_v91/types/InputPrivacyRule.md @@ -0,0 +1,30 @@ +--- +title: InputPrivacyRule +description: constructors and methods of type InputPrivacyRule +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputPrivacyRule +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputPrivacyValueAllowContacts](../constructors/inputPrivacyValueAllowContacts.md) + +[inputPrivacyValueAllowAll](../constructors/inputPrivacyValueAllowAll.md) + +[inputPrivacyValueAllowUsers](../constructors/inputPrivacyValueAllowUsers.md) + +[inputPrivacyValueDisallowContacts](../constructors/inputPrivacyValueDisallowContacts.md) + +[inputPrivacyValueDisallowAll](../constructors/inputPrivacyValueDisallowAll.md) + +[inputPrivacyValueDisallowUsers](../constructors/inputPrivacyValueDisallowUsers.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputSecureFile.md b/old_docs/API_docs_v91/types/InputSecureFile.md new file mode 100644 index 00000000..1ee36428 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputSecureFile.md @@ -0,0 +1,22 @@ +--- +title: InputSecureFile +description: constructors and methods of type InputSecureFile +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputSecureFile +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputSecureFileUploaded](../constructors/inputSecureFileUploaded.md) + +[inputSecureFile](../constructors/inputSecureFile.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputSecureValue.md b/old_docs/API_docs_v91/types/InputSecureValue.md new file mode 100644 index 00000000..c99a7ab4 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputSecureValue.md @@ -0,0 +1,20 @@ +--- +title: InputSecureValue +description: constructors and methods of type InputSecureValue +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputSecureValue +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputSecureValue](../constructors/inputSecureValue.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputSingleMedia.md b/old_docs/API_docs_v91/types/InputSingleMedia.md new file mode 100644 index 00000000..db24c669 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputSingleMedia.md @@ -0,0 +1,20 @@ +--- +title: InputSingleMedia +description: constructors and methods of type InputSingleMedia +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputSingleMedia +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputSingleMedia](../constructors/inputSingleMedia.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputStickerSet.md b/old_docs/API_docs_v91/types/InputStickerSet.md new file mode 100644 index 00000000..4ab0897c --- /dev/null +++ b/old_docs/API_docs_v91/types/InputStickerSet.md @@ -0,0 +1,24 @@ +--- +title: InputStickerSet +description: constructors and methods of type InputStickerSet +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputStickerSet +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputStickerSetEmpty](../constructors/inputStickerSetEmpty.md) + +[inputStickerSetID](../constructors/inputStickerSetID.md) + +[inputStickerSetShortName](../constructors/inputStickerSetShortName.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputStickerSetItem.md b/old_docs/API_docs_v91/types/InputStickerSetItem.md new file mode 100644 index 00000000..da3e5a74 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputStickerSetItem.md @@ -0,0 +1,20 @@ +--- +title: InputStickerSetItem +description: constructors and methods of type InputStickerSetItem +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputStickerSetItem +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputStickerSetItem](../constructors/inputStickerSetItem.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputStickeredMedia.md b/old_docs/API_docs_v91/types/InputStickeredMedia.md new file mode 100644 index 00000000..a93a406a --- /dev/null +++ b/old_docs/API_docs_v91/types/InputStickeredMedia.md @@ -0,0 +1,22 @@ +--- +title: InputStickeredMedia +description: constructors and methods of type InputStickeredMedia +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputStickeredMedia +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputStickeredMediaPhoto](../constructors/inputStickeredMediaPhoto.md) + +[inputStickeredMediaDocument](../constructors/inputStickeredMediaDocument.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputUser.md b/old_docs/API_docs_v91/types/InputUser.md new file mode 100644 index 00000000..7778caf6 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputUser.md @@ -0,0 +1,48 @@ +--- +title: InputUser +description: constructors and methods of type InputUser +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputUser +[Back to types index](index.md) + + + +You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id. + +The following syntaxes can also be used: + +``` +$InputUser = '@username'; // Username + +$InputUser = 'me'; // The currently logged-in user + +$InputUser = 44700; // bot API id (users) +$InputUser = -492772765; // bot API id (chats) +$InputUser = -10038575794; // bot API id (channels) + +$InputUser = 'https://t.me/danogentili'; // t.me URLs +$InputUser = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links + +$InputUser = 'user#44700'; // tg-cli style id (users) +$InputUser = 'chat#492772765'; // tg-cli style id (chats) +$InputUser = 'channel#38575794'; // tg-cli style id (channels) +``` + +A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used. + + +### Possible values (constructors): + +[inputUserEmpty](../constructors/inputUserEmpty.md) + +[inputUserSelf](../constructors/inputUserSelf.md) + +[inputUser](../constructors/inputUser.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputWebDocument.md b/old_docs/API_docs_v91/types/InputWebDocument.md new file mode 100644 index 00000000..f6a5f1b2 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputWebDocument.md @@ -0,0 +1,20 @@ +--- +title: InputWebDocument +description: constructors and methods of type InputWebDocument +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputWebDocument +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputWebDocument](../constructors/inputWebDocument.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/InputWebFileLocation.md b/old_docs/API_docs_v91/types/InputWebFileLocation.md new file mode 100644 index 00000000..c5f2f476 --- /dev/null +++ b/old_docs/API_docs_v91/types/InputWebFileLocation.md @@ -0,0 +1,22 @@ +--- +title: InputWebFileLocation +description: constructors and methods of type InputWebFileLocation +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: InputWebFileLocation +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputWebFileLocation](../constructors/inputWebFileLocation.md) + +[inputWebFileGeoPointLocation](../constructors/inputWebFileGeoPointLocation.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Invoice.md b/old_docs/API_docs_v91/types/Invoice.md new file mode 100644 index 00000000..34f688e5 --- /dev/null +++ b/old_docs/API_docs_v91/types/Invoice.md @@ -0,0 +1,20 @@ +--- +title: Invoice +description: constructors and methods of type Invoice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Invoice +[Back to types index](index.md) + + + +### Possible values (constructors): + +[invoice](../constructors/invoice.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/IpPort.md b/old_docs/API_docs_v91/types/IpPort.md new file mode 100644 index 00000000..91e0cb84 --- /dev/null +++ b/old_docs/API_docs_v91/types/IpPort.md @@ -0,0 +1,22 @@ +--- +title: IpPort +description: constructors and methods of type IpPort +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: IpPort +[Back to types index](index.md) + + + +### Possible values (constructors): + +[ipPort](../constructors/ipPort.md) + +[ipPortSecret](../constructors/ipPortSecret.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/JSONObjectValue.md b/old_docs/API_docs_v91/types/JSONObjectValue.md new file mode 100644 index 00000000..408c4aaa --- /dev/null +++ b/old_docs/API_docs_v91/types/JSONObjectValue.md @@ -0,0 +1,20 @@ +--- +title: JSONObjectValue +description: constructors and methods of type JSONObjectValue +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: JSONObjectValue +[Back to types index](index.md) + + + +### Possible values (constructors): + +[jsonObjectValue](../constructors/jsonObjectValue.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/JSONValue.md b/old_docs/API_docs_v91/types/JSONValue.md new file mode 100644 index 00000000..eed45486 --- /dev/null +++ b/old_docs/API_docs_v91/types/JSONValue.md @@ -0,0 +1,32 @@ +--- +title: JSONValue +description: constructors and methods of type JSONValue +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: JSONValue +[Back to types index](index.md) + + + +### Possible values (constructors): + +[jsonNull](../constructors/jsonNull.md) + +[jsonBool](../constructors/jsonBool.md) + +[jsonNumber](../constructors/jsonNumber.md) + +[jsonString](../constructors/jsonString.md) + +[jsonArray](../constructors/jsonArray.md) + +[jsonObject](../constructors/jsonObject.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getAppConfig](../methods/help_getAppConfig.md) + + + diff --git a/old_docs/API_docs_v91/types/KeyboardButton.md b/old_docs/API_docs_v91/types/KeyboardButton.md new file mode 100644 index 00000000..ac4b9e1e --- /dev/null +++ b/old_docs/API_docs_v91/types/KeyboardButton.md @@ -0,0 +1,55 @@ +--- +title: KeyboardButton +description: constructors and methods of type KeyboardButton +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: KeyboardButton +[Back to types index](index.md) + + + +Clicking these buttons: + +To click these buttons simply run the `click` method: + +``` +$result = $KeyboardButton->click(); +``` + +`$result` can be one of the following: + + +* A string - If the button is a keyboardButtonUrl + +* [Updates](Updates.md) - If the button is a keyboardButton, the message will be sent to the chat, in reply to the message with the keyboard + +* [messages_BotCallbackAnswer](messages_BotCallbackAnswer.md) - If the button is a keyboardButtonCallback or a keyboardButtonGame the button will be pressed and the result will be returned + +* `false` - If the button is an unsupported button, like keyboardButtonRequestPhone, keyboardButtonRequestGeoLocation, keyboardButtonSwitchInlinekeyboardButtonBuy; you will have to parse data from these buttons manually + + +You can also access the properties of the constructor as a normal array, for example $button['name'] +### Possible values (constructors): + +[keyboardButton](../constructors/keyboardButton.md) + +[keyboardButtonUrl](../constructors/keyboardButtonUrl.md) + +[keyboardButtonCallback](../constructors/keyboardButtonCallback.md) + +[keyboardButtonRequestPhone](../constructors/keyboardButtonRequestPhone.md) + +[keyboardButtonRequestGeoLocation](../constructors/keyboardButtonRequestGeoLocation.md) + +[keyboardButtonSwitchInline](../constructors/keyboardButtonSwitchInline.md) + +[keyboardButtonGame](../constructors/keyboardButtonGame.md) + +[keyboardButtonBuy](../constructors/keyboardButtonBuy.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/KeyboardButtonRow.md b/old_docs/API_docs_v91/types/KeyboardButtonRow.md new file mode 100644 index 00000000..03bf724e --- /dev/null +++ b/old_docs/API_docs_v91/types/KeyboardButtonRow.md @@ -0,0 +1,20 @@ +--- +title: KeyboardButtonRow +description: constructors and methods of type KeyboardButtonRow +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: KeyboardButtonRow +[Back to types index](index.md) + + + +### Possible values (constructors): + +[keyboardButtonRow](../constructors/keyboardButtonRow.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/LabeledPrice.md b/old_docs/API_docs_v91/types/LabeledPrice.md new file mode 100644 index 00000000..c2c91c3a --- /dev/null +++ b/old_docs/API_docs_v91/types/LabeledPrice.md @@ -0,0 +1,20 @@ +--- +title: LabeledPrice +description: constructors and methods of type LabeledPrice +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: LabeledPrice +[Back to types index](index.md) + + + +### Possible values (constructors): + +[labeledPrice](../constructors/labeledPrice.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/LangPackDifference.md b/old_docs/API_docs_v91/types/LangPackDifference.md new file mode 100644 index 00000000..fd9f41f2 --- /dev/null +++ b/old_docs/API_docs_v91/types/LangPackDifference.md @@ -0,0 +1,24 @@ +--- +title: LangPackDifference +description: constructors and methods of type LangPackDifference +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: LangPackDifference +[Back to types index](index.md) + + + +### Possible values (constructors): + +[langPackDifference](../constructors/langPackDifference.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->langpack->getLangPack](../methods/langpack_getLangPack.md) + +[$MadelineProto->langpack->getDifference](../methods/langpack_getDifference.md) + + + diff --git a/old_docs/API_docs_v91/types/LangPackLanguage.md b/old_docs/API_docs_v91/types/LangPackLanguage.md new file mode 100644 index 00000000..f6559af9 --- /dev/null +++ b/old_docs/API_docs_v91/types/LangPackLanguage.md @@ -0,0 +1,24 @@ +--- +title: LangPackLanguage +description: constructors and methods of type LangPackLanguage +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: LangPackLanguage +[Back to types index](index.md) + + + +### Possible values (constructors): + +[langPackLanguage](../constructors/langPackLanguage.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->langpack->getLanguages](../methods/langpack_getLanguages.md) + +[$MadelineProto->langpack->getLanguage](../methods/langpack_getLanguage.md) + + + diff --git a/old_docs/API_docs_v91/types/LangPackString.md b/old_docs/API_docs_v91/types/LangPackString.md new file mode 100644 index 00000000..f1a43dd9 --- /dev/null +++ b/old_docs/API_docs_v91/types/LangPackString.md @@ -0,0 +1,26 @@ +--- +title: LangPackString +description: constructors and methods of type LangPackString +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: LangPackString +[Back to types index](index.md) + + + +### Possible values (constructors): + +[langPackString](../constructors/langPackString.md) + +[langPackStringPluralized](../constructors/langPackStringPluralized.md) + +[langPackStringDeleted](../constructors/langPackStringDeleted.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->langpack->getStrings](../methods/langpack_getStrings.md) + + + diff --git a/old_docs/API_docs_v91/types/MaskCoords.md b/old_docs/API_docs_v91/types/MaskCoords.md new file mode 100644 index 00000000..23d9fa75 --- /dev/null +++ b/old_docs/API_docs_v91/types/MaskCoords.md @@ -0,0 +1,20 @@ +--- +title: MaskCoords +description: constructors and methods of type MaskCoords +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: MaskCoords +[Back to types index](index.md) + + + +### Possible values (constructors): + +[maskCoords](../constructors/maskCoords.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Message.md b/old_docs/API_docs_v91/types/Message.md new file mode 100644 index 00000000..b306c73c --- /dev/null +++ b/old_docs/API_docs_v91/types/Message.md @@ -0,0 +1,24 @@ +--- +title: Message +description: constructors and methods of type Message +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Message +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messageEmpty](../constructors/messageEmpty.md) + +[message](../constructors/message.md) + +[messageService](../constructors/messageService.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/MessageAction.md b/old_docs/API_docs_v91/types/MessageAction.md new file mode 100644 index 00000000..979938c8 --- /dev/null +++ b/old_docs/API_docs_v91/types/MessageAction.md @@ -0,0 +1,64 @@ +--- +title: MessageAction +description: constructors and methods of type MessageAction +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: MessageAction +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messageActionEmpty](../constructors/messageActionEmpty.md) + +[messageActionChatCreate](../constructors/messageActionChatCreate.md) + +[messageActionChatEditTitle](../constructors/messageActionChatEditTitle.md) + +[messageActionChatEditPhoto](../constructors/messageActionChatEditPhoto.md) + +[messageActionChatDeletePhoto](../constructors/messageActionChatDeletePhoto.md) + +[messageActionChatAddUser](../constructors/messageActionChatAddUser.md) + +[messageActionChatDeleteUser](../constructors/messageActionChatDeleteUser.md) + +[messageActionChatJoinedByLink](../constructors/messageActionChatJoinedByLink.md) + +[messageActionChannelCreate](../constructors/messageActionChannelCreate.md) + +[messageActionChatMigrateTo](../constructors/messageActionChatMigrateTo.md) + +[messageActionChannelMigrateFrom](../constructors/messageActionChannelMigrateFrom.md) + +[messageActionPinMessage](../constructors/messageActionPinMessage.md) + +[messageActionHistoryClear](../constructors/messageActionHistoryClear.md) + +[messageActionGameScore](../constructors/messageActionGameScore.md) + +[messageActionPaymentSentMe](../constructors/messageActionPaymentSentMe.md) + +[messageActionPaymentSent](../constructors/messageActionPaymentSent.md) + +[messageActionPhoneCall](../constructors/messageActionPhoneCall.md) + +[messageActionScreenshotTaken](../constructors/messageActionScreenshotTaken.md) + +[messageActionCustomAction](../constructors/messageActionCustomAction.md) + +[messageActionBotAllowed](../constructors/messageActionBotAllowed.md) + +[messageActionSecureValuesSentMe](../constructors/messageActionSecureValuesSentMe.md) + +[messageActionSecureValuesSent](../constructors/messageActionSecureValuesSent.md) + +[messageActionContactSignUp](../constructors/messageActionContactSignUp.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/MessageEntity.md b/old_docs/API_docs_v91/types/MessageEntity.md new file mode 100644 index 00000000..ae789cb5 --- /dev/null +++ b/old_docs/API_docs_v91/types/MessageEntity.md @@ -0,0 +1,48 @@ +--- +title: MessageEntity +description: constructors and methods of type MessageEntity +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: MessageEntity +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messageEntityUnknown](../constructors/messageEntityUnknown.md) + +[messageEntityMention](../constructors/messageEntityMention.md) + +[messageEntityHashtag](../constructors/messageEntityHashtag.md) + +[messageEntityBotCommand](../constructors/messageEntityBotCommand.md) + +[messageEntityUrl](../constructors/messageEntityUrl.md) + +[messageEntityEmail](../constructors/messageEntityEmail.md) + +[messageEntityBold](../constructors/messageEntityBold.md) + +[messageEntityItalic](../constructors/messageEntityItalic.md) + +[messageEntityCode](../constructors/messageEntityCode.md) + +[messageEntityPre](../constructors/messageEntityPre.md) + +[messageEntityTextUrl](../constructors/messageEntityTextUrl.md) + +[messageEntityMentionName](../constructors/messageEntityMentionName.md) + +[inputMessageEntityMentionName](../constructors/inputMessageEntityMentionName.md) + +[messageEntityPhone](../constructors/messageEntityPhone.md) + +[messageEntityCashtag](../constructors/messageEntityCashtag.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/MessageFwdHeader.md b/old_docs/API_docs_v91/types/MessageFwdHeader.md new file mode 100644 index 00000000..aa92c6a5 --- /dev/null +++ b/old_docs/API_docs_v91/types/MessageFwdHeader.md @@ -0,0 +1,20 @@ +--- +title: MessageFwdHeader +description: constructors and methods of type MessageFwdHeader +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: MessageFwdHeader +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messageFwdHeader](../constructors/messageFwdHeader.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/MessageMedia.md b/old_docs/API_docs_v91/types/MessageMedia.md new file mode 100644 index 00000000..51aa795e --- /dev/null +++ b/old_docs/API_docs_v91/types/MessageMedia.md @@ -0,0 +1,46 @@ +--- +title: MessageMedia +description: constructors and methods of type MessageMedia +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: MessageMedia +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messageMediaEmpty](../constructors/messageMediaEmpty.md) + +[messageMediaPhoto](../constructors/messageMediaPhoto.md) + +[messageMediaGeo](../constructors/messageMediaGeo.md) + +[messageMediaContact](../constructors/messageMediaContact.md) + +[messageMediaUnsupported](../constructors/messageMediaUnsupported.md) + +[messageMediaDocument](../constructors/messageMediaDocument.md) + +[messageMediaWebPage](../constructors/messageMediaWebPage.md) + +[messageMediaVenue](../constructors/messageMediaVenue.md) + +[messageMediaGame](../constructors/messageMediaGame.md) + +[messageMediaInvoice](../constructors/messageMediaInvoice.md) + +[messageMediaGeoLive](../constructors/messageMediaGeoLive.md) + +[messageMediaPoll](../constructors/messageMediaPoll.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getWebPagePreview](../methods/messages_getWebPagePreview.md) + +[$MadelineProto->messages->uploadMedia](../methods/messages_uploadMedia.md) + + + diff --git a/old_docs/API_docs_v91/types/MessageRange.md b/old_docs/API_docs_v91/types/MessageRange.md new file mode 100644 index 00000000..c93011aa --- /dev/null +++ b/old_docs/API_docs_v91/types/MessageRange.md @@ -0,0 +1,22 @@ +--- +title: MessageRange +description: constructors and methods of type MessageRange +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: MessageRange +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messageRange](../constructors/messageRange.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getSplitRanges](../methods/messages_getSplitRanges.md) + + + diff --git a/old_docs/API_docs_v91/types/MessagesFilter.md b/old_docs/API_docs_v91/types/MessagesFilter.md new file mode 100644 index 00000000..117fbfe3 --- /dev/null +++ b/old_docs/API_docs_v91/types/MessagesFilter.md @@ -0,0 +1,50 @@ +--- +title: MessagesFilter +description: constructors and methods of type MessagesFilter +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: MessagesFilter +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputMessagesFilterEmpty](../constructors/inputMessagesFilterEmpty.md) + +[inputMessagesFilterPhotos](../constructors/inputMessagesFilterPhotos.md) + +[inputMessagesFilterVideo](../constructors/inputMessagesFilterVideo.md) + +[inputMessagesFilterPhotoVideo](../constructors/inputMessagesFilterPhotoVideo.md) + +[inputMessagesFilterDocument](../constructors/inputMessagesFilterDocument.md) + +[inputMessagesFilterUrl](../constructors/inputMessagesFilterUrl.md) + +[inputMessagesFilterGif](../constructors/inputMessagesFilterGif.md) + +[inputMessagesFilterVoice](../constructors/inputMessagesFilterVoice.md) + +[inputMessagesFilterMusic](../constructors/inputMessagesFilterMusic.md) + +[inputMessagesFilterChatPhotos](../constructors/inputMessagesFilterChatPhotos.md) + +[inputMessagesFilterPhoneCalls](../constructors/inputMessagesFilterPhoneCalls.md) + +[inputMessagesFilterRoundVoice](../constructors/inputMessagesFilterRoundVoice.md) + +[inputMessagesFilterRoundVideo](../constructors/inputMessagesFilterRoundVideo.md) + +[inputMessagesFilterMyMentions](../constructors/inputMessagesFilterMyMentions.md) + +[inputMessagesFilterGeo](../constructors/inputMessagesFilterGeo.md) + +[inputMessagesFilterContacts](../constructors/inputMessagesFilterContacts.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/NearestDc.md b/old_docs/API_docs_v91/types/NearestDc.md new file mode 100644 index 00000000..31f24377 --- /dev/null +++ b/old_docs/API_docs_v91/types/NearestDc.md @@ -0,0 +1,22 @@ +--- +title: NearestDc +description: constructors and methods of type NearestDc +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: NearestDc +[Back to types index](index.md) + + + +### Possible values (constructors): + +[nearestDc](../constructors/nearestDc.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getNearestDc](../methods/help_getNearestDc.md) + + + diff --git a/old_docs/API_docs_v91/types/NotifyPeer.md b/old_docs/API_docs_v91/types/NotifyPeer.md new file mode 100644 index 00000000..5af09840 --- /dev/null +++ b/old_docs/API_docs_v91/types/NotifyPeer.md @@ -0,0 +1,50 @@ +--- +title: NotifyPeer +description: constructors and methods of type NotifyPeer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: NotifyPeer +[Back to types index](index.md) + + + +You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id. + +The following syntaxes can also be used: + +``` +$NotifyPeer = '@username'; // Username + +$NotifyPeer = 'me'; // The currently logged-in user + +$NotifyPeer = 44700; // bot API id (users) +$NotifyPeer = -492772765; // bot API id (chats) +$NotifyPeer = -10038575794; // bot API id (channels) + +$NotifyPeer = 'https://t.me/danogentili'; // t.me URLs +$NotifyPeer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links + +$NotifyPeer = 'user#44700'; // tg-cli style id (users) +$NotifyPeer = 'chat#492772765'; // tg-cli style id (chats) +$NotifyPeer = 'channel#38575794'; // tg-cli style id (channels) +``` + +A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used. + + +### Possible values (constructors): + +[notifyPeer](../constructors/notifyPeer.md) + +[notifyUsers](../constructors/notifyUsers.md) + +[notifyChats](../constructors/notifyChats.md) + +[notifyBroadcasts](../constructors/notifyBroadcasts.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Null.md b/old_docs/API_docs_v91/types/Null.md new file mode 100644 index 00000000..58d38809 --- /dev/null +++ b/old_docs/API_docs_v91/types/Null.md @@ -0,0 +1,20 @@ +--- +title: Null +description: constructors and methods of type Null +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Null +[Back to types index](index.md) + + + +### Possible values (constructors): + +[null](../constructors/null.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Page.md b/old_docs/API_docs_v91/types/Page.md new file mode 100644 index 00000000..cb473261 --- /dev/null +++ b/old_docs/API_docs_v91/types/Page.md @@ -0,0 +1,20 @@ +--- +title: Page +description: constructors and methods of type Page +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Page +[Back to types index](index.md) + + + +### Possible values (constructors): + +[page](../constructors/page.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PageBlock.md b/old_docs/API_docs_v91/types/PageBlock.md new file mode 100644 index 00000000..769c5a9e --- /dev/null +++ b/old_docs/API_docs_v91/types/PageBlock.md @@ -0,0 +1,76 @@ +--- +title: PageBlock +description: constructors and methods of type PageBlock +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PageBlock +[Back to types index](index.md) + + + +### Possible values (constructors): + +[pageBlockUnsupported](../constructors/pageBlockUnsupported.md) + +[pageBlockTitle](../constructors/pageBlockTitle.md) + +[pageBlockSubtitle](../constructors/pageBlockSubtitle.md) + +[pageBlockAuthorDate](../constructors/pageBlockAuthorDate.md) + +[pageBlockHeader](../constructors/pageBlockHeader.md) + +[pageBlockSubheader](../constructors/pageBlockSubheader.md) + +[pageBlockParagraph](../constructors/pageBlockParagraph.md) + +[pageBlockPreformatted](../constructors/pageBlockPreformatted.md) + +[pageBlockFooter](../constructors/pageBlockFooter.md) + +[pageBlockDivider](../constructors/pageBlockDivider.md) + +[pageBlockAnchor](../constructors/pageBlockAnchor.md) + +[pageBlockList](../constructors/pageBlockList.md) + +[pageBlockBlockquote](../constructors/pageBlockBlockquote.md) + +[pageBlockPullquote](../constructors/pageBlockPullquote.md) + +[pageBlockPhoto](../constructors/pageBlockPhoto.md) + +[pageBlockVideo](../constructors/pageBlockVideo.md) + +[pageBlockCover](../constructors/pageBlockCover.md) + +[pageBlockEmbed](../constructors/pageBlockEmbed.md) + +[pageBlockEmbedPost](../constructors/pageBlockEmbedPost.md) + +[pageBlockCollage](../constructors/pageBlockCollage.md) + +[pageBlockSlideshow](../constructors/pageBlockSlideshow.md) + +[pageBlockChannel](../constructors/pageBlockChannel.md) + +[pageBlockAudio](../constructors/pageBlockAudio.md) + +[pageBlockKicker](../constructors/pageBlockKicker.md) + +[pageBlockTable](../constructors/pageBlockTable.md) + +[pageBlockOrderedList](../constructors/pageBlockOrderedList.md) + +[pageBlockDetails](../constructors/pageBlockDetails.md) + +[pageBlockRelatedArticles](../constructors/pageBlockRelatedArticles.md) + +[pageBlockMap](../constructors/pageBlockMap.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PageCaption.md b/old_docs/API_docs_v91/types/PageCaption.md new file mode 100644 index 00000000..e70c51f4 --- /dev/null +++ b/old_docs/API_docs_v91/types/PageCaption.md @@ -0,0 +1,20 @@ +--- +title: PageCaption +description: constructors and methods of type PageCaption +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PageCaption +[Back to types index](index.md) + + + +### Possible values (constructors): + +[pageCaption](../constructors/pageCaption.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PageListItem.md b/old_docs/API_docs_v91/types/PageListItem.md new file mode 100644 index 00000000..f7f3294e --- /dev/null +++ b/old_docs/API_docs_v91/types/PageListItem.md @@ -0,0 +1,22 @@ +--- +title: PageListItem +description: constructors and methods of type PageListItem +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PageListItem +[Back to types index](index.md) + + + +### Possible values (constructors): + +[pageListItemText](../constructors/pageListItemText.md) + +[pageListItemBlocks](../constructors/pageListItemBlocks.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PageListOrderedItem.md b/old_docs/API_docs_v91/types/PageListOrderedItem.md new file mode 100644 index 00000000..559ae9cb --- /dev/null +++ b/old_docs/API_docs_v91/types/PageListOrderedItem.md @@ -0,0 +1,22 @@ +--- +title: PageListOrderedItem +description: constructors and methods of type PageListOrderedItem +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PageListOrderedItem +[Back to types index](index.md) + + + +### Possible values (constructors): + +[pageListOrderedItemText](../constructors/pageListOrderedItemText.md) + +[pageListOrderedItemBlocks](../constructors/pageListOrderedItemBlocks.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PageRelatedArticle.md b/old_docs/API_docs_v91/types/PageRelatedArticle.md new file mode 100644 index 00000000..c7baf985 --- /dev/null +++ b/old_docs/API_docs_v91/types/PageRelatedArticle.md @@ -0,0 +1,20 @@ +--- +title: PageRelatedArticle +description: constructors and methods of type PageRelatedArticle +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PageRelatedArticle +[Back to types index](index.md) + + + +### Possible values (constructors): + +[pageRelatedArticle](../constructors/pageRelatedArticle.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PageTableCell.md b/old_docs/API_docs_v91/types/PageTableCell.md new file mode 100644 index 00000000..59e930df --- /dev/null +++ b/old_docs/API_docs_v91/types/PageTableCell.md @@ -0,0 +1,20 @@ +--- +title: PageTableCell +description: constructors and methods of type PageTableCell +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PageTableCell +[Back to types index](index.md) + + + +### Possible values (constructors): + +[pageTableCell](../constructors/pageTableCell.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PageTableRow.md b/old_docs/API_docs_v91/types/PageTableRow.md new file mode 100644 index 00000000..c0f21686 --- /dev/null +++ b/old_docs/API_docs_v91/types/PageTableRow.md @@ -0,0 +1,20 @@ +--- +title: PageTableRow +description: constructors and methods of type PageTableRow +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PageTableRow +[Back to types index](index.md) + + + +### Possible values (constructors): + +[pageTableRow](../constructors/pageTableRow.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PasswordKdfAlgo.md b/old_docs/API_docs_v91/types/PasswordKdfAlgo.md new file mode 100644 index 00000000..b74719fb --- /dev/null +++ b/old_docs/API_docs_v91/types/PasswordKdfAlgo.md @@ -0,0 +1,22 @@ +--- +title: PasswordKdfAlgo +description: constructors and methods of type PasswordKdfAlgo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PasswordKdfAlgo +[Back to types index](index.md) + + + +### Possible values (constructors): + +[passwordKdfAlgoUnknown](../constructors/passwordKdfAlgoUnknown.md) + +[passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow](../constructors/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PaymentCharge.md b/old_docs/API_docs_v91/types/PaymentCharge.md new file mode 100644 index 00000000..9cb17085 --- /dev/null +++ b/old_docs/API_docs_v91/types/PaymentCharge.md @@ -0,0 +1,20 @@ +--- +title: PaymentCharge +description: constructors and methods of type PaymentCharge +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PaymentCharge +[Back to types index](index.md) + + + +### Possible values (constructors): + +[paymentCharge](../constructors/paymentCharge.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PaymentRequestedInfo.md b/old_docs/API_docs_v91/types/PaymentRequestedInfo.md new file mode 100644 index 00000000..2f119ef3 --- /dev/null +++ b/old_docs/API_docs_v91/types/PaymentRequestedInfo.md @@ -0,0 +1,20 @@ +--- +title: PaymentRequestedInfo +description: constructors and methods of type PaymentRequestedInfo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PaymentRequestedInfo +[Back to types index](index.md) + + + +### Possible values (constructors): + +[paymentRequestedInfo](../constructors/paymentRequestedInfo.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PaymentSavedCredentials.md b/old_docs/API_docs_v91/types/PaymentSavedCredentials.md new file mode 100644 index 00000000..8a2ae849 --- /dev/null +++ b/old_docs/API_docs_v91/types/PaymentSavedCredentials.md @@ -0,0 +1,20 @@ +--- +title: PaymentSavedCredentials +description: constructors and methods of type PaymentSavedCredentials +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PaymentSavedCredentials +[Back to types index](index.md) + + + +### Possible values (constructors): + +[paymentSavedCredentialsCard](../constructors/paymentSavedCredentialsCard.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Peer.md b/old_docs/API_docs_v91/types/Peer.md new file mode 100644 index 00000000..ebb98e91 --- /dev/null +++ b/old_docs/API_docs_v91/types/Peer.md @@ -0,0 +1,48 @@ +--- +title: Peer +description: constructors and methods of type Peer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Peer +[Back to types index](index.md) + + + +You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id. + +The following syntaxes can also be used: + +``` +$Peer = '@username'; // Username + +$Peer = 'me'; // The currently logged-in user + +$Peer = 44700; // bot API id (users) +$Peer = -492772765; // bot API id (chats) +$Peer = -10038575794; // bot API id (channels) + +$Peer = 'https://t.me/danogentili'; // t.me URLs +$Peer = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links + +$Peer = 'user#44700'; // tg-cli style id (users) +$Peer = 'chat#492772765'; // tg-cli style id (chats) +$Peer = 'channel#38575794'; // tg-cli style id (channels) +``` + +A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used. + + +### Possible values (constructors): + +[peerUser](../constructors/peerUser.md) + +[peerChat](../constructors/peerChat.md) + +[peerChannel](../constructors/peerChannel.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PeerNotifySettings.md b/old_docs/API_docs_v91/types/PeerNotifySettings.md new file mode 100644 index 00000000..ecb483c5 --- /dev/null +++ b/old_docs/API_docs_v91/types/PeerNotifySettings.md @@ -0,0 +1,22 @@ +--- +title: PeerNotifySettings +description: constructors and methods of type PeerNotifySettings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PeerNotifySettings +[Back to types index](index.md) + + + +### Possible values (constructors): + +[peerNotifySettings](../constructors/peerNotifySettings.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getNotifySettings](../methods/account_getNotifySettings.md) + + + diff --git a/old_docs/API_docs_v91/types/PeerSettings.md b/old_docs/API_docs_v91/types/PeerSettings.md new file mode 100644 index 00000000..60ac3765 --- /dev/null +++ b/old_docs/API_docs_v91/types/PeerSettings.md @@ -0,0 +1,22 @@ +--- +title: PeerSettings +description: constructors and methods of type PeerSettings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PeerSettings +[Back to types index](index.md) + + + +### Possible values (constructors): + +[peerSettings](../constructors/peerSettings.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getPeerSettings](../methods/messages_getPeerSettings.md) + + + diff --git a/old_docs/API_docs_v91/types/PhoneCall.md b/old_docs/API_docs_v91/types/PhoneCall.md new file mode 100644 index 00000000..64d95972 --- /dev/null +++ b/old_docs/API_docs_v91/types/PhoneCall.md @@ -0,0 +1,187 @@ +--- +title: PhoneCall +description: constructors and methods of type PhoneCall +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PhoneCall +[Back to types index](index.md) + + + +This is an object of type `\danog\MadelineProto\VoIP`. + +It will only be available if the [php-libtgvoip](https://github.com/danog/php-libtgvoip) extension is installed, see [the main docs](https://docs.madelineproto.xyz#calls) for an easy installation script. + +You MUST know [OOP](http://php.net/manual/en/language.oop5.php) to use this class. + +## Constants: + +VoIPController states (these constants are incrementing integers, thus can be compared like numbers): + +* `STATE_CREATED` - controller created +* `STATE_WAIT_INIT` - controller inited +* `STATE_WAIT_INIT_ACK` - controller inited +* `STATE_ESTABLISHED` - connection established +* `STATE_FAILED` - connection failed +* `STATE_RECONNECTING` - reconnecting + +VoIPController errors: + +* `TGVOIP_ERROR_UNKNOWN` - An unknown error occurred +* `TGVOIP_ERROR_INCOMPATIBLE` - The other side is using an unsupported client/protocol +* `TGVOIP_ERROR_TIMEOUT` - A timeout occurred +* `TGVOIP_ERROR_AUDIO_IO` - An I/O error occurred + +Network types (these constants are incrementing integers, thus can be compared like numbers): + +* `NET_TYPE_UNKNOWN` - Unknown network type +* `NET_TYPE_GPRS` - GPRS connection +* `NET_TYPE_EDGE` - EDGE connection +* `NET_TYPE_3G` - 3G connection +* `NET_TYPE_HSPA` - HSPA connection +* `NET_TYPE_LTE` - LTE connection +* `NET_TYPE_WIFI` - WIFI connection +* `NET_TYPE_ETHERNET` - Ethernet connection (this guarantees high audio quality) +* `NET_TYPE_OTHER_HIGH_SPEED` - Other high speed connection +* `NET_TYPE_OTHER_LOW_SPEED` - Other low speed connection +* `NET_TYPE_DIALUP` - Dialup connection +* `NET_TYPE_OTHER_MOBILE` - Other mobile network connection + +Data saving modes (these constants are incrementing integers, thus can be compared like numbers): + +* `DATA_SAVING_NEVER` - Never save data (this guarantees high audio quality) +* `DATA_SAVING_MOBILE` - Use mobile data saving profiles +* `DATA_SAVING_ALWAYS` - Always use data saving profiles + +Proxy settings (these constants are incrementing integers, thus can be compared like numbers): + +* `PROXY_NONE` - No proxy +* `PROXY_SOCKS5` - Use the socks5 protocol + +Audio states (these constants are incrementing integers, thus can be compared like numbers): + +* `AUDIO_STATE_NONE` - The audio module was not created yet +* `AUDIO_STATE_CREATED` - The audio module was created +* `AUDIO_STATE_CONFIGURED` - The audio module was configured +* `AUDIO_STATE_RUNNING` - The audio module is running + +Call states (these constants are incrementing integers, thus can be compared like numbers): + +* `CALL_STATE_NONE` - The call was not created yet +* `CALL_STATE_REQUESTED` - This is an outgoing call +* `CALL_STATE_INCOMING` - This is an incoming call +* `CALL_STATE_ACCEPTED` - The incoming call was accepted, but not yet ready +* `CALL_STATE_CONFIRMED` - The outgoing call was accepted, but not yet ready +* `CALL_STATE_READY` - The call is ready. Audio data is being sent and received +* `CALL_STATE_ENDED` - The call is over. + + + +## Methods: + +* `getState()` - Gets the controller state, as a VoIPController state constant +* `getCallState()` - Gets the call state, as a call state constant +* `getVisualization()` - Gets the visualization of the encryption key, as an array of emojis, can be called only when the call state is bigger than or equal to `CALL_STATE_READY`. If called sooner, returns false. +* `getStats()` Gets connection stats +* `getOtherID()` - Gets the id of the other call participant, as a bot API ID +* `getProtocol()` - Gets the protocol used by the current call, as a [PhoneCallProtocol](https://docs.madelineproto.xyz/API_docs/types/PhoneCallProtocol.html) object +* `getCallID()` - Gets the call ID, as an [InputPhoneCall](https://docs.madelineproto.xyz/API_docs/types/InputPhoneCall.html) object +* `isCreator()` - Returns a boolean that indicates whether you are the creator of the call +* `whenCreated()` - Returns the unix timestamp of when the call was started (when was the call state set to `CALL_STATE_READY`) +* `getOutputState()` - Returns the state of the audio output module, as an audio state constant +* `getInputState()` - Returns the state of the audio input module, as an audio state constant +* `getDebugLog()` - Gets VoIPController debug log +* `getDebugString()` - Gets VoIPController debug string +* `getLastError()` - Gets the last error as a VoIPController error constant +* `getVersion()` - Gets VoIPController version +* `getSignalBarsCount()` - Gets number of signal bars (0-4) + +* `parseConfig()` - Parses the configuration + +* `accept()` - Accepts the phone call, returns `$this` +* `discard($reason = ["_" => "phoneCallDiscardReasonDisconnect"], $rating = [])` - Ends the phone call. + +Accepts two optional parameters: + +`$reason` - can be a [PhoneCallDiscardReason](https://docs.madelineproto.xyz/API_docs/types/PhoneCallDiscardReason.html) object (defaults to a [phoneCallDiscardReasonDisconnect](https://docs.madelineproto.xyz/API_docs/constructors/phoneCallDiscardReasonDisconnect.html) object). + +`$rating` - Can be an array that must contain a rating, and a comment (`["rating" => 5, "comment" => "MadelineProto is very easy to use!"]). Defaults to an empty array.` + + + +* `getOutputParams()` - Returns the output audio configuration + +MadelineProto works using raw signed PCM audio, internally split in packets with `sampleNumber` samples. + +The audio configuration is an array structured in the following way: +``` +[ + "bitsPerSample" => int. // Bits in each PCM sample + "sampleRate" => int, // PCM sample rate + "channels" => int, // Number of PCM audio channels + "sampleNumber" => int, // The audio data is internally split in packets, each having this number of samples + "samplePeriod" => double, // PCM sample period in seconds, useful if you want to generate audio data manually + "writePeriod" => double, // PCM write period in seconds (samplePeriod*sampleNumber), useful if you want to generate audio data manually + "samplesSize" => int, // The audio data is internally split in packets, each having this number of bytes (sampleNumber*bitsPerSample/8) + "level" => int // idk +]; +``` + +* `getInputParams()` - Returns the input audio configuration + +MadelineProto works using raw signed PCM audio, internally split in packets with `sampleNumber` samples. + +The audio configuration is an array structured in the following way: +``` +[ + "bitsPerSample" => int. // Bits in each PCM sample + "sampleRate" => int, // PCM sample rate + "channels" => int, // Number of PCM audio channels + "sampleNumber" => int, // The audio data is internally split in packets, each having this number of samples + "samplePeriod" => double, // PCM sample period in seconds, useful if you want to generate audio data manually + "writePeriod" => double, // PCM write period in seconds (samplePeriod*sampleNumber), useful if you want to generate audio data manually + "samplesSize" => int, // The audio data is internally split in packets, each having this number of bytes (sampleNumber*bitsPerSample/8) +]; +``` + +* `play(string $file)` and `then(string $file)` - Play a certain audio file encoded in PCM, with the audio input configuration, returns `$this` +* `playOnHold(array $files)` - Array of audio files encoded in PCM, with the audio input configuration to loop on hold (when the files given with play/then have finished playing). If not called, no data will be played, returns `$this` +* `isPlaying()` - Returns true if MadelineProto is still playing the files given with play/then, false if the hold files (or nothing) is being played +* `setMicMute(bool $mute)` - Stops/resumes playing files/hold files, returns `$this` + +* `setOutputFile(string $outputfile)` - Writes incoming audio data to file encoded in PCM, with the audio output configuration, returns `$this` +* `unsetOutputFile()` - Stops writing audio data to previously set file, returns `$this` + + +## Properties: + +* `storage`: An array that can be used to store data related to this call. + +Easy as pie: + +``` +$call->storage["pony"] = "fluttershy"; +\danog\MadelineProto\Logger::log($call->storage["pony"]); // fluttershy +``` + +Note: when modifying this property, *never* overwrite the previous values. Always either modify the values of the array separately like showed above, or use array_merge. + + +* `configuration`: An array containing the libtgvoip configuration. + +You can only modify the data saving mode, the network type, the logging file path and the stats dump file path: + +Example: + +``` +$call->configuration["log_file_path"] = "logs".$call->getOtherID().".log"; // Default is /dev/null +$call->configuration["stats_dump_file_path"] = "stats".$call->getOtherID().".log"; // Default is /dev/null +$call->configuration["network_type"] = \danog\MadelineProto\VoIP::NET_TYPE_WIFI; // Default is NET_TYPE_ETHERNET +$call->configuration["data_saving"] = \danog\MadelineProto\VoIP::DATA_SAVING_MOBILE; // Default is DATA_SAVING_NEVER +$call->parseConfig(); // Always call this after changing settings +``` + +Note: when modifying this property, *never* overwrite the previous values. Always either modify the values of the array separately like showed above, or use array_merge. + +After modifying it, you must always parse the new configuration with a call to `parseConfig`. + diff --git a/old_docs/API_docs_v91/types/PhoneCallDiscardReason.md b/old_docs/API_docs_v91/types/PhoneCallDiscardReason.md new file mode 100644 index 00000000..cbf9ff9c --- /dev/null +++ b/old_docs/API_docs_v91/types/PhoneCallDiscardReason.md @@ -0,0 +1,26 @@ +--- +title: PhoneCallDiscardReason +description: constructors and methods of type PhoneCallDiscardReason +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PhoneCallDiscardReason +[Back to types index](index.md) + + + +### Possible values (constructors): + +[phoneCallDiscardReasonMissed](../constructors/phoneCallDiscardReasonMissed.md) + +[phoneCallDiscardReasonDisconnect](../constructors/phoneCallDiscardReasonDisconnect.md) + +[phoneCallDiscardReasonHangup](../constructors/phoneCallDiscardReasonHangup.md) + +[phoneCallDiscardReasonBusy](../constructors/phoneCallDiscardReasonBusy.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PhoneCallProtocol.md b/old_docs/API_docs_v91/types/PhoneCallProtocol.md new file mode 100644 index 00000000..eb9cbd49 --- /dev/null +++ b/old_docs/API_docs_v91/types/PhoneCallProtocol.md @@ -0,0 +1,20 @@ +--- +title: PhoneCallProtocol +description: constructors and methods of type PhoneCallProtocol +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PhoneCallProtocol +[Back to types index](index.md) + + + +### Possible values (constructors): + +[phoneCallProtocol](../constructors/phoneCallProtocol.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PhoneConnection.md b/old_docs/API_docs_v91/types/PhoneConnection.md new file mode 100644 index 00000000..a62f147f --- /dev/null +++ b/old_docs/API_docs_v91/types/PhoneConnection.md @@ -0,0 +1,20 @@ +--- +title: PhoneConnection +description: constructors and methods of type PhoneConnection +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PhoneConnection +[Back to types index](index.md) + + + +### Possible values (constructors): + +[phoneConnection](../constructors/phoneConnection.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Photo.md b/old_docs/API_docs_v91/types/Photo.md new file mode 100644 index 00000000..7cd6e713 --- /dev/null +++ b/old_docs/API_docs_v91/types/Photo.md @@ -0,0 +1,22 @@ +--- +title: Photo +description: constructors and methods of type Photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Photo +[Back to types index](index.md) + + + +### Possible values (constructors): + +[photoEmpty](../constructors/photoEmpty.md) + +[photo](../constructors/photo.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PhotoSize.md b/old_docs/API_docs_v91/types/PhotoSize.md new file mode 100644 index 00000000..caf1684c --- /dev/null +++ b/old_docs/API_docs_v91/types/PhotoSize.md @@ -0,0 +1,24 @@ +--- +title: PhotoSize +description: constructors and methods of type PhotoSize +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PhotoSize +[Back to types index](index.md) + + + +### Possible values (constructors): + +[photoSizeEmpty](../constructors/photoSizeEmpty.md) + +[photoSize](../constructors/photoSize.md) + +[photoCachedSize](../constructors/photoCachedSize.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Poll.md b/old_docs/API_docs_v91/types/Poll.md new file mode 100644 index 00000000..71131ae6 --- /dev/null +++ b/old_docs/API_docs_v91/types/Poll.md @@ -0,0 +1,20 @@ +--- +title: Poll +description: constructors and methods of type Poll +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Poll +[Back to types index](index.md) + + + +### Possible values (constructors): + +[poll](../constructors/poll.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PollAnswer.md b/old_docs/API_docs_v91/types/PollAnswer.md new file mode 100644 index 00000000..d7778119 --- /dev/null +++ b/old_docs/API_docs_v91/types/PollAnswer.md @@ -0,0 +1,20 @@ +--- +title: PollAnswer +description: constructors and methods of type PollAnswer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PollAnswer +[Back to types index](index.md) + + + +### Possible values (constructors): + +[pollAnswer](../constructors/pollAnswer.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PollAnswerVoters.md b/old_docs/API_docs_v91/types/PollAnswerVoters.md new file mode 100644 index 00000000..78a14260 --- /dev/null +++ b/old_docs/API_docs_v91/types/PollAnswerVoters.md @@ -0,0 +1,20 @@ +--- +title: PollAnswerVoters +description: constructors and methods of type PollAnswerVoters +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PollAnswerVoters +[Back to types index](index.md) + + + +### Possible values (constructors): + +[pollAnswerVoters](../constructors/pollAnswerVoters.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PollResults.md b/old_docs/API_docs_v91/types/PollResults.md new file mode 100644 index 00000000..68d2a9dd --- /dev/null +++ b/old_docs/API_docs_v91/types/PollResults.md @@ -0,0 +1,20 @@ +--- +title: PollResults +description: constructors and methods of type PollResults +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PollResults +[Back to types index](index.md) + + + +### Possible values (constructors): + +[pollResults](../constructors/pollResults.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PopularContact.md b/old_docs/API_docs_v91/types/PopularContact.md new file mode 100644 index 00000000..5d61b85d --- /dev/null +++ b/old_docs/API_docs_v91/types/PopularContact.md @@ -0,0 +1,20 @@ +--- +title: PopularContact +description: constructors and methods of type PopularContact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PopularContact +[Back to types index](index.md) + + + +### Possible values (constructors): + +[popularContact](../constructors/popularContact.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PostAddress.md b/old_docs/API_docs_v91/types/PostAddress.md new file mode 100644 index 00000000..1715112d --- /dev/null +++ b/old_docs/API_docs_v91/types/PostAddress.md @@ -0,0 +1,20 @@ +--- +title: PostAddress +description: constructors and methods of type PostAddress +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PostAddress +[Back to types index](index.md) + + + +### Possible values (constructors): + +[postAddress](../constructors/postAddress.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PrivacyKey.md b/old_docs/API_docs_v91/types/PrivacyKey.md new file mode 100644 index 00000000..174ac381 --- /dev/null +++ b/old_docs/API_docs_v91/types/PrivacyKey.md @@ -0,0 +1,26 @@ +--- +title: PrivacyKey +description: constructors and methods of type PrivacyKey +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PrivacyKey +[Back to types index](index.md) + + + +### Possible values (constructors): + +[privacyKeyStatusTimestamp](../constructors/privacyKeyStatusTimestamp.md) + +[privacyKeyChatInvite](../constructors/privacyKeyChatInvite.md) + +[privacyKeyPhoneCall](../constructors/privacyKeyPhoneCall.md) + +[privacyKeyPhoneP2P](../constructors/privacyKeyPhoneP2P.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/PrivacyRule.md b/old_docs/API_docs_v91/types/PrivacyRule.md new file mode 100644 index 00000000..5f0425b9 --- /dev/null +++ b/old_docs/API_docs_v91/types/PrivacyRule.md @@ -0,0 +1,30 @@ +--- +title: PrivacyRule +description: constructors and methods of type PrivacyRule +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: PrivacyRule +[Back to types index](index.md) + + + +### Possible values (constructors): + +[privacyValueAllowContacts](../constructors/privacyValueAllowContacts.md) + +[privacyValueAllowAll](../constructors/privacyValueAllowAll.md) + +[privacyValueAllowUsers](../constructors/privacyValueAllowUsers.md) + +[privacyValueDisallowContacts](../constructors/privacyValueDisallowContacts.md) + +[privacyValueDisallowAll](../constructors/privacyValueDisallowAll.md) + +[privacyValueDisallowUsers](../constructors/privacyValueDisallowUsers.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/README.md b/old_docs/API_docs_v91/types/README.md new file mode 100644 index 00000000..392a76b7 --- /dev/null +++ b/old_docs/API_docs_v91/types/README.md @@ -0,0 +1,519 @@ +--- +title: Types +description: List of types +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Types +[Back to API documentation index](..) + + +[AccessPointRule](AccessPointRule.md) + +[AccountDaysTTL](AccountDaysTTL.md) + +[Authorization](Authorization.md) + +[Bool](Bool.md) + +[BotCommand](BotCommand.md) + +[BotInfo](BotInfo.md) + +[BotInlineMessage](BotInlineMessage.md) + +[BotInlineResult](BotInlineResult.md) + +[CdnConfig](CdnConfig.md) + +[CdnPublicKey](CdnPublicKey.md) + +[ChannelAdminLogEvent](ChannelAdminLogEvent.md) + +[ChannelAdminLogEventAction](ChannelAdminLogEventAction.md) + +[ChannelAdminLogEventsFilter](ChannelAdminLogEventsFilter.md) + +[ChannelAdminRights](ChannelAdminRights.md) + +[ChannelBannedRights](ChannelBannedRights.md) + +[ChannelMessagesFilter](ChannelMessagesFilter.md) + +[ChannelParticipant](ChannelParticipant.md) + +[ChannelParticipantsFilter](ChannelParticipantsFilter.md) + +[Chat](Chat.md) + +[ChatFull](ChatFull.md) + +[ChatInvite](ChatInvite.md) + +[ChatOnlines](ChatOnlines.md) + +[ChatParticipant](ChatParticipant.md) + +[ChatParticipants](ChatParticipants.md) + +[ChatPhoto](ChatPhoto.md) + +[Config](Config.md) + +[Contact](Contact.md) + +[ContactBlocked](ContactBlocked.md) + +[ContactLink](ContactLink.md) + +[ContactStatus](ContactStatus.md) + +[DataJSON](DataJSON.md) + +[DcOption](DcOption.md) + +[Dialog](Dialog.md) + +[DialogPeer](DialogPeer.md) + +[Document](Document.md) + +[DocumentAttribute](DocumentAttribute.md) + +[DraftMessage](DraftMessage.md) + +[EncryptedChat](EncryptedChat.md) + +[EncryptedFile](EncryptedFile.md) + +[EncryptedMessage](EncryptedMessage.md) + +[Error](Error.md) + +[ExportedChatInvite](ExportedChatInvite.md) + +[ExportedMessageLink](ExportedMessageLink.md) + +[FileHash](FileHash.md) + +[FileLocation](FileLocation.md) + +[FoundGif](FoundGif.md) + +[Game](Game.md) + +[GeoPoint](GeoPoint.md) + +[HighScore](HighScore.md) + +[ImportedContact](ImportedContact.md) + +[InlineBotSwitchPM](InlineBotSwitchPM.md) + +[InputAppEvent](InputAppEvent.md) + +[InputBotInlineMessage](InputBotInlineMessage.md) + +[InputBotInlineMessageID](InputBotInlineMessageID.md) + +[InputBotInlineResult](InputBotInlineResult.md) + +[InputChannel](InputChannel.md) + +[InputChatPhoto](InputChatPhoto.md) + +[InputCheckPasswordSRP](InputCheckPasswordSRP.md) + +[InputClientProxy](InputClientProxy.md) + +[InputContact](InputContact.md) + +[InputDialogPeer](InputDialogPeer.md) + +[InputDocument](InputDocument.md) + +[InputEncryptedChat](InputEncryptedChat.md) + +[InputEncryptedFile](InputEncryptedFile.md) + +[InputFile](InputFile.md) + +[InputFileLocation](InputFileLocation.md) + +[InputGame](InputGame.md) + +[InputGeoPoint](InputGeoPoint.md) + +[InputMedia](InputMedia.md) + +[InputMessage](InputMessage.md) + +[InputNotifyPeer](InputNotifyPeer.md) + +[InputPaymentCredentials](InputPaymentCredentials.md) + +[InputPeer](InputPeer.md) + +[InputPeerNotifySettings](InputPeerNotifySettings.md) + +[InputPhoneCall](InputPhoneCall.md) + +[InputPhoto](InputPhoto.md) + +[InputPrivacyKey](InputPrivacyKey.md) + +[InputPrivacyRule](InputPrivacyRule.md) + +[InputSecureFile](InputSecureFile.md) + +[InputSecureValue](InputSecureValue.md) + +[InputSingleMedia](InputSingleMedia.md) + +[InputStickerSet](InputStickerSet.md) + +[InputStickerSetItem](InputStickerSetItem.md) + +[InputStickeredMedia](InputStickeredMedia.md) + +[InputUser](InputUser.md) + +[InputWebDocument](InputWebDocument.md) + +[InputWebFileLocation](InputWebFileLocation.md) + +[Invoice](Invoice.md) + +[IpPort](IpPort.md) + +[JSONObjectValue](JSONObjectValue.md) + +[JSONValue](JSONValue.md) + +[KeyboardButton](KeyboardButton.md) + +[KeyboardButtonRow](KeyboardButtonRow.md) + +[LabeledPrice](LabeledPrice.md) + +[LangPackDifference](LangPackDifference.md) + +[LangPackLanguage](LangPackLanguage.md) + +[LangPackString](LangPackString.md) + +[MaskCoords](MaskCoords.md) + +[Message](Message.md) + +[MessageAction](MessageAction.md) + +[MessageEntity](MessageEntity.md) + +[MessageFwdHeader](MessageFwdHeader.md) + +[MessageMedia](MessageMedia.md) + +[MessageRange](MessageRange.md) + +[MessagesFilter](MessagesFilter.md) + +[NearestDc](NearestDc.md) + +[NotifyPeer](NotifyPeer.md) + +[Null](Null.md) + +[Page](Page.md) + +[PageBlock](PageBlock.md) + +[PageCaption](PageCaption.md) + +[PageListItem](PageListItem.md) + +[PageListOrderedItem](PageListOrderedItem.md) + +[PageRelatedArticle](PageRelatedArticle.md) + +[PageTableCell](PageTableCell.md) + +[PageTableRow](PageTableRow.md) + +[PasswordKdfAlgo](PasswordKdfAlgo.md) + +[PaymentCharge](PaymentCharge.md) + +[PaymentRequestedInfo](PaymentRequestedInfo.md) + +[PaymentSavedCredentials](PaymentSavedCredentials.md) + +[Peer](Peer.md) + +[PeerNotifySettings](PeerNotifySettings.md) + +[PeerSettings](PeerSettings.md) + +[PhoneCall](PhoneCall.md) + +[PhoneCallDiscardReason](PhoneCallDiscardReason.md) + +[PhoneCallProtocol](PhoneCallProtocol.md) + +[PhoneConnection](PhoneConnection.md) + +[Photo](Photo.md) + +[PhotoSize](PhotoSize.md) + +[Poll](Poll.md) + +[PollAnswer](PollAnswer.md) + +[PollAnswerVoters](PollAnswerVoters.md) + +[PollResults](PollResults.md) + +[PopularContact](PopularContact.md) + +[PostAddress](PostAddress.md) + +[PrivacyKey](PrivacyKey.md) + +[PrivacyRule](PrivacyRule.md) + +[ReceivedNotifyMessage](ReceivedNotifyMessage.md) + +[RecentMeUrl](RecentMeUrl.md) + +[ReplyMarkup](ReplyMarkup.md) + +[ReportReason](ReportReason.md) + +[RichText](RichText.md) + +[SavedContact](SavedContact.md) + +[SecureCredentialsEncrypted](SecureCredentialsEncrypted.md) + +[SecureData](SecureData.md) + +[SecureFile](SecureFile.md) + +[SecurePasswordKdfAlgo](SecurePasswordKdfAlgo.md) + +[SecurePlainData](SecurePlainData.md) + +[SecureRequiredType](SecureRequiredType.md) + +[SecureSecretSettings](SecureSecretSettings.md) + +[SecureValue](SecureValue.md) + +[SecureValueError](SecureValueError.md) + +[SecureValueHash](SecureValueHash.md) + +[SecureValueType](SecureValueType.md) + +[SendMessageAction](SendMessageAction.md) + +[ShippingOption](ShippingOption.md) + +[StatsURL](StatsURL.md) + +[StickerPack](StickerPack.md) + +[StickerSet](StickerSet.md) + +[StickerSetCovered](StickerSetCovered.md) + +[TopPeer](TopPeer.md) + +[TopPeerCategory](TopPeerCategory.md) + +[TopPeerCategoryPeers](TopPeerCategoryPeers.md) + +[True](True.md) + +[Update](Update.md) + +[Updates](Updates.md) + +[User](User.md) + +[UserFull](UserFull.md) + +[UserProfilePhoto](UserProfilePhoto.md) + +[UserStatus](UserStatus.md) + +[WallPaper](WallPaper.md) + +[WebAuthorization](WebAuthorization.md) + +[WebDocument](WebDocument.md) + +[WebPage](WebPage.md) + +[X](X.md) + +[account\_AuthorizationForm](account_AuthorizationForm.md) + +[account\_Authorizations](account_Authorizations.md) + +[account\_Password](account_Password.md) + +[account\_PasswordInputSettings](account_PasswordInputSettings.md) + +[account\_PasswordSettings](account_PasswordSettings.md) + +[account\_PrivacyRules](account_PrivacyRules.md) + +[account\_SentEmailCode](account_SentEmailCode.md) + +[account\_Takeout](account_Takeout.md) + +[account\_TmpPassword](account_TmpPassword.md) + +[account\_WebAuthorizations](account_WebAuthorizations.md) + +[auth\_Authorization](auth_Authorization.md) + +[auth\_CheckedPhone](auth_CheckedPhone.md) + +[auth\_CodeType](auth_CodeType.md) + +[auth\_ExportedAuthorization](auth_ExportedAuthorization.md) + +[auth\_PasswordRecovery](auth_PasswordRecovery.md) + +[auth\_SentCode](auth_SentCode.md) + +[auth\_SentCodeType](auth_SentCodeType.md) + +[channels\_AdminLogResults](channels_AdminLogResults.md) + +[channels\_ChannelParticipant](channels_ChannelParticipant.md) + +[channels\_ChannelParticipants](channels_ChannelParticipants.md) + +[contacts\_Blocked](contacts_Blocked.md) + +[contacts\_Contacts](contacts_Contacts.md) + +[contacts\_Found](contacts_Found.md) + +[contacts\_ImportedContacts](contacts_ImportedContacts.md) + +[contacts\_Link](contacts_Link.md) + +[contacts\_ResolvedPeer](contacts_ResolvedPeer.md) + +[contacts\_TopPeers](contacts_TopPeers.md) + +[help\_AppUpdate](help_AppUpdate.md) + +[help\_ConfigSimple](help_ConfigSimple.md) + +[help\_DeepLinkInfo](help_DeepLinkInfo.md) + +[help\_InviteText](help_InviteText.md) + +[help\_PassportConfig](help_PassportConfig.md) + +[help\_ProxyData](help_ProxyData.md) + +[help\_RecentMeUrls](help_RecentMeUrls.md) + +[help\_Support](help_Support.md) + +[help\_SupportName](help_SupportName.md) + +[help\_TermsOfService](help_TermsOfService.md) + +[help\_TermsOfServiceUpdate](help_TermsOfServiceUpdate.md) + +[help\_UserInfo](help_UserInfo.md) + +[int](int.md) + +[long](long.md) + +[messages\_AffectedHistory](messages_AffectedHistory.md) + +[messages\_AffectedMessages](messages_AffectedMessages.md) + +[messages\_AllStickers](messages_AllStickers.md) + +[messages\_ArchivedStickers](messages_ArchivedStickers.md) + +[messages\_BotCallbackAnswer](messages_BotCallbackAnswer.md) + +[messages\_BotResults](messages_BotResults.md) + +[messages\_ChatFull](messages_ChatFull.md) + +[messages\_Chats](messages_Chats.md) + +[messages\_DhConfig](messages_DhConfig.md) + +[messages\_Dialogs](messages_Dialogs.md) + +[messages\_FavedStickers](messages_FavedStickers.md) + +[messages\_FeaturedStickers](messages_FeaturedStickers.md) + +[messages\_FoundGifs](messages_FoundGifs.md) + +[messages\_FoundStickerSets](messages_FoundStickerSets.md) + +[messages\_HighScores](messages_HighScores.md) + +[messages\_MessageEditData](messages_MessageEditData.md) + +[messages\_Messages](messages_Messages.md) + +[messages\_PeerDialogs](messages_PeerDialogs.md) + +[messages\_RecentStickers](messages_RecentStickers.md) + +[messages\_SavedGifs](messages_SavedGifs.md) + +[messages\_SentEncryptedMessage](messages_SentEncryptedMessage.md) + +[messages\_StickerSet](messages_StickerSet.md) + +[messages\_StickerSetInstallResult](messages_StickerSetInstallResult.md) + +[messages\_Stickers](messages_Stickers.md) + +[payments\_PaymentForm](payments_PaymentForm.md) + +[payments\_PaymentReceipt](payments_PaymentReceipt.md) + +[payments\_PaymentResult](payments_PaymentResult.md) + +[payments\_SavedInfo](payments_SavedInfo.md) + +[payments\_ValidatedRequestedInfo](payments_ValidatedRequestedInfo.md) + +[phone\_PhoneCall](phone_PhoneCall.md) + +[photos\_Photo](photos_Photo.md) + +[photos\_Photos](photos_Photos.md) + +[storage\_FileType](storage_FileType.md) + +[updates\_ChannelDifference](updates_ChannelDifference.md) + +[updates\_Difference](updates_Difference.md) + +[updates\_State](updates_State.md) + +[upload\_CdnFile](upload_CdnFile.md) + +[upload\_File](upload_File.md) + +[upload\_WebFile](upload_WebFile.md) + diff --git a/old_docs/API_docs_v91/types/ReceivedNotifyMessage.md b/old_docs/API_docs_v91/types/ReceivedNotifyMessage.md new file mode 100644 index 00000000..c7fc3b8c --- /dev/null +++ b/old_docs/API_docs_v91/types/ReceivedNotifyMessage.md @@ -0,0 +1,22 @@ +--- +title: ReceivedNotifyMessage +description: constructors and methods of type ReceivedNotifyMessage +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ReceivedNotifyMessage +[Back to types index](index.md) + + + +### Possible values (constructors): + +[receivedNotifyMessage](../constructors/receivedNotifyMessage.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->receivedMessages](../methods/messages_receivedMessages.md) + + + diff --git a/old_docs/API_docs_v91/types/RecentMeUrl.md b/old_docs/API_docs_v91/types/RecentMeUrl.md new file mode 100644 index 00000000..4fd43199 --- /dev/null +++ b/old_docs/API_docs_v91/types/RecentMeUrl.md @@ -0,0 +1,28 @@ +--- +title: RecentMeUrl +description: constructors and methods of type RecentMeUrl +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: RecentMeUrl +[Back to types index](index.md) + + + +### Possible values (constructors): + +[recentMeUrlUnknown](../constructors/recentMeUrlUnknown.md) + +[recentMeUrlUser](../constructors/recentMeUrlUser.md) + +[recentMeUrlChat](../constructors/recentMeUrlChat.md) + +[recentMeUrlChatInvite](../constructors/recentMeUrlChatInvite.md) + +[recentMeUrlStickerSet](../constructors/recentMeUrlStickerSet.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ReplyMarkup.md b/old_docs/API_docs_v91/types/ReplyMarkup.md new file mode 100644 index 00000000..a1f5f21d --- /dev/null +++ b/old_docs/API_docs_v91/types/ReplyMarkup.md @@ -0,0 +1,26 @@ +--- +title: ReplyMarkup +description: constructors and methods of type ReplyMarkup +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ReplyMarkup +[Back to types index](index.md) + + + +### Possible values (constructors): + +[replyKeyboardHide](../constructors/replyKeyboardHide.md) + +[replyKeyboardForceReply](../constructors/replyKeyboardForceReply.md) + +[replyKeyboardMarkup](../constructors/replyKeyboardMarkup.md) + +[replyInlineMarkup](../constructors/replyInlineMarkup.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ReportReason.md b/old_docs/API_docs_v91/types/ReportReason.md new file mode 100644 index 00000000..17d71c73 --- /dev/null +++ b/old_docs/API_docs_v91/types/ReportReason.md @@ -0,0 +1,30 @@ +--- +title: ReportReason +description: constructors and methods of type ReportReason +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ReportReason +[Back to types index](index.md) + + + +### Possible values (constructors): + +[inputReportReasonSpam](../constructors/inputReportReasonSpam.md) + +[inputReportReasonViolence](../constructors/inputReportReasonViolence.md) + +[inputReportReasonPornography](../constructors/inputReportReasonPornography.md) + +[inputReportReasonChildAbuse](../constructors/inputReportReasonChildAbuse.md) + +[inputReportReasonOther](../constructors/inputReportReasonOther.md) + +[inputReportReasonCopyright](../constructors/inputReportReasonCopyright.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/RichText.md b/old_docs/API_docs_v91/types/RichText.md new file mode 100644 index 00000000..26a73266 --- /dev/null +++ b/old_docs/API_docs_v91/types/RichText.md @@ -0,0 +1,50 @@ +--- +title: RichText +description: constructors and methods of type RichText +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: RichText +[Back to types index](index.md) + + + +### Possible values (constructors): + +[textEmpty](../constructors/textEmpty.md) + +[textPlain](../constructors/textPlain.md) + +[textBold](../constructors/textBold.md) + +[textItalic](../constructors/textItalic.md) + +[textUnderline](../constructors/textUnderline.md) + +[textStrike](../constructors/textStrike.md) + +[textFixed](../constructors/textFixed.md) + +[textUrl](../constructors/textUrl.md) + +[textEmail](../constructors/textEmail.md) + +[textConcat](../constructors/textConcat.md) + +[textSubscript](../constructors/textSubscript.md) + +[textSuperscript](../constructors/textSuperscript.md) + +[textMarked](../constructors/textMarked.md) + +[textPhone](../constructors/textPhone.md) + +[textImage](../constructors/textImage.md) + +[textAnchor](../constructors/textAnchor.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/SavedContact.md b/old_docs/API_docs_v91/types/SavedContact.md new file mode 100644 index 00000000..c337f3eb --- /dev/null +++ b/old_docs/API_docs_v91/types/SavedContact.md @@ -0,0 +1,22 @@ +--- +title: SavedContact +description: constructors and methods of type SavedContact +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SavedContact +[Back to types index](index.md) + + + +### Possible values (constructors): + +[savedPhoneContact](../constructors/savedPhoneContact.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->getSaved](../methods/contacts_getSaved.md) + + + diff --git a/old_docs/API_docs_v91/types/SecureCredentialsEncrypted.md b/old_docs/API_docs_v91/types/SecureCredentialsEncrypted.md new file mode 100644 index 00000000..b3f45428 --- /dev/null +++ b/old_docs/API_docs_v91/types/SecureCredentialsEncrypted.md @@ -0,0 +1,20 @@ +--- +title: SecureCredentialsEncrypted +description: constructors and methods of type SecureCredentialsEncrypted +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SecureCredentialsEncrypted +[Back to types index](index.md) + + + +### Possible values (constructors): + +[secureCredentialsEncrypted](../constructors/secureCredentialsEncrypted.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/SecureData.md b/old_docs/API_docs_v91/types/SecureData.md new file mode 100644 index 00000000..54ebc5fd --- /dev/null +++ b/old_docs/API_docs_v91/types/SecureData.md @@ -0,0 +1,20 @@ +--- +title: SecureData +description: constructors and methods of type SecureData +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SecureData +[Back to types index](index.md) + + + +### Possible values (constructors): + +[secureData](../constructors/secureData.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/SecureFile.md b/old_docs/API_docs_v91/types/SecureFile.md new file mode 100644 index 00000000..989d8522 --- /dev/null +++ b/old_docs/API_docs_v91/types/SecureFile.md @@ -0,0 +1,22 @@ +--- +title: SecureFile +description: constructors and methods of type SecureFile +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SecureFile +[Back to types index](index.md) + + + +### Possible values (constructors): + +[secureFileEmpty](../constructors/secureFileEmpty.md) + +[secureFile](../constructors/secureFile.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/SecurePasswordKdfAlgo.md b/old_docs/API_docs_v91/types/SecurePasswordKdfAlgo.md new file mode 100644 index 00000000..785646bc --- /dev/null +++ b/old_docs/API_docs_v91/types/SecurePasswordKdfAlgo.md @@ -0,0 +1,24 @@ +--- +title: SecurePasswordKdfAlgo +description: constructors and methods of type SecurePasswordKdfAlgo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SecurePasswordKdfAlgo +[Back to types index](index.md) + + + +### Possible values (constructors): + +[securePasswordKdfAlgoUnknown](../constructors/securePasswordKdfAlgoUnknown.md) + +[securePasswordKdfAlgoPBKDF2HMACSHA512iter100000](../constructors/securePasswordKdfAlgoPBKDF2HMACSHA512iter100000.md) + +[securePasswordKdfAlgoSHA512](../constructors/securePasswordKdfAlgoSHA512.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/SecurePlainData.md b/old_docs/API_docs_v91/types/SecurePlainData.md new file mode 100644 index 00000000..7fe1c49c --- /dev/null +++ b/old_docs/API_docs_v91/types/SecurePlainData.md @@ -0,0 +1,22 @@ +--- +title: SecurePlainData +description: constructors and methods of type SecurePlainData +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SecurePlainData +[Back to types index](index.md) + + + +### Possible values (constructors): + +[securePlainPhone](../constructors/securePlainPhone.md) + +[securePlainEmail](../constructors/securePlainEmail.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/SecureRequiredType.md b/old_docs/API_docs_v91/types/SecureRequiredType.md new file mode 100644 index 00000000..d313489f --- /dev/null +++ b/old_docs/API_docs_v91/types/SecureRequiredType.md @@ -0,0 +1,22 @@ +--- +title: SecureRequiredType +description: constructors and methods of type SecureRequiredType +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SecureRequiredType +[Back to types index](index.md) + + + +### Possible values (constructors): + +[secureRequiredType](../constructors/secureRequiredType.md) + +[secureRequiredTypeOneOf](../constructors/secureRequiredTypeOneOf.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/SecureSecretSettings.md b/old_docs/API_docs_v91/types/SecureSecretSettings.md new file mode 100644 index 00000000..011c1a6f --- /dev/null +++ b/old_docs/API_docs_v91/types/SecureSecretSettings.md @@ -0,0 +1,20 @@ +--- +title: SecureSecretSettings +description: constructors and methods of type SecureSecretSettings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SecureSecretSettings +[Back to types index](index.md) + + + +### Possible values (constructors): + +[secureSecretSettings](../constructors/secureSecretSettings.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/SecureValue.md b/old_docs/API_docs_v91/types/SecureValue.md new file mode 100644 index 00000000..8490f399 --- /dev/null +++ b/old_docs/API_docs_v91/types/SecureValue.md @@ -0,0 +1,26 @@ +--- +title: SecureValue +description: constructors and methods of type SecureValue +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SecureValue +[Back to types index](index.md) + + + +### Possible values (constructors): + +[secureValue](../constructors/secureValue.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getAllSecureValues](../methods/account_getAllSecureValues.md) + +[$MadelineProto->account->getSecureValue](../methods/account_getSecureValue.md) + +[$MadelineProto->account->saveSecureValue](../methods/account_saveSecureValue.md) + + + diff --git a/old_docs/API_docs_v91/types/SecureValueError.md b/old_docs/API_docs_v91/types/SecureValueError.md new file mode 100644 index 00000000..d9f9d3cd --- /dev/null +++ b/old_docs/API_docs_v91/types/SecureValueError.md @@ -0,0 +1,36 @@ +--- +title: SecureValueError +description: constructors and methods of type SecureValueError +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SecureValueError +[Back to types index](index.md) + + + +### Possible values (constructors): + +[secureValueErrorData](../constructors/secureValueErrorData.md) + +[secureValueErrorFrontSide](../constructors/secureValueErrorFrontSide.md) + +[secureValueErrorReverseSide](../constructors/secureValueErrorReverseSide.md) + +[secureValueErrorSelfie](../constructors/secureValueErrorSelfie.md) + +[secureValueErrorFile](../constructors/secureValueErrorFile.md) + +[secureValueErrorFiles](../constructors/secureValueErrorFiles.md) + +[secureValueError](../constructors/secureValueError.md) + +[secureValueErrorTranslationFile](../constructors/secureValueErrorTranslationFile.md) + +[secureValueErrorTranslationFiles](../constructors/secureValueErrorTranslationFiles.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/SecureValueHash.md b/old_docs/API_docs_v91/types/SecureValueHash.md new file mode 100644 index 00000000..4857148c --- /dev/null +++ b/old_docs/API_docs_v91/types/SecureValueHash.md @@ -0,0 +1,20 @@ +--- +title: SecureValueHash +description: constructors and methods of type SecureValueHash +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SecureValueHash +[Back to types index](index.md) + + + +### Possible values (constructors): + +[secureValueHash](../constructors/secureValueHash.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/SecureValueType.md b/old_docs/API_docs_v91/types/SecureValueType.md new file mode 100644 index 00000000..740cbf51 --- /dev/null +++ b/old_docs/API_docs_v91/types/SecureValueType.md @@ -0,0 +1,44 @@ +--- +title: SecureValueType +description: constructors and methods of type SecureValueType +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SecureValueType +[Back to types index](index.md) + + + +### Possible values (constructors): + +[secureValueTypePersonalDetails](../constructors/secureValueTypePersonalDetails.md) + +[secureValueTypePassport](../constructors/secureValueTypePassport.md) + +[secureValueTypeDriverLicense](../constructors/secureValueTypeDriverLicense.md) + +[secureValueTypeIdentityCard](../constructors/secureValueTypeIdentityCard.md) + +[secureValueTypeInternalPassport](../constructors/secureValueTypeInternalPassport.md) + +[secureValueTypeAddress](../constructors/secureValueTypeAddress.md) + +[secureValueTypeUtilityBill](../constructors/secureValueTypeUtilityBill.md) + +[secureValueTypeBankStatement](../constructors/secureValueTypeBankStatement.md) + +[secureValueTypeRentalAgreement](../constructors/secureValueTypeRentalAgreement.md) + +[secureValueTypePassportRegistration](../constructors/secureValueTypePassportRegistration.md) + +[secureValueTypeTemporaryRegistration](../constructors/secureValueTypeTemporaryRegistration.md) + +[secureValueTypePhone](../constructors/secureValueTypePhone.md) + +[secureValueTypeEmail](../constructors/secureValueTypeEmail.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/SendMessageAction.md b/old_docs/API_docs_v91/types/SendMessageAction.md new file mode 100644 index 00000000..8826af78 --- /dev/null +++ b/old_docs/API_docs_v91/types/SendMessageAction.md @@ -0,0 +1,44 @@ +--- +title: SendMessageAction +description: constructors and methods of type SendMessageAction +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: SendMessageAction +[Back to types index](index.md) + + + +### Possible values (constructors): + +[sendMessageTypingAction](../constructors/sendMessageTypingAction.md) + +[sendMessageCancelAction](../constructors/sendMessageCancelAction.md) + +[sendMessageRecordVideoAction](../constructors/sendMessageRecordVideoAction.md) + +[sendMessageUploadVideoAction](../constructors/sendMessageUploadVideoAction.md) + +[sendMessageRecordAudioAction](../constructors/sendMessageRecordAudioAction.md) + +[sendMessageUploadAudioAction](../constructors/sendMessageUploadAudioAction.md) + +[sendMessageUploadPhotoAction](../constructors/sendMessageUploadPhotoAction.md) + +[sendMessageUploadDocumentAction](../constructors/sendMessageUploadDocumentAction.md) + +[sendMessageGeoLocationAction](../constructors/sendMessageGeoLocationAction.md) + +[sendMessageChooseContactAction](../constructors/sendMessageChooseContactAction.md) + +[sendMessageGamePlayAction](../constructors/sendMessageGamePlayAction.md) + +[sendMessageRecordRoundAction](../constructors/sendMessageRecordRoundAction.md) + +[sendMessageUploadRoundAction](../constructors/sendMessageUploadRoundAction.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/ShippingOption.md b/old_docs/API_docs_v91/types/ShippingOption.md new file mode 100644 index 00000000..57847fe1 --- /dev/null +++ b/old_docs/API_docs_v91/types/ShippingOption.md @@ -0,0 +1,20 @@ +--- +title: ShippingOption +description: constructors and methods of type ShippingOption +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: ShippingOption +[Back to types index](index.md) + + + +### Possible values (constructors): + +[shippingOption](../constructors/shippingOption.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/StatsURL.md b/old_docs/API_docs_v91/types/StatsURL.md new file mode 100644 index 00000000..1a2695cd --- /dev/null +++ b/old_docs/API_docs_v91/types/StatsURL.md @@ -0,0 +1,22 @@ +--- +title: StatsURL +description: constructors and methods of type StatsURL +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: StatsURL +[Back to types index](index.md) + + + +### Possible values (constructors): + +[statsURL](../constructors/statsURL.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getStatsURL](../methods/messages_getStatsURL.md) + + + diff --git a/old_docs/API_docs_v91/types/StickerPack.md b/old_docs/API_docs_v91/types/StickerPack.md new file mode 100644 index 00000000..ffb83b15 --- /dev/null +++ b/old_docs/API_docs_v91/types/StickerPack.md @@ -0,0 +1,20 @@ +--- +title: StickerPack +description: constructors and methods of type StickerPack +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: StickerPack +[Back to types index](index.md) + + + +### Possible values (constructors): + +[stickerPack](../constructors/stickerPack.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/StickerSet.md b/old_docs/API_docs_v91/types/StickerSet.md new file mode 100644 index 00000000..70aa63dc --- /dev/null +++ b/old_docs/API_docs_v91/types/StickerSet.md @@ -0,0 +1,20 @@ +--- +title: StickerSet +description: constructors and methods of type StickerSet +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: StickerSet +[Back to types index](index.md) + + + +### Possible values (constructors): + +[stickerSet](../constructors/stickerSet.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/StickerSetCovered.md b/old_docs/API_docs_v91/types/StickerSetCovered.md new file mode 100644 index 00000000..ffd1da1f --- /dev/null +++ b/old_docs/API_docs_v91/types/StickerSetCovered.md @@ -0,0 +1,24 @@ +--- +title: StickerSetCovered +description: constructors and methods of type StickerSetCovered +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: StickerSetCovered +[Back to types index](index.md) + + + +### Possible values (constructors): + +[stickerSetCovered](../constructors/stickerSetCovered.md) + +[stickerSetMultiCovered](../constructors/stickerSetMultiCovered.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getAttachedStickers](../methods/messages_getAttachedStickers.md) + + + diff --git a/old_docs/API_docs_v91/types/TopPeer.md b/old_docs/API_docs_v91/types/TopPeer.md new file mode 100644 index 00000000..ff51630a --- /dev/null +++ b/old_docs/API_docs_v91/types/TopPeer.md @@ -0,0 +1,20 @@ +--- +title: TopPeer +description: constructors and methods of type TopPeer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: TopPeer +[Back to types index](index.md) + + + +### Possible values (constructors): + +[topPeer](../constructors/topPeer.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/TopPeerCategory.md b/old_docs/API_docs_v91/types/TopPeerCategory.md new file mode 100644 index 00000000..6aae0da3 --- /dev/null +++ b/old_docs/API_docs_v91/types/TopPeerCategory.md @@ -0,0 +1,30 @@ +--- +title: TopPeerCategory +description: constructors and methods of type TopPeerCategory +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: TopPeerCategory +[Back to types index](index.md) + + + +### Possible values (constructors): + +[topPeerCategoryBotsPM](../constructors/topPeerCategoryBotsPM.md) + +[topPeerCategoryBotsInline](../constructors/topPeerCategoryBotsInline.md) + +[topPeerCategoryCorrespondents](../constructors/topPeerCategoryCorrespondents.md) + +[topPeerCategoryGroups](../constructors/topPeerCategoryGroups.md) + +[topPeerCategoryChannels](../constructors/topPeerCategoryChannels.md) + +[topPeerCategoryPhoneCalls](../constructors/topPeerCategoryPhoneCalls.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/TopPeerCategoryPeers.md b/old_docs/API_docs_v91/types/TopPeerCategoryPeers.md new file mode 100644 index 00000000..9fe37e57 --- /dev/null +++ b/old_docs/API_docs_v91/types/TopPeerCategoryPeers.md @@ -0,0 +1,20 @@ +--- +title: TopPeerCategoryPeers +description: constructors and methods of type TopPeerCategoryPeers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: TopPeerCategoryPeers +[Back to types index](index.md) + + + +### Possible values (constructors): + +[topPeerCategoryPeers](../constructors/topPeerCategoryPeers.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/True.md b/old_docs/API_docs_v91/types/True.md new file mode 100644 index 00000000..ea96d248 --- /dev/null +++ b/old_docs/API_docs_v91/types/True.md @@ -0,0 +1,20 @@ +--- +title: True +description: constructors and methods of type True +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: True +[Back to types index](index.md) + + + +### Possible values (constructors): + +[true](../constructors/true.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Update.md b/old_docs/API_docs_v91/types/Update.md new file mode 100644 index 00000000..99a2cf86 --- /dev/null +++ b/old_docs/API_docs_v91/types/Update.md @@ -0,0 +1,156 @@ +--- +title: Update +description: constructors and methods of type Update +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Update +[Back to types index](index.md) + + + +### Possible values (constructors): + +[updateNewMessage](../constructors/updateNewMessage.md) + +[updateMessageID](../constructors/updateMessageID.md) + +[updateDeleteMessages](../constructors/updateDeleteMessages.md) + +[updateUserTyping](../constructors/updateUserTyping.md) + +[updateChatUserTyping](../constructors/updateChatUserTyping.md) + +[updateChatParticipants](../constructors/updateChatParticipants.md) + +[updateUserStatus](../constructors/updateUserStatus.md) + +[updateUserName](../constructors/updateUserName.md) + +[updateUserPhoto](../constructors/updateUserPhoto.md) + +[updateContactLink](../constructors/updateContactLink.md) + +[updateNewEncryptedMessage](../constructors/updateNewEncryptedMessage.md) + +[updateEncryptedChatTyping](../constructors/updateEncryptedChatTyping.md) + +[updateEncryption](../constructors/updateEncryption.md) + +[updateEncryptedMessagesRead](../constructors/updateEncryptedMessagesRead.md) + +[updateChatParticipantAdd](../constructors/updateChatParticipantAdd.md) + +[updateChatParticipantDelete](../constructors/updateChatParticipantDelete.md) + +[updateDcOptions](../constructors/updateDcOptions.md) + +[updateUserBlocked](../constructors/updateUserBlocked.md) + +[updateNotifySettings](../constructors/updateNotifySettings.md) + +[updateServiceNotification](../constructors/updateServiceNotification.md) + +[updatePrivacy](../constructors/updatePrivacy.md) + +[updateUserPhone](../constructors/updateUserPhone.md) + +[updateReadHistoryInbox](../constructors/updateReadHistoryInbox.md) + +[updateReadHistoryOutbox](../constructors/updateReadHistoryOutbox.md) + +[updateWebPage](../constructors/updateWebPage.md) + +[updateReadMessagesContents](../constructors/updateReadMessagesContents.md) + +[updateChannelTooLong](../constructors/updateChannelTooLong.md) + +[updateChannel](../constructors/updateChannel.md) + +[updateNewChannelMessage](../constructors/updateNewChannelMessage.md) + +[updateReadChannelInbox](../constructors/updateReadChannelInbox.md) + +[updateDeleteChannelMessages](../constructors/updateDeleteChannelMessages.md) + +[updateChannelMessageViews](../constructors/updateChannelMessageViews.md) + +[updateChatAdmins](../constructors/updateChatAdmins.md) + +[updateChatParticipantAdmin](../constructors/updateChatParticipantAdmin.md) + +[updateNewStickerSet](../constructors/updateNewStickerSet.md) + +[updateStickerSetsOrder](../constructors/updateStickerSetsOrder.md) + +[updateStickerSets](../constructors/updateStickerSets.md) + +[updateSavedGifs](../constructors/updateSavedGifs.md) + +[updateBotInlineQuery](../constructors/updateBotInlineQuery.md) + +[updateBotInlineSend](../constructors/updateBotInlineSend.md) + +[updateEditChannelMessage](../constructors/updateEditChannelMessage.md) + +[updateChannelPinnedMessage](../constructors/updateChannelPinnedMessage.md) + +[updateBotCallbackQuery](../constructors/updateBotCallbackQuery.md) + +[updateEditMessage](../constructors/updateEditMessage.md) + +[updateInlineBotCallbackQuery](../constructors/updateInlineBotCallbackQuery.md) + +[updateReadChannelOutbox](../constructors/updateReadChannelOutbox.md) + +[updateDraftMessage](../constructors/updateDraftMessage.md) + +[updateReadFeaturedStickers](../constructors/updateReadFeaturedStickers.md) + +[updateRecentStickers](../constructors/updateRecentStickers.md) + +[updateConfig](../constructors/updateConfig.md) + +[updatePtsChanged](../constructors/updatePtsChanged.md) + +[updateChannelWebPage](../constructors/updateChannelWebPage.md) + +[updateDialogPinned](../constructors/updateDialogPinned.md) + +[updatePinnedDialogs](../constructors/updatePinnedDialogs.md) + +[updateBotWebhookJSON](../constructors/updateBotWebhookJSON.md) + +[updateBotWebhookJSONQuery](../constructors/updateBotWebhookJSONQuery.md) + +[updateBotShippingQuery](../constructors/updateBotShippingQuery.md) + +[updateBotPrecheckoutQuery](../constructors/updateBotPrecheckoutQuery.md) + +[updatePhoneCall](../constructors/updatePhoneCall.md) + +[updateLangPackTooLong](../constructors/updateLangPackTooLong.md) + +[updateLangPack](../constructors/updateLangPack.md) + +[updateFavedStickers](../constructors/updateFavedStickers.md) + +[updateChannelReadMessagesContents](../constructors/updateChannelReadMessagesContents.md) + +[updateContactsReset](../constructors/updateContactsReset.md) + +[updateChannelAvailableMessages](../constructors/updateChannelAvailableMessages.md) + +[updateDialogUnreadMark](../constructors/updateDialogUnreadMark.md) + +[updateUserPinnedMessage](../constructors/updateUserPinnedMessage.md) + +[updateChatPinnedMessage](../constructors/updateChatPinnedMessage.md) + +[updateMessagePoll](../constructors/updateMessagePoll.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/Updates.md b/old_docs/API_docs_v91/types/Updates.md new file mode 100644 index 00000000..f913f639 --- /dev/null +++ b/old_docs/API_docs_v91/types/Updates.md @@ -0,0 +1,106 @@ +--- +title: Updates +description: constructors and methods of type Updates +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: Updates +[Back to types index](index.md) + + + +### Possible values (constructors): + +[updatesTooLong](../constructors/updatesTooLong.md) + +[updateShortMessage](../constructors/updateShortMessage.md) + +[updateShortChatMessage](../constructors/updateShortChatMessage.md) + +[updateShort](../constructors/updateShort.md) + +[updatesCombined](../constructors/updatesCombined.md) + +[updates](../constructors/updates.md) + +[updateShortSentMessage](../constructors/updateShortSentMessage.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getNotifyExceptions](../methods/account_getNotifyExceptions.md) + +[$MadelineProto->messages->sendMessage](../methods/messages_sendMessage.md) + +[$MadelineProto->messages->sendMedia](../methods/messages_sendMedia.md) + +[$MadelineProto->messages->forwardMessages](../methods/messages_forwardMessages.md) + +[$MadelineProto->messages->editChatTitle](../methods/messages_editChatTitle.md) + +[$MadelineProto->messages->editChatPhoto](../methods/messages_editChatPhoto.md) + +[$MadelineProto->messages->addChatUser](../methods/messages_addChatUser.md) + +[$MadelineProto->messages->deleteChatUser](../methods/messages_deleteChatUser.md) + +[$MadelineProto->messages->createChat](../methods/messages_createChat.md) + +[$MadelineProto->messages->importChatInvite](../methods/messages_importChatInvite.md) + +[$MadelineProto->messages->startBot](../methods/messages_startBot.md) + +[$MadelineProto->messages->toggleChatAdmins](../methods/messages_toggleChatAdmins.md) + +[$MadelineProto->messages->migrateChat](../methods/messages_migrateChat.md) + +[$MadelineProto->messages->sendInlineBotResult](../methods/messages_sendInlineBotResult.md) + +[$MadelineProto->messages->editMessage](../methods/messages_editMessage.md) + +[$MadelineProto->messages->getAllDrafts](../methods/messages_getAllDrafts.md) + +[$MadelineProto->messages->setGameScore](../methods/messages_setGameScore.md) + +[$MadelineProto->messages->sendScreenshotNotification](../methods/messages_sendScreenshotNotification.md) + +[$MadelineProto->messages->sendMultiMedia](../methods/messages_sendMultiMedia.md) + +[$MadelineProto->messages->updatePinnedMessage](../methods/messages_updatePinnedMessage.md) + +[$MadelineProto->messages->sendVote](../methods/messages_sendVote.md) + +[$MadelineProto->messages->getPollResults](../methods/messages_getPollResults.md) + +[$MadelineProto->help->getAppChangelog](../methods/help_getAppChangelog.md) + +[$MadelineProto->channels->createChannel](../methods/channels_createChannel.md) + +[$MadelineProto->channels->editAdmin](../methods/channels_editAdmin.md) + +[$MadelineProto->channels->editTitle](../methods/channels_editTitle.md) + +[$MadelineProto->channels->editPhoto](../methods/channels_editPhoto.md) + +[$MadelineProto->channels->joinChannel](../methods/channels_joinChannel.md) + +[$MadelineProto->channels->leaveChannel](../methods/channels_leaveChannel.md) + +[$MadelineProto->channels->inviteToChannel](../methods/channels_inviteToChannel.md) + +[$MadelineProto->channels->deleteChannel](../methods/channels_deleteChannel.md) + +[$MadelineProto->channels->toggleInvites](../methods/channels_toggleInvites.md) + +[$MadelineProto->channels->toggleSignatures](../methods/channels_toggleSignatures.md) + +[$MadelineProto->channels->editBanned](../methods/channels_editBanned.md) + +[$MadelineProto->channels->togglePreHistoryHidden](../methods/channels_togglePreHistoryHidden.md) + +[$MadelineProto->phone->discardCall](../methods/phone_discardCall.md) + +[$MadelineProto->phone->setCallRating](../methods/phone_setCallRating.md) + + + diff --git a/old_docs/API_docs_v91/types/User.md b/old_docs/API_docs_v91/types/User.md new file mode 100644 index 00000000..49c9af72 --- /dev/null +++ b/old_docs/API_docs_v91/types/User.md @@ -0,0 +1,54 @@ +--- +title: User +description: constructors and methods of type User +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: User +[Back to types index](index.md) + + + +You can directly provide the [Update](Update.md) or [Message](Message.md) object here, MadelineProto will automatically extract the destination chat id. + +The following syntaxes can also be used: + +``` +$User = '@username'; // Username + +$User = 'me'; // The currently logged-in user + +$User = 44700; // bot API id (users) +$User = -492772765; // bot API id (chats) +$User = -10038575794; // bot API id (channels) + +$User = 'https://t.me/danogentili'; // t.me URLs +$User = 'https://t.me/joinchat/asfln1-21fa_'; // t.me invite links + +$User = 'user#44700'; // tg-cli style id (users) +$User = 'chat#492772765'; // tg-cli style id (chats) +$User = 'channel#38575794'; // tg-cli style id (channels) +``` + +A [Chat](Chat.md), a [User](User.md), an [InputPeer](InputPeer.md), an [InputDialogPeer](InputDialogPeer.md), an [InputNotifyPeer](InputNotifyPeer.md), an [InputUser](InputUser.md), an [InputChannel](InputChannel.md), a [Peer](Peer.md), an [DialogPeer](DialogPeer.md), [NotifyPeer](NotifyPeer.md), or a [Chat](Chat.md) object can also be used. + + +### Possible values (constructors): + +[userEmpty](../constructors/userEmpty.md) + +[user](../constructors/user.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->updateProfile](../methods/account_updateProfile.md) + +[$MadelineProto->account->updateUsername](../methods/account_updateUsername.md) + +[$MadelineProto->account->changePhone](../methods/account_changePhone.md) + +[$MadelineProto->users->getUsers](../methods/users_getUsers.md) + + + diff --git a/old_docs/API_docs_v91/types/UserFull.md b/old_docs/API_docs_v91/types/UserFull.md new file mode 100644 index 00000000..79ad30bb --- /dev/null +++ b/old_docs/API_docs_v91/types/UserFull.md @@ -0,0 +1,22 @@ +--- +title: UserFull +description: constructors and methods of type UserFull +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: UserFull +[Back to types index](index.md) + + + +### Possible values (constructors): + +[userFull](../constructors/userFull.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->users->getFullUser](../methods/users_getFullUser.md) + + + diff --git a/old_docs/API_docs_v91/types/UserProfilePhoto.md b/old_docs/API_docs_v91/types/UserProfilePhoto.md new file mode 100644 index 00000000..e5243a2e --- /dev/null +++ b/old_docs/API_docs_v91/types/UserProfilePhoto.md @@ -0,0 +1,24 @@ +--- +title: UserProfilePhoto +description: constructors and methods of type UserProfilePhoto +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: UserProfilePhoto +[Back to types index](index.md) + + + +### Possible values (constructors): + +[userProfilePhotoEmpty](../constructors/userProfilePhotoEmpty.md) + +[userProfilePhoto](../constructors/userProfilePhoto.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->photos->updateProfilePhoto](../methods/photos_updateProfilePhoto.md) + + + diff --git a/old_docs/API_docs_v91/types/UserStatus.md b/old_docs/API_docs_v91/types/UserStatus.md new file mode 100644 index 00000000..a5f9ec16 --- /dev/null +++ b/old_docs/API_docs_v91/types/UserStatus.md @@ -0,0 +1,30 @@ +--- +title: UserStatus +description: constructors and methods of type UserStatus +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: UserStatus +[Back to types index](index.md) + + + +### Possible values (constructors): + +[userStatusEmpty](../constructors/userStatusEmpty.md) + +[userStatusOnline](../constructors/userStatusOnline.md) + +[userStatusOffline](../constructors/userStatusOffline.md) + +[userStatusRecently](../constructors/userStatusRecently.md) + +[userStatusLastWeek](../constructors/userStatusLastWeek.md) + +[userStatusLastMonth](../constructors/userStatusLastMonth.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/WallPaper.md b/old_docs/API_docs_v91/types/WallPaper.md new file mode 100644 index 00000000..8c5ac7cf --- /dev/null +++ b/old_docs/API_docs_v91/types/WallPaper.md @@ -0,0 +1,24 @@ +--- +title: WallPaper +description: constructors and methods of type WallPaper +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: WallPaper +[Back to types index](index.md) + + + +### Possible values (constructors): + +[wallPaper](../constructors/wallPaper.md) + +[wallPaperSolid](../constructors/wallPaperSolid.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getWallPapers](../methods/account_getWallPapers.md) + + + diff --git a/old_docs/API_docs_v91/types/WebAuthorization.md b/old_docs/API_docs_v91/types/WebAuthorization.md new file mode 100644 index 00000000..54c02f7d --- /dev/null +++ b/old_docs/API_docs_v91/types/WebAuthorization.md @@ -0,0 +1,20 @@ +--- +title: WebAuthorization +description: constructors and methods of type WebAuthorization +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: WebAuthorization +[Back to types index](index.md) + + + +### Possible values (constructors): + +[webAuthorization](../constructors/webAuthorization.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/WebDocument.md b/old_docs/API_docs_v91/types/WebDocument.md new file mode 100644 index 00000000..8727b6b4 --- /dev/null +++ b/old_docs/API_docs_v91/types/WebDocument.md @@ -0,0 +1,22 @@ +--- +title: WebDocument +description: constructors and methods of type WebDocument +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: WebDocument +[Back to types index](index.md) + + + +### Possible values (constructors): + +[webDocument](../constructors/webDocument.md) + +[webDocumentNoProxy](../constructors/webDocumentNoProxy.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/WebPage.md b/old_docs/API_docs_v91/types/WebPage.md new file mode 100644 index 00000000..a3df791f --- /dev/null +++ b/old_docs/API_docs_v91/types/WebPage.md @@ -0,0 +1,28 @@ +--- +title: WebPage +description: constructors and methods of type WebPage +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: WebPage +[Back to types index](index.md) + + + +### Possible values (constructors): + +[webPageEmpty](../constructors/webPageEmpty.md) + +[webPagePending](../constructors/webPagePending.md) + +[webPage](../constructors/webPage.md) + +[webPageNotModified](../constructors/webPageNotModified.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getWebPage](../methods/messages_getWebPage.md) + + + diff --git a/old_docs/API_docs_v91/types/X.md b/old_docs/API_docs_v91/types/X.md new file mode 100644 index 00000000..3b234633 --- /dev/null +++ b/old_docs/API_docs_v91/types/X.md @@ -0,0 +1,9 @@ +--- +title: X +description: Represents a TL serialized payload +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: X +[Back to constructor index](index.md) + +Represents a TL serialized payload. diff --git a/old_docs/API_docs_v91/types/account_AuthorizationForm.md b/old_docs/API_docs_v91/types/account_AuthorizationForm.md new file mode 100644 index 00000000..5eec2b92 --- /dev/null +++ b/old_docs/API_docs_v91/types/account_AuthorizationForm.md @@ -0,0 +1,22 @@ +--- +title: account_AuthorizationForm +description: constructors and methods of type account_AuthorizationForm +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: account\_AuthorizationForm +[Back to types index](index.md) + + + +### Possible values (constructors): + +[account\_authorizationForm](../constructors/account_authorizationForm.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getAuthorizationForm](../methods/account_getAuthorizationForm.md) + + + diff --git a/old_docs/API_docs_v91/types/account_Authorizations.md b/old_docs/API_docs_v91/types/account_Authorizations.md new file mode 100644 index 00000000..4709ddb5 --- /dev/null +++ b/old_docs/API_docs_v91/types/account_Authorizations.md @@ -0,0 +1,22 @@ +--- +title: account_Authorizations +description: constructors and methods of type account_Authorizations +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: account\_Authorizations +[Back to types index](index.md) + + + +### Possible values (constructors): + +[account\_authorizations](../constructors/account_authorizations.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getAuthorizations](../methods/account_getAuthorizations.md) + + + diff --git a/old_docs/API_docs_v91/types/account_Password.md b/old_docs/API_docs_v91/types/account_Password.md new file mode 100644 index 00000000..f3b6e065 --- /dev/null +++ b/old_docs/API_docs_v91/types/account_Password.md @@ -0,0 +1,22 @@ +--- +title: account_Password +description: constructors and methods of type account_Password +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: account\_Password +[Back to types index](index.md) + + + +### Possible values (constructors): + +[account\_password](../constructors/account_password.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getPassword](../methods/account_getPassword.md) + + + diff --git a/old_docs/API_docs_v91/types/account_PasswordInputSettings.md b/old_docs/API_docs_v91/types/account_PasswordInputSettings.md new file mode 100644 index 00000000..a6455eb8 --- /dev/null +++ b/old_docs/API_docs_v91/types/account_PasswordInputSettings.md @@ -0,0 +1,20 @@ +--- +title: account_PasswordInputSettings +description: constructors and methods of type account_PasswordInputSettings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: account\_PasswordInputSettings +[Back to types index](index.md) + + + +### Possible values (constructors): + +[account\_passwordInputSettings](../constructors/account_passwordInputSettings.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/account_PasswordSettings.md b/old_docs/API_docs_v91/types/account_PasswordSettings.md new file mode 100644 index 00000000..687eb217 --- /dev/null +++ b/old_docs/API_docs_v91/types/account_PasswordSettings.md @@ -0,0 +1,22 @@ +--- +title: account_PasswordSettings +description: constructors and methods of type account_PasswordSettings +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: account\_PasswordSettings +[Back to types index](index.md) + + + +### Possible values (constructors): + +[account\_passwordSettings](../constructors/account_passwordSettings.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getPasswordSettings](../methods/account_getPasswordSettings.md) + + + diff --git a/old_docs/API_docs_v91/types/account_PrivacyRules.md b/old_docs/API_docs_v91/types/account_PrivacyRules.md new file mode 100644 index 00000000..40b00077 --- /dev/null +++ b/old_docs/API_docs_v91/types/account_PrivacyRules.md @@ -0,0 +1,24 @@ +--- +title: account_PrivacyRules +description: constructors and methods of type account_PrivacyRules +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: account\_PrivacyRules +[Back to types index](index.md) + + + +### Possible values (constructors): + +[account\_privacyRules](../constructors/account_privacyRules.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getPrivacy](../methods/account_getPrivacy.md) + +[$MadelineProto->account->setPrivacy](../methods/account_setPrivacy.md) + + + diff --git a/old_docs/API_docs_v91/types/account_SentEmailCode.md b/old_docs/API_docs_v91/types/account_SentEmailCode.md new file mode 100644 index 00000000..4aa38335 --- /dev/null +++ b/old_docs/API_docs_v91/types/account_SentEmailCode.md @@ -0,0 +1,22 @@ +--- +title: account_SentEmailCode +description: constructors and methods of type account_SentEmailCode +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: account\_SentEmailCode +[Back to types index](index.md) + + + +### Possible values (constructors): + +[account\_sentEmailCode](../constructors/account_sentEmailCode.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->sendVerifyEmailCode](../methods/account_sendVerifyEmailCode.md) + + + diff --git a/old_docs/API_docs_v91/types/account_Takeout.md b/old_docs/API_docs_v91/types/account_Takeout.md new file mode 100644 index 00000000..26960f88 --- /dev/null +++ b/old_docs/API_docs_v91/types/account_Takeout.md @@ -0,0 +1,22 @@ +--- +title: account_Takeout +description: constructors and methods of type account_Takeout +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: account\_Takeout +[Back to types index](index.md) + + + +### Possible values (constructors): + +[account\_takeout](../constructors/account_takeout.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->initTakeoutSession](../methods/account_initTakeoutSession.md) + + + diff --git a/old_docs/API_docs_v91/types/account_TmpPassword.md b/old_docs/API_docs_v91/types/account_TmpPassword.md new file mode 100644 index 00000000..d7557921 --- /dev/null +++ b/old_docs/API_docs_v91/types/account_TmpPassword.md @@ -0,0 +1,22 @@ +--- +title: account_TmpPassword +description: constructors and methods of type account_TmpPassword +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: account\_TmpPassword +[Back to types index](index.md) + + + +### Possible values (constructors): + +[account\_tmpPassword](../constructors/account_tmpPassword.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getTmpPassword](../methods/account_getTmpPassword.md) + + + diff --git a/old_docs/API_docs_v91/types/account_WebAuthorizations.md b/old_docs/API_docs_v91/types/account_WebAuthorizations.md new file mode 100644 index 00000000..1202632b --- /dev/null +++ b/old_docs/API_docs_v91/types/account_WebAuthorizations.md @@ -0,0 +1,22 @@ +--- +title: account_WebAuthorizations +description: constructors and methods of type account_WebAuthorizations +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: account\_WebAuthorizations +[Back to types index](index.md) + + + +### Possible values (constructors): + +[account\_webAuthorizations](../constructors/account_webAuthorizations.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->account->getWebAuthorizations](../methods/account_getWebAuthorizations.md) + + + diff --git a/old_docs/API_docs_v91/types/auth_Authorization.md b/old_docs/API_docs_v91/types/auth_Authorization.md new file mode 100644 index 00000000..5a34fc2d --- /dev/null +++ b/old_docs/API_docs_v91/types/auth_Authorization.md @@ -0,0 +1,32 @@ +--- +title: auth_Authorization +description: constructors and methods of type auth_Authorization +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: auth\_Authorization +[Back to types index](index.md) + + + +### Possible values (constructors): + +[auth\_authorization](../constructors/auth_authorization.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->auth->signUp](../methods/auth_signUp.md) + +[$MadelineProto->auth->signIn](../methods/auth_signIn.md) + +[$MadelineProto->auth->importAuthorization](../methods/auth_importAuthorization.md) + +[$MadelineProto->auth->importBotAuthorization](../methods/auth_importBotAuthorization.md) + +[$MadelineProto->auth->checkPassword](../methods/auth_checkPassword.md) + +[$MadelineProto->auth->recoverPassword](../methods/auth_recoverPassword.md) + + + diff --git a/old_docs/API_docs_v91/types/auth_CheckedPhone.md b/old_docs/API_docs_v91/types/auth_CheckedPhone.md new file mode 100644 index 00000000..e2b823f7 --- /dev/null +++ b/old_docs/API_docs_v91/types/auth_CheckedPhone.md @@ -0,0 +1,20 @@ +--- +title: auth_CheckedPhone +description: constructors and methods of type auth_CheckedPhone +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: auth\_CheckedPhone +[Back to types index](index.md) + + + +### Possible values (constructors): + +[auth\_checkedPhone](../constructors/auth_checkedPhone.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/auth_CodeType.md b/old_docs/API_docs_v91/types/auth_CodeType.md new file mode 100644 index 00000000..3cd9a7b7 --- /dev/null +++ b/old_docs/API_docs_v91/types/auth_CodeType.md @@ -0,0 +1,24 @@ +--- +title: auth_CodeType +description: constructors and methods of type auth_CodeType +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: auth\_CodeType +[Back to types index](index.md) + + + +### Possible values (constructors): + +[auth\_codeTypeSms](../constructors/auth_codeTypeSms.md) + +[auth\_codeTypeCall](../constructors/auth_codeTypeCall.md) + +[auth\_codeTypeFlashCall](../constructors/auth_codeTypeFlashCall.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/auth_ExportedAuthorization.md b/old_docs/API_docs_v91/types/auth_ExportedAuthorization.md new file mode 100644 index 00000000..69e5c42e --- /dev/null +++ b/old_docs/API_docs_v91/types/auth_ExportedAuthorization.md @@ -0,0 +1,22 @@ +--- +title: auth_ExportedAuthorization +description: constructors and methods of type auth_ExportedAuthorization +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: auth\_ExportedAuthorization +[Back to types index](index.md) + + + +### Possible values (constructors): + +[auth\_exportedAuthorization](../constructors/auth_exportedAuthorization.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->auth->exportAuthorization](../methods/auth_exportAuthorization.md) + + + diff --git a/old_docs/API_docs_v91/types/auth_PasswordRecovery.md b/old_docs/API_docs_v91/types/auth_PasswordRecovery.md new file mode 100644 index 00000000..4962bf42 --- /dev/null +++ b/old_docs/API_docs_v91/types/auth_PasswordRecovery.md @@ -0,0 +1,22 @@ +--- +title: auth_PasswordRecovery +description: constructors and methods of type auth_PasswordRecovery +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: auth\_PasswordRecovery +[Back to types index](index.md) + + + +### Possible values (constructors): + +[auth\_passwordRecovery](../constructors/auth_passwordRecovery.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->auth->requestPasswordRecovery](../methods/auth_requestPasswordRecovery.md) + + + diff --git a/old_docs/API_docs_v91/types/auth_SentCode.md b/old_docs/API_docs_v91/types/auth_SentCode.md new file mode 100644 index 00000000..140d956c --- /dev/null +++ b/old_docs/API_docs_v91/types/auth_SentCode.md @@ -0,0 +1,30 @@ +--- +title: auth_SentCode +description: constructors and methods of type auth_SentCode +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: auth\_SentCode +[Back to types index](index.md) + + + +### Possible values (constructors): + +[auth\_sentCode](../constructors/auth_sentCode.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->auth->sendCode](../methods/auth_sendCode.md) + +[$MadelineProto->auth->resendCode](../methods/auth_resendCode.md) + +[$MadelineProto->account->sendChangePhoneCode](../methods/account_sendChangePhoneCode.md) + +[$MadelineProto->account->sendConfirmPhoneCode](../methods/account_sendConfirmPhoneCode.md) + +[$MadelineProto->account->sendVerifyPhoneCode](../methods/account_sendVerifyPhoneCode.md) + + + diff --git a/old_docs/API_docs_v91/types/auth_SentCodeType.md b/old_docs/API_docs_v91/types/auth_SentCodeType.md new file mode 100644 index 00000000..8dfcb93b --- /dev/null +++ b/old_docs/API_docs_v91/types/auth_SentCodeType.md @@ -0,0 +1,26 @@ +--- +title: auth_SentCodeType +description: constructors and methods of type auth_SentCodeType +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: auth\_SentCodeType +[Back to types index](index.md) + + + +### Possible values (constructors): + +[auth\_sentCodeTypeApp](../constructors/auth_sentCodeTypeApp.md) + +[auth\_sentCodeTypeSms](../constructors/auth_sentCodeTypeSms.md) + +[auth\_sentCodeTypeCall](../constructors/auth_sentCodeTypeCall.md) + +[auth\_sentCodeTypeFlashCall](../constructors/auth_sentCodeTypeFlashCall.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/bytes.md b/old_docs/API_docs_v91/types/bytes.md new file mode 100644 index 00000000..a4d8c2f7 --- /dev/null +++ b/old_docs/API_docs_v91/types/bytes.md @@ -0,0 +1,17 @@ +--- +title: bytes +description: A string of variable length +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: bytes +[Back to constructor index](index.md) + +An object of type `\danog\MadelineProto\TL\Types\Bytes`. +When casted to string, turns into a string of bytes of variable length, with length smaller than or equal to 16777215. +When JSON-serialized, turns into an array of the following format: +``` +[ + '_' => 'bytes', + 'bytes' => base64_encode($contents) +]; +``` diff --git a/old_docs/API_docs_v91/types/channels_AdminLogResults.md b/old_docs/API_docs_v91/types/channels_AdminLogResults.md new file mode 100644 index 00000000..4e9b5544 --- /dev/null +++ b/old_docs/API_docs_v91/types/channels_AdminLogResults.md @@ -0,0 +1,22 @@ +--- +title: channels_AdminLogResults +description: constructors and methods of type channels_AdminLogResults +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: channels\_AdminLogResults +[Back to types index](index.md) + + + +### Possible values (constructors): + +[channels\_adminLogResults](../constructors/channels_adminLogResults.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->channels->getAdminLog](../methods/channels_getAdminLog.md) + + + diff --git a/old_docs/API_docs_v91/types/channels_ChannelParticipant.md b/old_docs/API_docs_v91/types/channels_ChannelParticipant.md new file mode 100644 index 00000000..3d4667c3 --- /dev/null +++ b/old_docs/API_docs_v91/types/channels_ChannelParticipant.md @@ -0,0 +1,22 @@ +--- +title: channels_ChannelParticipant +description: constructors and methods of type channels_ChannelParticipant +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: channels\_ChannelParticipant +[Back to types index](index.md) + + + +### Possible values (constructors): + +[channels\_channelParticipant](../constructors/channels_channelParticipant.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->channels->getParticipant](../methods/channels_getParticipant.md) + + + diff --git a/old_docs/API_docs_v91/types/channels_ChannelParticipants.md b/old_docs/API_docs_v91/types/channels_ChannelParticipants.md new file mode 100644 index 00000000..80a41dd9 --- /dev/null +++ b/old_docs/API_docs_v91/types/channels_ChannelParticipants.md @@ -0,0 +1,24 @@ +--- +title: channels_ChannelParticipants +description: constructors and methods of type channels_ChannelParticipants +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: channels\_ChannelParticipants +[Back to types index](index.md) + + + +### Possible values (constructors): + +[channels\_channelParticipants](../constructors/channels_channelParticipants.md) + +[channels\_channelParticipantsNotModified](../constructors/channels_channelParticipantsNotModified.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->channels->getParticipants](../methods/channels_getParticipants.md) + + + diff --git a/old_docs/API_docs_v91/types/contacts_Blocked.md b/old_docs/API_docs_v91/types/contacts_Blocked.md new file mode 100644 index 00000000..3e1f02eb --- /dev/null +++ b/old_docs/API_docs_v91/types/contacts_Blocked.md @@ -0,0 +1,24 @@ +--- +title: contacts_Blocked +description: constructors and methods of type contacts_Blocked +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: contacts\_Blocked +[Back to types index](index.md) + + + +### Possible values (constructors): + +[contacts\_blocked](../constructors/contacts_blocked.md) + +[contacts\_blockedSlice](../constructors/contacts_blockedSlice.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->getBlocked](../methods/contacts_getBlocked.md) + + + diff --git a/old_docs/API_docs_v91/types/contacts_Contacts.md b/old_docs/API_docs_v91/types/contacts_Contacts.md new file mode 100644 index 00000000..5d6c9506 --- /dev/null +++ b/old_docs/API_docs_v91/types/contacts_Contacts.md @@ -0,0 +1,24 @@ +--- +title: contacts_Contacts +description: constructors and methods of type contacts_Contacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: contacts\_Contacts +[Back to types index](index.md) + + + +### Possible values (constructors): + +[contacts\_contactsNotModified](../constructors/contacts_contactsNotModified.md) + +[contacts\_contacts](../constructors/contacts_contacts.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->getContacts](../methods/contacts_getContacts.md) + + + diff --git a/old_docs/API_docs_v91/types/contacts_Found.md b/old_docs/API_docs_v91/types/contacts_Found.md new file mode 100644 index 00000000..806101cf --- /dev/null +++ b/old_docs/API_docs_v91/types/contacts_Found.md @@ -0,0 +1,22 @@ +--- +title: contacts_Found +description: constructors and methods of type contacts_Found +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: contacts\_Found +[Back to types index](index.md) + + + +### Possible values (constructors): + +[contacts\_found](../constructors/contacts_found.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->search](../methods/contacts_search.md) + + + diff --git a/old_docs/API_docs_v91/types/contacts_ImportedContacts.md b/old_docs/API_docs_v91/types/contacts_ImportedContacts.md new file mode 100644 index 00000000..faf7e615 --- /dev/null +++ b/old_docs/API_docs_v91/types/contacts_ImportedContacts.md @@ -0,0 +1,22 @@ +--- +title: contacts_ImportedContacts +description: constructors and methods of type contacts_ImportedContacts +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: contacts\_ImportedContacts +[Back to types index](index.md) + + + +### Possible values (constructors): + +[contacts\_importedContacts](../constructors/contacts_importedContacts.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->importContacts](../methods/contacts_importContacts.md) + + + diff --git a/old_docs/API_docs_v91/types/contacts_Link.md b/old_docs/API_docs_v91/types/contacts_Link.md new file mode 100644 index 00000000..01556606 --- /dev/null +++ b/old_docs/API_docs_v91/types/contacts_Link.md @@ -0,0 +1,22 @@ +--- +title: contacts_Link +description: constructors and methods of type contacts_Link +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: contacts\_Link +[Back to types index](index.md) + + + +### Possible values (constructors): + +[contacts\_link](../constructors/contacts_link.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->deleteContact](../methods/contacts_deleteContact.md) + + + diff --git a/old_docs/API_docs_v91/types/contacts_ResolvedPeer.md b/old_docs/API_docs_v91/types/contacts_ResolvedPeer.md new file mode 100644 index 00000000..cf107f7c --- /dev/null +++ b/old_docs/API_docs_v91/types/contacts_ResolvedPeer.md @@ -0,0 +1,22 @@ +--- +title: contacts_ResolvedPeer +description: constructors and methods of type contacts_ResolvedPeer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: contacts\_ResolvedPeer +[Back to types index](index.md) + + + +### Possible values (constructors): + +[contacts\_resolvedPeer](../constructors/contacts_resolvedPeer.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->resolveUsername](../methods/contacts_resolveUsername.md) + + + diff --git a/old_docs/API_docs_v91/types/contacts_TopPeers.md b/old_docs/API_docs_v91/types/contacts_TopPeers.md new file mode 100644 index 00000000..dc8ee478 --- /dev/null +++ b/old_docs/API_docs_v91/types/contacts_TopPeers.md @@ -0,0 +1,26 @@ +--- +title: contacts_TopPeers +description: constructors and methods of type contacts_TopPeers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: contacts\_TopPeers +[Back to types index](index.md) + + + +### Possible values (constructors): + +[contacts\_topPeersNotModified](../constructors/contacts_topPeersNotModified.md) + +[contacts\_topPeers](../constructors/contacts_topPeers.md) + +[contacts\_topPeersDisabled](../constructors/contacts_topPeersDisabled.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->contacts->getTopPeers](../methods/contacts_getTopPeers.md) + + + diff --git a/old_docs/API_docs_v91/types/double.md b/old_docs/API_docs_v91/types/double.md new file mode 100644 index 00000000..a6d2ee55 --- /dev/null +++ b/old_docs/API_docs_v91/types/double.md @@ -0,0 +1,9 @@ +--- +title: double +description: A double precision floating point number +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: double +[Back to constructor index](index.md) + +A double precision floating point number, single precision can also be used (float). diff --git a/old_docs/API_docs_v91/types/help_AppUpdate.md b/old_docs/API_docs_v91/types/help_AppUpdate.md new file mode 100644 index 00000000..1f296a70 --- /dev/null +++ b/old_docs/API_docs_v91/types/help_AppUpdate.md @@ -0,0 +1,24 @@ +--- +title: help_AppUpdate +description: constructors and methods of type help_AppUpdate +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_AppUpdate +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_appUpdate](../constructors/help_appUpdate.md) + +[help\_noAppUpdate](../constructors/help_noAppUpdate.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getAppUpdate](../methods/help_getAppUpdate.md) + + + diff --git a/old_docs/API_docs_v91/types/help_ConfigSimple.md b/old_docs/API_docs_v91/types/help_ConfigSimple.md new file mode 100644 index 00000000..81678d74 --- /dev/null +++ b/old_docs/API_docs_v91/types/help_ConfigSimple.md @@ -0,0 +1,20 @@ +--- +title: help_ConfigSimple +description: constructors and methods of type help_ConfigSimple +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_ConfigSimple +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_configSimple](../constructors/help_configSimple.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/help_DeepLinkInfo.md b/old_docs/API_docs_v91/types/help_DeepLinkInfo.md new file mode 100644 index 00000000..776e8e09 --- /dev/null +++ b/old_docs/API_docs_v91/types/help_DeepLinkInfo.md @@ -0,0 +1,24 @@ +--- +title: help_DeepLinkInfo +description: constructors and methods of type help_DeepLinkInfo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_DeepLinkInfo +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_deepLinkInfoEmpty](../constructors/help_deepLinkInfoEmpty.md) + +[help\_deepLinkInfo](../constructors/help_deepLinkInfo.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getDeepLinkInfo](../methods/help_getDeepLinkInfo.md) + + + diff --git a/old_docs/API_docs_v91/types/help_InviteText.md b/old_docs/API_docs_v91/types/help_InviteText.md new file mode 100644 index 00000000..018d35bf --- /dev/null +++ b/old_docs/API_docs_v91/types/help_InviteText.md @@ -0,0 +1,22 @@ +--- +title: help_InviteText +description: constructors and methods of type help_InviteText +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_InviteText +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_inviteText](../constructors/help_inviteText.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getInviteText](../methods/help_getInviteText.md) + + + diff --git a/old_docs/API_docs_v91/types/help_PassportConfig.md b/old_docs/API_docs_v91/types/help_PassportConfig.md new file mode 100644 index 00000000..e03abab7 --- /dev/null +++ b/old_docs/API_docs_v91/types/help_PassportConfig.md @@ -0,0 +1,24 @@ +--- +title: help_PassportConfig +description: constructors and methods of type help_PassportConfig +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_PassportConfig +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_passportConfigNotModified](../constructors/help_passportConfigNotModified.md) + +[help\_passportConfig](../constructors/help_passportConfig.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getPassportConfig](../methods/help_getPassportConfig.md) + + + diff --git a/old_docs/API_docs_v91/types/help_ProxyData.md b/old_docs/API_docs_v91/types/help_ProxyData.md new file mode 100644 index 00000000..1bc6839e --- /dev/null +++ b/old_docs/API_docs_v91/types/help_ProxyData.md @@ -0,0 +1,24 @@ +--- +title: help_ProxyData +description: constructors and methods of type help_ProxyData +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_ProxyData +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_proxyDataEmpty](../constructors/help_proxyDataEmpty.md) + +[help\_proxyDataPromo](../constructors/help_proxyDataPromo.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getProxyData](../methods/help_getProxyData.md) + + + diff --git a/old_docs/API_docs_v91/types/help_RecentMeUrls.md b/old_docs/API_docs_v91/types/help_RecentMeUrls.md new file mode 100644 index 00000000..691af1c3 --- /dev/null +++ b/old_docs/API_docs_v91/types/help_RecentMeUrls.md @@ -0,0 +1,22 @@ +--- +title: help_RecentMeUrls +description: constructors and methods of type help_RecentMeUrls +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_RecentMeUrls +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_recentMeUrls](../constructors/help_recentMeUrls.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getRecentMeUrls](../methods/help_getRecentMeUrls.md) + + + diff --git a/old_docs/API_docs_v91/types/help_Support.md b/old_docs/API_docs_v91/types/help_Support.md new file mode 100644 index 00000000..26de447b --- /dev/null +++ b/old_docs/API_docs_v91/types/help_Support.md @@ -0,0 +1,22 @@ +--- +title: help_Support +description: constructors and methods of type help_Support +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_Support +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_support](../constructors/help_support.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getSupport](../methods/help_getSupport.md) + + + diff --git a/old_docs/API_docs_v91/types/help_SupportName.md b/old_docs/API_docs_v91/types/help_SupportName.md new file mode 100644 index 00000000..e89309a2 --- /dev/null +++ b/old_docs/API_docs_v91/types/help_SupportName.md @@ -0,0 +1,22 @@ +--- +title: help_SupportName +description: constructors and methods of type help_SupportName +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_SupportName +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_supportName](../constructors/help_supportName.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getSupportName](../methods/help_getSupportName.md) + + + diff --git a/old_docs/API_docs_v91/types/help_TermsOfService.md b/old_docs/API_docs_v91/types/help_TermsOfService.md new file mode 100644 index 00000000..24f8eb68 --- /dev/null +++ b/old_docs/API_docs_v91/types/help_TermsOfService.md @@ -0,0 +1,20 @@ +--- +title: help_TermsOfService +description: constructors and methods of type help_TermsOfService +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_TermsOfService +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_termsOfService](../constructors/help_termsOfService.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/help_TermsOfServiceUpdate.md b/old_docs/API_docs_v91/types/help_TermsOfServiceUpdate.md new file mode 100644 index 00000000..0e4f1ef2 --- /dev/null +++ b/old_docs/API_docs_v91/types/help_TermsOfServiceUpdate.md @@ -0,0 +1,24 @@ +--- +title: help_TermsOfServiceUpdate +description: constructors and methods of type help_TermsOfServiceUpdate +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_TermsOfServiceUpdate +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_termsOfServiceUpdateEmpty](../constructors/help_termsOfServiceUpdateEmpty.md) + +[help\_termsOfServiceUpdate](../constructors/help_termsOfServiceUpdate.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getTermsOfServiceUpdate](../methods/help_getTermsOfServiceUpdate.md) + + + diff --git a/old_docs/API_docs_v91/types/help_UserInfo.md b/old_docs/API_docs_v91/types/help_UserInfo.md new file mode 100644 index 00000000..87ca4327 --- /dev/null +++ b/old_docs/API_docs_v91/types/help_UserInfo.md @@ -0,0 +1,26 @@ +--- +title: help_UserInfo +description: constructors and methods of type help_UserInfo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: help\_UserInfo +[Back to types index](index.md) + + + +### Possible values (constructors): + +[help\_userInfoEmpty](../constructors/help_userInfoEmpty.md) + +[help\_userInfo](../constructors/help_userInfo.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->help->getUserInfo](../methods/help_getUserInfo.md) + +[$MadelineProto->help->editUserInfo](../methods/help_editUserInfo.md) + + + diff --git a/old_docs/API_docs_v91/types/int.md b/old_docs/API_docs_v91/types/int.md new file mode 100644 index 00000000..73dd1c64 --- /dev/null +++ b/old_docs/API_docs_v91/types/int.md @@ -0,0 +1,9 @@ +--- +title: integer +description: A 32 bit signed integer ranging from -2147483648 to 2147483647 +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: int +[Back to constructor index](index.md) + +A 32 bit signed integer ranging from `-2147483648` to `2147483647`. diff --git a/old_docs/API_docs_v91/types/int128.md b/old_docs/API_docs_v91/types/int128.md new file mode 100644 index 00000000..042ef75b --- /dev/null +++ b/old_docs/API_docs_v91/types/int128.md @@ -0,0 +1,9 @@ +--- +title: int128 +description: A 128 bit signed integer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: int128 +[Back to constructor index](index.md) + +A 128 bit signed integer represented in little-endian base256 (`string`) format. diff --git a/old_docs/API_docs_v91/types/int256.md b/old_docs/API_docs_v91/types/int256.md new file mode 100644 index 00000000..6b19844d --- /dev/null +++ b/old_docs/API_docs_v91/types/int256.md @@ -0,0 +1,9 @@ +--- +title: int256 +description: A 256 bit signed integer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: int256 +[Back to constructor index](index.md) + +A 256 bit signed integer represented in little-endian base256 (`string`) format. diff --git a/old_docs/API_docs_v91/types/int512.md b/old_docs/API_docs_v91/types/int512.md new file mode 100644 index 00000000..eec6ec00 --- /dev/null +++ b/old_docs/API_docs_v91/types/int512.md @@ -0,0 +1,9 @@ +--- +title: int512 +description: A 512 bit signed integer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: int512 +[Back to constructor index](index.md) + +A 512 bit signed integer represented in little-endian base256 (`string`) format. diff --git a/old_docs/API_docs_v91/types/int53.md b/old_docs/API_docs_v91/types/int53.md new file mode 100644 index 00000000..820b48f8 --- /dev/null +++ b/old_docs/API_docs_v91/types/int53.md @@ -0,0 +1,9 @@ +--- +title: integer +description: A 53 bit signed integer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: int53 +[Back to constructor index](index.md) + +A 53 bit signed integer. diff --git a/old_docs/API_docs_v91/types/long.md b/old_docs/API_docs_v91/types/long.md new file mode 100644 index 00000000..e60a8f75 --- /dev/null +++ b/old_docs/API_docs_v91/types/long.md @@ -0,0 +1,9 @@ +--- +title: long +description: A 32 bit signed integer ranging from -9223372036854775808 to 9223372036854775807 +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: long +[Back to constructor index](index.md) + +A 64 bit signed integer ranging from `-9223372036854775808` to `9223372036854775807`. diff --git a/old_docs/API_docs_v91/types/messages_AffectedHistory.md b/old_docs/API_docs_v91/types/messages_AffectedHistory.md new file mode 100644 index 00000000..9eef04c0 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_AffectedHistory.md @@ -0,0 +1,26 @@ +--- +title: messages_AffectedHistory +description: constructors and methods of type messages_AffectedHistory +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_AffectedHistory +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_affectedHistory](../constructors/messages_affectedHistory.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->deleteHistory](../methods/messages_deleteHistory.md) + +[$MadelineProto->messages->readMentions](../methods/messages_readMentions.md) + +[$MadelineProto->channels->deleteUserHistory](../methods/channels_deleteUserHistory.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_AffectedMessages.md b/old_docs/API_docs_v91/types/messages_AffectedMessages.md new file mode 100644 index 00000000..dcbea721 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_AffectedMessages.md @@ -0,0 +1,28 @@ +--- +title: messages_AffectedMessages +description: constructors and methods of type messages_AffectedMessages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_AffectedMessages +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_affectedMessages](../constructors/messages_affectedMessages.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->readHistory](../methods/messages_readHistory.md) + +[$MadelineProto->messages->deleteMessages](../methods/messages_deleteMessages.md) + +[$MadelineProto->messages->readMessageContents](../methods/messages_readMessageContents.md) + +[$MadelineProto->channels->deleteMessages](../methods/channels_deleteMessages.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_AllStickers.md b/old_docs/API_docs_v91/types/messages_AllStickers.md new file mode 100644 index 00000000..b6a322e0 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_AllStickers.md @@ -0,0 +1,26 @@ +--- +title: messages_AllStickers +description: constructors and methods of type messages_AllStickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_AllStickers +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_allStickersNotModified](../constructors/messages_allStickersNotModified.md) + +[messages\_allStickers](../constructors/messages_allStickers.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getAllStickers](../methods/messages_getAllStickers.md) + +[$MadelineProto->messages->getMaskStickers](../methods/messages_getMaskStickers.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_ArchivedStickers.md b/old_docs/API_docs_v91/types/messages_ArchivedStickers.md new file mode 100644 index 00000000..c569675e --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_ArchivedStickers.md @@ -0,0 +1,22 @@ +--- +title: messages_ArchivedStickers +description: constructors and methods of type messages_ArchivedStickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_ArchivedStickers +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_archivedStickers](../constructors/messages_archivedStickers.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getArchivedStickers](../methods/messages_getArchivedStickers.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_BotCallbackAnswer.md b/old_docs/API_docs_v91/types/messages_BotCallbackAnswer.md new file mode 100644 index 00000000..f8d424d0 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_BotCallbackAnswer.md @@ -0,0 +1,22 @@ +--- +title: messages_BotCallbackAnswer +description: constructors and methods of type messages_BotCallbackAnswer +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_BotCallbackAnswer +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_botCallbackAnswer](../constructors/messages_botCallbackAnswer.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getBotCallbackAnswer](../methods/messages_getBotCallbackAnswer.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_BotResults.md b/old_docs/API_docs_v91/types/messages_BotResults.md new file mode 100644 index 00000000..c346c5bd --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_BotResults.md @@ -0,0 +1,22 @@ +--- +title: messages_BotResults +description: constructors and methods of type messages_BotResults +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_BotResults +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_botResults](../constructors/messages_botResults.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getInlineBotResults](../methods/messages_getInlineBotResults.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_ChatFull.md b/old_docs/API_docs_v91/types/messages_ChatFull.md new file mode 100644 index 00000000..e4add41e --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_ChatFull.md @@ -0,0 +1,24 @@ +--- +title: messages_ChatFull +description: constructors and methods of type messages_ChatFull +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_ChatFull +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_chatFull](../constructors/messages_chatFull.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getFullChat](../methods/messages_getFullChat.md) + +[$MadelineProto->channels->getFullChannel](../methods/channels_getFullChannel.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_Chats.md b/old_docs/API_docs_v91/types/messages_Chats.md new file mode 100644 index 00000000..57349b11 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_Chats.md @@ -0,0 +1,34 @@ +--- +title: messages_Chats +description: constructors and methods of type messages_Chats +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_Chats +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_chats](../constructors/messages_chats.md) + +[messages\_chatsSlice](../constructors/messages_chatsSlice.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getChats](../methods/messages_getChats.md) + +[$MadelineProto->messages->getCommonChats](../methods/messages_getCommonChats.md) + +[$MadelineProto->messages->getAllChats](../methods/messages_getAllChats.md) + +[$MadelineProto->channels->getChannels](../methods/channels_getChannels.md) + +[$MadelineProto->channels->getAdminedPublicChannels](../methods/channels_getAdminedPublicChannels.md) + +[$MadelineProto->channels->getLeftChannels](../methods/channels_getLeftChannels.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_DhConfig.md b/old_docs/API_docs_v91/types/messages_DhConfig.md new file mode 100644 index 00000000..ce237411 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_DhConfig.md @@ -0,0 +1,24 @@ +--- +title: messages_DhConfig +description: constructors and methods of type messages_DhConfig +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_DhConfig +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_dhConfigNotModified](../constructors/messages_dhConfigNotModified.md) + +[messages\_dhConfig](../constructors/messages_dhConfig.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getDhConfig](../methods/messages_getDhConfig.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_Dialogs.md b/old_docs/API_docs_v91/types/messages_Dialogs.md new file mode 100644 index 00000000..86d5eb72 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_Dialogs.md @@ -0,0 +1,26 @@ +--- +title: messages_Dialogs +description: constructors and methods of type messages_Dialogs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_Dialogs +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_dialogs](../constructors/messages_dialogs.md) + +[messages\_dialogsSlice](../constructors/messages_dialogsSlice.md) + +[messages\_dialogsNotModified](../constructors/messages_dialogsNotModified.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getDialogs](../methods/messages_getDialogs.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_FavedStickers.md b/old_docs/API_docs_v91/types/messages_FavedStickers.md new file mode 100644 index 00000000..6fa1f221 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_FavedStickers.md @@ -0,0 +1,24 @@ +--- +title: messages_FavedStickers +description: constructors and methods of type messages_FavedStickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_FavedStickers +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_favedStickersNotModified](../constructors/messages_favedStickersNotModified.md) + +[messages\_favedStickers](../constructors/messages_favedStickers.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getFavedStickers](../methods/messages_getFavedStickers.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_FeaturedStickers.md b/old_docs/API_docs_v91/types/messages_FeaturedStickers.md new file mode 100644 index 00000000..9b4c5002 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_FeaturedStickers.md @@ -0,0 +1,24 @@ +--- +title: messages_FeaturedStickers +description: constructors and methods of type messages_FeaturedStickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_FeaturedStickers +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_featuredStickersNotModified](../constructors/messages_featuredStickersNotModified.md) + +[messages\_featuredStickers](../constructors/messages_featuredStickers.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getFeaturedStickers](../methods/messages_getFeaturedStickers.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_FoundGifs.md b/old_docs/API_docs_v91/types/messages_FoundGifs.md new file mode 100644 index 00000000..9dd088ba --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_FoundGifs.md @@ -0,0 +1,22 @@ +--- +title: messages_FoundGifs +description: constructors and methods of type messages_FoundGifs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_FoundGifs +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_foundGifs](../constructors/messages_foundGifs.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->searchGifs](../methods/messages_searchGifs.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_FoundStickerSets.md b/old_docs/API_docs_v91/types/messages_FoundStickerSets.md new file mode 100644 index 00000000..9045b0d7 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_FoundStickerSets.md @@ -0,0 +1,24 @@ +--- +title: messages_FoundStickerSets +description: constructors and methods of type messages_FoundStickerSets +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_FoundStickerSets +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_foundStickerSetsNotModified](../constructors/messages_foundStickerSetsNotModified.md) + +[messages\_foundStickerSets](../constructors/messages_foundStickerSets.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->searchStickerSets](../methods/messages_searchStickerSets.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_HighScores.md b/old_docs/API_docs_v91/types/messages_HighScores.md new file mode 100644 index 00000000..9660e255 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_HighScores.md @@ -0,0 +1,24 @@ +--- +title: messages_HighScores +description: constructors and methods of type messages_HighScores +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_HighScores +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_highScores](../constructors/messages_highScores.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getGameHighScores](../methods/messages_getGameHighScores.md) + +[$MadelineProto->messages->getInlineGameHighScores](../methods/messages_getInlineGameHighScores.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_MessageEditData.md b/old_docs/API_docs_v91/types/messages_MessageEditData.md new file mode 100644 index 00000000..ed3c507a --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_MessageEditData.md @@ -0,0 +1,22 @@ +--- +title: messages_MessageEditData +description: constructors and methods of type messages_MessageEditData +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_MessageEditData +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_messageEditData](../constructors/messages_messageEditData.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getMessageEditData](../methods/messages_getMessageEditData.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_Messages.md b/old_docs/API_docs_v91/types/messages_Messages.md new file mode 100644 index 00000000..35514e90 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_Messages.md @@ -0,0 +1,40 @@ +--- +title: messages_Messages +description: constructors and methods of type messages_Messages +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_Messages +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_messages](../constructors/messages_messages.md) + +[messages\_messagesSlice](../constructors/messages_messagesSlice.md) + +[messages\_channelMessages](../constructors/messages_channelMessages.md) + +[messages\_messagesNotModified](../constructors/messages_messagesNotModified.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getMessages](../methods/messages_getMessages.md) + +[$MadelineProto->messages->getHistory](../methods/messages_getHistory.md) + +[$MadelineProto->messages->search](../methods/messages_search.md) + +[$MadelineProto->messages->searchGlobal](../methods/messages_searchGlobal.md) + +[$MadelineProto->messages->getUnreadMentions](../methods/messages_getUnreadMentions.md) + +[$MadelineProto->messages->getRecentLocations](../methods/messages_getRecentLocations.md) + +[$MadelineProto->channels->getMessages](../methods/channels_getMessages.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_PeerDialogs.md b/old_docs/API_docs_v91/types/messages_PeerDialogs.md new file mode 100644 index 00000000..2477931f --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_PeerDialogs.md @@ -0,0 +1,24 @@ +--- +title: messages_PeerDialogs +description: constructors and methods of type messages_PeerDialogs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_PeerDialogs +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_peerDialogs](../constructors/messages_peerDialogs.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getPeerDialogs](../methods/messages_getPeerDialogs.md) + +[$MadelineProto->messages->getPinnedDialogs](../methods/messages_getPinnedDialogs.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_RecentStickers.md b/old_docs/API_docs_v91/types/messages_RecentStickers.md new file mode 100644 index 00000000..2c9db779 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_RecentStickers.md @@ -0,0 +1,24 @@ +--- +title: messages_RecentStickers +description: constructors and methods of type messages_RecentStickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_RecentStickers +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_recentStickersNotModified](../constructors/messages_recentStickersNotModified.md) + +[messages\_recentStickers](../constructors/messages_recentStickers.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getRecentStickers](../methods/messages_getRecentStickers.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_SavedGifs.md b/old_docs/API_docs_v91/types/messages_SavedGifs.md new file mode 100644 index 00000000..ffb000aa --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_SavedGifs.md @@ -0,0 +1,24 @@ +--- +title: messages_SavedGifs +description: constructors and methods of type messages_SavedGifs +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_SavedGifs +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_savedGifsNotModified](../constructors/messages_savedGifsNotModified.md) + +[messages\_savedGifs](../constructors/messages_savedGifs.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getSavedGifs](../methods/messages_getSavedGifs.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_SentEncryptedMessage.md b/old_docs/API_docs_v91/types/messages_SentEncryptedMessage.md new file mode 100644 index 00000000..9f7ab935 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_SentEncryptedMessage.md @@ -0,0 +1,28 @@ +--- +title: messages_SentEncryptedMessage +description: constructors and methods of type messages_SentEncryptedMessage +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_SentEncryptedMessage +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_sentEncryptedMessage](../constructors/messages_sentEncryptedMessage.md) + +[messages\_sentEncryptedFile](../constructors/messages_sentEncryptedFile.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->sendEncrypted](../methods/messages_sendEncrypted.md) + +[$MadelineProto->messages->sendEncryptedFile](../methods/messages_sendEncryptedFile.md) + +[$MadelineProto->messages->sendEncryptedService](../methods/messages_sendEncryptedService.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_StickerSet.md b/old_docs/API_docs_v91/types/messages_StickerSet.md new file mode 100644 index 00000000..98e34dd2 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_StickerSet.md @@ -0,0 +1,30 @@ +--- +title: messages_StickerSet +description: constructors and methods of type messages_StickerSet +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_StickerSet +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_stickerSet](../constructors/messages_stickerSet.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getStickerSet](../methods/messages_getStickerSet.md) + +[$MadelineProto->stickers->createStickerSet](../methods/stickers_createStickerSet.md) + +[$MadelineProto->stickers->removeStickerFromSet](../methods/stickers_removeStickerFromSet.md) + +[$MadelineProto->stickers->changeStickerPosition](../methods/stickers_changeStickerPosition.md) + +[$MadelineProto->stickers->addStickerToSet](../methods/stickers_addStickerToSet.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_StickerSetInstallResult.md b/old_docs/API_docs_v91/types/messages_StickerSetInstallResult.md new file mode 100644 index 00000000..bb62ec11 --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_StickerSetInstallResult.md @@ -0,0 +1,24 @@ +--- +title: messages_StickerSetInstallResult +description: constructors and methods of type messages_StickerSetInstallResult +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_StickerSetInstallResult +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_stickerSetInstallResultSuccess](../constructors/messages_stickerSetInstallResultSuccess.md) + +[messages\_stickerSetInstallResultArchive](../constructors/messages_stickerSetInstallResultArchive.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->installStickerSet](../methods/messages_installStickerSet.md) + + + diff --git a/old_docs/API_docs_v91/types/messages_Stickers.md b/old_docs/API_docs_v91/types/messages_Stickers.md new file mode 100644 index 00000000..cf53f57b --- /dev/null +++ b/old_docs/API_docs_v91/types/messages_Stickers.md @@ -0,0 +1,24 @@ +--- +title: messages_Stickers +description: constructors and methods of type messages_Stickers +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: messages\_Stickers +[Back to types index](index.md) + + + +### Possible values (constructors): + +[messages\_stickersNotModified](../constructors/messages_stickersNotModified.md) + +[messages\_stickers](../constructors/messages_stickers.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->messages->getStickers](../methods/messages_getStickers.md) + + + diff --git a/old_docs/API_docs_v91/types/payments_PaymentForm.md b/old_docs/API_docs_v91/types/payments_PaymentForm.md new file mode 100644 index 00000000..4662586d --- /dev/null +++ b/old_docs/API_docs_v91/types/payments_PaymentForm.md @@ -0,0 +1,22 @@ +--- +title: payments_PaymentForm +description: constructors and methods of type payments_PaymentForm +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: payments\_PaymentForm +[Back to types index](index.md) + + + +### Possible values (constructors): + +[payments\_paymentForm](../constructors/payments_paymentForm.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->payments->getPaymentForm](../methods/payments_getPaymentForm.md) + + + diff --git a/old_docs/API_docs_v91/types/payments_PaymentReceipt.md b/old_docs/API_docs_v91/types/payments_PaymentReceipt.md new file mode 100644 index 00000000..b4770d2a --- /dev/null +++ b/old_docs/API_docs_v91/types/payments_PaymentReceipt.md @@ -0,0 +1,22 @@ +--- +title: payments_PaymentReceipt +description: constructors and methods of type payments_PaymentReceipt +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: payments\_PaymentReceipt +[Back to types index](index.md) + + + +### Possible values (constructors): + +[payments\_paymentReceipt](../constructors/payments_paymentReceipt.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->payments->getPaymentReceipt](../methods/payments_getPaymentReceipt.md) + + + diff --git a/old_docs/API_docs_v91/types/payments_PaymentResult.md b/old_docs/API_docs_v91/types/payments_PaymentResult.md new file mode 100644 index 00000000..3c0ad411 --- /dev/null +++ b/old_docs/API_docs_v91/types/payments_PaymentResult.md @@ -0,0 +1,24 @@ +--- +title: payments_PaymentResult +description: constructors and methods of type payments_PaymentResult +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: payments\_PaymentResult +[Back to types index](index.md) + + + +### Possible values (constructors): + +[payments\_paymentResult](../constructors/payments_paymentResult.md) + +[payments\_paymentVerficationNeeded](../constructors/payments_paymentVerficationNeeded.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->payments->sendPaymentForm](../methods/payments_sendPaymentForm.md) + + + diff --git a/old_docs/API_docs_v91/types/payments_SavedInfo.md b/old_docs/API_docs_v91/types/payments_SavedInfo.md new file mode 100644 index 00000000..c8f7b9e3 --- /dev/null +++ b/old_docs/API_docs_v91/types/payments_SavedInfo.md @@ -0,0 +1,22 @@ +--- +title: payments_SavedInfo +description: constructors and methods of type payments_SavedInfo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: payments\_SavedInfo +[Back to types index](index.md) + + + +### Possible values (constructors): + +[payments\_savedInfo](../constructors/payments_savedInfo.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->payments->getSavedInfo](../methods/payments_getSavedInfo.md) + + + diff --git a/old_docs/API_docs_v91/types/payments_ValidatedRequestedInfo.md b/old_docs/API_docs_v91/types/payments_ValidatedRequestedInfo.md new file mode 100644 index 00000000..ff6c4e39 --- /dev/null +++ b/old_docs/API_docs_v91/types/payments_ValidatedRequestedInfo.md @@ -0,0 +1,22 @@ +--- +title: payments_ValidatedRequestedInfo +description: constructors and methods of type payments_ValidatedRequestedInfo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: payments\_ValidatedRequestedInfo +[Back to types index](index.md) + + + +### Possible values (constructors): + +[payments\_validatedRequestedInfo](../constructors/payments_validatedRequestedInfo.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->payments->validateRequestedInfo](../methods/payments_validateRequestedInfo.md) + + + diff --git a/old_docs/API_docs_v91/types/phone_PhoneCall.md b/old_docs/API_docs_v91/types/phone_PhoneCall.md new file mode 100644 index 00000000..0a49d482 --- /dev/null +++ b/old_docs/API_docs_v91/types/phone_PhoneCall.md @@ -0,0 +1,26 @@ +--- +title: phone_PhoneCall +description: constructors and methods of type phone_PhoneCall +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: phone\_PhoneCall +[Back to types index](index.md) + + + +### Possible values (constructors): + +[phone\_phoneCall](../constructors/phone_phoneCall.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->phone->requestCall](../methods/phone_requestCall.md) + +[$MadelineProto->phone->acceptCall](../methods/phone_acceptCall.md) + +[$MadelineProto->phone->confirmCall](../methods/phone_confirmCall.md) + + + diff --git a/old_docs/API_docs_v91/types/photos_Photo.md b/old_docs/API_docs_v91/types/photos_Photo.md new file mode 100644 index 00000000..d11bbdef --- /dev/null +++ b/old_docs/API_docs_v91/types/photos_Photo.md @@ -0,0 +1,22 @@ +--- +title: photos_Photo +description: constructors and methods of type photos_Photo +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: photos\_Photo +[Back to types index](index.md) + + + +### Possible values (constructors): + +[photos\_photo](../constructors/photos_photo.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->photos->uploadProfilePhoto](../methods/photos_uploadProfilePhoto.md) + + + diff --git a/old_docs/API_docs_v91/types/photos_Photos.md b/old_docs/API_docs_v91/types/photos_Photos.md new file mode 100644 index 00000000..9875ad70 --- /dev/null +++ b/old_docs/API_docs_v91/types/photos_Photos.md @@ -0,0 +1,24 @@ +--- +title: photos_Photos +description: constructors and methods of type photos_Photos +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: photos\_Photos +[Back to types index](index.md) + + + +### Possible values (constructors): + +[photos\_photos](../constructors/photos_photos.md) + +[photos\_photosSlice](../constructors/photos_photosSlice.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->photos->getUserPhotos](../methods/photos_getUserPhotos.md) + + + diff --git a/old_docs/API_docs_v91/types/storage_FileType.md b/old_docs/API_docs_v91/types/storage_FileType.md new file mode 100644 index 00000000..22118805 --- /dev/null +++ b/old_docs/API_docs_v91/types/storage_FileType.md @@ -0,0 +1,38 @@ +--- +title: storage_FileType +description: constructors and methods of type storage_FileType +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: storage\_FileType +[Back to types index](index.md) + + + +### Possible values (constructors): + +[storage\_fileUnknown](../constructors/storage_fileUnknown.md) + +[storage\_filePartial](../constructors/storage_filePartial.md) + +[storage\_fileJpeg](../constructors/storage_fileJpeg.md) + +[storage\_fileGif](../constructors/storage_fileGif.md) + +[storage\_filePng](../constructors/storage_filePng.md) + +[storage\_filePdf](../constructors/storage_filePdf.md) + +[storage\_fileMp3](../constructors/storage_fileMp3.md) + +[storage\_fileMov](../constructors/storage_fileMov.md) + +[storage\_fileMp4](../constructors/storage_fileMp4.md) + +[storage\_fileWebp](../constructors/storage_fileWebp.md) + + + +### Methods that return an object of this type (methods): + + + diff --git a/old_docs/API_docs_v91/types/string.md b/old_docs/API_docs_v91/types/string.md new file mode 100644 index 00000000..b4658c95 --- /dev/null +++ b/old_docs/API_docs_v91/types/string.md @@ -0,0 +1,9 @@ +--- +title: string +description: A UTF8 string of variable length +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: string +[Back to constructor index](index.md) + +A UTF8 string of variable length. The total length in bytes of the string must not be bigger than 16777215. diff --git a/old_docs/API_docs_v91/types/updates_ChannelDifference.md b/old_docs/API_docs_v91/types/updates_ChannelDifference.md new file mode 100644 index 00000000..dc988692 --- /dev/null +++ b/old_docs/API_docs_v91/types/updates_ChannelDifference.md @@ -0,0 +1,26 @@ +--- +title: updates_ChannelDifference +description: constructors and methods of type updates_ChannelDifference +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: updates\_ChannelDifference +[Back to types index](index.md) + + + +### Possible values (constructors): + +[updates\_channelDifferenceEmpty](../constructors/updates_channelDifferenceEmpty.md) + +[updates\_channelDifferenceTooLong](../constructors/updates_channelDifferenceTooLong.md) + +[updates\_channelDifference](../constructors/updates_channelDifference.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->updates->getChannelDifference](../methods/updates_getChannelDifference.md) + + + diff --git a/old_docs/API_docs_v91/types/updates_Difference.md b/old_docs/API_docs_v91/types/updates_Difference.md new file mode 100644 index 00000000..50bb098e --- /dev/null +++ b/old_docs/API_docs_v91/types/updates_Difference.md @@ -0,0 +1,28 @@ +--- +title: updates_Difference +description: constructors and methods of type updates_Difference +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: updates\_Difference +[Back to types index](index.md) + + + +### Possible values (constructors): + +[updates\_differenceEmpty](../constructors/updates_differenceEmpty.md) + +[updates\_difference](../constructors/updates_difference.md) + +[updates\_differenceSlice](../constructors/updates_differenceSlice.md) + +[updates\_differenceTooLong](../constructors/updates_differenceTooLong.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->updates->getDifference](../methods/updates_getDifference.md) + + + diff --git a/old_docs/API_docs_v91/types/updates_State.md b/old_docs/API_docs_v91/types/updates_State.md new file mode 100644 index 00000000..7a441145 --- /dev/null +++ b/old_docs/API_docs_v91/types/updates_State.md @@ -0,0 +1,22 @@ +--- +title: updates_State +description: constructors and methods of type updates_State +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: updates\_State +[Back to types index](index.md) + + + +### Possible values (constructors): + +[updates\_state](../constructors/updates_state.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->updates->getState](../methods/updates_getState.md) + + + diff --git a/old_docs/API_docs_v91/types/upload_CdnFile.md b/old_docs/API_docs_v91/types/upload_CdnFile.md new file mode 100644 index 00000000..51ae2e68 --- /dev/null +++ b/old_docs/API_docs_v91/types/upload_CdnFile.md @@ -0,0 +1,24 @@ +--- +title: upload_CdnFile +description: constructors and methods of type upload_CdnFile +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: upload\_CdnFile +[Back to types index](index.md) + + + +### Possible values (constructors): + +[upload\_cdnFileReuploadNeeded](../constructors/upload_cdnFileReuploadNeeded.md) + +[upload\_cdnFile](../constructors/upload_cdnFile.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->upload->getCdnFile](../methods/upload_getCdnFile.md) + + + diff --git a/old_docs/API_docs_v91/types/upload_File.md b/old_docs/API_docs_v91/types/upload_File.md new file mode 100644 index 00000000..00e0f9cb --- /dev/null +++ b/old_docs/API_docs_v91/types/upload_File.md @@ -0,0 +1,24 @@ +--- +title: upload_File +description: constructors and methods of type upload_File +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: upload\_File +[Back to types index](index.md) + + + +### Possible values (constructors): + +[upload\_file](../constructors/upload_file.md) + +[upload\_fileCdnRedirect](../constructors/upload_fileCdnRedirect.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->upload->getFile](../methods/upload_getFile.md) + + + diff --git a/old_docs/API_docs_v91/types/upload_WebFile.md b/old_docs/API_docs_v91/types/upload_WebFile.md new file mode 100644 index 00000000..9a86264f --- /dev/null +++ b/old_docs/API_docs_v91/types/upload_WebFile.md @@ -0,0 +1,22 @@ +--- +title: upload_WebFile +description: constructors and methods of type upload_WebFile +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +# Type: upload\_WebFile +[Back to types index](index.md) + + + +### Possible values (constructors): + +[upload\_webFile](../constructors/upload_webFile.md) + + + +### Methods that return an object of this type (methods): + +[$MadelineProto->upload->getWebFile](../methods/upload_getWebFile.md) + + + diff --git a/old_docs/README.md b/old_docs/README.md index 68563e3e..290c7c9f 100644 --- a/old_docs/README.md +++ b/old_docs/README.md @@ -4,4 +4,4 @@ description: Documentation of old mtproto layers --- # Documentation of old mtproto layers -[Layer v89](API_docs_v89/) +[Layer v91](API_docs_v91/) From 253b80f29c4727ea0fa3b49f455bf020e0217f75 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 8 Mar 2019 14:35:09 +0100 Subject: [PATCH 2/2] Improve docs --- .../constructors/account_wallPapers.md | 12 +- .../account_wallPapersNotModified.md | 4 +- docs/API_docs/constructors/channel.md | 6 +- ...lAdminLogEventActionDefaultBannedRights.md | 12 +- .../channelAdminLogEventActionStopPoll.md | 10 +- .../constructors/channelParticipantAdmin.md | 4 +- .../constructors/channelParticipantBanned.md | 2 +- .../channelParticipantsContacts.md | 10 +- docs/API_docs/constructors/chat.md | 4 +- docs/API_docs/constructors/chatAdminRights.md | 24 +- .../API_docs/constructors/chatBannedRights.md | 34 +- docs/API_docs/constructors/chatFull.md | 4 +- docs/API_docs/constructors/codeSettings.md | 16 +- docs/API_docs/constructors/document.md | 2 +- docs/API_docs/constructors/inputWallPaper.md | 12 +- .../constructors/inputWallPaperSlug.md | 10 +- .../constructors/messages_messagesSlice.md | 2 +- .../constructors/photoStrippedSize.md | 12 +- .../updateChatDefaultBannedRights.md | 14 +- docs/API_docs/constructors/wallPaper.md | 18 +- .../constructors/wallPaperSettings.md | 16 +- docs/API_docs/methods/account_getWallPaper.md | 10 +- .../API_docs/methods/account_getWallPapers.md | 2 +- .../methods/account_installWallPaper.md | 12 +- .../methods/account_resetWallPapers.md | 4 +- .../API_docs/methods/account_saveWallPaper.md | 14 +- .../methods/account_sendChangePhoneCode.md | 2 +- .../methods/account_sendConfirmPhoneCode.md | 2 +- .../methods/account_sendVerifyPhoneCode.md | 2 +- .../methods/account_uploadWallPaper.md | 14 +- docs/API_docs/methods/channels_editAdmin.md | 2 +- docs/API_docs/methods/channels_editBanned.md | 2 +- docs/API_docs/methods/index.md | 14 + .../methods/messages_editChatAbout.md | 12 +- .../messages_editChatDefaultBannedRights.md | 12 +- .../methods/messages_exportChatInvite.md | 2 +- docs/docs/CALLS.md | 2 +- docs/docs/INLINE_BUTTONS.md | 2 +- docs/docs/INSTALLATION.md | 2 +- docs/docs/LOGGING.md | 2 +- docs/docs/PROXY.md | 2 +- docs/docs/UPDATES.md | 2 +- docs/docs/USING_METHODS.md | 2 +- docs/index.md | 299 +++++++++++++++++- 44 files changed, 483 insertions(+), 164 deletions(-) diff --git a/docs/API_docs/constructors/account_wallPapers.md b/docs/API_docs/constructors/account_wallPapers.md index 7251d4b6..444a641f 100644 --- a/docs/API_docs/constructors/account_wallPapers.md +++ b/docs/API_docs/constructors/account_wallPapers.md @@ -1,6 +1,6 @@ --- title: account.wallPapers -description: account_wallPapers attributes, type and example +description: Wallpapers image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: account.wallPapers @@ -8,12 +8,14 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Wallpapers + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|hash|[int](../types/int.md) | Yes| -|wallpapers|Array of [WallPaper](../types/WallPaper.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|hash|[int](../types/int.md) | Yes|Hash| +|wallpapers|Array of [WallPaper](../types/WallPaper.md) | Yes|Wallpapers| diff --git a/docs/API_docs/constructors/account_wallPapersNotModified.md b/docs/API_docs/constructors/account_wallPapersNotModified.md index c296e74b..ca98b42f 100644 --- a/docs/API_docs/constructors/account_wallPapersNotModified.md +++ b/docs/API_docs/constructors/account_wallPapersNotModified.md @@ -1,6 +1,6 @@ --- title: account.wallPapersNotModified -description: account_wallPapersNotModified attributes, type and example +description: No wallpapers were modified image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: account.wallPapersNotModified @@ -8,6 +8,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +No wallpapers were modified + diff --git a/docs/API_docs/constructors/channel.md b/docs/API_docs/constructors/channel.md index a1713e1d..ffd4cccc 100644 --- a/docs/API_docs/constructors/channel.md +++ b/docs/API_docs/constructors/channel.md @@ -30,9 +30,9 @@ Channel |date|[int](../types/int.md) | Yes|Date| |version|[int](../types/int.md) | Yes|Version| |restriction\_reason|[string](../types/string.md) | Optional|Restriction reason| -|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Optional|| -|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|| -|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|| +|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Optional|Admin rights of current user| +|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|Banned rights of current user| +|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|Global chat banned rights| |participants\_count|[int](../types/int.md) | Optional|Participants count| diff --git a/docs/API_docs/constructors/channelAdminLogEventActionDefaultBannedRights.md b/docs/API_docs/constructors/channelAdminLogEventActionDefaultBannedRights.md index e921c68f..bbb66c09 100644 --- a/docs/API_docs/constructors/channelAdminLogEventActionDefaultBannedRights.md +++ b/docs/API_docs/constructors/channelAdminLogEventActionDefaultBannedRights.md @@ -1,6 +1,6 @@ --- title: channelAdminLogEventActionDefaultBannedRights -description: channelAdminLogEventActionDefaultBannedRights attributes, type and example +description: Changed global chat rights image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: channelAdminLogEventActionDefaultBannedRights @@ -8,12 +8,14 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Changed global chat rights + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|prev\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes| -|new\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|prev\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|Previous Banned rights of current user| +|new\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|New Banned rights of current user| diff --git a/docs/API_docs/constructors/channelAdminLogEventActionStopPoll.md b/docs/API_docs/constructors/channelAdminLogEventActionStopPoll.md index 480835c9..cdaaa051 100644 --- a/docs/API_docs/constructors/channelAdminLogEventActionStopPoll.md +++ b/docs/API_docs/constructors/channelAdminLogEventActionStopPoll.md @@ -1,6 +1,6 @@ --- title: channelAdminLogEventActionStopPoll -description: channelAdminLogEventActionStopPoll attributes, type and example +description: Stopped poll image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: channelAdminLogEventActionStopPoll @@ -8,11 +8,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Stopped poll + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|message|[Message](../types/Message.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|message|[Message](../types/Message.md) | Optional|Message| diff --git a/docs/API_docs/constructors/channelParticipantAdmin.md b/docs/API_docs/constructors/channelParticipantAdmin.md index bb7a6007..c2f4af2e 100644 --- a/docs/API_docs/constructors/channelParticipantAdmin.md +++ b/docs/API_docs/constructors/channelParticipantAdmin.md @@ -15,12 +15,12 @@ Channel participant admin | Name | Type | Required | Description | |----------|---------------|----------|-------------| |can\_edit|[Bool](../types/Bool.md) | Optional|Can edit?| -|self|[Bool](../types/Bool.md) | Optional|| +|self|[Bool](../types/Bool.md) | Optional|Is this the current user?| |user\_id|[int](../types/int.md) | Yes|User ID| |inviter\_id|[int](../types/int.md) | Optional|Inviter ID| |promoted\_by|[int](../types/int.md) | Yes|Promoted by| |date|[int](../types/int.md) | Yes|Date| -|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Yes|| +|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Yes|Admin rights| diff --git a/docs/API_docs/constructors/channelParticipantBanned.md b/docs/API_docs/constructors/channelParticipantBanned.md index 31ba0363..03a9245b 100644 --- a/docs/API_docs/constructors/channelParticipantBanned.md +++ b/docs/API_docs/constructors/channelParticipantBanned.md @@ -18,7 +18,7 @@ Channel participant banned |user\_id|[int](../types/int.md) | Yes|User ID| |kicked\_by|[int](../types/int.md) | Yes|Kicked by| |date|[int](../types/int.md) | Yes|Date| -|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|| +|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|Banned rights| diff --git a/docs/API_docs/constructors/channelParticipantsContacts.md b/docs/API_docs/constructors/channelParticipantsContacts.md index b68b0ce8..57b8a277 100644 --- a/docs/API_docs/constructors/channelParticipantsContacts.md +++ b/docs/API_docs/constructors/channelParticipantsContacts.md @@ -1,6 +1,6 @@ --- title: channelParticipantsContacts -description: channelParticipantsContacts attributes, type and example +description: Contacts image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: channelParticipantsContacts @@ -8,11 +8,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Contacts + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|q|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|q|[string](../types/string.md) | Yes|Query| diff --git a/docs/API_docs/constructors/chat.md b/docs/API_docs/constructors/chat.md index dba8b661..3732b831 100644 --- a/docs/API_docs/constructors/chat.md +++ b/docs/API_docs/constructors/chat.md @@ -25,8 +25,8 @@ Chat |date|[int](../types/int.md) | Yes|Date| |version|[int](../types/int.md) | Yes|Version| |migrated\_to|[InputChannel](../types/InputChannel.md) | Optional|Migrated to| -|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Optional|| -|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|| +|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Optional|Admin rights of current user| +|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|Global chat banned rights| diff --git a/docs/API_docs/constructors/chatAdminRights.md b/docs/API_docs/constructors/chatAdminRights.md index f16fd37a..99340a1a 100644 --- a/docs/API_docs/constructors/chatAdminRights.md +++ b/docs/API_docs/constructors/chatAdminRights.md @@ -1,6 +1,6 @@ --- title: chatAdminRights -description: chatAdminRights attributes, type and example +description: Admin rights image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: chatAdminRights @@ -8,18 +8,20 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Admin rights + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|change\_info|[Bool](../types/Bool.md) | Optional| -|post\_messages|[Bool](../types/Bool.md) | Optional| -|edit\_messages|[Bool](../types/Bool.md) | Optional| -|delete\_messages|[Bool](../types/Bool.md) | Optional| -|ban\_users|[Bool](../types/Bool.md) | Optional| -|invite\_users|[Bool](../types/Bool.md) | Optional| -|pin\_messages|[Bool](../types/Bool.md) | Optional| -|add\_admins|[Bool](../types/Bool.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|change\_info|[Bool](../types/Bool.md) | Optional|Can change info?| +|post\_messages|[Bool](../types/Bool.md) | Optional|Can post messages?| +|edit\_messages|[Bool](../types/Bool.md) | Optional|Can edit messages?| +|delete\_messages|[Bool](../types/Bool.md) | Optional|Can delete messages?| +|ban\_users|[Bool](../types/Bool.md) | Optional|Can ban users?| +|invite\_users|[Bool](../types/Bool.md) | Optional|Can invite users?| +|pin\_messages|[Bool](../types/Bool.md) | Optional|Can pin messages?| +|add\_admins|[Bool](../types/Bool.md) | Optional|Can add other admins?| diff --git a/docs/API_docs/constructors/chatBannedRights.md b/docs/API_docs/constructors/chatBannedRights.md index 55e86a94..3aa72b84 100644 --- a/docs/API_docs/constructors/chatBannedRights.md +++ b/docs/API_docs/constructors/chatBannedRights.md @@ -1,6 +1,6 @@ --- title: chatBannedRights -description: chatBannedRights attributes, type and example +description: Banned rights (when true, the user will NOT be able to do that thing) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: chatBannedRights @@ -8,23 +8,25 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Banned rights (when true, the user will NOT be able to do that thing) + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|view\_messages|[Bool](../types/Bool.md) | Optional| -|send\_messages|[Bool](../types/Bool.md) | Optional| -|send\_media|[Bool](../types/Bool.md) | Optional| -|send\_stickers|[Bool](../types/Bool.md) | Optional| -|send\_gifs|[Bool](../types/Bool.md) | Optional| -|send\_games|[Bool](../types/Bool.md) | Optional| -|send\_inline|[Bool](../types/Bool.md) | Optional| -|embed\_links|[Bool](../types/Bool.md) | Optional| -|send\_polls|[Bool](../types/Bool.md) | Optional| -|change\_info|[Bool](../types/Bool.md) | Optional| -|invite\_users|[Bool](../types/Bool.md) | Optional| -|pin\_messages|[Bool](../types/Bool.md) | Optional| -|until\_date|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|view\_messages|[Bool](../types/Bool.md) | Optional|Can view messages?| +|send\_messages|[Bool](../types/Bool.md) | Optional|Can send messages?| +|send\_media|[Bool](../types/Bool.md) | Optional|Can send media?| +|send\_stickers|[Bool](../types/Bool.md) | Optional|Can send stickers?| +|send\_gifs|[Bool](../types/Bool.md) | Optional|Can send gifs?| +|send\_games|[Bool](../types/Bool.md) | Optional|Can send games?| +|send\_inline|[Bool](../types/Bool.md) | Optional|Can use inline bots?| +|embed\_links|[Bool](../types/Bool.md) | Optional|Can embed links?| +|send\_polls|[Bool](../types/Bool.md) | Optional|Can send polls?| +|change\_info|[Bool](../types/Bool.md) | Optional|Can change info?| +|invite\_users|[Bool](../types/Bool.md) | Optional|Can invite users?| +|pin\_messages|[Bool](../types/Bool.md) | Optional|Can pin messages?| +|until\_date|[int](../types/int.md) | Yes|Until date (0 = forever)| diff --git a/docs/API_docs/constructors/chatFull.md b/docs/API_docs/constructors/chatFull.md index 5ff1a5dc..dbe56848 100644 --- a/docs/API_docs/constructors/chatFull.md +++ b/docs/API_docs/constructors/chatFull.md @@ -14,9 +14,9 @@ Chat full | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|can\_set\_username|[Bool](../types/Bool.md) | Optional|| +|can\_set\_username|[Bool](../types/Bool.md) | Optional|Can set username?| |id|[int](../types/int.md) | Yes|ID| -|about|[string](../types/string.md) | Yes|| +|about|[string](../types/string.md) | Yes|Chat about| |participants|[ChatParticipants](../types/ChatParticipants.md) | Yes|Participants| |chat\_photo|[Photo](../types/Photo.md) | Optional|Chat photo| |notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Yes|Notify settings| diff --git a/docs/API_docs/constructors/codeSettings.md b/docs/API_docs/constructors/codeSettings.md index 0a319b8c..1f55bc19 100644 --- a/docs/API_docs/constructors/codeSettings.md +++ b/docs/API_docs/constructors/codeSettings.md @@ -1,6 +1,6 @@ --- title: codeSettings -description: codeSettings attributes, type and example +description: Code settings image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: codeSettings @@ -8,14 +8,16 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Code settings + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Optional| -|current\_number|[Bool](../types/Bool.md) | Optional| -|app\_hash\_persistent|[Bool](../types/Bool.md) | Optional| -|app\_hash|[string](../types/string.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Allow flashcal?| +|current\_number|[Bool](../types/Bool.md) | Optional|Current number?| +|app\_hash\_persistent|[Bool](../types/Bool.md) | Optional|Persistent hash?| +|app\_hash|[string](../types/string.md) | Optional|Hash type| diff --git a/docs/API_docs/constructors/document.md b/docs/API_docs/constructors/document.md index 78bed9f4..89915f88 100644 --- a/docs/API_docs/constructors/document.md +++ b/docs/API_docs/constructors/document.md @@ -20,7 +20,7 @@ Document |date|[int](../types/int.md) | Yes|Date| |mime\_type|[string](../types/string.md) | Yes|Mime type| |size|[int](../types/int.md) | Yes|Size| -|thumbs|Array of [PhotoSize](../types/PhotoSize.md) | Optional|| +|thumbs|Array of [PhotoSize](../types/PhotoSize.md) | Optional|Thumbnails| |dc\_id|[int](../types/int.md) | Yes|DC ID| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes|Attributes| diff --git a/docs/API_docs/constructors/inputWallPaper.md b/docs/API_docs/constructors/inputWallPaper.md index 188c4e60..8c82cf49 100644 --- a/docs/API_docs/constructors/inputWallPaper.md +++ b/docs/API_docs/constructors/inputWallPaper.md @@ -1,6 +1,6 @@ --- title: inputWallPaper -description: inputWallPaper attributes, type and example +description: Wallpaper image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: inputWallPaper @@ -8,12 +8,14 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Wallpaper + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|id|[long](../types/long.md) | Yes| -|access\_hash|[long](../types/long.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|[long](../types/long.md) | Yes|ID| +|access\_hash|[long](../types/long.md) | Yes|Access hash| diff --git a/docs/API_docs/constructors/inputWallPaperSlug.md b/docs/API_docs/constructors/inputWallPaperSlug.md index bbd00fc9..cfae6618 100644 --- a/docs/API_docs/constructors/inputWallPaperSlug.md +++ b/docs/API_docs/constructors/inputWallPaperSlug.md @@ -1,6 +1,6 @@ --- title: inputWallPaperSlug -description: inputWallPaperSlug attributes, type and example +description: Wallpaper slug image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: inputWallPaperSlug @@ -8,11 +8,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Wallpaper slug + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|slug|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|slug|[string](../types/string.md) | Yes|Type| diff --git a/docs/API_docs/constructors/messages_messagesSlice.md b/docs/API_docs/constructors/messages_messagesSlice.md index 504a0e47..de9be9e0 100644 --- a/docs/API_docs/constructors/messages_messagesSlice.md +++ b/docs/API_docs/constructors/messages_messagesSlice.md @@ -14,7 +14,7 @@ Messages slice | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|inexact|[Bool](../types/Bool.md) | Optional|| +|inexact|[Bool](../types/Bool.md) | Optional|Inexact?| |count|[int](../types/int.md) | Yes|Count| |messages|Array of [Message](../types/Message.md) | Yes|Messages| |chats|Array of [Chat](../types/Chat.md) | Yes|Chats| diff --git a/docs/API_docs/constructors/photoStrippedSize.md b/docs/API_docs/constructors/photoStrippedSize.md index 958d6071..03f47dad 100644 --- a/docs/API_docs/constructors/photoStrippedSize.md +++ b/docs/API_docs/constructors/photoStrippedSize.md @@ -1,6 +1,6 @@ --- title: photoStrippedSize -description: photoStrippedSize attributes, type and example +description: Stripped size image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: photoStrippedSize @@ -8,12 +8,14 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Stripped size + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|type|[string](../types/string.md) | Yes| -|bytes|[bytes](../types/bytes.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|type|[string](../types/string.md) | Yes|Stripped size| +|bytes|[bytes](../types/bytes.md) | Yes|Bytes| diff --git a/docs/API_docs/constructors/updateChatDefaultBannedRights.md b/docs/API_docs/constructors/updateChatDefaultBannedRights.md index 436230d6..47e8417b 100644 --- a/docs/API_docs/constructors/updateChatDefaultBannedRights.md +++ b/docs/API_docs/constructors/updateChatDefaultBannedRights.md @@ -1,6 +1,6 @@ --- title: updateChatDefaultBannedRights -description: updateChatDefaultBannedRights attributes, type and example +description: Global chat rights updated image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: updateChatDefaultBannedRights @@ -8,13 +8,15 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Global chat rights updated + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[Peer](../types/Peer.md) | Yes| -|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes| -|version|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|peer|[Peer](../types/Peer.md) | Yes|Peer| +|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|Global chat rights| +|version|[int](../types/int.md) | Yes|Version| diff --git a/docs/API_docs/constructors/wallPaper.md b/docs/API_docs/constructors/wallPaper.md index 6acc963b..67a9cfbc 100644 --- a/docs/API_docs/constructors/wallPaper.md +++ b/docs/API_docs/constructors/wallPaper.md @@ -14,15 +14,15 @@ Wall paper | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|id|[long](../types/long.md) | Yes|| -|creator|[Bool](../types/Bool.md) | Optional|| -|default|[Bool](../types/Bool.md) | Optional|| -|pattern|[Bool](../types/Bool.md) | Optional|| -|dark|[Bool](../types/Bool.md) | Optional|| -|access\_hash|[long](../types/long.md) | Yes|| -|slug|[string](../types/string.md) | Yes|| -|document|[Document](../types/Document.md) | Optional|| -|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Optional|| +|id|[long](../types/long.md) | Yes|ID| +|creator|[Bool](../types/Bool.md) | Optional|Am I the creator?| +|default|[Bool](../types/Bool.md) | Optional|Default?| +|pattern|[Bool](../types/Bool.md) | Optional|Pattern| +|dark|[Bool](../types/Bool.md) | Optional|Dark?| +|access\_hash|[long](../types/long.md) | Yes|Hash| +|slug|[string](../types/string.md) | Yes|Slug?| +|document|[Document](../types/Document.md) | Optional|Wallpaper| +|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Optional|Wallpaper settings| diff --git a/docs/API_docs/constructors/wallPaperSettings.md b/docs/API_docs/constructors/wallPaperSettings.md index 24da9d8f..110d94c6 100644 --- a/docs/API_docs/constructors/wallPaperSettings.md +++ b/docs/API_docs/constructors/wallPaperSettings.md @@ -1,6 +1,6 @@ --- title: wallPaperSettings -description: wallPaperSettings attributes, type and example +description: Wallpaper settings image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: wallPaperSettings @@ -8,14 +8,16 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Wallpaper settings + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|blur|[Bool](../types/Bool.md) | Optional| -|motion|[Bool](../types/Bool.md) | Optional| -|background\_color|[int](../types/int.md) | Optional| -|intensity|[int](../types/int.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|blur|[Bool](../types/Bool.md) | Optional|Blur?| +|motion|[Bool](../types/Bool.md) | Optional|Motion?| +|background\_color|[int](../types/int.md) | Optional|Background color| +|intensity|[int](../types/int.md) | Optional|Intensity| diff --git a/docs/API_docs/methods/account_getWallPaper.md b/docs/API_docs/methods/account_getWallPaper.md index 8c69b51b..d83e445b 100644 --- a/docs/API_docs/methods/account_getWallPaper.md +++ b/docs/API_docs/methods/account_getWallPaper.md @@ -1,17 +1,19 @@ --- title: account.getWallPaper -description: account.getWallPaper parameters, return type and example +description: Get wallpaper info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getWallPaper [Back to methods index](index.md) +Get wallpaper info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Yes| +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Wallpaper | Yes| ### Return type: [WallPaper](../types/WallPaper.md) diff --git a/docs/API_docs/methods/account_getWallPapers.md b/docs/API_docs/methods/account_getWallPapers.md index 3a95f1f8..5161fd57 100644 --- a/docs/API_docs/methods/account_getWallPapers.md +++ b/docs/API_docs/methods/account_getWallPapers.md @@ -13,7 +13,7 @@ Returns a list of available wallpapers. | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [int](../types/int.md) | | Optional| +|hash|Array of [int](../types/int.md) | IDs of previously fetched wallpapers | Optional| ### Return type: [account\_WallPapers](../types/account_WallPapers.md) diff --git a/docs/API_docs/methods/account_installWallPaper.md b/docs/API_docs/methods/account_installWallPaper.md index 4ef01b73..7680de0c 100644 --- a/docs/API_docs/methods/account_installWallPaper.md +++ b/docs/API_docs/methods/account_installWallPaper.md @@ -1,18 +1,20 @@ --- title: account.installWallPaper -description: account.installWallPaper parameters, return type and example +description: Install wallpaper image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.installWallPaper [Back to methods index](index.md) +Install wallpaper + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Yes| -|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Yes| +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Wallpaper to install | Yes| +|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Wallpaper settings | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/account_resetWallPapers.md b/docs/API_docs/methods/account_resetWallPapers.md index 3c458982..81d1f202 100644 --- a/docs/API_docs/methods/account_resetWallPapers.md +++ b/docs/API_docs/methods/account_resetWallPapers.md @@ -1,12 +1,14 @@ --- title: account.resetWallPapers -description: account.resetWallPapers parameters, return type and example +description: Reset wallpapers image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.resetWallPapers [Back to methods index](index.md) +Reset wallpapers + ### Return type: [Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/account_saveWallPaper.md b/docs/API_docs/methods/account_saveWallPaper.md index 8da37a29..6d894f16 100644 --- a/docs/API_docs/methods/account_saveWallPaper.md +++ b/docs/API_docs/methods/account_saveWallPaper.md @@ -1,19 +1,21 @@ --- title: account.saveWallPaper -description: account.saveWallPaper parameters, return type and example +description: Save wallpaper image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.saveWallPaper [Back to methods index](index.md) +Save wallpaper + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Yes| -|unsave|[Bool](../types/Bool.md) | Yes| -|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Yes| +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | The wallpaper to save | Yes| +|unsave|[Bool](../types/Bool.md) | Delete saved wallpaper | Yes| +|settings|[WallPaperSettings](../types/WallPaperSettings.md) | The wallpaper to save | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/account_sendChangePhoneCode.md b/docs/API_docs/methods/account_sendChangePhoneCode.md index caccf3cb..8d433762 100644 --- a/docs/API_docs/methods/account_sendChangePhoneCode.md +++ b/docs/API_docs/methods/account_sendChangePhoneCode.md @@ -14,7 +14,7 @@ Change the phone number | Name | Type | Description | Required | |----------|---------------|-------------|----------| |phone\_number|[string](../types/string.md) | New phone number | Yes| -|settings|[CodeSettings](../types/CodeSettings.md) | | Yes| +|settings|[CodeSettings](../types/CodeSettings.md) | Code settings | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/docs/API_docs/methods/account_sendConfirmPhoneCode.md b/docs/API_docs/methods/account_sendConfirmPhoneCode.md index 6dc9eaf4..85746f4d 100644 --- a/docs/API_docs/methods/account_sendConfirmPhoneCode.md +++ b/docs/API_docs/methods/account_sendConfirmPhoneCode.md @@ -14,7 +14,7 @@ Send confirmation phone code | Name | Type | Description | Required | |----------|---------------|-------------|----------| |hash|[string](../types/string.md) | The hash | Yes| -|settings|[CodeSettings](../types/CodeSettings.md) | | Yes| +|settings|[CodeSettings](../types/CodeSettings.md) | Code settings | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/docs/API_docs/methods/account_sendVerifyPhoneCode.md b/docs/API_docs/methods/account_sendVerifyPhoneCode.md index 9c5e08ac..187b79d3 100644 --- a/docs/API_docs/methods/account_sendVerifyPhoneCode.md +++ b/docs/API_docs/methods/account_sendVerifyPhoneCode.md @@ -14,7 +14,7 @@ Send phone verification code | Name | Type | Description | Required | |----------|---------------|-------------|----------| |phone\_number|[string](../types/string.md) | The phone number | Yes| -|settings|[CodeSettings](../types/CodeSettings.md) | | Yes| +|settings|[CodeSettings](../types/CodeSettings.md) | Code settings | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/docs/API_docs/methods/account_uploadWallPaper.md b/docs/API_docs/methods/account_uploadWallPaper.md index c6d3e2a7..4c47946e 100644 --- a/docs/API_docs/methods/account_uploadWallPaper.md +++ b/docs/API_docs/methods/account_uploadWallPaper.md @@ -1,19 +1,21 @@ --- title: account.uploadWallPaper -description: account.uploadWallPaper parameters, return type and example +description: Upload wallpaper image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.uploadWallPaper [Back to methods index](index.md) +Upload wallpaper + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|file|[File path or InputFile](../types/InputFile.md) | Yes| -|mime\_type|[string](../types/string.md) | Yes| -|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Yes| +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|file|[File path or InputFile](../types/InputFile.md) | Image | Yes| +|mime\_type|[string](../types/string.md) | Mime type | Yes| +|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Wallpaper settings | Yes| ### Return type: [WallPaper](../types/WallPaper.md) diff --git a/docs/API_docs/methods/channels_editAdmin.md b/docs/API_docs/methods/channels_editAdmin.md index 16910bd4..5e77eade 100644 --- a/docs/API_docs/methods/channels_editAdmin.md +++ b/docs/API_docs/methods/channels_editAdmin.md @@ -15,7 +15,7 @@ Edit admin permissions of a user in a channel/supergroup |----------|---------------|-------------|----------| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional| -|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | | Yes| +|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Admin rights | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/docs/API_docs/methods/channels_editBanned.md b/docs/API_docs/methods/channels_editBanned.md index daa1f569..74a99ee7 100644 --- a/docs/API_docs/methods/channels_editBanned.md +++ b/docs/API_docs/methods/channels_editBanned.md @@ -15,7 +15,7 @@ Kick or ban a user from a channel/supergroup |----------|---------------|-------------|----------| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to kick/ban | Optional| -|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | | Yes| +|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Banned rights | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md index 4f0eb4e6..852bdc21 100644 --- a/docs/API_docs/methods/index.md +++ b/docs/API_docs/methods/index.md @@ -150,6 +150,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Edit admin permissions: messages.editChatAdmin +* Edit chat info: messages.editChatAbout + +* Edit default rights of chat: messages.editChatDefaultBannedRights + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto * Edit the photo of a supergroup/channel: channels.editPhoto @@ -332,6 +336,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Get user info: help.getUserInfo +* Get wallpaper info: account.getWallPaper + * Get webpage preview: messages.getWebPage * Get webpage preview: messages.getWebPagePreview @@ -346,6 +352,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Initializes connection and save information on the user's device and application.: initConnection +* Install wallpaper: account.installWallPaper + * Invalidate sent phone code: auth.cancelCode * Invoke method from takeout session: invokeWithTakeout @@ -420,6 +428,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating +* Reset wallpapers: account.resetWallPapers + * Result type returned by a current query.: invokeAfterMsgs * Returns a list of available wallpapers.: account.getWallPapers @@ -432,6 +442,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Save telegram passport secure value: account.saveSecureValue +* Save wallpaper: account.saveWallPaper + * Search contacts: contacts.search * Search gifs: messages.searchGifs @@ -516,6 +528,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Upload profile photo: photos.uploadProfilePhoto +* Upload wallpaper: account.uploadWallPaper + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword * Validate requested payment info: payments.validateRequestedInfo diff --git a/docs/API_docs/methods/messages_editChatAbout.md b/docs/API_docs/methods/messages_editChatAbout.md index cdaa7b55..2e5f1970 100644 --- a/docs/API_docs/methods/messages_editChatAbout.md +++ b/docs/API_docs/methods/messages_editChatAbout.md @@ -1,18 +1,20 @@ --- title: messages.editChatAbout -description: messages.editChatAbout parameters, return type and example +description: Edit chat info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.editChatAbout [Back to methods index](index.md) +Edit chat info + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| -|about|[string](../types/string.md) | Yes| +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Chat | Optional| +|about|[string](../types/string.md) | Info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/messages_editChatDefaultBannedRights.md b/docs/API_docs/methods/messages_editChatDefaultBannedRights.md index 67d37679..822cb684 100644 --- a/docs/API_docs/methods/messages_editChatDefaultBannedRights.md +++ b/docs/API_docs/methods/messages_editChatDefaultBannedRights.md @@ -1,18 +1,20 @@ --- title: messages.editChatDefaultBannedRights -description: messages.editChatDefaultBannedRights parameters, return type and example +description: Edit default rights of chat image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.editChatDefaultBannedRights [Back to methods index](index.md) +Edit default rights of chat + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| -|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes| +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Chat | Optional| +|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Global chat rights | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/docs/API_docs/methods/messages_exportChatInvite.md b/docs/API_docs/methods/messages_exportChatInvite.md index cfc0418a..952b6a43 100644 --- a/docs/API_docs/methods/messages_exportChatInvite.md +++ b/docs/API_docs/methods/messages_exportChatInvite.md @@ -13,7 +13,7 @@ Export chat invite | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | | Optional| +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Export invite only for this user | Optional| ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) diff --git a/docs/docs/CALLS.md b/docs/docs/CALLS.md index 03aad4fc..b3293da3 100644 --- a/docs/docs/CALLS.md +++ b/docs/docs/CALLS.md @@ -124,4 +124,4 @@ while (true) { } ``` -Next section +Next section \ No newline at end of file diff --git a/docs/docs/INLINE_BUTTONS.md b/docs/docs/INLINE_BUTTONS.md index 806e4ba0..fc20cd31 100644 --- a/docs/docs/INLINE_BUTTONS.md +++ b/docs/docs/INLINE_BUTTONS.md @@ -53,4 +53,4 @@ And click them: $button->click(); ``` -Next section \ No newline at end of file +Next section \ No newline at end of file diff --git a/docs/docs/INSTALLATION.md b/docs/docs/INSTALLATION.md index 79f6a4f7..ea2eb888 100644 --- a/docs/docs/INSTALLATION.md +++ b/docs/docs/INSTALLATION.md @@ -110,4 +110,4 @@ Then you can require the package by addding the following lines to the require s ``` -Next section +Next section \ No newline at end of file diff --git a/docs/docs/LOGGING.md b/docs/docs/LOGGING.md index e97aefc2..2db8c7e9 100644 --- a/docs/docs/LOGGING.md +++ b/docs/docs/LOGGING.md @@ -22,4 +22,4 @@ MadelineProto provides a unified class for logging messages to the logging desti By default, `$level` is `\danog\MadelineProto\Logger:NOTICE`. -Next section \ No newline at end of file +Next section \ No newline at end of file diff --git a/docs/docs/PROXY.md b/docs/docs/PROXY.md index 613a1b4c..71397658 100644 --- a/docs/docs/PROXY.md +++ b/docs/docs/PROXY.md @@ -166,4 +166,4 @@ Can return additional HTTP headers to use when the HTTP protocol is being used. Returns the resource used for socket communication: should call `$socket->getResource()`. -Next section \ No newline at end of file +Next section \ No newline at end of file diff --git a/docs/docs/UPDATES.md b/docs/docs/UPDATES.md index 204f9c5f..667fb412 100644 --- a/docs/docs/UPDATES.md +++ b/docs/docs/UPDATES.md @@ -297,4 +297,4 @@ $MadelineProto->setNoop(); ``` When an [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html) is received, nothing is done. This is useful if you need to populate the internal peer database with peers to avoid `This peer is not present in the internal peer database errors`, but don't need to handle updates. -Next section +Next section \ No newline at end of file diff --git a/docs/docs/USING_METHODS.md b/docs/docs/USING_METHODS.md index 9ff53d92..33b8fdd0 100644 --- a/docs/docs/USING_METHODS.md +++ b/docs/docs/USING_METHODS.md @@ -107,4 +107,4 @@ $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'l If the queue if the specified queue name does not exist, it will be created. -Next section +Next section \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 4a6afa0f..e22e9ecf 100644 --- a/docs/index.md +++ b/docs/index.md @@ -83,16 +83,13 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * [Getting the TL trace](https://docs.madelineproto.xyz/docs/EXCEPTIONS.html#getting-the-tl-trace) * [Avoiding FLOOD_WAITs](https://docs.madelineproto.xyz/docs/FLOOD_WAIT.html) * [Logging](https://docs.madelineproto.xyz/docs/LOGGING.html) -* [Using methods](https://docs.madelineproto.xyz/docs/USING_METHODS.html) - * [FULL API Documentation with descriptions](https://docs.madelineproto.xyz/API_docs/methods/) - * [Peers](https://docs.madelineproto.xyz/docs/USING_METHODS.html#peers) - * [Files](https://docs.madelineproto.xyz/docs/FILES.html) - * [Secret chats](https://docs.madelineproto.xyz/docs/USING_METHODS.html#secret-chats) - * [Entities (Markdown & HTML)](https://docs.madelineproto.xyz/docs/USING_METHODS.html#entities) - * [reply_markup (keyboards & inline keyboards)](https://docs.madelineproto.xyz/docs/USING_METHODS.html#reply_markup) - * [bot API objects](https://docs.madelineproto.xyz/docs/USING_METHODS.html#bot-api-objects) - * [No result](https://docs.madelineproto.xyz/docs/USING_METHODS.html#no-result) - * [Queues](https://docs.madelineproto.xyz/docs/USING_METHODS.html#queues) +* [Telegram VoIP phone calls](https://docs.madelineproto.xyz/docs/CALLS.html) + * [Requesting a call](https://docs.madelineproto.xyz/docs/CALLS.html#requesting-a-call) + * [Playing mp3 files](https://docs.madelineproto.xyz/docs/CALLS.html#playing-mp3-files) + * [Playing streams](https://docs.madelineproto.xyz/docs/CALLS.html#playing-streams) + * [Changing audio quality](https://docs.madelineproto.xyz/docs/CALLS.html#changing-audio-quality) + * [Putting it all together](https://docs.madelineproto.xyz/docs/CALLS.html#putting-it-all-together) + * [Accepting calls](https://docs.madelineproto.xyz/docs/CALLS.html#accepting-calls) * [Uploading and downloading files](https://docs.madelineproto.xyz/docs/FILES.html) * [Uploading & sending files](https://docs.madelineproto.xyz/docs/FILES.html#sending-files) * [Security notice](https://docs.madelineproto.xyz/docs/FILES.html#security-notice) @@ -120,13 +117,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * [As user](https://docs.madelineproto.xyz/docs/DIALOGS.html#user-get_dialogs) * [As bot](https://docs.madelineproto.xyz/docs/DIALOGS.html#bot-internal-peer-database) * [Inline buttons](https://docs.madelineproto.xyz/docs/INLINE_BUTTONS.html) -* [Calls](https://docs.madelineproto.xyz/docs/CALLS.html) - * [Requesting a call](https://docs.madelineproto.xyz/docs/CALLS.html#requesting-a-call) - * [Playing mp3 files](https://docs.madelineproto.xyz/docs/CALLS.html#playing-mp3-files) - * [Playing streams](https://docs.madelineproto.xyz/docs/CALLS.html#playing-streams) - * [Changing audio quality](https://docs.madelineproto.xyz/docs/CALLS.html#changing-audio-quality) - * [Putting it all together](https://docs.madelineproto.xyz/docs/CALLS.html#putting-it-all-together) - * [Accepting calls](https://docs.madelineproto.xyz/docs/CALLS.html#accepting-calls) * [Secret chats](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) * [Requesting secret chats](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html#requesting-secret-chats) * [Accepting secret chats](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html#accepting-secret-chats) @@ -137,6 +127,281 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * [Use pre-built Socks5 proxy](https://docs.madelineproto.xyz/docs/PROXY.html#socks5-proxy) * [Use pre-built HTTP proxy](https://docs.madelineproto.xyz/docs/PROXY.html#http-proxy) * [Build your own proxy](https://docs.madelineproto.xyz/docs/PROXY.html#build-your-proxy) +* [Using methods](https://docs.madelineproto.xyz/docs/USING_METHODS.html) + * [FULL API Documentation with descriptions](https://docs.madelineproto.xyz/API_docs/methods/) + * [Logout](https://docs.madelineproto.xyz/logout.html) + * [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) + * [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) + * [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) + * [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) + * [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) + * [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) + * [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) + * [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) + * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) + * Accept telegram passport authorization: account.acceptAuthorization + * Accept telegram's TOS: help.acceptTermsOfService + * Add a sticker set: messages.installStickerSet + * Add a sticker to favorites: messages.faveSticker + * Add a sticker to recent stickers: messages.saveRecentSticker + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + * Add phone number as contact: contacts.importContacts + * Add sticker to stickerset: stickers.addStickerToSet + * Add users to channel/supergroup: channels.inviteToChannel + * Block a user: contacts.block + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + * Bots only: send payment form: payments.sendPaymentForm + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + * Bots only: set shipping results: messages.setBotShippingResults + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + * Bots only: set the results of an inline query: messages.setInlineBotResults + * Call inline bot: messages.getInlineBotResults + * Cancel password recovery email: account.cancelPasswordEmail + * Change notification settings: account.updateNotifySettings + * Change sticker position in photo: stickers.changeStickerPosition + * Change the phone number associated to this account: account.changePhone + * Change the phone number: account.sendChangePhoneCode + * Change the profile photo: photos.updateProfilePhoto + * Change typing status: messages.setTyping + * Check if about to edit a message or a media caption: messages.getMessageEditData + * Check if an invitation link is valid: messages.checkChatInvite + * Check if this username is available: account.checkUsername + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + * Clear all drafts: messages.clearAllDrafts + * Clear all recent stickers: messages.clearRecentStickers + * Clear saved payments info: payments.clearSavedInfo + * Confirm password recovery using email: account.confirmPasswordEmail + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + * Contact signup notification setting value: account.getContactSignUpNotification + * Convert chat to supergroup: messages.migrateChat + * Create a chat (not supergroup): messages.createChat + * Create channel/supergroup: channels.createChannel + * Create stickerset: stickers.createStickerSet + * Delete a certain session: account.resetAuthorization + * Delete a certain telegram web login authorization: account.resetWebAuthorization + * Delete a channel/supergroup: channels.deleteChannel + * Delete a contact: contacts.deleteContact + * Delete a user from a chat (not supergroup): messages.deleteChatUser + * Delete all logged-in sessions.: auth.resetAuthorizations + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + * Delete channel/supergroup messages: channels.deleteMessages + * Delete chat history: messages.deleteHistory + * Delete contacts by phones: contacts.deleteByPhones + * Delete messages: messages.deleteMessages + * Delete multiple contacts: contacts.deleteContacts + * Delete profile photos: photos.deletePhotos + * Delete secure telegram passport value: account.deleteSecureValue + * Delete the history of a supergroup/channel: channels.deleteHistory + * Delete this account: account.deleteAccount + * Disable all notifications for a certain period: account.updateDeviceLocked + * Download a file through telegram: upload.getWebFile + * Edit a message: messages.editMessage + * Edit a sent inline message: messages.editInlineBotMessage + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + * Edit admin permissions: messages.editChatAdmin + * Edit chat info: messages.editChatAbout + * Edit default rights of chat: messages.editChatDefaultBannedRights + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + * Edit the photo of a supergroup/channel: channels.editPhoto + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + * Edit the title of a supergroup/channel: channels.editTitle + * Edit user info: help.editUserInfo + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + * Export chat invite : messages.exportChatInvite + * Find a sticker set: messages.searchStickerSets + * Finish account exporting session: account.finishTakeoutSession + * Forward messages: messages.forwardMessages + * Get CDN configuration: help.getCdnConfig + * Get a stickerset: messages.getStickerSet + * Get account TTL: account.getAccountTTL + * Get admin log of a channel/supergroup: channels.getAdminLog + * Get all archived stickers: messages.getArchivedStickers + * Get all channels you left: channels.getLeftChannels + * Get all chats (not supergroups or channels): messages.getAllChats + * Get all contacts: contacts.getContacts + * Get all logged-in authorizations: account.getAuthorizations + * Get all message drafts: messages.getAllDrafts + * Get all secure telegram passport values: account.getAllSecureValues + * Get all stickerpacks: messages.getAllStickers + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + * Get and increase message views: messages.getMessagesViews + * Get app config: help.getAppConfig + * Get available languages: langpack.getLanguages + * Get blocked users: contacts.getBlocked + * Get call configuration: phone.getCallConfig + * Get channel/supergroup messages: channels.getMessages + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + * Get chats in common with a user: messages.getCommonChats + * Get contacts by IDs: contacts.getContactIDs + * Get deep link info: help.getDeepLinkInfo + * Get dialog info of peers: messages.getPeerDialogs + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + * Get document by SHA256 hash: messages.getDocumentByHash + * Get favorite stickers: messages.getFavedStickers + * Get featured stickers: messages.getFeaturedStickers + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + * Get high scores of a game: messages.getGameHighScores + * Get info about a certain channel/supergroup participant: channels.getParticipant + * Get info about app updates: help.getAppUpdate + * Get info about chats: messages.getChats + * Get info about multiple channels/supergroups: channels.getChannels + * Get info about users: users.getUsers + * Get info of support user: help.getSupport + * Get information about the current proxy: help.getProxyData + * Get invitation text: help.getInviteText + * Get language pack strings: langpack.getStrings + * Get language pack updates: langpack.getDifference + * Get language pack: langpack.getLangPack + * Get language: langpack.getLanguage + * Get masks: messages.getMaskStickers + * Get message ranges to fetch: messages.getSplitRanges + * Get messages: messages.getMessages + * Get most used chats: contacts.getTopPeers + * Get nearest datacenter: help.getNearestDc + * Get notification exceptions: account.getNotifyExceptions + * Get notification settings: account.getNotifySettings + * Get online status of all users: contacts.getStatuses + * Get online users: messages.getOnlines + * Get passport config: help.getPassportConfig + * Get payment form: payments.getPaymentForm + * Get payment receipt: payments.getPaymentReceipt + * Get pinned dialogs: messages.getPinnedDialogs + * Get poll results: messages.getPollResults + * Get previous messages of a group: messages.getHistory + * Get privacy settings: account.getPrivacy + * Get recent locations: messages.getRecentLocations + * Get recent stickers: messages.getRecentStickers + * Get recent t.me URLs: help.getRecentMeUrls + * Get saved contacts: contacts.getSaved + * Get saved gifs: messages.getSavedGifs + * Get saved payments info: payments.getSavedInfo + * Get secure value for telegram passport: account.getSecureValue + * Get server configuration: help.getConfig + * Get stats URL: messages.getStatsURL + * Get stickers attachable to images: messages.getAttachedStickers + * Get stickers: messages.getStickers + * Get support name: help.getSupportName + * Get telegram web login authorizations: account.getWebAuthorizations + * Get temporary password for buying products through bots: account.getTmpPassword + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + * Get the changelog of this app: help.getAppChangelog + * Get the current password: account.getPassword + * Get the link of a message in a channel: channels.exportMessageLink + * Get the profile photos of a user: photos.getUserPhotos + * Get the settings of apeer: messages.getPeerSettings + * Get unread mentions: messages.getUnreadMentions + * Get updated TOS: help.getTermsOfServiceUpdate + * Get user info: help.getUserInfo + * Get wallpaper info: account.getWallPaper + * Get webpage preview: messages.getWebPage + * Get webpage preview: messages.getWebPagePreview + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + * Global message search: messages.searchGlobal + * Hide report spam popup: messages.hideReportSpam + * Import chat invite: messages.importChatInvite + * Initializes connection and save information on the user's device and application.: initConnection + * Install wallpaper: account.installWallPaper + * Invalidate sent phone code: auth.cancelCode + * Invoke method from takeout session: invokeWithTakeout + * Invoke this method with layer X: invokeWithLayer + * Invoke with messages range: invokeWithMessagesRange + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + * Join a channel/supergroup: channels.joinChannel + * Kick or ban a user from a channel/supergroup: channels.editBanned + * Leave a channel/supergroup: channels.leaveChannel + * Log data for developer of this app: help.saveAppLog + * Mark channel/supergroup history as read: channels.readHistory + * Mark channel/supergroup messages as read: channels.readMessageContents + * Mark dialog as unread : messages.markDialogUnread + * Mark mentions as read: messages.readMentions + * Mark message as read: messages.readMessageContents + * Mark messages as read in secret chats: messages.readEncryptedHistory + * Mark messages as read: messages.readHistory + * Mark messages as read: messages.receivedMessages + * Mark new featured stickers as read: messages.readFeaturedStickers + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + * Pin or unpin dialog: messages.toggleDialogPin + * Register device for push notifications: account.registerDevice + * Remove a sticker set: messages.uninstallStickerSet + * Remove sticker from stickerset: stickers.removeStickerFromSet + * Reorder pinned dialogs: messages.reorderPinnedDialogs + * Reorder sticker sets: messages.reorderStickerSets + * Report a message in a supergroup/channel for spam: channels.reportSpam + * Report a message: messages.report + * Report a peer for spam: messages.reportSpam + * Report for spam a secret chat: messages.reportEncryptedSpam + * Report for spam: account.reportPeer + * Resend password recovery email: account.resendPasswordEmail + * Resend the SMS verification code: auth.resendCode + * Reset all notification settings: account.resetNotifySettings + * Reset all telegram web login authorizations: account.resetWebAuthorizations + * Reset saved contacts: contacts.resetSaved + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + * Reset wallpapers: account.resetWallPapers + * Result type returned by a current query.: invokeAfterMsgs + * Returns a list of available wallpapers.: account.getWallPapers + * Save a GIF: messages.saveGif + * Save a message draft: messages.saveDraft + * Save call debugging info: phone.saveCallDebug + * Save telegram passport secure value: account.saveSecureValue + * Save wallpaper: account.saveWallPaper + * Search contacts: contacts.search + * Search gifs: messages.searchGifs + * Search peers or messages: messages.search + * Send a custom request to the bot API: bots.sendCustomRequest + * Send a file to a secret chat: messages.sendEncryptedFile + * Send a media: messages.sendMedia + * Send a message: messages.sendMessage + * Send a service message to a secret chat: messages.sendEncryptedService + * Send an album: messages.sendMultiMedia + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + * Send confirmation phone code: account.sendConfirmPhoneCode + * Send email verification code: account.sendVerifyEmailCode + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + * Send message to secret chat: messages.sendEncrypted + * Send phone verification code: account.sendVerifyPhoneCode + * Send screenshot notification: messages.sendScreenshotNotification + * Send typing notification to secret chat: messages.setEncryptedTyping + * Send vote: messages.sendVote + * Send webhook request via bot API: bots.answerWebhookJSONQuery + * Set account TTL: account.setAccountTTL + * Set contact sign up notification: account.setContactSignUpNotification + * Set phone call rating: phone.setCallRating + * Set privacy settings: account.setPrivacy + * Set secure value error for telegram passport: users.setSecureValueErrors + * Set the game score of an inline message: messages.setInlineGameScore + * Set the game score: messages.setGameScore + * Set the supergroup/channel stickerpack: channels.setStickers + * Set the update status of webhook: help.setBotUpdatesStatus + * Start a bot: messages.startBot + * Start account exporting session: account.initTakeoutSession + * Stop sending PUSH notifications to app: account.unregisterDevice + * Toggle channel signatures: channels.toggleSignatures + * Toggle top peers: contacts.toggleTopPeers + * Unblock a user: contacts.unblock + * Update online status: account.updateStatus + * Update pinned message (private chat only): messages.updatePinnedMessage + * Update profile info: account.updateProfile + * Update the username of a supergroup/channel: channels.updateUsername + * Update this user's username: account.updateUsername + * Upload a file without sending it to anyone: messages.uploadMedia + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + * Upload profile photo: photos.uploadProfilePhoto + * Upload wallpaper: account.uploadWallPaper + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + * Validate requested payment info: payments.validateRequestedInfo + * Verify email address: account.verifyEmail + * Verify phone number: account.verifyPhone + * [Peers](https://docs.madelineproto.xyz/docs/USING_METHODS.html#peers) + * [Files](https://docs.madelineproto.xyz/docs/FILES.html) + * [Secret chats](https://docs.madelineproto.xyz/docs/USING_METHODS.html#secret-chats) + * [Entities (Markdown & HTML)](https://docs.madelineproto.xyz/docs/USING_METHODS.html#entities) + * [reply_markup (keyboards & inline keyboards)](https://docs.madelineproto.xyz/docs/USING_METHODS.html#reply_markup) + * [bot API objects](https://docs.madelineproto.xyz/docs/USING_METHODS.html#bot-api-objects) + * [No result](https://docs.madelineproto.xyz/docs/USING_METHODS.html#no-result) + * [Queues](https://docs.madelineproto.xyz/docs/USING_METHODS.html#queues) * [Contributing](https://docs.madelineproto.xyz/docs/CONTRIB.html) * [Translation](https://docs.madelineproto.xyz/docs/CONTRIB.html#translation) * [Contribution guide](https://docs.madelineproto.xyz/docs/CONTRIB.html#contribution-guide)